@wix/auto_sdk_ecom_cart-v-2 1.0.63 → 1.0.65

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 +28 -5
  2. package/build/cjs/index.js +138 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +168 -3
  5. package/build/cjs/index.typings.js +129 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +111 -2
  8. package/build/cjs/meta.js +87 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +28 -5
  11. package/build/es/index.mjs +136 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +168 -3
  14. package/build/es/index.typings.mjs +127 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +111 -2
  17. package/build/es/meta.mjs +85 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +28 -5
  20. package/build/internal/cjs/index.js +138 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +168 -3
  23. package/build/internal/cjs/index.typings.js +129 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +111 -2
  26. package/build/internal/cjs/meta.js +87 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +28 -5
  29. package/build/internal/es/index.mjs +136 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +168 -3
  32. package/build/internal/es/index.typings.mjs +127 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +111 -2
  35. package/build/internal/es/meta.mjs +85 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. 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, 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, GiftCardInput, AddGiftCardResponse, AddGiftCardApplicationErrors, RemoveGiftCardResponse, RemoveGiftCardApplicationErrors, MarkCartAsCompletedOptions, MarkCartAsCompletedResponse, RawHttpResponse, UpdateFormSubmissionsOptions, UpdateFormSubmissionsResponse } from './index.typings.js';
