@wix/auto_sdk_ecom_cart-v-2 1.0.38 → 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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +36 -38
  2. package/build/cjs/index.js +26 -26
  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 +22 -22
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +34 -32
  8. package/build/cjs/meta.js +10 -10
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +36 -38
  11. package/build/es/index.mjs +25 -25
  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 +21 -21
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +34 -32
  17. package/build/es/meta.mjs +9 -9
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +5 -5
  20. package/build/internal/cjs/index.js +26 -26
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +44 -44
  23. package/build/internal/cjs/index.typings.js +22 -22
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +34 -32
  26. package/build/internal/cjs/meta.js +10 -10
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +5 -5
  29. package/build/internal/es/index.mjs +25 -25
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +44 -44
  32. package/build/internal/es/index.typings.mjs +21 -21
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +34 -32
  35. package/build/internal/es/meta.mjs +9 -9
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -523,18 +523,18 @@ interface Policy {
523
523
  }
524
524
  interface ItemType extends ItemTypeItemTypeDataOneOf {
525
525
  /** Preset item type. */
526
- preset?: ItemTypeItemTypeWithLiterals;
526
+ preset?: ItemTypePresetWithLiterals;
527
527
  /** Custom item type. When none of the preset types are suitable, specifies the custom type. */
528
528
  custom?: string;
529
529
  }
530
530
  /** @oneof */
531
531
  interface ItemTypeItemTypeDataOneOf {
532
532
  /** Preset item type. */
533
- preset?: ItemTypeItemTypeWithLiterals;
533
+ preset?: ItemTypePresetWithLiterals;
534
534
  /** Custom item type. When none of the preset types are suitable, specifies the custom type. */
535
535
  custom?: string;
536
536
  }
