@wix/auto_sdk_ecom_cart-v-2 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +120 -105
  2. package/build/cjs/index.js +41 -51
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +1 -1
  5. package/build/cjs/index.typings.js +34 -44
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +103 -98
  8. package/build/cjs/meta.js +20 -20
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +120 -105
  11. package/build/es/index.mjs +39 -48
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +1 -1
  14. package/build/es/index.typings.mjs +32 -41
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +103 -98
  17. package/build/es/meta.mjs +18 -18
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +24 -28
  20. package/build/internal/cjs/index.js +41 -51
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +139 -128
  23. package/build/internal/cjs/index.typings.js +34 -44
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +103 -98
  26. package/build/internal/cjs/meta.js +20 -20
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +24 -28
  29. package/build/internal/es/index.mjs +39 -48
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +139 -128
  32. package/build/internal/es/index.typings.mjs +32 -41
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +103 -98
  35. package/build/internal/es/meta.mjs +18 -18
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { CreateCartRequest as CreateCartRequest$1, CreateCartResponse as CreateCartResponse$1, GetCartRequest as GetCartRequest$1, GetCartResponse as GetCartResponse$1, UpdateCartRequest as UpdateCartRequest$1, UpdateCartResponse as UpdateCartResponse$1, DeleteCartRequest as DeleteCartRequest$1, DeleteCartResponse as DeleteCartResponse$1, RefreshCartRequest as RefreshCartRequest$1, RefreshCartResponse as RefreshCartResponse$1, CalculateCartRequest as CalculateCartRequest$1, CalculateCartResponse as CalculateCartResponse$1, GetCheckoutURLRequest as GetCheckoutURLRequest$1, GetCheckoutURLResponse as GetCheckoutURLResponse$1, PlaceOrderRequest as PlaceOrderRequest$1, PlaceOrderResponse as PlaceOrderResponse$1, AddLineItemsRequest as AddLineItemsRequest$1, AddLineItemsResponse as AddLineItemsResponse$1, RemoveLineItemsRequest as RemoveLineItemsRequest$1, RemoveLineItemsResponse as RemoveLineItemsResponse$1, UpdateLineItemsRequest as UpdateLineItemsRequest$1, UpdateLineItemsResponse as UpdateLineItemsResponse$1, AddDiscountRequest as AddDiscountRequest$1, AddDiscountResponse as AddDiscountResponse$1, RemoveDiscountRequest as RemoveDiscountRequest$1, RemoveDiscountResponse as RemoveDiscountResponse$1, AddGiftCardRequest as AddGiftCardRequest$1, AddGiftCardResponse as AddGiftCardResponse$1, RemoveGiftCardRequest as RemoveGiftCardRequest$1, RemoveGiftCardResponse as RemoveGiftCardResponse$1, MarkCartAsCompletedRequest as MarkCartAsCompletedRequest$1, MarkCartAsCompletedResponse as MarkCartAsCompletedResponse$1, HandleAsyncCheckoutCompletionRequest as HandleAsyncCheckoutCompletionRequest$1, RawHttpResponse as RawHttpResponse$1 } from './index.typings.mjs';
1
+ import { CreateCartRequest as CreateCartRequest$1, CreateCartResponse as CreateCartResponse$1, GetCartRequest as GetCartRequest$1, GetCartResponse as GetCartResponse$1, UpdateCartRequest as UpdateCartRequest$1, UpdateCartResponse as UpdateCartResponse$1, DeleteCartRequest as DeleteCartRequest$1, DeleteCartResponse as DeleteCartResponse$1, RefreshCartRequest as RefreshCartRequest$1, RefreshCartResponse as RefreshCartResponse$1, CalculateCartRequest as CalculateCartRequest$1, CalculateCartResponse as CalculateCartResponse$1, GetCheckoutURLRequest as GetCheckoutURLRequest$1, GetCheckoutURLResponse as GetCheckoutURLResponse$1, PlaceOrderRequest as PlaceOrderRequest$1, PlaceOrderResponse as PlaceOrderResponse$1, AddLineItemsRequest as AddLineItemsRequest$1, AddLineItemsResponse as AddLineItemsResponse$1, RemoveLineItemsRequest as RemoveLineItemsRequest$1, RemoveLineItemsResponse as RemoveLineItemsResponse$1, UpdateLineItemsRequest as UpdateLineItemsRequest$1, UpdateLineItemsResponse as UpdateLineItemsResponse$1, AddCouponRequest as AddCouponRequest$1, AddCouponResponse as AddCouponResponse$1, RemoveCouponRequest as RemoveCouponRequest$1, RemoveCouponResponse as RemoveCouponResponse$1, AddGiftCardRequest as AddGiftCardRequest$1, AddGiftCardResponse as AddGiftCardResponse$1, RemoveGiftCardRequest as RemoveGiftCardRequest$1, RemoveGiftCardResponse as RemoveGiftCardResponse$1, MarkCartAsCompletedRequest as MarkCartAsCompletedRequest$1, MarkCartAsCompletedResponse as MarkCartAsCompletedResponse$1, HandleAsyncCheckoutCompletionRequest as HandleAsyncCheckoutCompletionRequest$1, RawHttpResponse as RawHttpResponse$1 } from './index.typings.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  interface Cart {
@@ -40,13 +40,11 @@ interface Cart {
40
40
  */
41
41
  note?: string | null;
42
42
  /**
43
- * The discounts of the Cart.
44
- * Automatic discounts are removed from the Cart entirely when they are no longer valid.
45
- * Coupon discounts are not removed from the Cart, but are marked as invalid.
46
- * @maxSize 100
47
- * @readonly
43
+ * List of coupons added to the Cart.
44
+ * Currently, only one coupon code is supported.
45
+ * @maxSize 1
48
46
  */
49
- discounts?: Discount[];
47
+ coupons?: Coupon[];
50
48
  /** Information about the source of the Cart, detailing the origin or context in which the Cart was created. */
51
49
  source?: CartSource;
52
50
  /** Information about the site from which the Cart's line items were added. */
@@ -141,6 +139,11 @@ interface V2LineItem {
141
139
  * @maxSize 25
142
140
  */
143
141
  modifierGroups?: ModifierGroup[];
142
+ /**
143
+ * List of discounts applied to this line item.
144
+ * @maxSize 100
145
+ */
146
+ discounts?: ItemDiscount[];
144
147
  /**
145
148
  * Whether the line item is a custom line item.
146
149
  * Custom line items don't trigger the Catalog service plugin.
@@ -854,95 +857,29 @@ interface ItemModifier {
854
857
  /** The price of the modifier. */
855
858
  price?: MultiCurrencyPrice;
856
859
  }
857
- interface Discount {
858
- /**
859
- * A unique identifier of the discount within the Cart.
860
- * @format GUID
861
- */
862
- id?: string;
860
+ /**
861
+ * Currently, only automatic discounts are applied to line items.
862
+ * In the future, coupon discounts will be supported as well.
863
+ */
864
+ interface ItemDiscount {
863
865
  /** The display name of the discount. */
864
866
  name?: TranslatableString;
865
- /** The source of the discount, indicating how it was applied. */
866
- source?: DiscountSource;
867
- /** The component in the Cart that the discount applies to. */
868
- scope?: DiscountScopeWithLiterals;
869
- /**
870
- * List of benefits provided by the discount.
871
- * @minSize 1
872
- * @maxSize 100
873
- */
874
- benefits?: DiscountBenefit[];
875
- /**
876
- * The current status of the discount.
877
- * TODO: remodel.
878
- */
879
- status?: DiscountStatusWithLiterals;
880
- /**
881
- * Number of subscription cycles this discount applies to.
882
- * If unset, the discount applies to all billing cycles.
883
- * @min 1
884
- * @max 1000
885
- */
886
- subscriptionCycles?: number | null;
867
+ /** The amount discounted from the item's sale price (per unit). */
868
+ amountOff?: MultiCurrencyPrice;
887
869
  }
888
- interface DiscountSource {
889
- /** The type of the discount source. */
890
- sourceType?: DiscountSourceTypeWithLiterals;
870
+ interface Coupon {
891
871
  /**
892
- * Coupon code that triggered the discount.
893
- * Relevant for coupon discounts only.
894
- * @maxLength 50
872
+ * ID of the coupon in the Cart.
873
+ * @format GUID
895
874
  */
896
- couponCode?: string | null;
897
- }
898
- declare enum DiscountSourceType {
899
- UNKNOWN_DISCOUNT_SOURCE_TYPE = "UNKNOWN_DISCOUNT_SOURCE_TYPE",
900
- /** The discount was applied automatically by a rule. */
901
- AUTOMATIC_RULE = "AUTOMATIC_RULE",
902
- /** The discount was applied by a coupon code. */
903
- COUPON = "COUPON"
904
- }
905
- /** @enumType */
906
- type DiscountSourceTypeWithLiterals = DiscountSourceType | 'UNKNOWN_DISCOUNT_SOURCE_TYPE' | 'AUTOMATIC_RULE' | 'COUPON';
907
- declare enum DiscountScope {
908
- UNKNOWN_DISCOUNT_SCOPE = "UNKNOWN_DISCOUNT_SCOPE",
909
- /** The discount applies to the cart's subtotal. */
910
- CART_SUBTOTAL = "CART_SUBTOTAL",
911
- /** The discount applies to a specific line item. */
912
- LINE_ITEM = "LINE_ITEM",
913
- /** The discount applies to the delivery price. */
914
- DELIVERY = "DELIVERY"
915
- }
916
- /** @enumType */
917
- type DiscountScopeWithLiterals = DiscountScope | 'UNKNOWN_DISCOUNT_SCOPE' | 'CART_SUBTOTAL' | 'LINE_ITEM' | 'DELIVERY';
918
- interface DiscountBenefit extends DiscountBenefitValueOneOf {
919
- /** A specific monetary value deducted from the total cost. */
920
- amountOff?: MultiCurrencyPrice;
875
+ id?: string;
921
876
  /**
922
- * The ID of line item that the discount applies to.
923
- * Relevant for item-level discounts only.
924
- * @format GUID
877
+ * Coupon code.
878
+ * @minLength 1
879
+ * @maxLength 50
925
880
  */
926
- lineItemId?: string | null;
927
- }
928
- /** @oneof */
929
- interface DiscountBenefitValueOneOf {
930
- /** A specific monetary value deducted from the total cost. */
931
- amountOff?: MultiCurrencyPrice;
932
- }
933
- declare enum DiscountStatus {
934
- UNKNOWN_DISCOUNT_STATUS = "UNKNOWN_DISCOUNT_STATUS",
935
- /** The discount is active and valid. */
936
- ACTIVE = "ACTIVE",
937
- /** The discount has expired. */
938
- EXPIRED = "EXPIRED",
939
- /** The discount was deleted from the system. */
940
- DELETED = "DELETED",
941
- /** The discount reached the maximum number of uses. */
942
- MAX_USAGE_REACHED = "MAX_USAGE_REACHED"
881
+ code?: string;
943
882
  }
944
- /** @enumType */
945
- type DiscountStatusWithLiterals = DiscountStatus | 'UNKNOWN_DISCOUNT_STATUS' | 'ACTIVE' | 'EXPIRED' | 'DELETED' | 'MAX_USAGE_REACHED';
946
883
  interface CartSource {
947
884
  /**
948
885
  * Sales channel that created the Cart.
@@ -1421,6 +1358,72 @@ interface CartSettings {
1421
1358
  */
1422
1359
  manualPaymentDisabled?: boolean;
1423
1360
  }
1361
+ interface Discount {
1362
+ /** The display name of the discount. */
1363
+ name?: TranslatableString;
1364
+ /** The source of the discount, indicating how it was applied. */
1365
+ source?: DiscountSource;
1366
+ /** The component in the Cart that the discount applies to. */
1367
+ scope?: DiscountScopeWithLiterals;
1368
+ /**
1369
+ * List of benefits provided by the discount.
1370
+ * @minSize 1
1371
+ * @maxSize 100
1372
+ */
1373
+ benefits?: DiscountBenefit[];
1374
+ /**
1375
+ * Number of subscription cycles this discount applies to.
1376
+ * If unset, the discount applies to all billing cycles.
1377
+ * @min 1
1378
+ * @max 1000
1379
+ */
1380
+ subscriptionCycles?: number | null;
1381
+ }
1382
+ interface DiscountSource {
1383
+ /** The type of the discount source. */
1384
+ sourceType?: DiscountSourceTypeWithLiterals;
1385
+ /**
1386
+ * Coupon code that triggered the discount.
1387
+ * Relevant for coupon discounts only.
1388
+ * @maxLength 50
1389
+ */
1390
+ couponCode?: string | null;
1391
+ }
1392
+ declare enum DiscountSourceType {
1393
+ UNKNOWN_DISCOUNT_SOURCE_TYPE = "UNKNOWN_DISCOUNT_SOURCE_TYPE",
1394
+ /** The discount was applied automatically by a rule. */
1395
+ AUTOMATIC_RULE = "AUTOMATIC_RULE",
1396
+ /** The discount was applied by a coupon code. */
1397
+ COUPON = "COUPON"
1398
+ }
1399
+ /** @enumType */
1400
+ type DiscountSourceTypeWithLiterals = DiscountSourceType | 'UNKNOWN_DISCOUNT_SOURCE_TYPE' | 'AUTOMATIC_RULE' | 'COUPON';
1401
+ declare enum DiscountScope {
1402
+ UNKNOWN_DISCOUNT_SCOPE = "UNKNOWN_DISCOUNT_SCOPE",
1403
+ /** The discount applies to the cart's subtotal. */
1404
+ CART_SUBTOTAL = "CART_SUBTOTAL",
1405
+ /** The discount applies to a specific line item. */
1406
+ LINE_ITEM = "LINE_ITEM",
1407
+ /** The discount applies to the delivery price. */
1408
+ DELIVERY = "DELIVERY"
1409
+ }
1410
+ /** @enumType */
1411
+ type DiscountScopeWithLiterals = DiscountScope | 'UNKNOWN_DISCOUNT_SCOPE' | 'CART_SUBTOTAL' | 'LINE_ITEM' | 'DELIVERY';
1412
+ interface DiscountBenefit extends DiscountBenefitValueOneOf {
1413
+ /** A specific monetary value deducted from the total cost. */
1414
+ amountOff?: MultiCurrencyPrice;
1415
+ /**
1416
+ * The ID of line item that the discount applies to.
1417
+ * Relevant for item-level discounts only.
1418
+ * @format GUID
1419
+ */
1420
+ lineItemId?: string | null;
1421
+ }
1422
+ /** @oneof */
1423
+ interface DiscountBenefitValueOneOf {
1424
+ /** A specific monetary value deducted from the total cost. */
1425
+ amountOff?: MultiCurrencyPrice;
1426
+ }
1424
1427
  interface CartSummary {
1425
1428
  /**
1426
1429
  * The Cart ID.
@@ -1583,6 +1586,8 @@ interface Tax {
1583
1586
  rate?: string | null;
1584
1587
  /** Calculated tax, based on `taxable_amount` and `rate`. */
1585
1588
  totalTax?: MultiCurrencyPrice;
1589
+ /** Amount that is exempt from tax. */
1590
+ totalExemptAmount?: MultiCurrencyPrice;
1586
1591
  }
1587
1592
  interface LineItemTax {
1588
1593
  /**
@@ -2277,7 +2282,7 @@ interface UpdateLineItemsResponse {
2277
2282
  /** Updated Cart. */
2278
2283
  cart?: Cart;
2279
2284
  }
2280
- interface AddDiscountRequest {
2285
+ interface AddCouponRequest {
2281
2286
  /**
2282
2287
  * Cart ID.
2283
2288
  * @format GUID
@@ -2292,11 +2297,11 @@ interface AddDiscountRequest {
2292
2297
  */
2293
2298
  couponCode: string;
2294
2299
  }
2295
- interface AddDiscountResponse {
2300
+ interface AddCouponResponse {
2296
2301
  /** Updated Cart. */
2297
2302
  cart?: Cart;
2298
2303
  }
2299
- interface RemoveDiscountRequest {
2304
+ interface RemoveCouponRequest {
2300
2305
  /**
2301
2306
  * Cart ID.
2302
2307
  * @format GUID
@@ -2306,9 +2311,9 @@ interface RemoveDiscountRequest {
2306
2311
  * Discount ID.
2307
2312
  * @format GUID
2308
2313
  */
2309
- discountId: string;
2314
+ couponId: string;
2310
2315
  }
2311
- interface RemoveDiscountResponse {
2316
+ interface RemoveCouponResponse {
2312
2317
  /** Updated Cart. */
2313
2318
  cart?: Cart;
2314
2319
  }
@@ -2420,12 +2425,12 @@ declare function removeLineItems(): __PublicMethodMetaInfo<'POST', {
2420
2425
  declare function updateLineItems(): __PublicMethodMetaInfo<'POST', {
2421
2426
  cartId: string;
2422
2427
  }, UpdateLineItemsRequest$1, UpdateLineItemsRequest, UpdateLineItemsResponse$1, UpdateLineItemsResponse>;
2423
- declare function addDiscount(): __PublicMethodMetaInfo<'POST', {
2428
+ declare function addCoupon(): __PublicMethodMetaInfo<'POST', {
2424
2429
  cartId: string;
2425
- }, AddDiscountRequest$1, AddDiscountRequest, AddDiscountResponse$1, AddDiscountResponse>;
2426
- declare function removeDiscount(): __PublicMethodMetaInfo<'POST', {
2430
+ }, AddCouponRequest$1, AddCouponRequest, AddCouponResponse$1, AddCouponResponse>;
2431
+ declare function removeCoupon(): __PublicMethodMetaInfo<'POST', {
2427
2432
  cartId: string;
2428
- }, RemoveDiscountRequest$1, RemoveDiscountRequest, RemoveDiscountResponse$1, RemoveDiscountResponse>;
2433
+ }, RemoveCouponRequest$1, RemoveCouponRequest, RemoveCouponResponse$1, RemoveCouponResponse>;
2429
2434
  declare function addGiftCard(): __PublicMethodMetaInfo<'POST', {
2430
2435
  cartId: string;
2431
2436
  }, AddGiftCardRequest$1, AddGiftCardRequest, AddGiftCardResponse$1, AddGiftCardResponse>;
@@ -2437,4 +2442,4 @@ declare function markCartAsCompleted(): __PublicMethodMetaInfo<'POST', {
2437
2442
  }, MarkCartAsCompletedRequest$1, MarkCartAsCompletedRequest, MarkCartAsCompletedResponse$1, MarkCartAsCompletedResponse>;
2438
2443
  declare function handleAsyncCheckoutCompletion(): __PublicMethodMetaInfo<'POST', {}, HandleAsyncCheckoutCompletionRequest$1, HandleAsyncCheckoutCompletionRequest, RawHttpResponse$1, RawHttpResponse>;
2439
2444
 
2440
- export { type __PublicMethodMetaInfo, addDiscount, addGiftCard, addLineItems, calculateCart, createCart, deleteCart, getCart, getCheckoutUrl, handleAsyncCheckoutCompletion, markCartAsCompleted, placeOrder, refreshCart, removeDiscount, removeGiftCard, removeLineItems, updateCart, updateLineItems };
2445
+ export { type __PublicMethodMetaInfo, addCoupon, addGiftCard, addLineItems, calculateCart, createCart, deleteCart, getCart, getCheckoutUrl, handleAsyncCheckoutCompletion, markCartAsCompleted, placeOrder, refreshCart, removeCoupon, removeGiftCard, removeLineItems, updateCart, updateLineItems };
@@ -655,15 +655,15 @@ function updateLineItems(payload) {
655
655
  }
656
656
  return __updateLineItems;
657
657
  }
658
- function addDiscount(payload) {
659
- function __addDiscount({ host }) {
658
+ function addCoupon(payload) {
659
+ function __addCoupon({ host }) {
660
660
  const metadata = {
661
661
  entityFqdn: "wix.ecom.v2.cart",
662
662
  method: "POST",
663
- methodFqn: "wix.ecom.cart.v2.CartService.AddDiscount",
663
+ methodFqn: "wix.ecom.cart.v2.CartService.AddCoupon",
664
664
  packageName: PACKAGE_NAME,
665
665
  url: resolveWixEcomCartV2CartServiceUrl({
666
- protoPath: "/v2/carts/{cartId}/add-discount",
666
+ protoPath: "/v2/carts/{cartId}/add-coupon",
667
667
  data: payload,
668
668
  host
669
669
  }),
@@ -703,17 +703,17 @@ function addDiscount(payload) {
703
703
  };
704
704
  return metadata;
705
705
  }
706
- return __addDiscount;
706
+ return __addCoupon;
707
707
  }
708
- function removeDiscount(payload) {
709
- function __removeDiscount({ host }) {
708
+ function removeCoupon(payload) {
709
+ function __removeCoupon({ host }) {
710
710
  const metadata = {
711
711
  entityFqdn: "wix.ecom.v2.cart",
712
712
  method: "POST",
713
- methodFqn: "wix.ecom.cart.v2.CartService.RemoveDiscount",
713
+ methodFqn: "wix.ecom.cart.v2.CartService.RemoveCoupon",
714
714
  packageName: PACKAGE_NAME,
715
715
  url: resolveWixEcomCartV2CartServiceUrl({
716
- protoPath: "/v2/carts/{cartId}/remove-discount",
716
+ protoPath: "/v2/carts/{cartId}/remove-coupon",
717
717
  data: payload,
718
718
  host
719
719
  }),
@@ -753,7 +753,7 @@ function removeDiscount(payload) {
753
753
  };
754
754
  return metadata;
755
755
  }
756
- return __removeDiscount;
756
+ return __removeCoupon;
757
757
  }
758
758
  function addGiftCard(payload) {
759
759
  function __addGiftCard({ host }) {
@@ -1129,9 +1129,9 @@ function updateLineItems2() {
1129
1129
  __originalResponseType: null
1130
1130
  };
1131
1131
  }
1132
- function addDiscount2() {
1132
+ function addCoupon2() {
1133
1133
  const payload = { cartId: ":cartId" };
1134
- const getRequestOptions = addDiscount(payload);
1134
+ const getRequestOptions = addCoupon(payload);
1135
1135
  const getUrl = (context) => {
1136
1136
  const { url } = getRequestOptions(context);
1137
1137
  return url;
@@ -1139,7 +1139,7 @@ function addDiscount2() {
1139
1139
  return {
1140
1140
  getUrl,
1141
1141
  httpMethod: "POST",
1142
- path: "/v2/carts/{cartId}/add-discount",
1142
+ path: "/v2/carts/{cartId}/add-coupon",
1143
1143
  pathParams: { cartId: "cartId" },
1144
1144
  __requestType: null,
1145
1145
  __originalRequestType: null,
@@ -1147,9 +1147,9 @@ function addDiscount2() {
1147
1147
  __originalResponseType: null
1148
1148
  };
1149
1149
  }
1150
- function removeDiscount2() {
1150
+ function removeCoupon2() {
1151
1151
  const payload = { cartId: ":cartId" };
1152
- const getRequestOptions = removeDiscount(payload);
1152
+ const getRequestOptions = removeCoupon(payload);
1153
1153
  const getUrl = (context) => {
1154
1154
  const { url } = getRequestOptions(context);
1155
1155
  return url;
@@ -1157,7 +1157,7 @@ function removeDiscount2() {
1157
1157
  return {
1158
1158
  getUrl,
1159
1159
  httpMethod: "POST",
1160
- path: "/v2/carts/{cartId}/remove-discount",
1160
+ path: "/v2/carts/{cartId}/remove-coupon",
1161
1161
  pathParams: { cartId: "cartId" },
1162
1162
  __requestType: null,
1163
1163
  __originalRequestType: null,
@@ -1238,7 +1238,7 @@ function handleAsyncCheckoutCompletion2() {
1238
1238
  };
1239
1239
  }
1240
1240
  export {
1241
- addDiscount2 as addDiscount,
1241
+ addCoupon2 as addCoupon,
1242
1242
  addGiftCard2 as addGiftCard,
1243
1243
  addLineItems2 as addLineItems,
1244
1244
  calculateCart2 as calculateCart,
@@ -1250,7 +1250,7 @@ export {
1250
1250
  markCartAsCompleted2 as markCartAsCompleted,
1251
1251
  placeOrder2 as placeOrder,
1252
1252
  refreshCart2 as refreshCart,
1253
- removeDiscount2 as removeDiscount,
1253
+ removeCoupon2 as removeCoupon,
1254
1254
  removeGiftCard2 as removeGiftCard,
1255
1255
  removeLineItems2 as removeLineItems,
1256
1256
  updateCart2 as updateCart,