3
- export { ActionEvent, AddCouponRequest, AddCouponToCurrentCartRequest, AddCouponToCurrentCartResponse, AddGiftCardRequest, AddGiftCardToCurrentCartRequest, AddGiftCardToCurrentCartResponse, AddLineItemsRequest, AddLineItemsToCurrentCartRequest, AddLineItemsToCurrentCartResponse, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, AdditionalFeeTax, Address, AddressLocation, AggregatedTaxBreakdown, AllLineItemsOutOfStockErrorData, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, 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, CustomerInfo, CustomerInfoIdOneOf, DeleteCartRequest, DeleteCartResponse, DeleteCurrentCartRequest, DeleteCurrentCartResponse, DeliveryAllocation, DeliveryInfo, DeliveryLogistics, DeliveryMethod, DeliveryMethodNotFoundErrorData, DeliverySummary, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Discount, DiscountBenefit, DiscountBenefitValueOneOf, DiscountRule, DiscountRuleName, DiscountScope, DiscountScopeWithLiterals, DiscountSource, DiscountSourceType, DiscountSourceTypeWithLiterals, DiscountType, DiscountTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, DuplicateItemModifierIdsErrorData, DuplicateLineItemUpdatesErrorData, DuplicateModifierGroupIdsErrorData, Empty, EmptyLineItemUpdatesErrorData, EmptyPaymentTokenErrorData, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FixedQuantityItemErrorData, FormIdentifier, FormInfo, FormSubmission, FreeTrialPeriod, FullAddressContactDetails, GetCartRequest, GetCartResponse, GetCheckoutURLRequest, GetCurrentCartRequest, GetCurrentCartResponse, GiftCard, GiftCardAdded, GiftCardAlreadyExistsErrorData, GiftCardNotFoundInCartErrorData, GiftCardRedeemErrorData, GiftCardRemoved, GiftCardSummary, Group, HandleAsyncCheckoutCompletionRequest, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, InsufficientInventoryEntry, InsufficientInventoryErrorData, 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, 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, QuantityUpdate, RateType, RateTypeWithLiterals, RedirectUrls, RefreshCartRequest, RefreshCurrentCartRequest, RefreshCurrentCartResponse, Region, RemoveCouponFromCurrentCartRequest, RemoveCouponFromCurrentCartResponse, RemoveCouponRequest, 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, SomeLineItemsOutOfStockErrorData, 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, V2Membership, V2PriceSummary, V2SelectedMembership, V2TaxSummary, ValidationError, ValidationsConfig, ValidationsConfigWithLiterals, VatId, VatType, VatTypeWithLiterals, Violation, 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, GiftCardInput, AddGiftCardResponse, AddGiftCardApplicationErrors, RemoveGiftCardResponse, RemoveGiftCardApplicationErrors, MarkCartAsCompletedOptions, MarkCartAsCompletedResponse, RawHttpResponse, UpdateFormSubmissionsOptions, UpdateFormSubmissionsResponse } from './index.typings.js';
3
+ export { ActionEvent, AddCouponRequest, AddCouponToCurrentCartRequest, AddCouponToCurrentCartResponse, AddGiftCardRequest, AddGiftCardToCurrentCartRequest, AddGiftCardToCurrentCartResponse, AddLineItemsRequest, AddLineItemsToCurrentCartRequest, AddLineItemsToCurrentCartResponse, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, AdditionalFeeTax, Address, AddressLocation, AggregatedTaxBreakdown, AllLineItemsOutOfStockErrorData, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, 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, CustomerInfo, CustomerInfoIdOneOf, DeleteCartRequest, DeleteCartResponse, DeleteCurrentCartRequest, DeleteCurrentCartResponse, DeliveryAllocation, DeliveryInfo, DeliveryLogistics, DeliveryMethod, DeliveryMethodNotFoundErrorData, DeliverySummary, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, 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, GiftCardNotFoundInCartErrorData, GiftCardRedeemErrorData, GiftCardRemoved, GiftCardSummary, Group, HandleAsyncCheckoutCompletionRequest, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, InsufficientInventoryEntry, InsufficientInventoryErrorData, 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, 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, QuantityUpdate, RateType, RateTypeWithLiterals, RedirectUrls, RefreshCartRequest, RefreshCurrentCartRequest, RefreshCurrentCartResponse, Region, RemoveCouponFromCurrentCartRequest, RemoveCouponFromCurrentCartResponse, RemoveCouponRequest, 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, SomeLineItemsOutOfStockErrorData, 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, V2Membership, V2PriceSummary, V2SelectedMembership, V2TaxSummary, ValidationError, ValidationsConfig, ValidationsConfigWithLiterals, VatId, VatType, VatTypeWithLiterals, Violation, 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 {
@@ -53,15 +53,37 @@ interface RefreshCartSignature {
53
53
  __applicationErrorsType?: RefreshCartApplicationErrors;
54
54
  }>;
55
55
  }
56
+ declare function estimateCart$1(httpClient: HttpClient): EstimateCartSignature;
57
+ interface EstimateCartSignature {
58
+ /**
59
+ * Estimates the cart totals based on its current state and the selected
60
+ * calculation components.
61
+ *
62
+ * This API provides a partial, component-based estimation of the cart and is
63
+ * intended for preview purposes (e.g. showing partial estimated totals).
64
+ *
65
+ * The estimation is controlled by boolean flags that indicate which components
66
+ * should be included (delivery costs, additional fees, taxes, gift cards).
67
+ * Components that are not explicitly enabled are excluded from the calculation.
68
+ *
69
+ * This is NOT a full cart calculation.
70
+ *
71
+ * Note that line items discounts are already pre-computed and applied to the Cart.
72
+ * @param - ID of the Cart to calculate.
73
+ */
74
+ (cartId: string, options?: EstimateCartOptions): Promise<NonNullablePaths<EstimateCartResponse, `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.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` | `summary.cartId` | `summary.cartRevision` | `summary.calculationId` | `summary.lineItems` | `summary.lineItems.${number}.lineItemId` | `summary.lineItems.${number}.quantity` | `summary.lineItems.${number}.unitPrice.amount` | `summary.lineItems.${number}.unitPrice.convertedAmount` | `summary.discounts` | `summary.discounts.${number}.name.original` | `summary.discounts.${number}.source.sourceType` | `summary.discounts.${number}.scope` | `summary.deliverySummary.method.code` | `summary.deliverySummary.method.pickup` | `summary.additionalFees` | `summary.additionalFees.${number}.source` | `summary.taxSummary.taxes` | `summary.taxSummary.pricesIncludeTax` | `summary.taxSummary.lineItemTaxes` | `summary.taxSummary.lineItemTaxes.${number}.lineItemId` | `summary.taxSummary.additionalFeeTaxes` | `summary.taxSummary.additionalFeeTaxes.${number}.additionalFeeCode` | `summary.paymentSummary.giftCards` | `summary.paymentSummary.giftCards.${number}.giftCardId` | `summary.paymentSummary.memberships` | `summary.paymentSummary.memberships.${number}._id` | `summary.paymentSummary.memberships.${number}.appId` | `summary.paymentSummary.subscriptionCharges` | `summary.paymentSummary.requiresPaymentAfterGiftCard` | `summary.calculationErrors.generalShippingCalculationError.applicationError.code` | `summary.calculationErrors.generalShippingCalculationError.applicationError.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule` | `summary.calculationErrors.carrierErrors.errors` | `summary.calculationErrors.carrierErrors.errors.${number}.carrierId` | `summary.calculationErrors.orderValidationErrors` | `summary.spiViolations` | `summary.spiViolations.${number}.severity` | `summary.spiViolations.${number}.target.other.name` | `summary.spiViolations.${number}.target.lineItem.name`, 8> & {
75
+ __applicationErrorsType?: EstimateCartApplicationErrors;
76
+ }>;
77
+ }
56
78
  declare function calculateCart$1(httpClient: HttpClient): CalculateCartSignature;
57
79
  interface CalculateCartSignature {
58
80
  /**
59
81
  * Calculates the cart based on its current state (line items, discounts, delivery method, etc.)
60
82
  * and returns a detailed summary including subtotal, delivery costs, taxes, fees and the total price.
61
- * Note that discounts are already pre-computed and applied to the Cart.
83
+ * Note that line items discounts are already pre-computed and applied to the Cart.
62
84
  * @param - ID of the Cart to calculate.
63
85
  */
64
- (cartId: string, options?: CalculateCartOptions): Promise<NonNullablePaths<CalculateCartResponse, `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.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` | `summary.cartId` | `summary.cartRevision` | `summary.calculationId` | `summary.lineItems` | `summary.lineItems.${number}.lineItemId` | `summary.lineItems.${number}.quantity` | `summary.lineItems.${number}.unitPrice.amount` | `summary.lineItems.${number}.unitPrice.convertedAmount` | `summary.discounts` | `summary.discounts.${number}.name.original` | `summary.discounts.${number}.source.sourceType` | `summary.discounts.${number}.scope` | `summary.deliverySummary.method.code` | `summary.deliverySummary.method.pickup` | `summary.additionalFees` | `summary.taxSummary.taxes` | `summary.taxSummary.pricesIncludeTax` | `summary.taxSummary.lineItemTaxes` | `summary.taxSummary.lineItemTaxes.${number}.lineItemId` | `summary.taxSummary.additionalFeeTaxes` | `summary.taxSummary.additionalFeeTaxes.${number}.additionalFeeCode` | `summary.paymentSummary.giftCards` | `summary.paymentSummary.giftCards.${number}.giftCardId` | `summary.paymentSummary.memberships` | `summary.paymentSummary.memberships.${number}._id` | `summary.paymentSummary.memberships.${number}.appId` | `summary.paymentSummary.subscriptionCharges` | `summary.paymentSummary.requiresPaymentAfterGiftCard` | `summary.calculationErrors.generalShippingCalculationError.applicationError.code` | `summary.calculationErrors.generalShippingCalculationError.applicationError.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule` | `summary.calculationErrors.carrierErrors.errors` | `summary.calculationErrors.carrierErrors.errors.${number}.carrierId` | `summary.calculationErrors.orderValidationErrors` | `summary.spiViolations` | `summary.spiViolations.${number}.severity` | `summary.spiViolations.${number}.target.other.name` | `summary.spiViolations.${number}.target.lineItem.name`, 8> & {
86
+ (cartId: string, options?: CalculateCartOptions): Promise<NonNullablePaths<CalculateCartResponse, `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.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` | `summary.cartId` | `summary.cartRevision` | `summary.calculationId` | `summary.lineItems` | `summary.lineItems.${number}.lineItemId` | `summary.lineItems.${number}.quantity` | `summary.lineItems.${number}.unitPrice.amount` | `summary.lineItems.${number}.unitPrice.convertedAmount` | `summary.discounts` | `summary.discounts.${number}.name.original` | `summary.discounts.${number}.source.sourceType` | `summary.discounts.${number}.scope` | `summary.deliverySummary.method.code` | `summary.deliverySummary.method.pickup` | `summary.additionalFees` | `summary.additionalFees.${number}.source` | `summary.taxSummary.taxes` | `summary.taxSummary.pricesIncludeTax` | `summary.taxSummary.lineItemTaxes` | `summary.taxSummary.lineItemTaxes.${number}.lineItemId` | `summary.taxSummary.additionalFeeTaxes` | `summary.taxSummary.additionalFeeTaxes.${number}.additionalFeeCode` | `summary.paymentSummary.giftCards` | `summary.paymentSummary.giftCards.${number}.giftCardId` | `summary.paymentSummary.memberships` | `summary.paymentSummary.memberships.${number}._id` | `summary.paymentSummary.memberships.${number}.appId` | `summary.paymentSummary.subscriptionCharges` | `summary.paymentSummary.requiresPaymentAfterGiftCard` | `summary.calculationErrors.generalShippingCalculationError.applicationError.code` | `summary.calculationErrors.generalShippingCalculationError.applicationError.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule` | `summary.calculationErrors.carrierErrors.errors` | `summary.calculationErrors.carrierErrors.errors.${number}.carrierId` | `summary.calculationErrors.orderValidationErrors` | `summary.spiViolations` | `summary.spiViolations.${number}.severity` | `summary.spiViolations.${number}.target.other.name` | `summary.spiViolations.${number}.target.lineItem.name`, 8> & {
65
87
  __applicationErrorsType?: CalculateCartApplicationErrors;
66
88
  }>;
67
89
  }
@@ -215,6 +237,7 @@ declare const getCart: MaybeContext<BuildRESTFunction<typeof getCart$1> & typeof
215
237
  declare const updateCart: MaybeContext<BuildRESTFunction<typeof updateCart$1> & typeof updateCart$1>;
216
238
  declare const deleteCart: MaybeContext<BuildRESTFunction<typeof deleteCart$1> & typeof deleteCart$1>;
217
239
  declare const refreshCart: MaybeContext<BuildRESTFunction<typeof refreshCart$1> & typeof refreshCart$1>;
240
+ declare const estimateCart: MaybeContext<BuildRESTFunction<typeof estimateCart$1> & typeof estimateCart$1>;
218
241
  declare const calculateCart: MaybeContext<BuildRESTFunction<typeof calculateCart$1> & typeof calculateCart$1>;
219
242
  declare const getCheckoutUrl: MaybeContext<BuildRESTFunction<typeof getCheckoutUrl$1> & typeof getCheckoutUrl$1>;
220
243
  declare const placeOrder: MaybeContext<BuildRESTFunction<typeof placeOrder$1> & typeof placeOrder$1>;
@@ -230,4 +253,4 @@ declare const markCartAsCompleted: MaybeContext<BuildRESTFunction<typeof markCar
230
253
  declare const handleAsyncCheckoutCompletion: MaybeContext<BuildRESTFunction<typeof handleAsyncCheckoutCompletion$1> & typeof handleAsyncCheckoutCompletion$1>;
231
254
  declare const updateFormSubmissions: MaybeContext<BuildRESTFunction<typeof updateFormSubmissions$1> & typeof updateFormSubmissions$1>;
232
255
 
233
- export { AddCouponApplicationErrors, AddCouponResponse, AddGiftCardApplicationErrors, AddGiftCardResponse, AddLineItemsApplicationErrors, AddLineItemsOptions, AddLineItemsResponse, CalculateCartApplicationErrors, CalculateCartOptions, CalculateCartResponse, Cart, CouponInput, CreateCartApplicationErrors, CreateCartOptions, DeliveryMethodInput, GetCheckoutURLResponse, GetCheckoutUrlApplicationErrors, GetCheckoutUrlOptions, GiftCardInput, MarkCartAsCompletedOptions, MarkCartAsCompletedResponse, PlaceOrderApplicationErrors, PlaceOrderOptions, PlaceOrderResponse, RawHttpResponse, RefreshCartApplicationErrors, RefreshCartResponse, RemoveCouponApplicationErrors, RemoveCouponResponse, RemoveGiftCardApplicationErrors, RemoveGiftCardResponse, RemoveLineItemsApplicationErrors, RemoveLineItemsResponse, SetDeliveryMethodApplicationErrors, SetDeliveryMethodResponse, UpdateCart, UpdateCartApplicationErrors, UpdateFormSubmissionsOptions, UpdateFormSubmissionsResponse, UpdateLineItemsApplicationErrors, UpdateLineItemsOptions, UpdateLineItemsResponse, addCoupon, addGiftCard, addLineItems, calculateCart, createCart, deleteCart, getCart, getCheckoutUrl, handleAsyncCheckoutCompletion, markCartAsCompleted, placeOrder, refreshCart, removeCoupon, removeGiftCard, removeLineItems, setDeliveryMethod, updateCart, updateFormSubmissions, updateLineItems };
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, RawHttpResponse, RefreshCartApplicationErrors, RefreshCartResponse, RemoveCouponApplicationErrors, RemoveCouponResponse, 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, removeGiftCard, removeLineItems, setDeliveryMethod, updateCart, updateFormSubmissions, updateLineItems };
@@ -45,6 +45,7 @@ __export(index_exports, {
45
45
  RateType: () => RateType,
46
46
  RuleType: () => RuleType,
47
47
  Severity: () => Severity,
48
+ Source: () => Source,
48
49
  SubscriptionFrequency: () => SubscriptionFrequency,
49
50
  SuggestedFix: () => SuggestedFix,
50
51
  TaxableAddressType: () => TaxableAddressType,
@@ -58,6 +59,7 @@ __export(index_exports, {
58
59
  calculateCart: () => calculateCart4,
59
60
  createCart: () => createCart4,
60
61
  deleteCart: () => deleteCart4,
62
+ estimateCart: () => estimateCart4,
61
63
  getCart: () => getCart4,
62
64
  getCheckoutUrl: () => getCheckoutUrl4,
63
65
  handleAsyncCheckoutCompletion: () => handleAsyncCheckoutCompletion4,
@@ -494,6 +496,63 @@ function refreshCart(payload) {
494
496
  }
495
497
  return __refreshCart;
496
498
  }
499
+ function estimateCart(payload) {
500
+ function __estimateCart({ host }) {
501
+ const metadata = {
502
+ entityFqdn: "wix.ecom.v2.cart",
503
+ method: "POST",
504
+ methodFqn: "wix.ecom.cart.v2.CartService.EstimateCart",
505
+ packageName: PACKAGE_NAME,
506
+ migrationOptions: {
507
+ optInTransformResponse: true
508
+ },
509
+ url: resolveWixEcomCartV2CartServiceUrl({
510
+ protoPath: "/v2/carts/{cartId}/estimate",
511
+ data: payload,
512
+ host
513
+ }),
514
+ data: payload,
515
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
516
+ {
517
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
518
+ paths: [
519
+ { path: "cart.createdDate" },
520
+ { path: "cart.updatedDate" },
521
+ {
522
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
523
+ },
524
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
525
+ {
526
+ path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
527
+ },
528
+ {
529
+ path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
530
+ },
531
+ { path: "cart.lineItems.attributes.serviceProperties.endDate" },
532
+ {
533
+ path: "summary.paymentSummary.subscriptionCharges.charges.cycleBillingDate"
534
+ }
535
+ ]
536
+ },
537
+ {
538
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
539
+ paths: [
540
+ {
541
+ path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
542
+ },
543
+ { path: "cart.lineItems.attributes.physicalProperties.weight" },
544
+ { path: "cart.deliveryInfo.address.geocode.latitude" },
545
+ { path: "cart.deliveryInfo.address.geocode.longitude" },
546
+ { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
547
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
548
+ ]
549
+ }
550
+ ])
551
+ };
552
+ return metadata;
553
+ }
554
+ return __estimateCart;
555
+ }
497
556
  function calculateCart(payload) {
498
557
  function __calculateCart({ host }) {
499
558
  const metadata = {
@@ -1294,6 +1353,14 @@ var DiscountScope = /* @__PURE__ */ ((DiscountScope2) => {
1294
1353
  DiscountScope2["DELIVERY"] = "DELIVERY";
1295
1354
  return DiscountScope2;
1296
1355
  })(DiscountScope || {});
1356
+ var Source = /* @__PURE__ */ ((Source2) => {
1357
+ Source2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
1358
+ Source2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
1359
+ Source2["LINE_ITEM"] = "LINE_ITEM";
1360
+ Source2["DELIVERY"] = "DELIVERY";
1361
+ Source2["PLATFORM"] = "PLATFORM";
1362
+ return Source2;
1363
+ })(Source || {});
1297
1364
  var RuleType = /* @__PURE__ */ ((RuleType2) => {
1298
1365
  RuleType2["VALIDATION"] = "VALIDATION";
1299
1366
  RuleType2["OTHER"] = "OTHER";
@@ -1702,6 +1769,66 @@ async function refreshCart2(cartId) {
1702
1769
  throw transformedError;
1703
1770
  }
1704
1771
  }
1772
+ async function estimateCart2(cartId, options) {
1773
+ const { httpClient, sideEffects } = arguments[2];
1774
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1775
+ cartId,
1776
+ refreshCart: options?.refreshCart,
1777
+ validationConfig: options?.validationConfig,
1778
+ calculateDelivery: options?.calculateDelivery,
1779
+ calculateAdditionalFees: options?.calculateAdditionalFees,
1780
+ calculateTax: options?.calculateTax,
1781
+ calculateGiftCards: options?.calculateGiftCards
1782
+ });
1783
+ const reqOpts = estimateCart(payload);
1784
+ sideEffects?.onSiteCall?.();
1785
+ try {
1786
+ const result = await httpClient.request(reqOpts);
1787
+ sideEffects?.onSuccess?.(result);
1788
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1789
+ (0, import_transform_paths2.transformPaths)(result.data, [
1790
+ {
1791
+ transformFn: import_image2.transformRESTImageToSDKImage,
1792
+ paths: [
1793
+ { path: "cart.lineItems.source.catalogOverrideFields.image" },
1794
+ { path: "cart.lineItems.attributes.image" }
1795
+ ]
1796
+ },
1797
+ {
1798
+ transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
1799
+ paths: [{ path: "cart.lineItems.attributes.url" }]
1800
+ },
1801
+ {
1802
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
1803
+ paths: [
1804
+ { path: "cart.deliveryInfo.address" },
1805
+ { path: "cart.paymentInfo.billingAddress" }
1806
+ ]
1807
+ }
1808
+ ])
1809
+ );
1810
+ } catch (err) {
1811
+ const transformedError = (0, import_transform_error.transformError)(
1812
+ err,
1813
+ {
1814
+ spreadPathsToArguments: {},
1815
+ explicitPathsToArguments: {
1816
+ cartId: "$[0]",
1817
+ refreshCart: "$[1].refreshCart",
1818
+ validationConfig: "$[1].validationConfig",
1819
+ calculateDelivery: "$[1].calculateDelivery",
1820
+ calculateAdditionalFees: "$[1].calculateAdditionalFees",
1821
+ calculateTax: "$[1].calculateTax",
1822
+ calculateGiftCards: "$[1].calculateGiftCards"
1823
+ },
1824
+ singleArgumentUnchanged: false
1825
+ },
1826
+ ["cartId", "options"]
1827
+ );
1828
+ sideEffects?.onError?.(err);
1829
+ throw transformedError;
1830
+ }
1831
+ }
1705
1832
  async function calculateCart2(cartId, options) {
1706
1833
  const { httpClient, sideEffects } = arguments[2];
1707
1834
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -2379,6 +2506,14 @@ function refreshCart3(httpClient) {
2379
2506
  { httpClient }
2380
2507
  );
2381
2508
  }
2509
+ function estimateCart3(httpClient) {
2510
+ return (cartId, options) => estimateCart2(
2511
+ cartId,
2512
+ options,
2513
+ // @ts-ignore
2514
+ { httpClient }
2515
+ );
2516
+ }
2382
2517
  function calculateCart3(httpClient) {
2383
2518
  return (cartId, options) => calculateCart2(
2384
2519
  cartId,
@@ -2498,6 +2633,7 @@ var getCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getCar
2498
2633
  var updateCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateCart3);
2499
2634
  var deleteCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteCart3);
2500
2635
  var refreshCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(refreshCart3);
2636
+ var estimateCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(estimateCart3);
2501
2637
  var calculateCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(calculateCart3);
2502
2638
  var getCheckoutUrl4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getCheckoutUrl3);
2503
2639
  var placeOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(placeOrder3);
@@ -2539,6 +2675,7 @@ var updateFormSubmissions4 = /* @__PURE__ */ (0, import_rest_modules3.createREST
2539
2675
  RateType,
2540
2676
  RuleType,
2541
2677
  Severity,
2678
+ Source,
2542
2679
  SubscriptionFrequency,
2543
2680
  SuggestedFix,
2544
2681
  TaxableAddressType,
@@ -2552,6 +2689,7 @@ var updateFormSubmissions4 = /* @__PURE__ */ (0, import_rest_modules3.createREST
2552
2689
  calculateCart,
2553
2690
  createCart,
2554
2691
  deleteCart,
2692
+ estimateCart,
2555
2693
  getCart,
2556
2694
  getCheckoutUrl,
2557
2695
  handleAsyncCheckoutCompletion,