@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 };
@@ -31,7 +31,7 @@ __export(index_exports, {
31
31
  FallbackReason: () => FallbackReason,
32
32
  FileType: () => FileType,
33
33
  ItemStatus: () => ItemStatus,
34
- ItemTypeItemType: () => ItemTypeItemType,
34
+ ItemTypePreset: () => ItemTypePreset,
35
35
  JurisdictionType: () => JurisdictionType,
36
36
  ManualCalculationReason: () => ManualCalculationReason,
37
37
  NameInLineItem: () => NameInLineItem,
@@ -1132,14 +1132,14 @@ var PaymentOptionType = /* @__PURE__ */ ((PaymentOptionType2) => {
1132
1132
  PaymentOptionType2["MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER"] = "MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER";
1133
1133
  return PaymentOptionType2;
1134
1134
  })(PaymentOptionType || {});
1135
- var ItemTypeItemType = /* @__PURE__ */ ((ItemTypeItemType2) => {
1136
- ItemTypeItemType2["UNRECOGNISED"] = "UNRECOGNISED";
1137
- ItemTypeItemType2["PHYSICAL"] = "PHYSICAL";
1138
- ItemTypeItemType2["DIGITAL"] = "DIGITAL";
1139
- ItemTypeItemType2["GIFT_CARD"] = "GIFT_CARD";
1140
- ItemTypeItemType2["SERVICE"] = "SERVICE";
1141
- return ItemTypeItemType2;
1142
- })(ItemTypeItemType || {});
1135
+ var ItemTypePreset = /* @__PURE__ */ ((ItemTypePreset2) => {
1136
+ ItemTypePreset2["UNRECOGNISED"] = "UNRECOGNISED";
1137
+ ItemTypePreset2["PHYSICAL"] = "PHYSICAL";
1138
+ ItemTypePreset2["DIGITAL"] = "DIGITAL";
1139
+ ItemTypePreset2["GIFT_CARD"] = "GIFT_CARD";
1140
+ ItemTypePreset2["SERVICE"] = "SERVICE";
1141
+ return ItemTypePreset2;
1142
+ })(ItemTypePreset || {});
1143
1143
  var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
1144
1144
  SubscriptionFrequency2["UNDEFINED"] = "UNDEFINED";
1145
1145
  SubscriptionFrequency2["DAY"] = "DAY";
@@ -1339,9 +1339,9 @@ async function createCart2(options) {
1339
1339
  cart: options?.cart,
1340
1340
  catalogItems: options?.catalogItems,
1341
1341
  customItems: options?.customItems,
1342
- couponCodes: options?.couponCodes,
1342
+ coupons: options?.coupons,
1343
1343
  deliveryMethod: options?.deliveryMethod,
1344
- giftCardCodes: options?.giftCardCodes
1344
+ giftCards: options?.giftCards
1345
1345
  }),
1346
1346
  [
1347
1347
  {
@@ -1405,9 +1405,9 @@ async function createCart2(options) {
1405
1405
  cart: "$[0].cart",
1406
1406
  catalogItems: "$[0].catalogItems",
1407
1407
  customItems: "$[0].customItems",
1408
- couponCodes: "$[0].couponCodes",
1408
+ coupons: "$[0].coupons",
1409
1409
  deliveryMethod: "$[0].deliveryMethod",
1410
- giftCardCodes: "$[0].giftCardCodes"
1410
+ giftCards: "$[0].giftCards"
1411
1411
  },
1412
1412
  singleArgumentUnchanged: false
1413
1413
  },
@@ -1877,11 +1877,11 @@ async function updateLineItems2(cartId, options) {
1877
1877
  throw transformedError;
1878
1878
  }
1879
1879
  }
1880
- async function addCoupon2(cartId, couponCode) {
1880
+ async function addCoupon2(cartId, coupon) {
1881
1881
  const { httpClient, sideEffects } = arguments[2];
1882
1882
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1883
1883
  cartId,
1884
- couponCode
1884
+ coupon
1885
1885
  });
1886
1886
  const reqOpts = addCoupon(payload);
1887
1887
  sideEffects?.onSiteCall?.();
@@ -1915,10 +1915,10 @@ async function addCoupon2(cartId, couponCode) {
1915
1915
  err,
1916
1916
  {
1917
1917
  spreadPathsToArguments: {},
1918
- explicitPathsToArguments: { cartId: "$[0]", couponCode: "$[1]" },
1918
+ explicitPathsToArguments: { cartId: "$[0]", coupon: "$[1]" },
1919
1919
  singleArgumentUnchanged: false
1920
1920
  },
1921
- ["cartId", "couponCode"]
1921
+ ["cartId", "coupon"]
1922
1922
  );
1923
1923
  sideEffects?.onError?.(err);
1924
1924
  throw transformedError;
@@ -2018,11 +2018,11 @@ async function setDeliveryMethod2(cartId, deliveryMethod) {
2018
2018
  throw transformedError;
2019
2019
  }
2020
2020
  }
2021
- async function addGiftCard2(cartId, giftCardCode) {
2021
+ async function addGiftCard2(cartId, giftCard) {
2022
2022
  const { httpClient, sideEffects } = arguments[2];
2023
2023
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2024
2024
  cartId,
2025
- giftCardCode
2025
+ giftCard
2026
2026
  });
2027
2027
  const reqOpts = addGiftCard(payload);
2028
2028
  sideEffects?.onSiteCall?.();
@@ -2056,10 +2056,10 @@ async function addGiftCard2(cartId, giftCardCode) {
2056
2056
  err,
2057
2057
  {
2058
2058
  spreadPathsToArguments: {},
2059
- explicitPathsToArguments: { cartId: "$[0]", giftCardCode: "$[1]" },
2059
+ explicitPathsToArguments: { cartId: "$[0]", giftCard: "$[1]" },
2060
2060
  singleArgumentUnchanged: false
2061
2061
  },
2062
- ["cartId", "giftCardCode"]
2062
+ ["cartId", "giftCard"]
2063
2063
  );
2064
2064
  sideEffects?.onError?.(err);
2065
2065
  throw transformedError;
@@ -2269,9 +2269,9 @@ function updateLineItems3(httpClient) {
2269
2269
  );
2270
2270
  }
2271
2271
  function addCoupon3(httpClient) {
2272
- return (cartId, couponCode) => addCoupon2(
2272
+ return (cartId, coupon) => addCoupon2(
2273
2273
  cartId,
2274
- couponCode,
2274
+ coupon,
2275
2275
  // @ts-ignore
2276
2276
  { httpClient }
2277
2277
  );
@@ -2293,9 +2293,9 @@ function setDeliveryMethod3(httpClient) {
2293
2293
  );
2294
2294
  }
2295
2295
  function addGiftCard3(httpClient) {
2296
- return (cartId, giftCardCode) => addGiftCard2(
2296
+ return (cartId, giftCard) => addGiftCard2(
2297
2297
  cartId,
2298
- giftCardCode,
2298
+ giftCard,
2299
2299
  // @ts-ignore
2300
2300
  { httpClient }
2301
2301
  );
@@ -2357,7 +2357,7 @@ var handleAsyncCheckoutCompletion4 = /* @__PURE__ */ (0, import_rest_modules3.cr
2357
2357
  FallbackReason,
2358
2358
  FileType,
2359
2359
  ItemStatus,
2360
- ItemTypeItemType,
2360
+ ItemTypePreset,
2361
2361
  JurisdictionType,
2362
2362
  ManualCalculationReason,
2363
2363
  NameInLineItem,