537
- declare enum ItemTypeItemType {
537
+ declare enum ItemTypePreset {
538
538
  UNRECOGNISED = "UNRECOGNISED",
539
539
  PHYSICAL = "PHYSICAL",
540
540
  DIGITAL = "DIGITAL",
@@ -542,7 +542,7 @@ declare enum ItemTypeItemType {
542
542
  SERVICE = "SERVICE"
543
543
  }
544
544
  /** @enumType */
545
- type ItemTypeItemTypeWithLiterals = ItemTypeItemType | 'UNRECOGNISED' | 'PHYSICAL' | 'DIGITAL' | 'GIFT_CARD' | 'SERVICE';
545
+ type ItemTypePresetWithLiterals = ItemTypePreset | 'UNRECOGNISED' | 'PHYSICAL' | 'DIGITAL' | 'GIFT_CARD' | 'SERVICE';
546
546
  interface SubscriptionOptionInfo {
547
547
  /** Subscription option settings. */
548
548
  subscriptionSettings?: SubscriptionSettings;
@@ -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. */
@@ -3914,20 +3916,16 @@ interface CreateCartOptions {
3914
3916
  * Coupons to apply.
3915
3917
  * Currently only one is supported.
3916
3918
  * @maxSize 1
3917
- * @minLength 1
3918
- * @maxLength 50
3919
3919
  */
3920
- couponCodes?: string[];
3920
+ coupons?: CouponInput[];
3921
3921
  /** Delivery method to set. */
3922
3922
  deliveryMethod?: DeliveryMethodInput;
3923
3923
  /**
3924
3924
  * Gift cards to add.
3925
3925
  * Currently only one is support.
3926
3926
  * @maxSize 1
3927
- * @minLength 8
3928
- * @maxLength 20
3929
3927
  */
3930
- giftCardCodes?: string[];
3928
+ giftCards?: GiftCardInput[];
3931
3929
  }
3932
3930
  interface UpdateCart {
3933
3931
  /**
@@ -4108,4 +4106,4 @@ interface MarkCartAsCompletedOptions {
4108
4106
  orderId?: string | null;
4109
4107
  }
4110
4108
 
4111
- export { type ActionEvent, type AddCouponRequest, type AddCouponResponse, type AddCouponToCurrentCartRequest, type AddCouponToCurrentCartResponse, type AddGiftCardRequest, type AddGiftCardResponse, type AddGiftCardToCurrentCartRequest, type AddGiftCardToCurrentCartResponse, type AddLineItemsOptions, type AddLineItemsRequest, type AddLineItemsResponse, 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 CalculateCartOptions, type CalculateCartRequest, type CalculateCartResponse, 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 CreateCartOptions, type CreateCartRequest, type CreateCartResponse, 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 GetCartApplicationErrors, type GetCartRequest, type GetCartResponse, type GetCheckoutURLRequest, type GetCheckoutURLResponse, type GetCheckoutUrlOptions, 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, ItemTypeItemType, type ItemTypeItemTypeDataOneOf, type ItemTypeItemTypeWithLiterals, 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 MarkCartAsCompletedOptions, 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 PlaceOrderOptions, 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 UpdateCart, type UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartRequest, type UpdateCurrentCartResponse, type UpdateLineItemsInCurrentCartRequest, type UpdateLineItemsInCurrentCartResponse, type UpdateLineItemsOptions, 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 };
4109
+ export { type ActionEvent, type AddCouponRequest, type AddCouponResponse, type AddCouponToCurrentCartRequest, type AddCouponToCurrentCartResponse, type AddGiftCardRequest, type AddGiftCardResponse, type AddGiftCardToCurrentCartRequest, type AddGiftCardToCurrentCartResponse, type AddLineItemsOptions, type AddLineItemsRequest, type AddLineItemsResponse, 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 CalculateCartOptions, type CalculateCartRequest, type CalculateCartResponse, 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 CreateCartOptions, type CreateCartRequest, type CreateCartResponse, 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 GetCartApplicationErrors, type GetCartRequest, type GetCartResponse, type GetCheckoutURLRequest, type GetCheckoutURLResponse, type GetCheckoutUrlOptions, 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 MarkCartAsCompletedOptions, 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 PlaceOrderOptions, 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 UpdateCart, type UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartRequest, type UpdateCurrentCartResponse, type UpdateLineItemsInCurrentCartRequest, type UpdateLineItemsInCurrentCartResponse, type UpdateLineItemsOptions, 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 };
@@ -1064,14 +1064,14 @@ var PaymentOptionType = /* @__PURE__ */ ((PaymentOptionType2) => {
1064
1064
  PaymentOptionType2["MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER"] = "MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER";
1065
1065
  return PaymentOptionType2;
1066
1066
  })(PaymentOptionType || {});
1067
- var ItemTypeItemType = /* @__PURE__ */ ((ItemTypeItemType2) => {
1068
- ItemTypeItemType2["UNRECOGNISED"] = "UNRECOGNISED";
1069
- ItemTypeItemType2["PHYSICAL"] = "PHYSICAL";
1070
- ItemTypeItemType2["DIGITAL"] = "DIGITAL";
1071
- ItemTypeItemType2["GIFT_CARD"] = "GIFT_CARD";
1072
- ItemTypeItemType2["SERVICE"] = "SERVICE";
1073
- return ItemTypeItemType2;
1074
- })(ItemTypeItemType || {});
1067
+ var ItemTypePreset = /* @__PURE__ */ ((ItemTypePreset2) => {
1068
+ ItemTypePreset2["UNRECOGNISED"] = "UNRECOGNISED";
1069
+ ItemTypePreset2["PHYSICAL"] = "PHYSICAL";
1070
+ ItemTypePreset2["DIGITAL"] = "DIGITAL";
1071
+ ItemTypePreset2["GIFT_CARD"] = "GIFT_CARD";
1072
+ ItemTypePreset2["SERVICE"] = "SERVICE";
1073
+ return ItemTypePreset2;
1074
+ })(ItemTypePreset || {});
1075
1075
  var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
1076
1076
  SubscriptionFrequency2["UNDEFINED"] = "UNDEFINED";
1077
1077
  SubscriptionFrequency2["DAY"] = "DAY";
@@ -1271,9 +1271,9 @@ async function createCart2(options) {
1271
1271
  cart: options?.cart,
1272
1272
  catalogItems: options?.catalogItems,
1273
1273
  customItems: options?.customItems,
1274
- couponCodes: options?.couponCodes,
1274
+ coupons: options?.coupons,
1275
1275
  deliveryMethod: options?.deliveryMethod,
1276
- giftCardCodes: options?.giftCardCodes
1276
+ giftCards: options?.giftCards
1277
1277
  }),
1278
1278
  [
1279
1279
  {
@@ -1337,9 +1337,9 @@ async function createCart2(options) {
1337
1337
  cart: "$[0].cart",
1338
1338
  catalogItems: "$[0].catalogItems",
1339
1339
  customItems: "$[0].customItems",
1340
- couponCodes: "$[0].couponCodes",
1340
+ coupons: "$[0].coupons",
1341
1341
  deliveryMethod: "$[0].deliveryMethod",
1342
- giftCardCodes: "$[0].giftCardCodes"
1342
+ giftCards: "$[0].giftCards"
1343
1343
  },
1344
1344
  singleArgumentUnchanged: false
1345
1345
  },
@@ -1809,11 +1809,11 @@ async function updateLineItems2(cartId, options) {
1809
1809
  throw transformedError;
1810
1810
  }
1811
1811
  }
1812
- async function addCoupon2(cartId, couponCode) {
1812
+ async function addCoupon2(cartId, coupon) {
1813
1813
  const { httpClient, sideEffects } = arguments[2];
1814
1814
  const payload = renameKeysFromSDKRequestToRESTRequest({
1815
1815
  cartId,
1816
- couponCode
1816
+ coupon
1817
1817
  });
1818
1818
  const reqOpts = addCoupon(payload);
1819
1819
  sideEffects?.onSiteCall?.();
@@ -1847,10 +1847,10 @@ async function addCoupon2(cartId, couponCode) {
1847
1847
  err,
1848
1848
  {
1849
1849
  spreadPathsToArguments: {},
1850
- explicitPathsToArguments: { cartId: "$[0]", couponCode: "$[1]" },
1850
+ explicitPathsToArguments: { cartId: "$[0]", coupon: "$[1]" },
1851
1851
  singleArgumentUnchanged: false
1852
1852
  },
1853
- ["cartId", "couponCode"]
1853
+ ["cartId", "coupon"]
1854
1854
  );
1855
1855
  sideEffects?.onError?.(err);
1856
1856
  throw transformedError;
@@ -1950,11 +1950,11 @@ async function setDeliveryMethod2(cartId, deliveryMethod) {
1950
1950
  throw transformedError;
1951
1951
  }
1952
1952
  }
1953
- async function addGiftCard2(cartId, giftCardCode) {
1953
+ async function addGiftCard2(cartId, giftCard) {
1954
1954
  const { httpClient, sideEffects } = arguments[2];
1955
1955
  const payload = renameKeysFromSDKRequestToRESTRequest({
1956
1956
  cartId,
1957
- giftCardCode
1957
+ giftCard
1958
1958
  });
1959
1959
  const reqOpts = addGiftCard(payload);
1960
1960
  sideEffects?.onSiteCall?.();
@@ -1988,10 +1988,10 @@ async function addGiftCard2(cartId, giftCardCode) {
1988
1988
  err,
1989
1989
  {
1990
1990
  spreadPathsToArguments: {},
1991
- explicitPathsToArguments: { cartId: "$[0]", giftCardCode: "$[1]" },
1991
+ explicitPathsToArguments: { cartId: "$[0]", giftCard: "$[1]" },
1992
1992
  singleArgumentUnchanged: false
1993
1993
  },
1994
- ["cartId", "giftCardCode"]
1994
+ ["cartId", "giftCard"]
1995
1995
  );
1996
1996
  sideEffects?.onError?.(err);
1997
1997
  throw transformedError;
@@ -2201,9 +2201,9 @@ function updateLineItems3(httpClient) {
2201
2201
  );
2202
2202
  }
2203
2203
  function addCoupon3(httpClient) {
2204
- return (cartId, couponCode) => addCoupon2(
2204
+ return (cartId, coupon) => addCoupon2(
2205
2205
  cartId,
2206
- couponCode,
2206
+ coupon,
2207
2207
  // @ts-ignore
2208
2208
  { httpClient }
2209
2209
  );
@@ -2225,9 +2225,9 @@ function setDeliveryMethod3(httpClient) {
2225
2225
  );
2226
2226
  }
2227
2227
  function addGiftCard3(httpClient) {
2228
- return (cartId, giftCardCode) => addGiftCard2(
2228
+ return (cartId, giftCard) => addGiftCard2(
2229
2229
  cartId,
2230
- giftCardCode,
2230
+ giftCard,
2231
2231
  // @ts-ignore
2232
2232
  { httpClient }
2233
2233
  );
@@ -2288,7 +2288,7 @@ export {
2288
2288
  FallbackReason,
2289
2289
  FileType,
2290
2290
  ItemStatus,
2291
- ItemTypeItemType,
2291
+ ItemTypePreset,
2292
2292
  JurisdictionType,
2293
2293
  ManualCalculationReason,
2294
2294
  NameInLineItem,