@wix/auto_sdk_ecom_cart-v-2 1.0.142 → 1.0.144

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 (49) hide show
  1. package/build/cjs/index.d.ts +15 -3
  2. package/build/cjs/index.js +100 -20
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +58 -28
  5. package/build/cjs/index.typings.js +92 -20
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +46 -24
  8. package/build/cjs/meta.js +86 -18
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +58 -2
  11. package/build/cjs/schemas.js +141 -68
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +15 -3
  14. package/build/es/index.mjs +99 -20
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +58 -28
  17. package/build/es/index.typings.mjs +91 -20
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +46 -24
  20. package/build/es/meta.mjs +85 -18
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +58 -2
  23. package/build/es/schemas.mjs +139 -68
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +15 -3
  26. package/build/internal/cjs/index.js +100 -20
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +65 -29
  29. package/build/internal/cjs/index.typings.js +92 -20
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +46 -24
  32. package/build/internal/cjs/meta.js +86 -18
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +58 -2
  35. package/build/internal/cjs/schemas.js +141 -68
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +15 -3
  38. package/build/internal/es/index.mjs +99 -20
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +65 -29
  41. package/build/internal/es/index.typings.mjs +91 -20
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +46 -24
  44. package/build/internal/es/meta.mjs +85 -18
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +58 -2
  47. package/build/internal/es/schemas.mjs +139 -68
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- import { CreateCartOptions, Cart, CreateCartApplicationErrors, UpdateCart, UpdateCartApplicationErrors, RefreshCartResponse, RefreshCartApplicationErrors, EstimateCartOptions, EstimateCartResponse, EstimateCartApplicationErrors, CalculateCartOptions, CalculateCartResponse, CalculateCartApplicationErrors, GetCheckoutUrlOptions, GetCheckoutURLResponse, GetCheckoutUrlApplicationErrors, PlaceOrderOptions, PlaceOrderResponse, PlaceOrderApplicationErrors, AddLineItemsOptions, AddLineItemsResponse, AddLineItemsApplicationErrors, RemoveLineItemsResponse, RemoveLineItemsApplicationErrors, UpdateLineItemsOptions, UpdateLineItemsResponse, UpdateLineItemsApplicationErrors, CouponInput, AddCouponResponse, AddCouponApplicationErrors, RemoveCouponResponse, RemoveCouponApplicationErrors, DeliveryMethodInput, SetDeliveryMethodResponse, SetDeliveryMethodApplicationErrors, RemoveDeliveryMethodResponse, RemoveDeliveryMethodApplicationErrors, GiftCardInput, AddGiftCardResponse, AddGiftCardApplicationErrors, RemoveGiftCardResponse, RemoveGiftCardApplicationErrors, MarkCartAsCompletedOptions, MarkCartAsCompletedResponse, UpdateFormSubmissionsOptions, UpdateFormSubmissionsResponse } from './index.typings.js';
3
- export { AccountInfo, ActionEvent, AddCouponRequest, AddCouponToCurrentCartRequest, AddCouponToCurrentCartResponse, AddGiftCardRequest, AddGiftCardToCurrentCartRequest, AddGiftCardToCurrentCartResponse, AddLineItemsRequest, AddLineItemsToCurrentCartRequest, AddLineItemsToCurrentCartResponse, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, AdditionalFeeTax, Address, AddressLocation, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, BillingSettings, BusinessInfo, CalculateCartForV1Request, CalculateCartForV1Response, CalculateCartRequest, CalculateCurrentCartRequest, CalculateCurrentCartResponse, CalculateTotalsResponse, CalculatedItemModifier, CalculatedLineItem, CalculatedPlatformFee, CalculationConfig, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CalculationOverrides, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CartAlreadyOrderedErrorData, CartSettings, CartSource, CartSummary, CatalogItemInput, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, ChargeType, ChargeTypeWithLiterals, CheckoutStage, CheckoutStageWithLiterals, Color, ConvertedMoney, Coupon, CouponAdded, CouponAlreadyExistsErrorData, CouponNotFoundInCartErrorData, CouponRemoved, CreateCartRequest, CreateCartResponse, CreateCurrentCartRequest, CreateCurrentCartResponse, CreatedBy, CreatedByIdOneOf, CustomContentReference, CustomField, CustomItemAttributes, CustomItemDeliveryConfig, CustomItemInput, CustomItemPaymentConfig, CustomItemPricingInfo, CustomItemQuantityInfo, CustomItemSource, CustomItemTaxConfig, CustomValidationErrorData, CustomerInfo, CustomerInfoIdOneOf, DeleteCartRequest, DeleteCartResponse, DeleteCurrentCartRequest, DeleteCurrentCartResponse, DeliveryAllocation, DeliveryInfo, DeliveryLogistics, DeliveryMethod, DeliveryMethodNotFoundErrorData, DeliverySummary, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Dimensions, DimensionsUnit, DimensionsUnitWithLiterals, Discount, DiscountBenefit, DiscountBenefitValueOneOf, DiscountRule, DiscountRuleName, DiscountScope, DiscountScopeWithLiterals, DiscountSource, DiscountSourceType, DiscountSourceTypeWithLiterals, DiscountType, DiscountTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, DuplicateItemModifierIdsErrorData, DuplicateLineItemUpdatesErrorData, DuplicateModifierGroupIdsErrorData, Empty, EmptyLineItemUpdatesErrorData, EmptyPaymentTokenErrorData, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EstimateCartRequest, EstimateCurrentCartRequest, EstimateCurrentCartResponse, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FixedQuantityItemErrorData, FormIdentifier, FormInfo, FormSubmission, FreeTrialPeriod, FullAddressContactDetails, GetCartRequest, GetCartResponse, GetCheckoutURLRequest, GetCurrentCartRequest, GetCurrentCartResponse, GiftCard, GiftCardAdded, GiftCardAlreadyExistsErrorData, GiftCardCalculationError, GiftCardNotFoundInCartErrorData, GiftCardRedeemErrorData, GiftCardRemoved, GiftCardSummary, Group, HandleAsyncCheckoutCompletionRequest, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, InsufficientInventoryEntry, InsufficientInventoryErrorData, InvalidCartErrorData, InvalidCouponCodeErrorData, InvalidCouponReason, InvalidCouponReasonWithLiterals, InvalidCouponStatusErrorData, InvalidCouponStatusErrorDataDetailsOneOf, InvalidGiftCardCodeErrorData, InvalidGiftCardReason, InvalidGiftCardReasonWithLiterals, InvalidGiftCardStatusErrorData, InvalidMembership, InvalidMembershipEntry, InvalidMembershipErrorData, InvalidMembershipPaymentOptionErrorData, InvalidPaymentStatusErrorData, InvalidPriceVerificationTokenErrorData, InvalidThirdPartyCheckoutTokenErrorData, ItemAttributes, ItemCombination, ItemCombinationLineItem, ItemDeliveryConfig, ItemDiscount, ItemModifier, ItemNotFoundInCatalogErrorData, ItemPaymentConfig, ItemPriceBreakdown, ItemPricingInfo, ItemQuantityInfo, ItemSource, ItemStatus, ItemStatusWithLiterals, ItemTaxConfig, ItemTaxFullDetails, ItemType, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, JurisdictionType, JurisdictionTypeWithLiterals, LegacyFields, LineItem, LineItemAdded, LineItemDiscount, LineItemIdentifier, LineItemIdentifierIdOneOf, LineItemNotFoundInCartErrorData, LineItemPriceConflictErrorData, LineItemPricesData, LineItemSummary, LineItemTax, LineItemUpdate, LineItemsOutOfStockErrorData, ManualCalculationReason, ManualCalculationReasonWithLiterals, MarkCartAsCompletedRequest, MaxItemModifiersExceededErrorData, MaxLineItemsExceededErrorData, MembersOnlyItemErrorData, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MessageEnvelope, MinLineItemQuantityNotReachedDetails, MinSubtotalNotReachedDetails, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, OtherCharge, PaymentInfo, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PaymentSummary, PhysicalProperties, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlaceOrderRequest, PlainTextValue, PlatformFeeChargeType, PlatformFeeChargeTypeWithLiterals, PlatformFeeSummary, Policy, PriceDescription, PriceSummary, ProductPeriodAlignment, ProductPeriodAlignmentWithLiterals, QuantityUpdate, RateType, RateTypeWithLiterals, RawHttpResponse, RedirectUrls, RefreshCartRequest, RefreshCurrentCartRequest, RefreshCurrentCartResponse, Region, RemoveCouponFromCurrentCartRequest, RemoveCouponFromCurrentCartResponse, RemoveCouponRequest, RemoveDeliveryMethodFromCurrentCartRequest, RemoveDeliveryMethodFromCurrentCartResponse, RemoveDeliveryMethodRequest, RemoveGiftCardFromCurrentCartRequest, RemoveGiftCardFromCurrentCartResponse, RemoveGiftCardRequest, RemoveLineItemsFromCurrentCartRequest, RemoveLineItemsFromCurrentCartResponse, RemoveLineItemsRequest, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMembershipUpdate, SelectedMemberships, ServiceProperties, SetDeliveryMethodForCurrentCartRequest, SetDeliveryMethodForCurrentCartResponse, SetDeliveryMethodRequest, Severity, SeverityWithLiterals, ShippingInformation, ShippingOption, ShippingPrice, ShippingRegion, Source, SourceWithLiterals, Stage, StageStagesOneOf, StreetAddress, SubscriptionCharges, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionOptionInfo, SubscriptionSettings, SuggestedFix, SuggestedFixWithLiterals, SystemError, Target, TargetTargetTypeOneOf, Tax, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxDetails, TaxInfo, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, Title, TranslatableString, UnmarkAsCurrentCartRequest, UnmarkAsCurrentCartResponse, UpdateCartRequest, UpdateCartResponse, UpdateCurrentCartRequest, UpdateCurrentCartResponse, UpdateFormSubmissionsInCurrentCartRequest, UpdateFormSubmissionsInCurrentCartResponse, UpdateFormSubmissionsRequest, UpdateLineItemsInCurrentCartRequest, UpdateLineItemsInCurrentCartResponse, UpdateLineItemsRequest, V1AdditionalFee, V2AdditionalFee, V2CalculationErrors, V2CalculationErrorsShippingCalculationErrorOneOf, V2CarrierError, V2CarrierErrors, V2Coupon, V2GiftCard, V2LineItem, V2LineItemDiscount, V2Membership, V2PriceSummary, V2SelectedMembership, V2TaxSummary, V2Violation, V2ViolationDataOneOf, ValidationError, ValidationsConfig, ValidationsConfigWithLiterals, VatId, VatType, VatTypeWithLiterals, Violation, ViolationCode, ViolationCodeWithLiterals, ViolationScope, ViolationScopeWithLiterals, ViolationSeverity, ViolationSeverityWithLiterals, ViolationWithErrorSeverityErrorData, ViolationsList, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals } from './index.typings.js';
2
+ import { CreateCartOptions, Cart, CreateCartApplicationErrors, UpdateCart, UpdateCartApplicationErrors, RefreshCartResponse, RefreshCartApplicationErrors, EstimateCartOptions, EstimateCartResponse, EstimateCartApplicationErrors, CalculateCartOptions, CalculateCartResponse, CalculateCartApplicationErrors, GetCheckoutUrlOptions, GetCheckoutURLResponse, GetCheckoutUrlApplicationErrors, PlaceOrderOptions, PlaceOrderResponse, PlaceOrderApplicationErrors, AddLineItemsOptions, AddLineItemsResponse, AddLineItemsApplicationErrors, RemoveLineItemsResponse, RemoveLineItemsApplicationErrors, UpdateLineItemsOptions, UpdateLineItemsResponse, UpdateLineItemsApplicationErrors, CouponInput, AddCouponResponse, AddCouponApplicationErrors, RemoveCouponResponse, RemoveCouponApplicationErrors, DeliveryMethodInput, SetDeliveryMethodResponse, SetDeliveryMethodApplicationErrors, RemoveDeliveryMethodResponse, RemoveDeliveryMethodApplicationErrors, GiftCardInput, AddGiftCardResponse, AddGiftCardApplicationErrors, RemoveGiftCardResponse, RemoveGiftCardApplicationErrors, MarkCartAsCompletedOptions, MarkCartAsCompletedResponse, RawHttpResponse, UpdateFormSubmissionsOptions, UpdateFormSubmissionsResponse } from './index.typings.js';
3
+ export { AccountInfo, ActionEvent, AddCouponRequest, AddCouponToCurrentCartRequest, AddCouponToCurrentCartResponse, AddGiftCardRequest, AddGiftCardToCurrentCartRequest, AddGiftCardToCurrentCartResponse, AddLineItemsRequest, AddLineItemsToCurrentCartRequest, AddLineItemsToCurrentCartResponse, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, AdditionalFeeTax, Address, AddressLocation, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, BillingSettings, BusinessInfo, CalculateCartForV1Request, CalculateCartForV1Response, CalculateCartRequest, CalculateCurrentCartRequest, CalculateCurrentCartResponse, CalculateTotalsResponse, CalculatedItemModifier, CalculatedLineItem, CalculatedPlatformFee, CalculationConfig, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CalculationOverrides, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CartAlreadyOrderedErrorData, CartEstimationIndicators, CartSettings, CartSource, CartSummary, CatalogItemInput, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, ChargeType, ChargeTypeWithLiterals, CheckoutStage, CheckoutStageWithLiterals, Color, ConvertedMoney, Coupon, CouponAdded, CouponAlreadyExistsErrorData, CouponNotFoundInCartErrorData, CouponRemoved, CreateCartRequest, CreateCartResponse, CreateCurrentCartRequest, CreateCurrentCartResponse, CreatedBy, CreatedByIdOneOf, CustomContentReference, CustomField, CustomItemAttributes, CustomItemDeliveryConfig, CustomItemInput, CustomItemPaymentConfig, CustomItemPricingInfo, CustomItemQuantityInfo, CustomItemSource, CustomItemTaxConfig, CustomValidationErrorData, CustomerInfo, CustomerInfoIdOneOf, DeleteCartRequest, DeleteCartResponse, DeleteCurrentCartRequest, DeleteCurrentCartResponse, DeliveryAllocation, DeliveryInfo, DeliveryLogistics, DeliveryMethod, DeliveryMethodNotFoundErrorData, DeliverySummary, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Dimensions, DimensionsUnit, DimensionsUnitWithLiterals, Discount, DiscountBenefit, DiscountBenefitValueOneOf, DiscountRule, DiscountRuleName, DiscountScope, DiscountScopeWithLiterals, DiscountSource, DiscountSourceType, DiscountSourceTypeWithLiterals, DiscountType, DiscountTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, DuplicateItemModifierIdsErrorData, DuplicateLineItemUpdatesErrorData, DuplicateModifierGroupIdsErrorData, Empty, EmptyLineItemUpdatesErrorData, EmptyPaymentTokenErrorData, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EstimateCartRequest, EstimateCurrentCartRequest, EstimateCurrentCartResponse, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FixedQuantityItemErrorData, FormIdentifier, FormInfo, FormSubmission, FreeTrialPeriod, FullAddressContactDetails, GetCartRequest, GetCartResponse, GetCheckoutURLRequest, GetCurrentCartRequest, GetCurrentCartResponse, GiftCard, GiftCardAdded, GiftCardAlreadyExistsErrorData, GiftCardCalculationError, GiftCardNotFoundInCartErrorData, GiftCardRedeemErrorData, GiftCardRemoved, GiftCardSummary, Group, HandleAsyncCheckoutCompletionRequest, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, InsufficientInventoryEntry, InsufficientInventoryErrorData, InvalidCartErrorData, InvalidCouponCodeErrorData, InvalidCouponReason, InvalidCouponReasonWithLiterals, InvalidCouponStatusErrorData, InvalidCouponStatusErrorDataDetailsOneOf, InvalidGiftCardCodeErrorData, InvalidGiftCardReason, InvalidGiftCardReasonWithLiterals, InvalidGiftCardStatusErrorData, InvalidMembership, InvalidMembershipEntry, InvalidMembershipErrorData, InvalidMembershipPaymentOptionErrorData, InvalidPaymentStatusErrorData, InvalidPriceVerificationTokenErrorData, InvalidThirdPartyCheckoutTokenErrorData, ItemAttributes, ItemCombination, ItemCombinationLineItem, ItemDeliveryConfig, ItemDiscount, ItemModifier, ItemNotFoundInCatalogErrorData, ItemPaymentConfig, ItemPriceBreakdown, ItemPricingInfo, ItemQuantityInfo, ItemSource, ItemStatus, ItemStatusWithLiterals, ItemTaxConfig, ItemTaxFullDetails, ItemType, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, JurisdictionType, JurisdictionTypeWithLiterals, LegacyFields, LineItem, LineItemAdded, LineItemDiscount, LineItemIdentifier, LineItemIdentifierIdOneOf, LineItemNotFoundInCartErrorData, LineItemPriceConflictErrorData, LineItemPricesData, LineItemSummary, LineItemTax, LineItemUpdate, LineItemsOutOfStockErrorData, ManualCalculationReason, ManualCalculationReasonWithLiterals, MarkCartAsCompletedRequest, MaxItemModifiersExceededErrorData, MaxLineItemsExceededErrorData, MembersOnlyItemErrorData, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MessageEnvelope, MinLineItemQuantityNotReachedDetails, MinSubtotalNotReachedDetails, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, OtherCharge, PaymentInfo, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PaymentSummary, PhysicalProperties, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlaceOrderRequest, PlainTextValue, PlatformFeeChargeType, PlatformFeeChargeTypeWithLiterals, PlatformFeeSummary, Policy, PriceDescription, PriceSummary, ProductPeriodAlignment, ProductPeriodAlignmentWithLiterals, QuantityUpdate, RateType, RateTypeWithLiterals, RedirectUrls, RefreshCartRequest, RefreshCurrentCartRequest, RefreshCurrentCartResponse, Region, RemoveCouponFromCurrentCartRequest, RemoveCouponFromCurrentCartResponse, RemoveCouponRequest, RemoveDeliveryMethodFromCurrentCartRequest, RemoveDeliveryMethodFromCurrentCartResponse, RemoveDeliveryMethodRequest, RemoveGiftCardFromCurrentCartRequest, RemoveGiftCardFromCurrentCartResponse, RemoveGiftCardRequest, RemoveLineItemsFromCurrentCartRequest, RemoveLineItemsFromCurrentCartResponse, RemoveLineItemsRequest, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMembershipUpdate, SelectedMemberships, ServiceProperties, SetDeliveryMethodForCurrentCartRequest, SetDeliveryMethodForCurrentCartResponse, SetDeliveryMethodRequest, Severity, SeverityWithLiterals, ShippingInformation, ShippingOption, ShippingPrice, ShippingRegion, Source, SourceWithLiterals, Stage, StageStagesOneOf, StreetAddress, SubscriptionCharges, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionOptionInfo, SubscriptionSettings, SubtotalBelowOrderMinimumErrorData, SuggestedFix, SuggestedFixWithLiterals, SystemError, Target, TargetTargetTypeOneOf, Tax, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxDetails, TaxInfo, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, Title, TranslatableString, UnmarkAsCurrentCartRequest, UnmarkAsCurrentCartResponse, UpdateCartRequest, UpdateCartResponse, UpdateCurrentCartRequest, UpdateCurrentCartResponse, UpdateFormSubmissionsInCurrentCartRequest, UpdateFormSubmissionsInCurrentCartResponse, UpdateFormSubmissionsRequest, UpdateLineItemsInCurrentCartRequest, UpdateLineItemsInCurrentCartResponse, UpdateLineItemsRequest, V1AdditionalFee, V2AdditionalFee, V2CalculationErrors, V2CalculationErrorsShippingCalculationErrorOneOf, V2CarrierError, V2CarrierErrors, V2Coupon, V2GiftCard, V2LineItem, V2LineItemDiscount, V2Membership, V2PriceSummary, V2SelectedMembership, V2TaxSummary, V2Violation, V2ViolationDataOneOf, ValidationError, ValidationsConfig, ValidationsConfigWithLiterals, VatId, VatType, VatTypeWithLiterals, Violation, ViolationCode, ViolationCodeWithLiterals, ViolationScope, ViolationScopeWithLiterals, ViolationSeverity, ViolationSeverityWithLiterals, ViolationWithErrorSeverityErrorData, ViolationsList, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals } from './index.typings.js';
4
4
 
