@wix/auto_sdk_ecom_current-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 +26 -4
  2. package/build/cjs/index.js +135 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +165 -2
  5. package/build/cjs/index.typings.js +127 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +109 -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 +26 -4
  11. package/build/es/index.mjs +133 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +165 -2
  14. package/build/es/index.typings.mjs +125 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +109 -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 +26 -4
  20. package/build/internal/cjs/index.js +135 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +165 -2
  23. package/build/internal/cjs/index.typings.js +127 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +109 -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 +26 -4
  29. package/build/internal/es/index.mjs +133 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +165 -2
  32. package/build/internal/es/index.typings.mjs +125 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +109 -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 { CreateCurrentCartOptions, CreateCurrentCartResponse, CreateCurrentCartApplicationErrors, GetCurrentCartResponse, Cart, UpdateCurrentCartResponse, UpdateCurrentCartApplicationErrors, RefreshCurrentCartResponse, RefreshCurrentCartApplicationErrors, CalculateCurrentCartOptions, CalculateCurrentCartResponse, CalculateCurrentCartApplicationErrors, AddLineItemsToCurrentCartOptions, AddLineItemsToCurrentCartResponse, AddLineItemsToCurrentCartApplicationErrors, RemoveLineItemsFromCurrentCartResponse, RemoveLineItemsFromCurrentCartApplicationErrors, UpdateLineItemsInCurrentCartOptions, UpdateLineItemsInCurrentCartResponse, UpdateLineItemsInCurrentCartApplicationErrors, CouponInput, AddCouponToCurrentCartResponse, AddCouponToCurrentCartApplicationErrors, RemoveCouponFromCurrentCartResponse, RemoveCouponFromCurrentCartApplicationErrors, DeliveryMethodInput, SetDeliveryMethodForCurrentCartResponse, SetDeliveryMethodForCurrentCartApplicationErrors, GiftCardInput, AddGiftCardToCurrentCartResponse, AddGiftCardToCurrentCartApplicationErrors, RemoveGiftCardFromCurrentCartResponse, RemoveGiftCardFromCurrentCartApplicationErrors, UpdateFormSubmissionsInCurrentCartOptions, UpdateFormSubmissionsInCurrentCartResponse } from './index.typings.js';
