@wix/auto_sdk_ecom_current-cart-v-2 1.0.39 → 1.0.40

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.
@@ -887,10 +887,7 @@ interface V2Coupon {
887
887
  code?: string;
888
888
  }
889
889
  interface CartSource {
890
- /**
891
- * Sales channel that created the Cart.
892
- * @immutable
893
- */
890
+ /** Sales channel that created the Cart. */
894
891
  channelType?: ChannelTypeWithLiterals;
895
892
  /**
896
893
  * References to an external app and resource associated with this Cart.
@@ -1330,6 +1327,8 @@ interface V2GiftCard {
1330
1327
  * @maxLength 50
1331
1328
  */
1332
1329
  externalId?: string | null;
1330
+ /** The amount requested to redeem from this gift card. */
1331
+ requestedRedeemAmount?: ConvertedMoney;
1333
1332
  }
1334
1333
  /** Full contact details for an address */
1335
1334
  interface FullAddressContactDetails {
@@ -1989,20 +1988,16 @@ interface CreateCurrentCartRequest {
1989
1988
  * Coupons to apply.
1990
1989
  * Currently only one is supported.
1991
1990
  * @maxSize 1
1992
- * @minLength 1
1993
- * @maxLength 50
1994
1991
  */
1995
- couponCodes?: string[];
1992
+ coupons?: CouponInput[];
1996
1993
  /** Delivery method to set. */
1997
1994
  deliveryMethod?: DeliveryMethodInput;
1998
1995
  /**
1999
1996
  * Gift cards to add.
2000
1997
  * Currently only one is support.
2001
1998
  * @maxSize 1
2002
- * @minLength 8
2003
- * @maxLength 20
2004
1999
  */
2005
- giftCardCodes?: string[];
2000
+ giftCards?: GiftCardInput[];
2006
2001
  }
2007
2002
  interface CatalogItemInput {
2008
2003
  /** A reference to the catalog item. */
@@ -2166,6 +2161,14 @@ interface CustomItemPaymentConfig {
2166
2161
  */
2167
2162
  paymentOption?: PaymentOptionTypeWithLiterals;
2168
2163
  }
2164
+ interface CouponInput {
2165
+ /**
2166
+ * Coupon code.
2167
+ * @minLength 1
2168
+ * @maxLength 50
2169
+ */
2170
+ code?: string;
2171
+ }
2169
2172
  interface DeliveryMethodInput {
2170
2173
  /**
2171
2174
  * Delivery method code.
@@ -2178,6 +2181,16 @@ interface DeliveryMethodInput {
2178
2181
  */
2179
2182
  appId?: string | null;
2180
2183
  }
2184
+ interface GiftCardInput {
2185
+ /**
2186
+ * Gift card code.
2187
+ * @minLength 8
2188
+ * @maxLength 20
2189
+ */
2190
+ code?: string;
2191
+ /** The amount requested to redeem from this gift card. */
2192
+ redeemAmount?: ConvertedMoney;
2193
+ }
2181
2194
  interface CreateCurrentCartResponse {
2182
2195
  /** The created Cart. */
2183
2196
  cart?: Cart;
@@ -2337,10 +2350,8 @@ interface AddCouponToCurrentCartRequest {
2337
2350
  * Coupon to apply.
2338
2351
  *
2339
2352
  * Currently only one is supported.
2340
- * @minLength 1
2341
- * @maxLength 50
2342
2353
  */
2343
- couponCode: string;
2354
+ coupon: CouponInput;
2344
2355
  }
2345
2356
  interface AddCouponToCurrentCartResponse {
2346
2357
  /** Updated Cart. */
@@ -2370,9 +2381,8 @@ interface AddGiftCardToCurrentCartRequest {
2370
2381
  * Gift card code.
2371
2382
  *
2372
2383
  * Currently only one is supported.
2373
- * @maxLength 50
2374
2384
  */
2375
- giftCardCode: string;
2385
+ giftCard: GiftCardInput;
2376
2386
  }
2377
2387
  interface AddGiftCardToCurrentCartResponse {
2378
2388
  /** Updated Cart. */
@@ -2550,20 +2560,16 @@ interface CreateCartRequest {
2550
2560
  * Coupons to apply.
2551
2561
  * Currently only one is supported.
2552
2562
  * @maxSize 1
2553
- * @minLength 1
2554
- * @maxLength 50
2555
2563
  */
2556
- couponCodes?: string[];
2564
+ coupons?: CouponInput[];
2557
2565
  /** Delivery method to set. */
2558
2566
  deliveryMethod?: DeliveryMethodInput;
2559
2567
  /**
2560
2568
  * Gift cards to add.
2561
2569
  * Currently only one is support.
2562
2570
  * @maxSize 1
2563
- * @minLength 8
2564
- * @maxLength 20
2565
2571
  */
2566
- giftCardCodes?: string[];
2572
+ giftCards?: GiftCardInput[];
2567
2573
  }
2568
2574
  interface CreateCartResponse {
2569
2575
  /** The created Cart. */
@@ -3780,10 +3786,8 @@ interface AddCouponRequest {
3780
3786
  * Coupon to apply.
3781
3787
  *
3782
3788
  * Currently only one is supported.
3783
- * @minLength 1
3784
- * @maxLength 50
3785
3789
  */
3786
- couponCode?: string;
3790
+ coupon?: CouponInput;
3787
3791
  }
3788
3792
  interface AddCouponResponse {
3789
3793
  /** Updated Cart. */
@@ -3828,10 +3832,8 @@ interface AddGiftCardRequest {
3828
3832
  * Gift card code.
3829
3833
  *
3830
3834
  * Currently only one is supported.
3831
- * @minLength 8
3832
- * @maxLength 20
3833
3835
  */
3834
- giftCardCode?: string;
3836
+ giftCard?: GiftCardInput;
3835
3837
  }
3836
3838
  interface AddGiftCardResponse {
3837
3839
  /** Updated Cart. */
@@ -3908,20 +3910,16 @@ interface CreateCurrentCartOptions {
3908
3910
  * Coupons to apply.
3909
3911
  * Currently only one is supported.
3910
3912
  * @maxSize 1
3911
- * @minLength 1
3912
- * @maxLength 50
3913
3913
  */
3914
- couponCodes?: string[];
3914
+ coupons?: CouponInput[];
3915
3915
  /** Delivery method to set. */
3916
3916
  deliveryMethod?: DeliveryMethodInput;
3917
3917
  /**
3918
3918
  * Gift cards to add.
3919
3919
  * Currently only one is support.
3920
3920
  * @maxSize 1
3921
- * @minLength 8
3922
- * @maxLength 20
3923
3921
  */
3924
- giftCardCodes?: string[];
3922
+ giftCards?: GiftCardInput[];
3925
3923
  }
3926
3924
  interface CalculateCurrentCartOptions {
3927
3925
  /**
@@ -3962,4 +3960,4 @@ interface UpdateLineItemsInCurrentCartOptions {
3962
3960
  lineItems?: LineItemUpdate[];
3963
3961
  }
3964
3962
 
3965
- export { type ActionEvent, type AddCouponRequest, type AddCouponResponse, type AddCouponToCurrentCartRequest, type AddCouponToCurrentCartResponse, type AddGiftCardRequest, type AddGiftCardResponse, type AddGiftCardToCurrentCartRequest, type AddGiftCardToCurrentCartResponse, type AddLineItemsRequest, type AddLineItemsResponse, type AddLineItemsToCurrentCartOptions, type AddLineItemsToCurrentCartRequest, type AddLineItemsToCurrentCartResponse, type AdditionalFee, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type AdditionalFeeTax, type Address, type AddressLocation, type AggregatedTaxBreakdown, type ApplicableLineItems, type ApplicationError, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails, type BusinessInfo, type CalculateCartForV1Request, type CalculateCartForV1Response, type CalculateCartRequest, type CalculateCartResponse, type CalculateCurrentCartOptions, type CalculateCurrentCartRequest, type CalculateCurrentCartResponse, type CalculateTotalsResponse, type CalculatedItemModifier, type CalculatedLineItem, type CalculationConfig, type CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf, type Carrier, type CarrierError, type CarrierErrors, type CarrierServiceOption, type Cart, type CartSettings, type CartSource, type CartSummary, type CatalogItemInput, type CatalogOverrideFields, type CatalogReference, ChannelType, type ChannelTypeWithLiterals, type Charge, ChargeType, type ChargeTypeWithLiterals, CheckoutStage, type CheckoutStageWithLiterals, type Color, type ConvertedMoney, type Coupon, type CreateCartRequest, type CreateCartResponse, type CreateCurrentCartOptions, type CreateCurrentCartRequest, type CreateCurrentCartResponse, type CreatedBy, type CreatedByIdOneOf, type CustomContentReference, type CustomField, type CustomItemAttributes, type CustomItemDeliveryConfig, type CustomItemInput, type CustomItemPaymentConfig, type CustomItemPricingInfo, type CustomItemQuantityInfo, type CustomItemSource, type CustomItemTaxConfig, type CustomerInfo, type CustomerInfoIdOneOf, type DeleteCartRequest, type DeleteCartResponse, type DeleteCurrentCartRequest, type DeleteCurrentCartResponse, type DeliveryAllocation, type DeliveryInfo, type DeliveryLogistics, type DeliveryMethod, type DeliveryMethodInput, type DeliverySummary, type DeliveryTimeSlot, type Description, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type Details, type DetailsKindOneOf, type Discount, type DiscountBenefit, type DiscountBenefitValueOneOf, type DiscountRule, type DiscountRuleName, DiscountScope, type DiscountScopeWithLiterals, type DiscountSource, DiscountSourceType, type DiscountSourceTypeWithLiterals, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type DummyErrorDataMethodLevel, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type ExternalReference, FallbackReason, type FallbackReasonWithLiterals, type FieldViolation, FileType, type FileTypeWithLiterals, type FreeTrialPeriod, type FullAddressContactDetails, type GetCartRequest, type GetCartResponse, type GetCheckoutURLRequest, type GetCheckoutURLResponse, type GetCurrentCartRequest, type GetCurrentCartResponse, type GiftCard, type GiftCardSummary, type Group, type HandleAsyncCheckoutCompletionRequest, type HeadersEntry, type IdentificationData, type IdentificationDataIdOneOf, type InvalidMembership, type ItemAttributes, type ItemDeliveryConfig, type ItemDiscount, type ItemModifier, type ItemPaymentConfig, type ItemPriceBreakdown, type ItemPricingInfo, type ItemQuantityInfo, type ItemSource, ItemStatus, type ItemStatusWithLiterals, type ItemTaxConfig, type ItemTaxFullDetails, type ItemType, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LegacyFields, type LineItem, type LineItemDiscount, type LineItemIdentifier, type LineItemIdentifierIdOneOf, type LineItemPricesData, type LineItemSummary, type LineItemTax, type LineItemUpdate, ManualCalculationReason, type ManualCalculationReasonWithLiterals, type MarkCartAsCompletedRequest, type MarkCartAsCompletedResponse, type Membership, type MembershipName, type MembershipOptions, type MembershipPaymentCredits, type MerchantDiscount, type MessageEnvelope, type ModifierGroup, type MultiCurrencyPrice, NameInLineItem, type NameInLineItemWithLiterals, NameInOther, type NameInOtherWithLiterals, type Other, type OtherCharge, type PaymentInfo, type PaymentOption, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PaymentSummary, type PhysicalProperties, type PickupDetails, PickupMethod, type PickupMethodWithLiterals, type PlaceOrderRequest, type PlaceOrderResponse, type PlainTextValue, type Policy, type PriceDescription, type PriceSummary, type QuantityUpdate, RateType, type RateTypeWithLiterals, type RawHttpResponse, type RedirectUrls, type RefreshCartRequest, type RefreshCartResponse, type RefreshCurrentCartRequest, type RefreshCurrentCartResponse, type Region, type RemoveCouponFromCurrentCartRequest, type RemoveCouponFromCurrentCartResponse, type RemoveCouponRequest, type RemoveCouponResponse, type RemoveGiftCardFromCurrentCartRequest, type RemoveGiftCardFromCurrentCartResponse, type RemoveGiftCardRequest, type RemoveGiftCardResponse, type RemoveLineItemsFromCurrentCartRequest, type RemoveLineItemsFromCurrentCartResponse, type RemoveLineItemsRequest, type RemoveLineItemsResponse, type RestoreInfo, RuleType, type RuleTypeWithLiterals, type Scope, type SecuredMedia, type SelectedCarrierServiceOption, type SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices, type SelectedMembership, type SelectedMembershipUpdate, type ServiceProperties, type SetDeliveryMethodForCurrentCartRequest, type SetDeliveryMethodForCurrentCartResponse, type SetDeliveryMethodRequest, type SetDeliveryMethodResponse, Severity, type SeverityWithLiterals, type ShippingInformation, type ShippingOption, type ShippingPrice, type ShippingRegion, type Stage, type StageStagesOneOf, type StreetAddress, type SubscriptionCharges, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionOptionInfo, type SubscriptionSettings, SuggestedFix, type SuggestedFixWithLiterals, type SystemError, type Target, type TargetTargetTypeOneOf, type Tax, type TaxBreakdown, type TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf, type TaxDetails, type TaxInfo, type TaxRateBreakdown, type TaxSummary, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type Title, type TranslatableString, type UnmarkAsCurrentCartRequest, type UnmarkAsCurrentCartResponse, type UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartRequest, type UpdateCurrentCartResponse, type UpdateLineItemsInCurrentCartOptions, type UpdateLineItemsInCurrentCartRequest, type UpdateLineItemsInCurrentCartResponse, type UpdateLineItemsRequest, type UpdateLineItemsResponse, type V1AdditionalFee, type V2AdditionalFee, type V2CalculationErrors, type V2CalculationErrorsShippingCalculationErrorOneOf, type V2CarrierError, type V2CarrierErrors, type V2Coupon, type V2GiftCard, type V2LineItem, type V2Membership, type V2PriceSummary, type V2SelectedMembership, type V2TaxSummary, type ValidationError, ValidationsConfig, type ValidationsConfigWithLiterals, type VatId, VatType, type VatTypeWithLiterals, type Violation, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals };
3963
+ export { type ActionEvent, type AddCouponRequest, type AddCouponResponse, type AddCouponToCurrentCartRequest, type AddCouponToCurrentCartResponse, type AddGiftCardRequest, type AddGiftCardResponse, type AddGiftCardToCurrentCartRequest, type AddGiftCardToCurrentCartResponse, type AddLineItemsRequest, type AddLineItemsResponse, type AddLineItemsToCurrentCartOptions, type AddLineItemsToCurrentCartRequest, type AddLineItemsToCurrentCartResponse, type AdditionalFee, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type AdditionalFeeTax, type Address, type AddressLocation, type AggregatedTaxBreakdown, type ApplicableLineItems, type ApplicationError, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails, type BusinessInfo, type CalculateCartForV1Request, type CalculateCartForV1Response, type CalculateCartRequest, type CalculateCartResponse, type CalculateCurrentCartOptions, type CalculateCurrentCartRequest, type CalculateCurrentCartResponse, type CalculateTotalsResponse, type CalculatedItemModifier, type CalculatedLineItem, type CalculationConfig, type CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf, type Carrier, type CarrierError, type CarrierErrors, type CarrierServiceOption, type Cart, type CartSettings, type CartSource, type CartSummary, type CatalogItemInput, type CatalogOverrideFields, type CatalogReference, ChannelType, type ChannelTypeWithLiterals, type Charge, ChargeType, type ChargeTypeWithLiterals, CheckoutStage, type CheckoutStageWithLiterals, type Color, type ConvertedMoney, type Coupon, type CouponInput, type CreateCartRequest, type CreateCartResponse, type CreateCurrentCartOptions, type CreateCurrentCartRequest, type CreateCurrentCartResponse, type CreatedBy, type CreatedByIdOneOf, type CustomContentReference, type CustomField, type CustomItemAttributes, type CustomItemDeliveryConfig, type CustomItemInput, type CustomItemPaymentConfig, type CustomItemPricingInfo, type CustomItemQuantityInfo, type CustomItemSource, type CustomItemTaxConfig, type CustomerInfo, type CustomerInfoIdOneOf, type DeleteCartRequest, type DeleteCartResponse, type DeleteCurrentCartRequest, type DeleteCurrentCartResponse, type DeliveryAllocation, type DeliveryInfo, type DeliveryLogistics, type DeliveryMethod, type DeliveryMethodInput, type DeliverySummary, type DeliveryTimeSlot, type Description, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type Details, type DetailsKindOneOf, type Discount, type DiscountBenefit, type DiscountBenefitValueOneOf, type DiscountRule, type DiscountRuleName, DiscountScope, type DiscountScopeWithLiterals, type DiscountSource, DiscountSourceType, type DiscountSourceTypeWithLiterals, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type DummyErrorDataMethodLevel, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type ExternalReference, FallbackReason, type FallbackReasonWithLiterals, type FieldViolation, FileType, type FileTypeWithLiterals, type FreeTrialPeriod, type FullAddressContactDetails, type GetCartRequest, type GetCartResponse, type GetCheckoutURLRequest, type GetCheckoutURLResponse, type GetCurrentCartRequest, type GetCurrentCartResponse, type GiftCard, type GiftCardInput, type GiftCardSummary, type Group, type HandleAsyncCheckoutCompletionRequest, type HeadersEntry, type IdentificationData, type IdentificationDataIdOneOf, type InvalidMembership, type ItemAttributes, type ItemDeliveryConfig, type ItemDiscount, type ItemModifier, type ItemPaymentConfig, type ItemPriceBreakdown, type ItemPricingInfo, type ItemQuantityInfo, type ItemSource, ItemStatus, type ItemStatusWithLiterals, type ItemTaxConfig, type ItemTaxFullDetails, type ItemType, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LegacyFields, type LineItem, type LineItemDiscount, type LineItemIdentifier, type LineItemIdentifierIdOneOf, type LineItemPricesData, type LineItemSummary, type LineItemTax, type LineItemUpdate, ManualCalculationReason, type ManualCalculationReasonWithLiterals, type MarkCartAsCompletedRequest, type MarkCartAsCompletedResponse, type Membership, type MembershipName, type MembershipOptions, type MembershipPaymentCredits, type MerchantDiscount, type MessageEnvelope, type ModifierGroup, type MultiCurrencyPrice, NameInLineItem, type NameInLineItemWithLiterals, NameInOther, type NameInOtherWithLiterals, type Other, type OtherCharge, type PaymentInfo, type PaymentOption, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PaymentSummary, type PhysicalProperties, type PickupDetails, PickupMethod, type PickupMethodWithLiterals, type PlaceOrderRequest, type PlaceOrderResponse, type PlainTextValue, type Policy, type PriceDescription, type PriceSummary, type QuantityUpdate, RateType, type RateTypeWithLiterals, type RawHttpResponse, type RedirectUrls, type RefreshCartRequest, type RefreshCartResponse, type RefreshCurrentCartRequest, type RefreshCurrentCartResponse, type Region, type RemoveCouponFromCurrentCartRequest, type RemoveCouponFromCurrentCartResponse, type RemoveCouponRequest, type RemoveCouponResponse, type RemoveGiftCardFromCurrentCartRequest, type RemoveGiftCardFromCurrentCartResponse, type RemoveGiftCardRequest, type RemoveGiftCardResponse, type RemoveLineItemsFromCurrentCartRequest, type RemoveLineItemsFromCurrentCartResponse, type RemoveLineItemsRequest, type RemoveLineItemsResponse, type RestoreInfo, RuleType, type RuleTypeWithLiterals, type Scope, type SecuredMedia, type SelectedCarrierServiceOption, type SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices, type SelectedMembership, type SelectedMembershipUpdate, type ServiceProperties, type SetDeliveryMethodForCurrentCartRequest, type SetDeliveryMethodForCurrentCartResponse, type SetDeliveryMethodRequest, type SetDeliveryMethodResponse, Severity, type SeverityWithLiterals, type ShippingInformation, type ShippingOption, type ShippingPrice, type ShippingRegion, type Stage, type StageStagesOneOf, type StreetAddress, type SubscriptionCharges, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionOptionInfo, type SubscriptionSettings, SuggestedFix, type SuggestedFixWithLiterals, type SystemError, type Target, type TargetTargetTypeOneOf, type Tax, type TaxBreakdown, type TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf, type TaxDetails, type TaxInfo, type TaxRateBreakdown, type TaxSummary, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type Title, type TranslatableString, type UnmarkAsCurrentCartRequest, type UnmarkAsCurrentCartResponse, type UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartRequest, type UpdateCurrentCartResponse, type UpdateLineItemsInCurrentCartOptions, type UpdateLineItemsInCurrentCartRequest, type UpdateLineItemsInCurrentCartResponse, type UpdateLineItemsRequest, type UpdateLineItemsResponse, type V1AdditionalFee, type V2AdditionalFee, type V2CalculationErrors, type V2CalculationErrorsShippingCalculationErrorOneOf, type V2CarrierError, type V2CarrierErrors, type V2Coupon, type V2GiftCard, type V2LineItem, type V2Membership, type V2PriceSummary, type V2SelectedMembership, type V2TaxSummary, type ValidationError, ValidationsConfig, type ValidationsConfigWithLiterals, type VatId, VatType, type VatTypeWithLiterals, type Violation, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals };
@@ -1148,9 +1148,9 @@ async function createCurrentCart2(options) {
1148
1148
  cart: options?.cart,
1149
1149
  catalogItems: options?.catalogItems,
1150
1150
  customItems: options?.customItems,
1151
- couponCodes: options?.couponCodes,
1151
+ coupons: options?.coupons,
1152
1152
  deliveryMethod: options?.deliveryMethod,
1153
- giftCardCodes: options?.giftCardCodes
1153
+ giftCards: options?.giftCards
1154
1154
  }),
1155
1155
  [
1156
1156
  {
@@ -1214,9 +1214,9 @@ async function createCurrentCart2(options) {
1214
1214
  cart: "$[0].cart",
1215
1215
  catalogItems: "$[0].catalogItems",
1216
1216
  customItems: "$[0].customItems",
1217
- couponCodes: "$[0].couponCodes",
1217
+ coupons: "$[0].coupons",
1218
1218
  deliveryMethod: "$[0].deliveryMethod",
1219
- giftCardCodes: "$[0].giftCardCodes"
1219
+ giftCards: "$[0].giftCards"
1220
1220
  },
1221
1221
  singleArgumentUnchanged: false
1222
1222
  },
@@ -1611,11 +1611,9 @@ async function updateLineItemsInCurrentCart2(options) {
1611
1611
  throw transformedError;
1612
1612
  }
1613
1613
  }
1614
- async function addCouponToCurrentCart2(couponCode) {
1614
+ async function addCouponToCurrentCart2(coupon) {
1615
1615
  const { httpClient, sideEffects } = arguments[1];
1616
- const payload = renameKeysFromSDKRequestToRESTRequest({
1617
- couponCode
1618
- });
1616
+ const payload = renameKeysFromSDKRequestToRESTRequest({ coupon });
1619
1617
  const reqOpts = addCouponToCurrentCart(payload);
1620
1618
  sideEffects?.onSiteCall?.();
1621
1619
  try {
@@ -1648,10 +1646,10 @@ async function addCouponToCurrentCart2(couponCode) {
1648
1646
  err,
1649
1647
  {
1650
1648
  spreadPathsToArguments: {},
1651
- explicitPathsToArguments: { couponCode: "$[0]" },
1649
+ explicitPathsToArguments: { coupon: "$[0]" },
1652
1650
  singleArgumentUnchanged: false
1653
1651
  },
1654
- ["couponCode"]
1652
+ ["coupon"]
1655
1653
  );
1656
1654
  sideEffects?.onError?.(err);
1657
1655
  throw transformedError;
@@ -1747,11 +1745,9 @@ async function setDeliveryMethodForCurrentCart2(deliveryMethod) {
1747
1745
  throw transformedError;
1748
1746
  }
1749
1747
  }
1750
- async function addGiftCardToCurrentCart2(giftCardCode) {
1748
+ async function addGiftCardToCurrentCart2(giftCard) {
1751
1749
  const { httpClient, sideEffects } = arguments[1];
1752
- const payload = renameKeysFromSDKRequestToRESTRequest({
1753
- giftCardCode
1754
- });
1750
+ const payload = renameKeysFromSDKRequestToRESTRequest({ giftCard });
1755
1751
  const reqOpts = addGiftCardToCurrentCart(payload);
1756
1752
  sideEffects?.onSiteCall?.();
1757
1753
  try {
@@ -1784,10 +1780,10 @@ async function addGiftCardToCurrentCart2(giftCardCode) {
1784
1780
  err,
1785
1781
  {
1786
1782
  spreadPathsToArguments: {},
1787
- explicitPathsToArguments: { giftCardCode: "$[0]" },
1783
+ explicitPathsToArguments: { giftCard: "$[0]" },
1788
1784
  singleArgumentUnchanged: false
1789
1785
  },
1790
- ["giftCardCode"]
1786
+ ["giftCard"]
1791
1787
  );
1792
1788
  sideEffects?.onError?.(err);
1793
1789
  throw transformedError;
@@ -1902,8 +1898,8 @@ function updateLineItemsInCurrentCart3(httpClient) {
1902
1898
  );
1903
1899
  }
1904
1900
  function addCouponToCurrentCart3(httpClient) {
1905
- return (couponCode) => addCouponToCurrentCart2(
1906
- couponCode,
1901
+ return (coupon) => addCouponToCurrentCart2(
1902
+ coupon,
1907
1903
  // @ts-ignore
1908
1904
  { httpClient }
1909
1905
  );
@@ -1923,8 +1919,8 @@ function setDeliveryMethodForCurrentCart3(httpClient) {
1923
1919
  );
1924
1920
  }
1925
1921
  function addGiftCardToCurrentCart3(httpClient) {
1926
- return (giftCardCode) => addGiftCardToCurrentCart2(
1927
- giftCardCode,
1922
+ return (giftCard) => addGiftCardToCurrentCart2(
1923
+ giftCard,
1928
1924
  // @ts-ignore
1929
1925
  { httpClient }
1930
1926
  );