@wix/auto_sdk_ecom_cart-v-2 1.0.63 → 1.0.64
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.
- package/build/cjs/index.d.ts +27 -4
- package/build/cjs/index.js +128 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +152 -2
- package/build/cjs/index.typings.js +119 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +96 -2
- package/build/cjs/meta.js +77 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +27 -4
- package/build/es/index.mjs +127 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +152 -2
- package/build/es/index.typings.mjs +118 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +96 -2
- package/build/es/meta.mjs +76 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +27 -4
- package/build/internal/cjs/index.js +128 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +152 -2
- package/build/internal/cjs/index.typings.js +119 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +96 -2
- package/build/internal/cjs/meta.js +77 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +27 -4
- package/build/internal/es/index.mjs +127 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +152 -2
- package/build/internal/es/index.typings.mjs +118 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +96 -2
- package/build/internal/es/meta.mjs +76 -0
- package/build/internal/es/meta.mjs.map +1 -1
- 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.mjs';
|
|
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.mjs';
|
|
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.mjs';
|
|
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, 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.mjs';
|
|
4
4
|
|
|
5
5
|
declare function createCart$1(httpClient: HttpClient): CreateCartSignature;
|
|
6
6
|
interface CreateCartSignature {
|
|
@@ -53,12 +53,34 @@ 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.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
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.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> & {
|
|
@@ -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 };
|
|
@@ -421,6 +421,63 @@ function refreshCart(payload) {
|
|
|
421
421
|
}
|
|
422
422
|
return __refreshCart;
|
|
423
423
|
}
|
|
424
|
+
function estimateCart(payload) {
|
|
425
|
+
function __estimateCart({ host }) {
|
|
426
|
+
const metadata = {
|
|
427
|
+
entityFqdn: "wix.ecom.v2.cart",
|
|
428
|
+
method: "POST",
|
|
429
|
+
methodFqn: "wix.ecom.cart.v2.CartService.EstimateCart",
|
|
430
|
+
packageName: PACKAGE_NAME,
|
|
431
|
+
migrationOptions: {
|
|
432
|
+
optInTransformResponse: true
|
|
433
|
+
},
|
|
434
|
+
url: resolveWixEcomCartV2CartServiceUrl({
|
|
435
|
+
protoPath: "/v2/carts/{cartId}/estimate",
|
|
436
|
+
data: payload,
|
|
437
|
+
host
|
|
438
|
+
}),
|
|
439
|
+
data: payload,
|
|
440
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
441
|
+
{
|
|
442
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
443
|
+
paths: [
|
|
444
|
+
{ path: "cart.createdDate" },
|
|
445
|
+
{ path: "cart.updatedDate" },
|
|
446
|
+
{
|
|
447
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
448
|
+
},
|
|
449
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
450
|
+
{
|
|
451
|
+
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
455
|
+
},
|
|
456
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" },
|
|
457
|
+
{
|
|
458
|
+
path: "summary.paymentSummary.subscriptionCharges.charges.cycleBillingDate"
|
|
459
|
+
}
|
|
460
|
+
]
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
464
|
+
paths: [
|
|
465
|
+
{
|
|
466
|
+
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
467
|
+
},
|
|
468
|
+
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
469
|
+
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
470
|
+
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
471
|
+
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
472
|
+
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" }
|
|
473
|
+
]
|
|
474
|
+
}
|
|
475
|
+
])
|
|
476
|
+
};
|
|
477
|
+
return metadata;
|
|
478
|
+
}
|
|
479
|
+
return __estimateCart;
|
|
480
|
+
}
|
|
424
481
|
function calculateCart(payload) {
|
|
425
482
|
function __calculateCart({ host }) {
|
|
426
483
|
const metadata = {
|
|
@@ -1629,6 +1686,66 @@ async function refreshCart2(cartId) {
|
|
|
1629
1686
|
throw transformedError;
|
|
1630
1687
|
}
|
|
1631
1688
|
}
|
|
1689
|
+
async function estimateCart2(cartId, options) {
|
|
1690
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1691
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1692
|
+
cartId,
|
|
1693
|
+
refreshCart: options?.refreshCart,
|
|
1694
|
+
validationConfig: options?.validationConfig,
|
|
1695
|
+
calculateDelivery: options?.calculateDelivery,
|
|
1696
|
+
calculateAdditionalFees: options?.calculateAdditionalFees,
|
|
1697
|
+
calculateTax: options?.calculateTax,
|
|
1698
|
+
calculateGiftCards: options?.calculateGiftCards
|
|
1699
|
+
});
|
|
1700
|
+
const reqOpts = estimateCart(payload);
|
|
1701
|
+
sideEffects?.onSiteCall?.();
|
|
1702
|
+
try {
|
|
1703
|
+
const result = await httpClient.request(reqOpts);
|
|
1704
|
+
sideEffects?.onSuccess?.(result);
|
|
1705
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
1706
|
+
transformPaths2(result.data, [
|
|
1707
|
+
{
|
|
1708
|
+
transformFn: transformRESTImageToSDKImage,
|
|
1709
|
+
paths: [
|
|
1710
|
+
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
1711
|
+
{ path: "cart.lineItems.attributes.image" }
|
|
1712
|
+
]
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1716
|
+
paths: [{ path: "cart.lineItems.attributes.url" }]
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
1720
|
+
paths: [
|
|
1721
|
+
{ path: "cart.deliveryInfo.address" },
|
|
1722
|
+
{ path: "cart.paymentInfo.billingAddress" }
|
|
1723
|
+
]
|
|
1724
|
+
}
|
|
1725
|
+
])
|
|
1726
|
+
);
|
|
1727
|
+
} catch (err) {
|
|
1728
|
+
const transformedError = sdkTransformError(
|
|
1729
|
+
err,
|
|
1730
|
+
{
|
|
1731
|
+
spreadPathsToArguments: {},
|
|
1732
|
+
explicitPathsToArguments: {
|
|
1733
|
+
cartId: "$[0]",
|
|
1734
|
+
refreshCart: "$[1].refreshCart",
|
|
1735
|
+
validationConfig: "$[1].validationConfig",
|
|
1736
|
+
calculateDelivery: "$[1].calculateDelivery",
|
|
1737
|
+
calculateAdditionalFees: "$[1].calculateAdditionalFees",
|
|
1738
|
+
calculateTax: "$[1].calculateTax",
|
|
1739
|
+
calculateGiftCards: "$[1].calculateGiftCards"
|
|
1740
|
+
},
|
|
1741
|
+
singleArgumentUnchanged: false
|
|
1742
|
+
},
|
|
1743
|
+
["cartId", "options"]
|
|
1744
|
+
);
|
|
1745
|
+
sideEffects?.onError?.(err);
|
|
1746
|
+
throw transformedError;
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1632
1749
|
async function calculateCart2(cartId, options) {
|
|
1633
1750
|
const { httpClient, sideEffects } = arguments[2];
|
|
1634
1751
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -2306,6 +2423,14 @@ function refreshCart3(httpClient) {
|
|
|
2306
2423
|
{ httpClient }
|
|
2307
2424
|
);
|
|
2308
2425
|
}
|
|
2426
|
+
function estimateCart3(httpClient) {
|
|
2427
|
+
return (cartId, options) => estimateCart2(
|
|
2428
|
+
cartId,
|
|
2429
|
+
options,
|
|
2430
|
+
// @ts-ignore
|
|
2431
|
+
{ httpClient }
|
|
2432
|
+
);
|
|
2433
|
+
}
|
|
2309
2434
|
function calculateCart3(httpClient) {
|
|
2310
2435
|
return (cartId, options) => calculateCart2(
|
|
2311
2436
|
cartId,
|
|
@@ -2425,6 +2550,7 @@ var getCart4 = /* @__PURE__ */ createRESTModule(getCart3);
|
|
|
2425
2550
|
var updateCart4 = /* @__PURE__ */ createRESTModule(updateCart3);
|
|
2426
2551
|
var deleteCart4 = /* @__PURE__ */ createRESTModule(deleteCart3);
|
|
2427
2552
|
var refreshCart4 = /* @__PURE__ */ createRESTModule(refreshCart3);
|
|
2553
|
+
var estimateCart4 = /* @__PURE__ */ createRESTModule(estimateCart3);
|
|
2428
2554
|
var calculateCart4 = /* @__PURE__ */ createRESTModule(calculateCart3);
|
|
2429
2555
|
var getCheckoutUrl4 = /* @__PURE__ */ createRESTModule(getCheckoutUrl3);
|
|
2430
2556
|
var placeOrder4 = /* @__PURE__ */ createRESTModule(placeOrder3);
|
|
@@ -2478,6 +2604,7 @@ export {
|
|
|
2478
2604
|
calculateCart4 as calculateCart,
|
|
2479
2605
|
createCart4 as createCart,
|
|
2480
2606
|
deleteCart4 as deleteCart,
|
|
2607
|
+
estimateCart4 as estimateCart,
|
|
2481
2608
|
getCart4 as getCart,
|
|
2482
2609
|
getCheckoutUrl4 as getCheckoutUrl,
|
|
2483
2610
|
handleAsyncCheckoutCompletion4 as handleAsyncCheckoutCompletion,
|