3
- export { ActionEvent, AddCouponRequest, AddCouponResponse, AddCouponToCurrentCartRequest, AddGiftCardRequest, AddGiftCardResponse, AddGiftCardToCurrentCartRequest, AddLineItemsRequest, AddLineItemsResponse, AddLineItemsToCurrentCartRequest, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, AdditionalFeeTax, Address, AddressLocation, AggregatedTaxBreakdown, AllLineItemsOutOfStockErrorData, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, BusinessInfo, CalculateCartForV1Request, CalculateCartForV1Response, CalculateCartRequest, CalculateCartResponse, CalculateCurrentCartRequest, 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, 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, GetCheckoutURLResponse, GetCurrentCartRequest, 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, MarkCartAsCompletedResponse, 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, PlaceOrderResponse, PlainTextValue, PlatformFeeChargeType, PlatformFeeChargeTypeWithLiterals, PlatformFeeSummary, Policy, PriceDescription, PriceSummary, QuantityUpdate, RateType, RateTypeWithLiterals, RawHttpResponse, RedirectUrls, RefreshCartRequest, RefreshCartResponse, RefreshCurrentCartRequest, Region, RemoveCouponFromCurrentCartRequest, RemoveCouponRequest, RemoveCouponResponse, RemoveGiftCardFromCurrentCartRequest, RemoveGiftCardRequest, RemoveGiftCardResponse, RemoveLineItemsFromCurrentCartRequest, RemoveLineItemsRequest, RemoveLineItemsResponse, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMembershipUpdate, SelectedMemberships, ServiceProperties, SetDeliveryMethodForCurrentCartRequest, SetDeliveryMethodRequest, SetDeliveryMethodResponse, 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, UpdateFormSubmissionsInCurrentCartRequest, UpdateFormSubmissionsRequest, UpdateFormSubmissionsResponse, UpdateLineItemsInCurrentCartRequest, UpdateLineItemsRequest, UpdateLineItemsResponse, 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 { CreateCurrentCartOptions, CreateCurrentCartResponse, CreateCurrentCartApplicationErrors, GetCurrentCartResponse, Cart, UpdateCurrentCartResponse, UpdateCurrentCartApplicationErrors, RefreshCurrentCartResponse, RefreshCurrentCartApplicationErrors, CalculateCurrentCartOptions, CalculateCurrentCartResponse, CalculateCurrentCartApplicationErrors, EstimateCurrentCartOptions, EstimateCurrentCartResponse, EstimateCurrentCartApplicationErrors, AddLineItemsToCurrentCartOptions, AddLineItemsToCurrentCartResponse, AddLineItemsToCurrentCartApplicationErrors, RemoveLineItemsFromCurrentCartResponse, RemoveLineItemsFromCurrentCartApplicationErrors, UpdateLineItemsInCurrentCartOptions, UpdateLineItemsInCurrentCartResponse, UpdateLineItemsInCurrentCartApplicationErrors, CouponInput, AddCouponToCurrentCartResponse, AddCouponToCurrentCartApplicationErrors, RemoveCouponFromCurrentCartResponse, RemoveCouponFromCurrentCartApplicationErrors, DeliveryMethodInput, SetDeliveryMethodForCurrentCartResponse, SetDeliveryMethodForCurrentCartApplicationErrors, GiftCardInput, AddGiftCardToCurrentCartResponse, AddGiftCardToCurrentCartApplicationErrors, RemoveGiftCardFromCurrentCartResponse, RemoveGiftCardFromCurrentCartApplicationErrors, UpdateFormSubmissionsInCurrentCartOptions, UpdateFormSubmissionsInCurrentCartResponse } from './index.typings.js';
3
+ export { ActionEvent, AddCouponRequest, AddCouponResponse, AddCouponToCurrentCartRequest, AddGiftCardRequest, AddGiftCardResponse, AddGiftCardToCurrentCartRequest, AddLineItemsRequest, AddLineItemsResponse, AddLineItemsToCurrentCartRequest, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, AdditionalFeeTax, Address, AddressLocation, AggregatedTaxBreakdown, AllLineItemsOutOfStockErrorData, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, BusinessInfo, CalculateCartForV1Request, CalculateCartForV1Response, CalculateCartRequest, CalculateCartResponse, CalculateCurrentCartRequest, 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, 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, EstimateCartResponse, EstimateCurrentCartRequest, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FixedQuantityItemErrorData, FormIdentifier, FormInfo, FormSubmission, FreeTrialPeriod, FullAddressContactDetails, GetCartRequest, GetCartResponse, GetCheckoutURLRequest, GetCheckoutURLResponse, GetCurrentCartRequest, 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, MarkCartAsCompletedResponse, 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, PlaceOrderResponse, PlainTextValue, PlatformFeeChargeType, PlatformFeeChargeTypeWithLiterals, PlatformFeeSummary, Policy, PriceDescription, PriceSummary, QuantityUpdate, RateType, RateTypeWithLiterals, RawHttpResponse, RedirectUrls, RefreshCartRequest, RefreshCartResponse, RefreshCurrentCartRequest, Region, RemoveCouponFromCurrentCartRequest, RemoveCouponRequest, RemoveCouponResponse, RemoveGiftCardFromCurrentCartRequest, RemoveGiftCardRequest, RemoveGiftCardResponse, RemoveLineItemsFromCurrentCartRequest, RemoveLineItemsRequest, RemoveLineItemsResponse, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMembershipUpdate, SelectedMemberships, ServiceProperties, SetDeliveryMethodForCurrentCartRequest, SetDeliveryMethodRequest, SetDeliveryMethodResponse, 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, UpdateFormSubmissionsInCurrentCartRequest, UpdateFormSubmissionsRequest, UpdateFormSubmissionsResponse, UpdateLineItemsInCurrentCartRequest, UpdateLineItemsRequest, UpdateLineItemsResponse, 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 createCurrentCart$1(httpClient: HttpClient): CreateCurrentCartSignature;
6
6
  interface CreateCurrentCartSignature {
@@ -53,10 +53,31 @@ interface CalculateCurrentCartSignature {
53
53
  * Calculates the cart based on its current state (line items, discounts, delivery method, etc.)
54
54
  * and returns a detailed summary including subtotal, delivery costs, taxes, fees and the total price.
55
55
  */
56
- (options?: CalculateCurrentCartOptions): Promise<NonNullablePaths<CalculateCurrentCartResponse, `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> & {
56
+ (options?: CalculateCurrentCartOptions): Promise<NonNullablePaths<CalculateCurrentCartResponse, `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> & {
57
57
  __applicationErrorsType?: CalculateCurrentCartApplicationErrors;
58
58
  }>;
59
59
  }
60
+ declare function estimateCurrentCart$1(httpClient: HttpClient): EstimateCurrentCartSignature;
61
+ interface EstimateCurrentCartSignature {
62
+ /**
63
+ * Estimates the cart totals based on its current state and the selected
64
+ * calculation components.
65
+ *
66
+ * This API provides a partial, component-based estimation of the cart and is
67
+ * intended for preview purposes (e.g. showing partial estimated totals).
68
+ *
69
+ * The estimation is controlled by boolean flags that indicate which components
70
+ * should be included (delivery costs, additional fees, taxes, gift cards).
71
+ * Components that are not explicitly enabled are excluded from the calculation.
72
+ *
73
+ * This is NOT a full cart calculation.
74
+ *
75
+ * Note that line items discounts are already pre-computed and applied to the Cart.
76
+ */
77
+ (options?: EstimateCurrentCartOptions): Promise<NonNullablePaths<EstimateCurrentCartResponse, `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> & {
78
+ __applicationErrorsType?: EstimateCurrentCartApplicationErrors;
79
+ }>;
80
+ }
60
81
  declare function addLineItemsToCurrentCart$1(httpClient: HttpClient): AddLineItemsToCurrentCartSignature;
61
82
  interface AddLineItemsToCurrentCartSignature {
62
83
  /**
@@ -154,6 +175,7 @@ declare const updateCurrentCart: MaybeContext<BuildRESTFunction<typeof updateCur
154
175
  declare const deleteCurrentCart: MaybeContext<BuildRESTFunction<typeof deleteCurrentCart$1> & typeof deleteCurrentCart$1>;
155
176
  declare const refreshCurrentCart: MaybeContext<BuildRESTFunction<typeof refreshCurrentCart$1> & typeof refreshCurrentCart$1>;
156
177
  declare const calculateCurrentCart: MaybeContext<BuildRESTFunction<typeof calculateCurrentCart$1> & typeof calculateCurrentCart$1>;
178
+ declare const estimateCurrentCart: MaybeContext<BuildRESTFunction<typeof estimateCurrentCart$1> & typeof estimateCurrentCart$1>;
157
179
  declare const addLineItemsToCurrentCart: MaybeContext<BuildRESTFunction<typeof addLineItemsToCurrentCart$1> & typeof addLineItemsToCurrentCart$1>;
158
180
  declare const removeLineItemsFromCurrentCart: MaybeContext<BuildRESTFunction<typeof removeLineItemsFromCurrentCart$1> & typeof removeLineItemsFromCurrentCart$1>;
159
181
  declare const updateLineItemsInCurrentCart: MaybeContext<BuildRESTFunction<typeof updateLineItemsInCurrentCart$1> & typeof updateLineItemsInCurrentCart$1>;
@@ -164,4 +186,4 @@ declare const addGiftCardToCurrentCart: MaybeContext<BuildRESTFunction<typeof ad
164
186
  declare const removeGiftCardFromCurrentCart: MaybeContext<BuildRESTFunction<typeof removeGiftCardFromCurrentCart$1> & typeof removeGiftCardFromCurrentCart$1>;
165
187
  declare const updateFormSubmissionsInCurrentCart: MaybeContext<BuildRESTFunction<typeof updateFormSubmissionsInCurrentCart$1> & typeof updateFormSubmissionsInCurrentCart$1>;
166
188
 
167
- export { AddCouponToCurrentCartApplicationErrors, AddCouponToCurrentCartResponse, AddGiftCardToCurrentCartApplicationErrors, AddGiftCardToCurrentCartResponse, AddLineItemsToCurrentCartApplicationErrors, AddLineItemsToCurrentCartOptions, AddLineItemsToCurrentCartResponse, CalculateCurrentCartApplicationErrors, CalculateCurrentCartOptions, CalculateCurrentCartResponse, Cart, CouponInput, CreateCurrentCartApplicationErrors, CreateCurrentCartOptions, CreateCurrentCartResponse, DeliveryMethodInput, GetCurrentCartResponse, GiftCardInput, RefreshCurrentCartApplicationErrors, RefreshCurrentCartResponse, RemoveCouponFromCurrentCartApplicationErrors, RemoveCouponFromCurrentCartResponse, RemoveGiftCardFromCurrentCartApplicationErrors, RemoveGiftCardFromCurrentCartResponse, RemoveLineItemsFromCurrentCartApplicationErrors, RemoveLineItemsFromCurrentCartResponse, SetDeliveryMethodForCurrentCartApplicationErrors, SetDeliveryMethodForCurrentCartResponse, UpdateCurrentCartApplicationErrors, UpdateCurrentCartResponse, UpdateFormSubmissionsInCurrentCartOptions, UpdateFormSubmissionsInCurrentCartResponse, UpdateLineItemsInCurrentCartApplicationErrors, UpdateLineItemsInCurrentCartOptions, UpdateLineItemsInCurrentCartResponse, addCouponToCurrentCart, addGiftCardToCurrentCart, addLineItemsToCurrentCart, calculateCurrentCart, createCurrentCart, deleteCurrentCart, getCurrentCart, refreshCurrentCart, removeCouponFromCurrentCart, removeGiftCardFromCurrentCart, removeLineItemsFromCurrentCart, setDeliveryMethodForCurrentCart, updateCurrentCart, updateFormSubmissionsInCurrentCart, updateLineItemsInCurrentCart };
189
+ export { AddCouponToCurrentCartApplicationErrors, AddCouponToCurrentCartResponse, AddGiftCardToCurrentCartApplicationErrors, AddGiftCardToCurrentCartResponse, AddLineItemsToCurrentCartApplicationErrors, AddLineItemsToCurrentCartOptions, AddLineItemsToCurrentCartResponse, CalculateCurrentCartApplicationErrors, CalculateCurrentCartOptions, CalculateCurrentCartResponse, Cart, CouponInput, CreateCurrentCartApplicationErrors, CreateCurrentCartOptions, CreateCurrentCartResponse, DeliveryMethodInput, EstimateCurrentCartApplicationErrors, EstimateCurrentCartOptions, EstimateCurrentCartResponse, GetCurrentCartResponse, GiftCardInput, RefreshCurrentCartApplicationErrors, RefreshCurrentCartResponse, RemoveCouponFromCurrentCartApplicationErrors, RemoveCouponFromCurrentCartResponse, RemoveGiftCardFromCurrentCartApplicationErrors, RemoveGiftCardFromCurrentCartResponse, RemoveLineItemsFromCurrentCartApplicationErrors, RemoveLineItemsFromCurrentCartResponse, SetDeliveryMethodForCurrentCartApplicationErrors, SetDeliveryMethodForCurrentCartResponse, UpdateCurrentCartApplicationErrors, UpdateCurrentCartResponse, UpdateFormSubmissionsInCurrentCartOptions, UpdateFormSubmissionsInCurrentCartResponse, UpdateLineItemsInCurrentCartApplicationErrors, UpdateLineItemsInCurrentCartOptions, UpdateLineItemsInCurrentCartResponse, addCouponToCurrentCart, addGiftCardToCurrentCart, addLineItemsToCurrentCart, calculateCurrentCart, createCurrentCart, deleteCurrentCart, estimateCurrentCart, getCurrentCart, refreshCurrentCart, removeCouponFromCurrentCart, removeGiftCardFromCurrentCart, removeLineItemsFromCurrentCart, setDeliveryMethodForCurrentCart, updateCurrentCart, updateFormSubmissionsInCurrentCart, updateLineItemsInCurrentCart };
@@ -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
  calculateCurrentCart: () => calculateCurrentCart4,
59
60
  createCurrentCart: () => createCurrentCart4,
60
61
  deleteCurrentCart: () => deleteCurrentCart4,
62
+ estimateCurrentCart: () => estimateCurrentCart4,
61
63
  getCurrentCart: () => getCurrentCart4,
62
64
  refreshCurrentCart: () => refreshCurrentCart4,
63
65
  removeCouponFromCurrentCart: () => removeCouponFromCurrentCart4,
@@ -546,6 +548,63 @@ function calculateCurrentCart(payload) {
546
548
  }
547
549
  return __calculateCurrentCart;
548
550
  }
551
+ function estimateCurrentCart(payload) {
552
+ function __estimateCurrentCart({ host }) {
553
+ const metadata = {
554
+ entityFqdn: "wix.ecom.v2.cart",
555
+ method: "POST",
556
+ methodFqn: "wix.ecom.cart.v2.CurrentCartService.EstimateCurrentCart",
557
+ packageName: PACKAGE_NAME,
558
+ migrationOptions: {
559
+ optInTransformResponse: true
560
+ },
561
+ url: resolveWixEcomCartV2CurrentCartServiceUrl({
562
+ protoPath: "/v2/carts/current/estimate",
563
+ data: payload,
564
+ host
565
+ }),
566
+ data: payload,
567
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
568
+ {
569
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
570
+ paths: [
571
+ { path: "cart.createdDate" },
572
+ { path: "cart.updatedDate" },
573
+ {
574
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
575
+ },
576
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
577
+ {
578
+ path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
579
+ },
580
+ {
581
+ path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
582
+ },
583
+ { path: "cart.lineItems.attributes.serviceProperties.endDate" },
584
+ {
585
+ path: "summary.paymentSummary.subscriptionCharges.charges.cycleBillingDate"
586
+ }
587
+ ]
588
+ },
589
+ {
590
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
591
+ paths: [
592
+ {
593
+ path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
594
+ },
595
+ { path: "cart.lineItems.attributes.physicalProperties.weight" },
596
+ { path: "cart.deliveryInfo.address.geocode.latitude" },
597
+ { path: "cart.deliveryInfo.address.geocode.longitude" },
598
+ { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
599
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
600
+ ]
601
+ }
602
+ ])
603
+ };
604
+ return metadata;
605
+ }
606
+ return __estimateCurrentCart;
607
+ }
549
608
  function addLineItemsToCurrentCart(payload) {
550
609
  function __addLineItemsToCurrentCart({ host }) {
551
610
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -1166,6 +1225,14 @@ var DiscountScope = /* @__PURE__ */ ((DiscountScope2) => {
1166
1225
  DiscountScope2["DELIVERY"] = "DELIVERY";
1167
1226
  return DiscountScope2;
1168
1227
  })(DiscountScope || {});
1228
+ var Source = /* @__PURE__ */ ((Source2) => {
1229
+ Source2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
1230
+ Source2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
1231
+ Source2["LINE_ITEM"] = "LINE_ITEM";
1232
+ Source2["DELIVERY"] = "DELIVERY";
1233
+ Source2["PLATFORM"] = "PLATFORM";
1234
+ return Source2;
1235
+ })(Source || {});
1169
1236
  var RuleType = /* @__PURE__ */ ((RuleType2) => {
1170
1237
  RuleType2["VALIDATION"] = "VALIDATION";
1171
1238
  RuleType2["OTHER"] = "OTHER";
@@ -1626,6 +1693,64 @@ async function calculateCurrentCart2(options) {
1626
1693
  throw transformedError;
1627
1694
  }
1628
1695
  }
1696
+ async function estimateCurrentCart2(options) {
1697
+ const { httpClient, sideEffects } = arguments[1];
1698
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1699
+ refreshCart: options?.refreshCart,
1700
+ validationConfig: options?.validationConfig,
1701
+ calculateDelivery: options?.calculateDelivery,
1702
+ calculateAdditionalFees: options?.calculateAdditionalFees,
1703
+ calculateTax: options?.calculateTax,
1704
+ calculateGiftCards: options?.calculateGiftCards
1705
+ });
1706
+ const reqOpts = estimateCurrentCart(payload);
1707
+ sideEffects?.onSiteCall?.();
1708
+ try {
1709
+ const result = await httpClient.request(reqOpts);
1710
+ sideEffects?.onSuccess?.(result);
1711
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1712
+ (0, import_transform_paths2.transformPaths)(result.data, [
1713
+ {
1714
+ transformFn: import_image2.transformRESTImageToSDKImage,
1715
+ paths: [
1716
+ { path: "cart.lineItems.source.catalogOverrideFields.image" },
1717
+ { path: "cart.lineItems.attributes.image" }
1718
+ ]
1719
+ },
1720
+ {
1721
+ transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
1722
+ paths: [{ path: "cart.lineItems.attributes.url" }]
1723
+ },
1724
+ {
1725
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
1726
+ paths: [
1727
+ { path: "cart.deliveryInfo.address" },
1728
+ { path: "cart.paymentInfo.billingAddress" }
1729
+ ]
1730
+ }
1731
+ ])
1732
+ );
1733
+ } catch (err) {
1734
+ const transformedError = (0, import_transform_error.transformError)(
1735
+ err,
1736
+ {
1737
+ spreadPathsToArguments: {},
1738
+ explicitPathsToArguments: {
1739
+ refreshCart: "$[0].refreshCart",
1740
+ validationConfig: "$[0].validationConfig",
1741
+ calculateDelivery: "$[0].calculateDelivery",
1742
+ calculateAdditionalFees: "$[0].calculateAdditionalFees",
1743
+ calculateTax: "$[0].calculateTax",
1744
+ calculateGiftCards: "$[0].calculateGiftCards"
1745
+ },
1746
+ singleArgumentUnchanged: false
1747
+ },
1748
+ ["options"]
1749
+ );
1750
+ sideEffects?.onError?.(err);
1751
+ throw transformedError;
1752
+ }
1753
+ }
1629
1754
  async function addLineItemsToCurrentCart2(options) {
1630
1755
  const { httpClient, sideEffects } = arguments[1];
1631
1756
  const payload = (0, import_transform_paths2.transformPaths)(
@@ -2094,6 +2219,13 @@ function calculateCurrentCart3(httpClient) {
2094
2219
  { httpClient }
2095
2220
  );
2096
2221
  }
2222
+ function estimateCurrentCart3(httpClient) {
2223
+ return (options) => estimateCurrentCart2(
2224
+ options,
2225
+ // @ts-ignore
2226
+ { httpClient }
2227
+ );
2228
+ }
2097
2229
  function addLineItemsToCurrentCart3(httpClient) {
2098
2230
  return (options) => addLineItemsToCurrentCart2(
2099
2231
  options,
@@ -2166,6 +2298,7 @@ var updateCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModu
2166
2298
  var deleteCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteCurrentCart3);
2167
2299
  var refreshCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(refreshCurrentCart3);
2168
2300
  var calculateCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(calculateCurrentCart3);
2301
+ var estimateCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(estimateCurrentCart3);
2169
2302
  var addLineItemsToCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(addLineItemsToCurrentCart3);
2170
2303
  var removeLineItemsFromCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(removeLineItemsFromCurrentCart3);
2171
2304
  var updateLineItemsInCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateLineItemsInCurrentCart3);
@@ -2202,6 +2335,7 @@ var updateFormSubmissionsInCurrentCart4 = /* @__PURE__ */ (0, import_rest_module
2202
2335
  RateType,
2203
2336
  RuleType,
2204
2337
  Severity,
2338
+ Source,
2205
2339
  SubscriptionFrequency,
2206
2340
  SuggestedFix,
2207
2341
  TaxableAddressType,
@@ -2215,6 +2349,7 @@ var updateFormSubmissionsInCurrentCart4 = /* @__PURE__ */ (0, import_rest_module
2215
2349
  calculateCurrentCart,
2216
2350
  createCurrentCart,
2217
2351
  deleteCurrentCart,
2352
+ estimateCurrentCart,
2218
2353
  getCurrentCart,
2219
2354
  refreshCurrentCart,
2220
2355
  removeCouponFromCurrentCart,