5
5
  declare function createCart$1(httpClient: HttpClient): CreateCartSignature;
6
6
  interface CreateCartSignature {
@@ -221,6 +221,17 @@ interface MarkCartAsCompletedSignature {
221
221
  */
222
222
  (cartId: string, options?: MarkCartAsCompletedOptions): Promise<NonNullablePaths<MarkCartAsCompletedResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.openAccess` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart` | `cart.demo`, 7>>;
223
223
  }
224
+ declare function handleAsyncCheckoutCompletion$1(httpClient: HttpClient): HandleAsyncCheckoutCompletionSignature;
225
+ interface HandleAsyncCheckoutCompletionSignature {
226
+ /**
227
+ * Handles asynchronous checkout completion and redirects to a specified URL.
228
+ *
229
+ * Triggered by Wix Cashier after payment completion, this endpoint finalizes the checkout process and redirects the user to the previously provided success URL.
230
+ * In some cases, this endpoint might be called directly by the external payment provider.
231
+ * @param - Server-signed JWT with data required to complete checkout.
232
+ */
233
+ (token: string): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 4>>;
234
+ }
224
235
  declare function updateFormSubmissions$1(httpClient: HttpClient): UpdateFormSubmissionsSignature;
225
236
  interface UpdateFormSubmissionsSignature {
226
237
  /**
@@ -251,6 +262,7 @@ declare const removeDeliveryMethod: MaybeContext<BuildRESTFunction<typeof remove
251
262
  declare const addGiftCard: MaybeContext<BuildRESTFunction<typeof addGiftCard$1> & typeof addGiftCard$1>;
252
263
  declare const removeGiftCard: MaybeContext<BuildRESTFunction<typeof removeGiftCard$1> & typeof removeGiftCard$1>;
253
264
  declare const markCartAsCompleted: MaybeContext<BuildRESTFunction<typeof markCartAsCompleted$1> & typeof markCartAsCompleted$1>;
265
+ declare const handleAsyncCheckoutCompletion: MaybeContext<BuildRESTFunction<typeof handleAsyncCheckoutCompletion$1> & typeof handleAsyncCheckoutCompletion$1>;
254
266
  declare const updateFormSubmissions: MaybeContext<BuildRESTFunction<typeof updateFormSubmissions$1> & typeof updateFormSubmissions$1>;
255
267
 
256
- export { AddCouponApplicationErrors, AddCouponResponse, AddGiftCardApplicationErrors, AddGiftCardResponse, AddLineItemsApplicationErrors, AddLineItemsOptions, AddLineItemsResponse, CalculateCartApplicationErrors, CalculateCartOptions, CalculateCartResponse, Cart, CouponInput, CreateCartApplicationErrors, CreateCartOptions, DeliveryMethodInput, EstimateCartApplicationErrors, EstimateCartOptions, EstimateCartResponse, GetCheckoutURLResponse, GetCheckoutUrlApplicationErrors, GetCheckoutUrlOptions, GiftCardInput, MarkCartAsCompletedOptions, MarkCartAsCompletedResponse, PlaceOrderApplicationErrors, PlaceOrderOptions, PlaceOrderResponse, RefreshCartApplicationErrors, RefreshCartResponse, RemoveCouponApplicationErrors, RemoveCouponResponse, RemoveDeliveryMethodApplicationErrors, RemoveDeliveryMethodResponse, RemoveGiftCardApplicationErrors, RemoveGiftCardResponse, RemoveLineItemsApplicationErrors, RemoveLineItemsResponse, SetDeliveryMethodApplicationErrors, SetDeliveryMethodResponse, UpdateCart, UpdateCartApplicationErrors, UpdateFormSubmissionsOptions, UpdateFormSubmissionsResponse, UpdateLineItemsApplicationErrors, UpdateLineItemsOptions, UpdateLineItemsResponse, addCoupon, addGiftCard, addLineItems, calculateCart, createCart, deleteCart, estimateCart, getCart, getCheckoutUrl, markCartAsCompleted, placeOrder, refreshCart, removeCoupon, removeDeliveryMethod, removeGiftCard, removeLineItems, setDeliveryMethod, updateCart, updateFormSubmissions, updateLineItems };
268
+ export { AddCouponApplicationErrors, AddCouponResponse, AddGiftCardApplicationErrors, AddGiftCardResponse, AddLineItemsApplicationErrors, AddLineItemsOptions, AddLineItemsResponse, CalculateCartApplicationErrors, CalculateCartOptions, CalculateCartResponse, Cart, CouponInput, CreateCartApplicationErrors, CreateCartOptions, DeliveryMethodInput, EstimateCartApplicationErrors, EstimateCartOptions, EstimateCartResponse, GetCheckoutURLResponse, GetCheckoutUrlApplicationErrors, GetCheckoutUrlOptions, GiftCardInput, MarkCartAsCompletedOptions, MarkCartAsCompletedResponse, PlaceOrderApplicationErrors, PlaceOrderOptions, PlaceOrderResponse, RawHttpResponse, RefreshCartApplicationErrors, RefreshCartResponse, RemoveCouponApplicationErrors, RemoveCouponResponse, RemoveDeliveryMethodApplicationErrors, RemoveDeliveryMethodResponse, RemoveGiftCardApplicationErrors, RemoveGiftCardResponse, RemoveLineItemsApplicationErrors, RemoveLineItemsResponse, SetDeliveryMethodApplicationErrors, SetDeliveryMethodResponse, UpdateCart, UpdateCartApplicationErrors, UpdateFormSubmissionsOptions, UpdateFormSubmissionsResponse, UpdateLineItemsApplicationErrors, UpdateLineItemsOptions, UpdateLineItemsResponse, addCoupon, addGiftCard, addLineItems, calculateCart, createCart, deleteCart, estimateCart, getCart, getCheckoutUrl, handleAsyncCheckoutCompletion, markCartAsCompleted, placeOrder, refreshCart, removeCoupon, removeDeliveryMethod, removeGiftCard, removeLineItems, setDeliveryMethod, updateCart, updateFormSubmissions, updateLineItems };
@@ -67,6 +67,7 @@ __export(index_exports, {
67
67
  estimateCart: () => estimateCart4,
68
68
  getCart: () => getCart4,
69
69
  getCheckoutUrl: () => getCheckoutUrl4,
70
+ handleAsyncCheckoutCompletion: () => handleAsyncCheckoutCompletion4,
70
71
  markCartAsCompleted: () => markCartAsCompleted4,
71
72
  placeOrder: () => placeOrder4,
72
73
  refreshCart: () => refreshCart4,
@@ -89,6 +90,7 @@ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-
89
90
  var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
90
91
  var import_float = require("@wix/sdk-runtime/transformations/float");
91
92
  var import_float2 = require("@wix/sdk-runtime/transformations/float");
93
+ var import_bytes = require("@wix/sdk-runtime/transformations/bytes");
92
94
  var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
93
95
  var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
94
96
  var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
@@ -224,6 +226,7 @@ function createCart(payload) {
224
226
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
225
227
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
226
228
  { path: "cart.legacyFields.discounts.merchantDiscount.percentage" },
229
+ { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" },
227
230
  {
228
231
  path: "catalogItems.catalogOverrideFields.physicalProperties.weight"
229
232
  },
@@ -277,7 +280,8 @@ function createCart(payload) {
277
280
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
278
281
  {
279
282
  path: "cart.legacyFields.discounts.merchantDiscount.percentage"
280
- }
283
+ },
284
+ { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
281
285
  ]
282
286
  }
283
287
  ])
@@ -334,7 +338,8 @@ function getCart(payload) {
334
338
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
335
339
  {
336
340
  path: "cart.legacyFields.discounts.merchantDiscount.percentage"
337
- }
341
+ },
342
+ { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
338
343
  ]
339
344
  }
340
345
  ])
@@ -377,7 +382,8 @@ function updateCart(payload) {
377
382
  { path: "cart.deliveryInfo.address.geocode.longitude" },
378
383
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
379
384
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
380
- { path: "cart.legacyFields.discounts.merchantDiscount.percentage" }
385
+ { path: "cart.legacyFields.discounts.merchantDiscount.percentage" },
386
+ { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
381
387
  ]
382
388
  }
383
389
  ]);
@@ -427,7 +433,8 @@ function updateCart(payload) {
427
433
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
428
434
  {
429
435
  path: "cart.legacyFields.discounts.merchantDiscount.percentage"
430
- }
436
+ },
437
+ { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
431
438
  ]
432
439
  }
433
440
  ])
@@ -505,7 +512,8 @@ function refreshCart(payload) {
505
512
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
506
513
  {
507
514
  path: "cart.legacyFields.discounts.merchantDiscount.percentage"
508
- }
515
+ },
516
+ { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
509
517
  ]
510
518
  }
511
519
  ])
@@ -565,7 +573,8 @@ function estimateCart(payload) {
565
573
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
566
574
  {
567
575
  path: "cart.legacyFields.discounts.merchantDiscount.percentage"
568
- }
576
+ },
577
+ { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
569
578
  ]
570
579
  }
571
580
  ])
@@ -625,7 +634,8 @@ function calculateCart(payload) {
625
634
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
626
635
  {
627
636
  path: "cart.legacyFields.discounts.merchantDiscount.percentage"
628
- }
637
+ },
638
+ { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
629
639
  ]
630
640
  }
631
641
  ])
@@ -749,7 +759,8 @@ function addLineItems(payload) {
749
759
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
750
760
  {
751
761
  path: "cart.legacyFields.discounts.merchantDiscount.percentage"
752
- }
762
+ },
763
+ { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
753
764
  ]
754
765
  }
755
766
  ])
@@ -806,7 +817,8 @@ function removeLineItems(payload) {
806
817
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
807
818
  {
808
819
  path: "cart.legacyFields.discounts.merchantDiscount.percentage"
809
- }
820
+ },
821
+ { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
810
822
  ]
811
823
  }
812
824
  ])
@@ -863,7 +875,8 @@ function updateLineItems(payload) {
863
875
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
864
876
  {
865
877
  path: "cart.legacyFields.discounts.merchantDiscount.percentage"
866
- }
878
+ },
879
+ { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
867
880
  ]
868
881
  }
869
882
  ])
@@ -920,7 +933,8 @@ function addCoupon(payload) {
920
933
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
921
934
  {
922
935
  path: "cart.legacyFields.discounts.merchantDiscount.percentage"
923
- }
936
+ },
937
+ { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
924
938
  ]
925
939
  }
926
940
  ])
@@ -977,7 +991,8 @@ function removeCoupon(payload) {
977
991
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
978
992
  {
979
993
  path: "cart.legacyFields.discounts.merchantDiscount.percentage"
980
- }
994
+ },
995
+ { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
981
996
  ]
982
997
  }
983
998
  ])
@@ -1034,7 +1049,8 @@ function setDeliveryMethod(payload) {
1034
1049
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
1035
1050
  {
1036
1051
  path: "cart.legacyFields.discounts.merchantDiscount.percentage"
1037
- }
1052
+ },
1053
+ { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
1038
1054
  ]
1039
1055
  }
1040
1056
  ])
@@ -1091,7 +1107,8 @@ function removeDeliveryMethod(payload) {
1091
1107
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
1092
1108
  {
1093
1109
  path: "cart.legacyFields.discounts.merchantDiscount.percentage"
1094
- }
1110
+ },
1111
+ { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
1095
1112
  ]
1096
1113
  }
1097
1114
  ])
@@ -1148,7 +1165,8 @@ function addGiftCard(payload) {
1148
1165
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
1149
1166
  {
1150
1167
  path: "cart.legacyFields.discounts.merchantDiscount.percentage"
1151
- }
1168
+ },
1169
+ { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
1152
1170
  ]
1153
1171
  }
1154
1172
  ])
@@ -1205,7 +1223,8 @@ function removeGiftCard(payload) {
1205
1223
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
1206
1224
  {
1207
1225
  path: "cart.legacyFields.discounts.merchantDiscount.percentage"
1208
- }
1226
+ },
1227
+ { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
1209
1228
  ]
1210
1229
  }
1211
1230
  ])
@@ -1262,7 +1281,8 @@ function markCartAsCompleted(payload) {
1262
1281
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
1263
1282
  {
1264
1283
  path: "cart.legacyFields.discounts.merchantDiscount.percentage"
1265
- }
1284
+ },
1285
+ { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
1266
1286
  ]
1267
1287
  }
1268
1288
  ])
@@ -1271,6 +1291,33 @@ function markCartAsCompleted(payload) {
1271
1291
  }
1272
1292
  return __markCartAsCompleted;
1273
1293
  }
1294
+ function handleAsyncCheckoutCompletion(payload) {
1295
+ function __handleAsyncCheckoutCompletion({ host }) {
1296
+ const metadata = {
1297
+ entityFqdn: "wix.ecom.v2.cart",
1298
+ method: "GET",
1299
+ methodFqn: "wix.ecom.cart.v2.CartService.HandleAsyncCheckoutCompletion",
1300
+ packageName: PACKAGE_NAME,
1301
+ migrationOptions: {
1302
+ optInTransformResponse: true
1303
+ },
1304
+ url: resolveWixEcomCartV2CartServiceUrl({
1305
+ protoPath: "/v2/carts/handle-async-checkout-completion",
1306
+ data: payload,
1307
+ host
1308
+ }),
1309
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
1310
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1311
+ {
1312
+ transformFn: import_bytes.transformRESTBytesToSDKBytes,
1313
+ paths: [{ path: "body" }]
1314
+ }
1315
+ ])
1316
+ };
1317
+ return metadata;
1318
+ }
1319
+ return __handleAsyncCheckoutCompletion;
1320
+ }
1274
1321
  function updateFormSubmissions(payload) {
1275
1322
  function __updateFormSubmissions({ host }) {
1276
1323
  const metadata = {
@@ -1319,7 +1366,8 @@ function updateFormSubmissions(payload) {
1319
1366
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
1320
1367
  {
1321
1368
  path: "cart.legacyFields.discounts.merchantDiscount.percentage"
1322
- }
1369
+ },
1370
+ { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
1323
1371
  ]
1324
1372
  }
1325
1373
  ])
@@ -1431,6 +1479,7 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
1431
1479
  ChannelType2["PAYPAL_AGENTIC_CHECKOUT"] = "PAYPAL_AGENTIC_CHECKOUT";
1432
1480
  ChannelType2["STRIPE_AGENTIC_CHECKOUT"] = "STRIPE_AGENTIC_CHECKOUT";
1433
1481
  ChannelType2["WIX_INVOICES_PLATFORM"] = "WIX_INVOICES_PLATFORM";
1482
+ ChannelType2["UCP_AGENTIC_CHECKOUT"] = "UCP_AGENTIC_CHECKOUT";
1434
1483
  return ChannelType2;
1435
1484
  })(ChannelType || {});
1436
1485
  var VatType = /* @__PURE__ */ ((VatType2) => {
@@ -1534,6 +1583,7 @@ var ViolationCode = /* @__PURE__ */ ((ViolationCode2) => {
1534
1583
  ViolationCode2["INVALID_GIFT_CARD_CODE"] = "INVALID_GIFT_CARD_CODE";
1535
1584
  ViolationCode2["INVALID_GIFT_CARD_STATUS"] = "INVALID_GIFT_CARD_STATUS";
1536
1585
  ViolationCode2["CANNOT_PAY_FOR_GIFT_CARD_WITH_GIFT_CARD"] = "CANNOT_PAY_FOR_GIFT_CARD_WITH_GIFT_CARD";
1586
+ ViolationCode2["SUBTOTAL_BELOW_ORDER_MINIMUM"] = "SUBTOTAL_BELOW_ORDER_MINIMUM";
1537
1587
  return ViolationCode2;
1538
1588
  })(ViolationCode || {});
1539
1589
  var ViolationSeverity = /* @__PURE__ */ ((ViolationSeverity2) => {
@@ -2043,7 +2093,6 @@ async function placeOrder2(cartId, options) {
2043
2093
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2044
2094
  cartId,
2045
2095
  priceVerificationToken: options?.priceVerificationToken,
2046
- paymentToken: options?.paymentToken,
2047
2096
  redirectUrls: options?.redirectUrls,
2048
2097
  savePaymentMethod: options?.savePaymentMethod,
2049
2098
  delayCapture: options?.delayCapture,
@@ -2063,7 +2112,6 @@ async function placeOrder2(cartId, options) {
2063
2112
  explicitPathsToArguments: {
2064
2113
  cartId: "$[0]",
2065
2114
  priceVerificationToken: "$[1].priceVerificationToken",
2066
- paymentToken: "$[1].paymentToken",
2067
2115
  redirectUrls: "$[1].redirectUrls",
2068
2116
  savePaymentMethod: "$[1].savePaymentMethod",
2069
2117
  delayCapture: "$[1].delayCapture",
@@ -2567,6 +2615,29 @@ async function markCartAsCompleted2(cartId, options) {
2567
2615
  throw transformedError;
2568
2616
  }
2569
2617
  }
2618
+ async function handleAsyncCheckoutCompletion2(token) {
2619
+ const { httpClient, sideEffects } = arguments[1];
2620
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ token });
2621
+ const reqOpts = handleAsyncCheckoutCompletion(payload);
2622
+ sideEffects?.onSiteCall?.();
2623
+ try {
2624
+ const result = await httpClient.request(reqOpts);
2625
+ sideEffects?.onSuccess?.(result);
2626
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2627
+ } catch (err) {
2628
+ const transformedError = (0, import_transform_error.transformError)(
2629
+ err,
2630
+ {
2631
+ spreadPathsToArguments: {},
2632
+ explicitPathsToArguments: { token: "$[0]" },
2633
+ singleArgumentUnchanged: false
2634
+ },
2635
+ ["token"]
2636
+ );
2637
+ sideEffects?.onError?.(err);
2638
+ throw transformedError;
2639
+ }
2640
+ }
2570
2641
  async function updateFormSubmissions2(cartId, options) {
2571
2642
  const { httpClient, sideEffects } = arguments[2];
2572
2643
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -2766,6 +2837,13 @@ function markCartAsCompleted3(httpClient) {
2766
2837
  { httpClient }
2767
2838
  );
2768
2839
  }
2840
+ function handleAsyncCheckoutCompletion3(httpClient) {
2841
+ return (token) => handleAsyncCheckoutCompletion2(
2842
+ token,
2843
+ // @ts-ignore
2844
+ { httpClient }
2845
+ );
2846
+ }
2769
2847
  function updateFormSubmissions3(httpClient) {
2770
2848
  return (cartId, options) => updateFormSubmissions2(
2771
2849
  cartId,
@@ -2796,6 +2874,7 @@ var removeDeliveryMethod4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTM
2796
2874
  var addGiftCard4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(addGiftCard3);
2797
2875
  var removeGiftCard4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(removeGiftCard3);
2798
2876
  var markCartAsCompleted4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(markCartAsCompleted3);
2877
+ var handleAsyncCheckoutCompletion4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(handleAsyncCheckoutCompletion3);
2799
2878
  var updateFormSubmissions4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateFormSubmissions3);
2800
2879
  // Annotate the CommonJS export names for ESM import in node:
2801
2880
  0 && (module.exports = {
@@ -2846,6 +2925,7 @@ var updateFormSubmissions4 = /* @__PURE__ */ (0, import_rest_modules3.createREST
2846
2925
  estimateCart,
2847
2926
  getCart,
2848
2927
  getCheckoutUrl,
2928
+ handleAsyncCheckoutCompletion,
2849
2929
  markCartAsCompleted,
2850
2930
  placeOrder,
2851
2931
  refreshCart,