chore(cart): Use module native soft-delete/delete methods (#6491)
This commit is contained in:
@@ -140,13 +140,6 @@ export interface ICartModuleService extends IModuleService {
|
||||
sharedContext?: Context
|
||||
): Promise<CartLineItemDTO>
|
||||
|
||||
removeLineItems(itemIds: string[], sharedContext?: Context): Promise<void>
|
||||
removeLineItems(itemIds: string, sharedContext?: Context): Promise<void>
|
||||
removeLineItems(
|
||||
selector: Partial<CartLineItemDTO>,
|
||||
sharedContext?: Context
|
||||
): Promise<void>
|
||||
|
||||
listShippingMethods(
|
||||
filters: FilterableShippingMethodProps,
|
||||
config: FindConfig<CartShippingMethodDTO>,
|
||||
@@ -165,19 +158,6 @@ export interface ICartModuleService extends IModuleService {
|
||||
sharedContext?: Context
|
||||
): Promise<CartShippingMethodDTO[]>
|
||||
|
||||
removeShippingMethods(
|
||||
methodIds: string[],
|
||||
sharedContext?: Context
|
||||
): Promise<void>
|
||||
removeShippingMethods(
|
||||
methodIds: string,
|
||||
sharedContext?: Context
|
||||
): Promise<void>
|
||||
removeShippingMethods(
|
||||
selector: Partial<CartShippingMethodDTO>,
|
||||
sharedContext?: Context
|
||||
): Promise<void>
|
||||
|
||||
listLineItemAdjustments(
|
||||
filters: FilterableLineItemAdjustmentProps,
|
||||
config?: FindConfig<LineItemAdjustmentDTO>,
|
||||
@@ -201,19 +181,6 @@ export interface ICartModuleService extends IModuleService {
|
||||
sharedContext?: Context
|
||||
): Promise<LineItemAdjustmentDTO[]>
|
||||
|
||||
removeLineItemAdjustments(
|
||||
adjustmentIds: string[],
|
||||
sharedContext?: Context
|
||||
): Promise<void>
|
||||
removeLineItemAdjustments(
|
||||
adjustmentIds: string,
|
||||
sharedContext?: Context
|
||||
): Promise<void>
|
||||
removeLineItemAdjustments(
|
||||
selector: Partial<LineItemAdjustmentDTO>,
|
||||
sharedContext?: Context
|
||||
): Promise<void>
|
||||
|
||||
listShippingMethodAdjustments(
|
||||
filters: FilterableShippingMethodAdjustmentProps,
|
||||
config?: FindConfig<ShippingMethodAdjustmentDTO>,
|
||||
@@ -241,19 +208,6 @@ export interface ICartModuleService extends IModuleService {
|
||||
sharedContext?: Context
|
||||
): Promise<ShippingMethodAdjustmentDTO[]>
|
||||
|
||||
removeShippingMethodAdjustments(
|
||||
adjustmentIds: string[],
|
||||
sharedContext?: Context
|
||||
): Promise<void>
|
||||
removeShippingMethodAdjustments(
|
||||
adjustmentId: string,
|
||||
sharedContext?: Context
|
||||
): Promise<void>
|
||||
removeShippingMethodAdjustments(
|
||||
selector: Partial<ShippingMethodAdjustmentDTO>,
|
||||
sharedContext?: Context
|
||||
): Promise<void>
|
||||
|
||||
listLineItemTaxLines(
|
||||
filters: FilterableLineItemTaxLineProps,
|
||||
config?: FindConfig<LineItemTaxLineDTO>,
|
||||
@@ -278,19 +232,6 @@ export interface ICartModuleService extends IModuleService {
|
||||
sharedContext?: Context
|
||||
): Promise<LineItemTaxLineDTO[]>
|
||||
|
||||
removeLineItemTaxLines(
|
||||
taxLineIds: string[],
|
||||
sharedContext?: Context
|
||||
): Promise<void>
|
||||
removeLineItemTaxLines(
|
||||
taxLineIds: string,
|
||||
sharedContext?: Context
|
||||
): Promise<void>
|
||||
removeLineItemTaxLines(
|
||||
selector: FilterableLineItemTaxLineProps,
|
||||
sharedContext?: Context
|
||||
): Promise<void>
|
||||
|
||||
listShippingMethodTaxLines(
|
||||
filters: FilterableShippingMethodTaxLineProps,
|
||||
config?: FindConfig<ShippingMethodTaxLineDTO>,
|
||||
@@ -318,16 +259,33 @@ export interface ICartModuleService extends IModuleService {
|
||||
sharedContext?: Context
|
||||
): Promise<ShippingMethodTaxLineDTO[]>
|
||||
|
||||
removeShippingMethodTaxLines(
|
||||
taxLineIds: string[],
|
||||
delete(ids: string[], sharedContext?: Context): Promise<void>
|
||||
delete(id: string, sharedContext?: Context): Promise<void>
|
||||
deleteLineItems(ids: string[], sharedContext?: Context): Promise<void>
|
||||
deleteLineItems(id: string, sharedContext?: Context): Promise<void>
|
||||
deleteShippingMethods(ids: string[], sharedContext?: Context): Promise<void>
|
||||
deleteShippingMethods(id: string, sharedContext?: Context): Promise<void>
|
||||
deleteLineItemAdjustments(
|
||||
ids: string[],
|
||||
sharedContext?: Context
|
||||
): Promise<void>
|
||||
removeShippingMethodTaxLines(
|
||||
taxLineIds: string,
|
||||
deleteLineItemAdjustments(id: string, sharedContext?: Context): Promise<void>
|
||||
deleteShippingMethodAdjustments(
|
||||
ids: string[],
|
||||
sharedContext?: Context
|
||||
): Promise<void>
|
||||
removeShippingMethodTaxLines(
|
||||
selector: FilterableShippingMethodTaxLineProps,
|
||||
deleteShippingMethodAdjustments(
|
||||
id: string,
|
||||
sharedContext?: Context
|
||||
): Promise<void>
|
||||
deleteLineItemTaxLines(ids: string[], sharedContext?: Context): Promise<void>
|
||||
deleteLineItemTaxLines(id: string, sharedContext?: Context): Promise<void>
|
||||
deleteShippingMethodTaxLines(
|
||||
ids: string[],
|
||||
sharedContext?: Context
|
||||
): Promise<void>
|
||||
deleteShippingMethodTaxLines(
|
||||
id: string,
|
||||
sharedContext?: Context
|
||||
): Promise<void>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user