feat(core-flows,medusa,types): add automatic-taxes to region + generate tax lines endpoint (#6667)

what:

- endpoint to generate tax lines
- update workflows to force calculate tax lines with a flag
- added automatic_taxes to region
This commit is contained in:
Riqwan Thamir
2024-03-12 14:36:22 +00:00
committed by GitHub
parent 87e63c024e
commit c3c4f49fc2
14 changed files with 296 additions and 12 deletions
+2
View File
@@ -1,5 +1,6 @@
import { CustomerDTO } from "../customer"
import { ProductDTO } from "../product"
import { RegionDTO } from "../region"
import { CartDTO, CartLineItemDTO } from "./common"
import { UpdateLineItemDTO } from "./mutations"
@@ -98,4 +99,5 @@ export interface CreatePaymentCollectionForCartWorkflowInputDTO {
export interface CartWorkflowDTO extends CartDTO {
customer?: CustomerDTO
product?: ProductDTO
region?: RegionDTO
}
+5
View File
@@ -19,6 +19,11 @@ export interface RegionDTO {
*/
currency_code: string
/**
* Setting to indicate whether taxes need to be applied automatically
*/
automatic_taxes: boolean
/**
* The countries of the region.
*/
+12
View File
@@ -10,6 +10,10 @@ export interface CreateRegionDTO {
* The currency code of the region.
*/
currency_code: string
/**
* Setting to indicate whether taxes need to be applied automatically
*/
automatic_taxes?: boolean
/**
* The region's countries.
*/
@@ -33,6 +37,10 @@ export interface UpsertRegionDTO {
* The currency code of the region.
*/
currency_code?: string
/**
* Setting to indicate whether taxes need to be applied automatically
*/
automatic_taxes?: boolean
/**
* The region's countries.
*/
@@ -52,6 +60,10 @@ export interface UpdateRegionDTO {
* The currency code of the region.
*/
currency_code?: string
/**
* Setting to indicate whether taxes need to be applied automatically
*/
automatic_taxes?: boolean
/**
* The region's countries.
*/