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:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user