@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.
- package/build/cjs/index.d.ts +28 -5
- package/build/cjs/index.js +138 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +168 -3
- package/build/cjs/index.typings.js +129 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +111 -2
- package/build/cjs/meta.js +87 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +28 -5
- package/build/es/index.mjs +136 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +168 -3
- package/build/es/index.typings.mjs +127 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +111 -2
- package/build/es/meta.mjs +85 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +28 -5
- package/build/internal/cjs/index.js +138 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +168 -3
- package/build/internal/cjs/index.typings.js +129 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +111 -2
- package/build/internal/cjs/meta.js +87 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +28 -5
- package/build/internal/es/index.mjs +136 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +168 -3
- package/build/internal/es/index.typings.mjs +127 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +111 -2
- package/build/internal/es/meta.mjs +85 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateCartRequest as CreateCartRequest$1, CreateCartResponse as CreateCartResponse$1, GetCartRequest as GetCartRequest$1, GetCartResponse as GetCartResponse$1, UpdateCartRequest as UpdateCartRequest$1, UpdateCartResponse as UpdateCartResponse$1, DeleteCartRequest as DeleteCartRequest$1, DeleteCartResponse as DeleteCartResponse$1, RefreshCartRequest as RefreshCartRequest$1, RefreshCartResponse as RefreshCartResponse$1, CalculateCartRequest as CalculateCartRequest$1, CalculateCartResponse as CalculateCartResponse$1, GetCheckoutURLRequest as GetCheckoutURLRequest$1, GetCheckoutURLResponse as GetCheckoutURLResponse$1, PlaceOrderRequest as PlaceOrderRequest$1, PlaceOrderResponse as PlaceOrderResponse$1, AddLineItemsRequest as AddLineItemsRequest$1, AddLineItemsResponse as AddLineItemsResponse$1, RemoveLineItemsRequest as RemoveLineItemsRequest$1, RemoveLineItemsResponse as RemoveLineItemsResponse$1, UpdateLineItemsRequest as UpdateLineItemsRequest$1, UpdateLineItemsResponse as UpdateLineItemsResponse$1, AddCouponRequest as AddCouponRequest$1, AddCouponResponse as AddCouponResponse$1, RemoveCouponRequest as RemoveCouponRequest$1, RemoveCouponResponse as RemoveCouponResponse$1, SetDeliveryMethodRequest as SetDeliveryMethodRequest$1, SetDeliveryMethodResponse as SetDeliveryMethodResponse$1, AddGiftCardRequest as AddGiftCardRequest$1, AddGiftCardResponse as AddGiftCardResponse$1, RemoveGiftCardRequest as RemoveGiftCardRequest$1, RemoveGiftCardResponse as RemoveGiftCardResponse$1, MarkCartAsCompletedRequest as MarkCartAsCompletedRequest$1, MarkCartAsCompletedResponse as MarkCartAsCompletedResponse$1, HandleAsyncCheckoutCompletionRequest as HandleAsyncCheckoutCompletionRequest$1, RawHttpResponse as RawHttpResponse$1, UpdateFormSubmissionsRequest as UpdateFormSubmissionsRequest$1, UpdateFormSubmissionsResponse as UpdateFormSubmissionsResponse$1 } from './index.typings.js';
|
|
1
|
+
import { CreateCartRequest as CreateCartRequest$1, CreateCartResponse as CreateCartResponse$1, GetCartRequest as GetCartRequest$1, GetCartResponse as GetCartResponse$1, UpdateCartRequest as UpdateCartRequest$1, UpdateCartResponse as UpdateCartResponse$1, DeleteCartRequest as DeleteCartRequest$1, DeleteCartResponse as DeleteCartResponse$1, RefreshCartRequest as RefreshCartRequest$1, RefreshCartResponse as RefreshCartResponse$1, EstimateCartRequest as EstimateCartRequest$1, EstimateCartResponse as EstimateCartResponse$1, CalculateCartRequest as CalculateCartRequest$1, CalculateCartResponse as CalculateCartResponse$1, GetCheckoutURLRequest as GetCheckoutURLRequest$1, GetCheckoutURLResponse as GetCheckoutURLResponse$1, PlaceOrderRequest as PlaceOrderRequest$1, PlaceOrderResponse as PlaceOrderResponse$1, AddLineItemsRequest as AddLineItemsRequest$1, AddLineItemsResponse as AddLineItemsResponse$1, RemoveLineItemsRequest as RemoveLineItemsRequest$1, RemoveLineItemsResponse as RemoveLineItemsResponse$1, UpdateLineItemsRequest as UpdateLineItemsRequest$1, UpdateLineItemsResponse as UpdateLineItemsResponse$1, AddCouponRequest as AddCouponRequest$1, AddCouponResponse as AddCouponResponse$1, RemoveCouponRequest as RemoveCouponRequest$1, RemoveCouponResponse as RemoveCouponResponse$1, SetDeliveryMethodRequest as SetDeliveryMethodRequest$1, SetDeliveryMethodResponse as SetDeliveryMethodResponse$1, AddGiftCardRequest as AddGiftCardRequest$1, AddGiftCardResponse as AddGiftCardResponse$1, RemoveGiftCardRequest as RemoveGiftCardRequest$1, RemoveGiftCardResponse as RemoveGiftCardResponse$1, MarkCartAsCompletedRequest as MarkCartAsCompletedRequest$1, MarkCartAsCompletedResponse as MarkCartAsCompletedResponse$1, HandleAsyncCheckoutCompletionRequest as HandleAsyncCheckoutCompletionRequest$1, RawHttpResponse as RawHttpResponse$1, UpdateFormSubmissionsRequest as UpdateFormSubmissionsRequest$1, UpdateFormSubmissionsResponse as UpdateFormSubmissionsResponse$1 } from './index.typings.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface Cart {
|
|
@@ -1666,7 +1666,22 @@ interface V2AdditionalFee {
|
|
|
1666
1666
|
* @max 999
|
|
1667
1667
|
*/
|
|
1668
1668
|
subscriptionCycles?: number | null;
|
|
1669
|
+
/** Additional fee's source. */
|
|
1670
|
+
source?: SourceWithLiterals;
|
|
1669
1671
|
}
|
|
1672
|
+
declare enum Source {
|
|
1673
|
+
UNKNOWN_ADDITIONAL_FEE_SOURCE = "UNKNOWN_ADDITIONAL_FEE_SOURCE",
|
|
1674
|
+
/** The additional fee was added by an additional fee service plugin. */
|
|
1675
|
+
SERVICE_PLUGIN = "SERVICE_PLUGIN",
|
|
1676
|
+
/** The additional fee was added on the item either via the catalog or on custom line item. */
|
|
1677
|
+
LINE_ITEM = "LINE_ITEM",
|
|
1678
|
+
/** The additional fee was added by the delivery provider. */
|
|
1679
|
+
DELIVERY = "DELIVERY",
|
|
1680
|
+
/** The additional fee was added by a Wix vertical and represents a Wix platform fee. */
|
|
1681
|
+
PLATFORM = "PLATFORM"
|
|
1682
|
+
}
|
|
1683
|
+
/** @enumType */
|
|
1684
|
+
type SourceWithLiterals = Source | 'UNKNOWN_ADDITIONAL_FEE_SOURCE' | 'SERVICE_PLUGIN' | 'LINE_ITEM' | 'DELIVERY' | 'PLATFORM';
|
|
1670
1685
|
interface V2TaxSummary {
|
|
1671
1686
|
/**
|
|
1672
1687
|
* List of taxes applied to the cart.
|
|
@@ -2611,6 +2626,46 @@ interface CalculateCurrentCartResponse {
|
|
|
2611
2626
|
/** The calculation summary. */
|
|
2612
2627
|
summary?: CartSummary;
|
|
2613
2628
|
}
|
|
2629
|
+
interface EstimateCurrentCartRequest {
|
|
2630
|
+
/**
|
|
2631
|
+
* Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before estimating the cart.
|
|
2632
|
+
*
|
|
2633
|
+
* Default: `false`
|
|
2634
|
+
*/
|
|
2635
|
+
refreshCart?: boolean;
|
|
2636
|
+
/**
|
|
2637
|
+
* Specifies the level of **business validation** to perform during cart calculation,
|
|
2638
|
+
* by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
|
|
2639
|
+
*/
|
|
2640
|
+
validationConfig?: ValidationsConfigWithLiterals;
|
|
2641
|
+
/**
|
|
2642
|
+
* Whether to calculate delivery costs.
|
|
2643
|
+
* Default: false
|
|
2644
|
+
*/
|
|
2645
|
+
calculateDelivery?: boolean;
|
|
2646
|
+
/**
|
|
2647
|
+
* Whether to calculate any additional fees.
|
|
2648
|
+
* Default: false
|
|
2649
|
+
*/
|
|
2650
|
+
calculateAdditionalFees?: boolean;
|
|
2651
|
+
/**
|
|
2652
|
+
* Whether to include tax calculation.
|
|
2653
|
+
* Default: false
|
|
2654
|
+
*/
|
|
2655
|
+
calculateTax?: boolean;
|
|
2656
|
+
/**
|
|
2657
|
+
* Whether to calculate the effect of gift card balances on the cart total.
|
|
2658
|
+
* Gift cards are not redeemed - only reflected for estimation purposes.
|
|
2659
|
+
* Default: false
|
|
2660
|
+
*/
|
|
2661
|
+
calculateGiftCards?: boolean;
|
|
2662
|
+
}
|
|
2663
|
+
interface EstimateCurrentCartResponse {
|
|
2664
|
+
/** The Cart that was calculated. */
|
|
2665
|
+
cart?: Cart;
|
|
2666
|
+
/** The calculation summary. */
|
|
2667
|
+
summary?: CartSummary;
|
|
2668
|
+
}
|
|
2614
2669
|
interface AddLineItemsToCurrentCartRequest {
|
|
2615
2670
|
/**
|
|
2616
2671
|
* A list of catalog items to add to the cart.
|
|
@@ -3020,6 +3075,51 @@ interface RefreshCartResponse {
|
|
|
3020
3075
|
/** Synchronized Cart. */
|
|
3021
3076
|
cart?: Cart;
|
|
3022
3077
|
}
|
|
3078
|
+
interface EstimateCartRequest {
|
|
3079
|
+
/**
|
|
3080
|
+
* ID of the Cart to calculate.
|
|
3081
|
+
* @format GUID
|
|
3082
|
+
*/
|
|
3083
|
+
cartId: string;
|
|
3084
|
+
/**
|
|
3085
|
+
* Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before estimating the cart.
|
|
3086
|
+
*
|
|
3087
|
+
* Default: `false`
|
|
3088
|
+
*/
|
|
3089
|
+
refreshCart?: boolean;
|
|
3090
|
+
/**
|
|
3091
|
+
* Specifies the level of **business validation** to perform during cart calculation,
|
|
3092
|
+
* by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
|
|
3093
|
+
*/
|
|
3094
|
+
validationConfig?: ValidationsConfigWithLiterals;
|
|
3095
|
+
/**
|
|
3096
|
+
* Whether to calculate delivery costs.
|
|
3097
|
+
* Default: false
|
|
3098
|
+
*/
|
|
3099
|
+
calculateDelivery?: boolean;
|
|
3100
|
+
/**
|
|
3101
|
+
* Whether to calculate any additional fees.
|
|
3102
|
+
* Default: false
|
|
3103
|
+
*/
|
|
3104
|
+
calculateAdditionalFees?: boolean;
|
|
3105
|
+
/**
|
|
3106
|
+
* Whether to include tax calculation.
|
|
3107
|
+
* Default: false
|
|
3108
|
+
*/
|
|
3109
|
+
calculateTax?: boolean;
|
|
3110
|
+
/**
|
|
3111
|
+
* Whether to calculate the effect of gift card balances on the cart total.
|
|
3112
|
+
* Gift cards are not redeemed - only reflected for estimation purposes.
|
|
3113
|
+
* Default: false
|
|
3114
|
+
*/
|
|
3115
|
+
calculateGiftCards?: boolean;
|
|
3116
|
+
}
|
|
3117
|
+
interface EstimateCartResponse {
|
|
3118
|
+
/** The Cart that was calculated. */
|
|
3119
|
+
cart?: Cart;
|
|
3120
|
+
/** The calculation summary. */
|
|
3121
|
+
summary?: CartSummary;
|
|
3122
|
+
}
|
|
3023
3123
|
interface CalculateCartRequest {
|
|
3024
3124
|
/**
|
|
3025
3125
|
* ID of the Cart to calculate.
|
|
@@ -4564,6 +4664,12 @@ type RefreshCartApplicationErrors = {
|
|
|
4564
4664
|
data?: CartAlreadyOrderedErrorData;
|
|
4565
4665
|
};
|
|
4566
4666
|
/** @docsIgnore */
|
|
4667
|
+
type EstimateCartApplicationErrors = {
|
|
4668
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4669
|
+
description?: string;
|
|
4670
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4671
|
+
};
|
|
4672
|
+
/** @docsIgnore */
|
|
4567
4673
|
type CalculateCartApplicationErrors = {
|
|
4568
4674
|
code?: 'CART_ALREADY_ORDERED';
|
|
4569
4675
|
description?: string;
|
|
@@ -4893,6 +4999,9 @@ declare function deleteCart(): __PublicMethodMetaInfo<'DELETE', {
|
|
|
4893
4999
|
declare function refreshCart(): __PublicMethodMetaInfo<'POST', {
|
|
4894
5000
|
cartId: string;
|
|
4895
5001
|
}, RefreshCartRequest$1, RefreshCartRequest, RefreshCartResponse$1, RefreshCartResponse>;
|
|
5002
|
+
declare function estimateCart(): __PublicMethodMetaInfo<'POST', {
|
|
5003
|
+
cartId: string;
|
|
5004
|
+
}, EstimateCartRequest$1, EstimateCartRequest, EstimateCartResponse$1, EstimateCartResponse>;
|
|
4896
5005
|
declare function calculateCart(): __PublicMethodMetaInfo<'POST', {
|
|
4897
5006
|
cartId: string;
|
|
4898
5007
|
}, CalculateCartRequest$1, CalculateCartRequest, CalculateCartResponse$1, CalculateCartResponse>;
|
|
@@ -4934,4 +5043,4 @@ declare function updateFormSubmissions(): __PublicMethodMetaInfo<'POST', {
|
|
|
4934
5043
|
cartId: string;
|
|
4935
5044
|
}, UpdateFormSubmissionsRequest$1, UpdateFormSubmissionsRequest, UpdateFormSubmissionsResponse$1, UpdateFormSubmissionsResponse>;
|
|
4936
5045
|
|
|
4937
|
-
export { type ActionEvent as ActionEventOriginal, type AddCouponApplicationErrors as AddCouponApplicationErrorsOriginal, type AddCouponRequest as AddCouponRequestOriginal, type AddCouponResponse as AddCouponResponseOriginal, type AddCouponToCurrentCartRequest as AddCouponToCurrentCartRequestOriginal, type AddCouponToCurrentCartResponse as AddCouponToCurrentCartResponseOriginal, type AddGiftCardApplicationErrors as AddGiftCardApplicationErrorsOriginal, type AddGiftCardRequest as AddGiftCardRequestOriginal, type AddGiftCardResponse as AddGiftCardResponseOriginal, type AddGiftCardToCurrentCartRequest as AddGiftCardToCurrentCartRequestOriginal, type AddGiftCardToCurrentCartResponse as AddGiftCardToCurrentCartResponseOriginal, type AddLineItemsApplicationErrors as AddLineItemsApplicationErrorsOriginal, type AddLineItemsRequest as AddLineItemsRequestOriginal, type AddLineItemsResponse as AddLineItemsResponseOriginal, type AddLineItemsToCurrentCartRequest as AddLineItemsToCurrentCartRequestOriginal, type AddLineItemsToCurrentCartResponse as AddLineItemsToCurrentCartResponseOriginal, type AdditionalFee as AdditionalFeeOriginal, AdditionalFeeSource as AdditionalFeeSourceOriginal, type AdditionalFeeSourceWithLiterals as AdditionalFeeSourceWithLiteralsOriginal, type AdditionalFeeTax as AdditionalFeeTaxOriginal, type AddressLocation as AddressLocationOriginal, type Address as AddressOriginal, type AggregatedTaxBreakdown as AggregatedTaxBreakdownOriginal, type AllLineItemsOutOfStockErrorData as AllLineItemsOutOfStockErrorDataOriginal, type ApplicableLineItems as ApplicableLineItemsOriginal, type ApplicationError as ApplicationErrorOriginal, type AppliedDiscountDiscountSourceOneOf as AppliedDiscountDiscountSourceOneOfOriginal, type AppliedDiscount as AppliedDiscountOriginal, type AutoTaxFallbackCalculationDetails as AutoTaxFallbackCalculationDetailsOriginal, BalanceType as BalanceTypeOriginal, type BalanceTypeWithLiterals as BalanceTypeWithLiteralsOriginal, type BusinessInfo as BusinessInfoOriginal, type CalculateCartApplicationErrors as CalculateCartApplicationErrorsOriginal, type CalculateCartForV1Request as CalculateCartForV1RequestOriginal, type CalculateCartForV1Response as CalculateCartForV1ResponseOriginal, type CalculateCartRequest as CalculateCartRequestOriginal, type CalculateCartResponse as CalculateCartResponseOriginal, type CalculateCurrentCartRequest as CalculateCurrentCartRequestOriginal, type CalculateCurrentCartResponse as CalculateCurrentCartResponseOriginal, type CalculateTotalsResponse as CalculateTotalsResponseOriginal, type CalculatedItemModifier as CalculatedItemModifierOriginal, type CalculatedLineItem as CalculatedLineItemOriginal, type CalculatedPlatformFee as CalculatedPlatformFeeOriginal, type CalculationConfig as CalculationConfigOriginal, type CalculationErrors as CalculationErrorsOriginal, type CalculationErrorsShippingCalculationErrorOneOf as CalculationErrorsShippingCalculationErrorOneOfOriginal, type CalculationOverrides as CalculationOverridesOriginal, type CarrierError as CarrierErrorOriginal, type CarrierErrors as CarrierErrorsOriginal, type Carrier as CarrierOriginal, type CarrierServiceOption as CarrierServiceOptionOriginal, type CartAlreadyOrderedErrorData as CartAlreadyOrderedErrorDataOriginal, type Cart as CartOriginal, type CartSettings as CartSettingsOriginal, type CartSource as CartSourceOriginal, type CartSummary as CartSummaryOriginal, type CatalogItemInput as CatalogItemInputOriginal, type CatalogOverrideFields as CatalogOverrideFieldsOriginal, type CatalogReference as CatalogReferenceOriginal, ChannelType as ChannelTypeOriginal, type ChannelTypeWithLiterals as ChannelTypeWithLiteralsOriginal, type Charge as ChargeOriginal, ChargeType as ChargeTypeOriginal, type ChargeTypeWithLiterals as ChargeTypeWithLiteralsOriginal, CheckoutStage as CheckoutStageOriginal, type CheckoutStageWithLiterals as CheckoutStageWithLiteralsOriginal, type Color as ColorOriginal, type ConvertedMoney as ConvertedMoneyOriginal, type CouponAdded as CouponAddedOriginal, type CouponAlreadyExistsErrorData as CouponAlreadyExistsErrorDataOriginal, type CouponInput as CouponInputOriginal, type CouponNotFoundInCartErrorData as CouponNotFoundInCartErrorDataOriginal, type Coupon as CouponOriginal, type CouponRemoved as CouponRemovedOriginal, type CreateCartApplicationErrors as CreateCartApplicationErrorsOriginal, type CreateCartRequest as CreateCartRequestOriginal, type CreateCartResponse as CreateCartResponseOriginal, type CreateCurrentCartRequest as CreateCurrentCartRequestOriginal, type CreateCurrentCartResponse as CreateCurrentCartResponseOriginal, type CreatedByIdOneOf as CreatedByIdOneOfOriginal, type CreatedBy as CreatedByOriginal, type CustomContentReference as CustomContentReferenceOriginal, type CustomField as CustomFieldOriginal, type CustomItemAttributes as CustomItemAttributesOriginal, type CustomItemDeliveryConfig as CustomItemDeliveryConfigOriginal, type CustomItemInput as CustomItemInputOriginal, type CustomItemPaymentConfig as CustomItemPaymentConfigOriginal, type CustomItemPricingInfo as CustomItemPricingInfoOriginal, type CustomItemQuantityInfo as CustomItemQuantityInfoOriginal, type CustomItemSource as CustomItemSourceOriginal, type CustomItemTaxConfig as CustomItemTaxConfigOriginal, type CustomerInfoIdOneOf as CustomerInfoIdOneOfOriginal, type CustomerInfo as CustomerInfoOriginal, type DeleteCartRequest as DeleteCartRequestOriginal, type DeleteCartResponse as DeleteCartResponseOriginal, type DeleteCurrentCartRequest as DeleteCurrentCartRequestOriginal, type DeleteCurrentCartResponse as DeleteCurrentCartResponseOriginal, type DeliveryAllocation as DeliveryAllocationOriginal, type DeliveryInfo as DeliveryInfoOriginal, type DeliveryLogistics as DeliveryLogisticsOriginal, type DeliveryMethodInput as DeliveryMethodInputOriginal, type DeliveryMethodNotFoundErrorData as DeliveryMethodNotFoundErrorDataOriginal, type DeliveryMethod as DeliveryMethodOriginal, type DeliverySummary as DeliverySummaryOriginal, type DeliveryTimeSlot as DeliveryTimeSlotOriginal, type DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOfOriginal, type DescriptionLineName as DescriptionLineNameOriginal, type DescriptionLine as DescriptionLineOriginal, DescriptionLineType as DescriptionLineTypeOriginal, type DescriptionLineTypeWithLiterals as DescriptionLineTypeWithLiteralsOriginal, type DescriptionLineValueOneOf as DescriptionLineValueOneOfOriginal, type Description as DescriptionOriginal, type DetailsKindOneOf as DetailsKindOneOfOriginal, type Details as DetailsOriginal, type DiscountBenefit as DiscountBenefitOriginal, type DiscountBenefitValueOneOf as DiscountBenefitValueOneOfOriginal, type Discount as DiscountOriginal, type DiscountRuleName as DiscountRuleNameOriginal, type DiscountRule as DiscountRuleOriginal, DiscountScope as DiscountScopeOriginal, type DiscountScopeWithLiterals as DiscountScopeWithLiteralsOriginal, type DiscountSource as DiscountSourceOriginal, DiscountSourceType as DiscountSourceTypeOriginal, type DiscountSourceTypeWithLiterals as DiscountSourceTypeWithLiteralsOriginal, DiscountType as DiscountTypeOriginal, type DiscountTypeWithLiterals as DiscountTypeWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DuplicateItemModifierIdsErrorData as DuplicateItemModifierIdsErrorDataOriginal, type DuplicateLineItemUpdatesErrorData as DuplicateLineItemUpdatesErrorDataOriginal, type DuplicateModifierGroupIdsErrorData as DuplicateModifierGroupIdsErrorDataOriginal, type EmptyLineItemUpdatesErrorData as EmptyLineItemUpdatesErrorDataOriginal, type Empty as EmptyOriginal, type EmptyPaymentTokenErrorData as EmptyPaymentTokenErrorDataOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type ExternalReference as ExternalReferenceOriginal, FallbackReason as FallbackReasonOriginal, type FallbackReasonWithLiterals as FallbackReasonWithLiteralsOriginal, type FieldViolation as FieldViolationOriginal, FileType as FileTypeOriginal, type FileTypeWithLiterals as FileTypeWithLiteralsOriginal, type FixedQuantityItemErrorData as FixedQuantityItemErrorDataOriginal, type FormIdentifier as FormIdentifierOriginal, type FormInfo as FormInfoOriginal, type FormSubmission as FormSubmissionOriginal, type FreeTrialPeriod as FreeTrialPeriodOriginal, type FullAddressContactDetails as FullAddressContactDetailsOriginal, type GetCartRequest as GetCartRequestOriginal, type GetCartResponse as GetCartResponseOriginal, type GetCheckoutURLRequest as GetCheckoutURLRequestOriginal, type GetCheckoutURLResponse as GetCheckoutURLResponseOriginal, type GetCheckoutUrlApplicationErrors as GetCheckoutUrlApplicationErrorsOriginal, type GetCurrentCartRequest as GetCurrentCartRequestOriginal, type GetCurrentCartResponse as GetCurrentCartResponseOriginal, type GiftCardAdded as GiftCardAddedOriginal, type GiftCardAlreadyExistsErrorData as GiftCardAlreadyExistsErrorDataOriginal, type GiftCardInput as GiftCardInputOriginal, type GiftCardNotFoundInCartErrorData as GiftCardNotFoundInCartErrorDataOriginal, type GiftCard as GiftCardOriginal, type GiftCardRedeemErrorData as GiftCardRedeemErrorDataOriginal, type GiftCardRemoved as GiftCardRemovedOriginal, type GiftCardSummary as GiftCardSummaryOriginal, type Group as GroupOriginal, type HandleAsyncCheckoutCompletionRequest as HandleAsyncCheckoutCompletionRequestOriginal, type HeadersEntry as HeadersEntryOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type InsufficientInventoryEntry as InsufficientInventoryEntryOriginal, type InsufficientInventoryErrorData as InsufficientInventoryErrorDataOriginal, type InvalidCouponCodeErrorData as InvalidCouponCodeErrorDataOriginal, InvalidCouponReason as InvalidCouponReasonOriginal, type InvalidCouponReasonWithLiterals as InvalidCouponReasonWithLiteralsOriginal, type InvalidCouponStatusErrorDataDetailsOneOf as InvalidCouponStatusErrorDataDetailsOneOfOriginal, type InvalidCouponStatusErrorData as InvalidCouponStatusErrorDataOriginal, type InvalidGiftCardCodeErrorData as InvalidGiftCardCodeErrorDataOriginal, InvalidGiftCardReason as InvalidGiftCardReasonOriginal, type InvalidGiftCardReasonWithLiterals as InvalidGiftCardReasonWithLiteralsOriginal, type InvalidGiftCardStatusErrorData as InvalidGiftCardStatusErrorDataOriginal, type InvalidMembershipEntry as InvalidMembershipEntryOriginal, type InvalidMembershipErrorData as InvalidMembershipErrorDataOriginal, type InvalidMembership as InvalidMembershipOriginal, type InvalidMembershipPaymentOptionErrorData as InvalidMembershipPaymentOptionErrorDataOriginal, type InvalidPaymentStatusErrorData as InvalidPaymentStatusErrorDataOriginal, type InvalidPriceVerificationTokenErrorData as InvalidPriceVerificationTokenErrorDataOriginal, type InvalidThirdPartyCheckoutTokenErrorData as InvalidThirdPartyCheckoutTokenErrorDataOriginal, type ItemAttributes as ItemAttributesOriginal, type ItemCombinationLineItem as ItemCombinationLineItemOriginal, type ItemCombination as ItemCombinationOriginal, type ItemDeliveryConfig as ItemDeliveryConfigOriginal, type ItemDiscount as ItemDiscountOriginal, type ItemModifier as ItemModifierOriginal, type ItemNotFoundInCatalogErrorData as ItemNotFoundInCatalogErrorDataOriginal, type ItemPaymentConfig as ItemPaymentConfigOriginal, type ItemPriceBreakdown as ItemPriceBreakdownOriginal, type ItemPricingInfo as ItemPricingInfoOriginal, type ItemQuantityInfo as ItemQuantityInfoOriginal, type ItemSource as ItemSourceOriginal, ItemStatus as ItemStatusOriginal, type ItemStatusWithLiterals as ItemStatusWithLiteralsOriginal, type ItemTaxConfig as ItemTaxConfigOriginal, type ItemTaxFullDetails as ItemTaxFullDetailsOriginal, type ItemTypeItemTypeDataOneOf as ItemTypeItemTypeDataOneOfOriginal, type ItemType as ItemTypeOriginal, ItemTypePreset as ItemTypePresetOriginal, type ItemTypePresetWithLiterals as ItemTypePresetWithLiteralsOriginal, JurisdictionType as JurisdictionTypeOriginal, type JurisdictionTypeWithLiterals as JurisdictionTypeWithLiteralsOriginal, type LegacyFields as LegacyFieldsOriginal, type LineItemAdded as LineItemAddedOriginal, type LineItemDiscount as LineItemDiscountOriginal, type LineItemIdentifierIdOneOf as LineItemIdentifierIdOneOfOriginal, type LineItemIdentifier as LineItemIdentifierOriginal, type LineItemNotFoundInCartErrorData as LineItemNotFoundInCartErrorDataOriginal, type LineItem as LineItemOriginal, type LineItemPriceConflictErrorData as LineItemPriceConflictErrorDataOriginal, type LineItemPricesData as LineItemPricesDataOriginal, type LineItemSummary as LineItemSummaryOriginal, type LineItemTax as LineItemTaxOriginal, type LineItemUpdate as LineItemUpdateOriginal, ManualCalculationReason as ManualCalculationReasonOriginal, type ManualCalculationReasonWithLiterals as ManualCalculationReasonWithLiteralsOriginal, type MarkCartAsCompletedRequest as MarkCartAsCompletedRequestOriginal, type MarkCartAsCompletedResponse as MarkCartAsCompletedResponseOriginal, type MaxItemModifiersExceededErrorData as MaxItemModifiersExceededErrorDataOriginal, type MaxLineItemsExceededErrorData as MaxLineItemsExceededErrorDataOriginal, type MembersOnlyItemErrorData as MembersOnlyItemErrorDataOriginal, type MembershipName as MembershipNameOriginal, type MembershipOptions as MembershipOptionsOriginal, type Membership as MembershipOriginal, type MembershipPaymentCredits as MembershipPaymentCreditsOriginal, type MerchantDiscount as MerchantDiscountOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MinLineItemQuantityNotReachedDetails as MinLineItemQuantityNotReachedDetailsOriginal, type MinSubtotalNotReachedDetails as MinSubtotalNotReachedDetailsOriginal, type ModifierGroup as ModifierGroupOriginal, type MultiCurrencyPrice as MultiCurrencyPriceOriginal, NameInLineItem as NameInLineItemOriginal, type NameInLineItemWithLiterals as NameInLineItemWithLiteralsOriginal, NameInOther as NameInOtherOriginal, type NameInOtherWithLiterals as NameInOtherWithLiteralsOriginal, type OtherCharge as OtherChargeOriginal, type Other as OtherOriginal, type PageUrlV2 as PageUrlV2Original, type PaymentInfo as PaymentInfoOriginal, type PaymentOption as PaymentOptionOriginal, PaymentOptionType as PaymentOptionTypeOriginal, type PaymentOptionTypeWithLiterals as PaymentOptionTypeWithLiteralsOriginal, type PaymentSummary as PaymentSummaryOriginal, type PhysicalProperties as PhysicalPropertiesOriginal, type PickupDetails as PickupDetailsOriginal, PickupMethod as PickupMethodOriginal, type PickupMethodWithLiterals as PickupMethodWithLiteralsOriginal, type PlaceOrderApplicationErrors as PlaceOrderApplicationErrorsOriginal, type PlaceOrderRequest as PlaceOrderRequestOriginal, type PlaceOrderResponse as PlaceOrderResponseOriginal, type PlainTextValue as PlainTextValueOriginal, PlatformFeeChargeType as PlatformFeeChargeTypeOriginal, type PlatformFeeChargeTypeWithLiterals as PlatformFeeChargeTypeWithLiteralsOriginal, type PlatformFeeSummary as PlatformFeeSummaryOriginal, type Policy as PolicyOriginal, type PriceDescription as PriceDescriptionOriginal, type PriceSummary as PriceSummaryOriginal, type QuantityUpdate as QuantityUpdateOriginal, RateType as RateTypeOriginal, type RateTypeWithLiterals as RateTypeWithLiteralsOriginal, type RawHttpResponse as RawHttpResponseOriginal, type RedirectUrls as RedirectUrlsOriginal, type RefreshCartApplicationErrors as RefreshCartApplicationErrorsOriginal, type RefreshCartRequest as RefreshCartRequestOriginal, type RefreshCartResponse as RefreshCartResponseOriginal, type RefreshCurrentCartRequest as RefreshCurrentCartRequestOriginal, type RefreshCurrentCartResponse as RefreshCurrentCartResponseOriginal, type Region as RegionOriginal, type RemoveCouponApplicationErrors as RemoveCouponApplicationErrorsOriginal, type RemoveCouponFromCurrentCartRequest as RemoveCouponFromCurrentCartRequestOriginal, type RemoveCouponFromCurrentCartResponse as RemoveCouponFromCurrentCartResponseOriginal, type RemoveCouponRequest as RemoveCouponRequestOriginal, type RemoveCouponResponse as RemoveCouponResponseOriginal, type RemoveGiftCardApplicationErrors as RemoveGiftCardApplicationErrorsOriginal, type RemoveGiftCardFromCurrentCartRequest as RemoveGiftCardFromCurrentCartRequestOriginal, type RemoveGiftCardFromCurrentCartResponse as RemoveGiftCardFromCurrentCartResponseOriginal, type RemoveGiftCardRequest as RemoveGiftCardRequestOriginal, type RemoveGiftCardResponse as RemoveGiftCardResponseOriginal, type RemoveLineItemsApplicationErrors as RemoveLineItemsApplicationErrorsOriginal, type RemoveLineItemsFromCurrentCartRequest as RemoveLineItemsFromCurrentCartRequestOriginal, type RemoveLineItemsFromCurrentCartResponse as RemoveLineItemsFromCurrentCartResponseOriginal, type RemoveLineItemsRequest as RemoveLineItemsRequestOriginal, type RemoveLineItemsResponse as RemoveLineItemsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, RuleType as RuleTypeOriginal, type RuleTypeWithLiterals as RuleTypeWithLiteralsOriginal, type Scope as ScopeOriginal, type SecuredMedia as SecuredMediaOriginal, type SelectedCarrierServiceOption as SelectedCarrierServiceOptionOriginal, type SelectedCarrierServiceOptionOtherCharge as SelectedCarrierServiceOptionOtherChargeOriginal, type SelectedCarrierServiceOptionPrices as SelectedCarrierServiceOptionPricesOriginal, type SelectedMembership as SelectedMembershipOriginal, type SelectedMembershipUpdate as SelectedMembershipUpdateOriginal, type SelectedMemberships as SelectedMembershipsOriginal, type ServiceProperties as ServicePropertiesOriginal, type SetDeliveryMethodApplicationErrors as SetDeliveryMethodApplicationErrorsOriginal, type SetDeliveryMethodForCurrentCartRequest as SetDeliveryMethodForCurrentCartRequestOriginal, type SetDeliveryMethodForCurrentCartResponse as SetDeliveryMethodForCurrentCartResponseOriginal, type SetDeliveryMethodRequest as SetDeliveryMethodRequestOriginal, type SetDeliveryMethodResponse as SetDeliveryMethodResponseOriginal, Severity as SeverityOriginal, type SeverityWithLiterals as SeverityWithLiteralsOriginal, type ShippingInformation as ShippingInformationOriginal, type ShippingOption as ShippingOptionOriginal, type ShippingPrice as ShippingPriceOriginal, type ShippingRegion as ShippingRegionOriginal, type SomeLineItemsOutOfStockErrorData as SomeLineItemsOutOfStockErrorDataOriginal, type Stage as StageOriginal, type StageStagesOneOf as StageStagesOneOfOriginal, type StreetAddress as StreetAddressOriginal, type SubscriptionCharges as SubscriptionChargesOriginal, SubscriptionFrequency as SubscriptionFrequencyOriginal, type SubscriptionFrequencyWithLiterals as SubscriptionFrequencyWithLiteralsOriginal, type SubscriptionOptionInfo as SubscriptionOptionInfoOriginal, type SubscriptionSettings as SubscriptionSettingsOriginal, SuggestedFix as SuggestedFixOriginal, type SuggestedFixWithLiterals as SuggestedFixWithLiteralsOriginal, type SystemError as SystemErrorOriginal, type Target as TargetOriginal, type TargetTargetTypeOneOf as TargetTargetTypeOneOfOriginal, type TaxBreakdown as TaxBreakdownOriginal, type TaxCalculationDetailsCalculationDetailsOneOf as TaxCalculationDetailsCalculationDetailsOneOfOriginal, type TaxCalculationDetails as TaxCalculationDetailsOriginal, type TaxDetails as TaxDetailsOriginal, type TaxInfo as TaxInfoOriginal, type Tax as TaxOriginal, type TaxRateBreakdown as TaxRateBreakdownOriginal, type TaxSummary as TaxSummaryOriginal, type TaxableAddress as TaxableAddressOriginal, type TaxableAddressTaxableAddressDataOneOf as TaxableAddressTaxableAddressDataOneOfOriginal, TaxableAddressType as TaxableAddressTypeOriginal, type TaxableAddressTypeWithLiterals as TaxableAddressTypeWithLiteralsOriginal, type Title as TitleOriginal, type TranslatableString as TranslatableStringOriginal, type UnmarkAsCurrentCartRequest as UnmarkAsCurrentCartRequestOriginal, type UnmarkAsCurrentCartResponse as UnmarkAsCurrentCartResponseOriginal, type UpdateCartApplicationErrors as UpdateCartApplicationErrorsOriginal, type UpdateCartRequest as UpdateCartRequestOriginal, type UpdateCartResponse as UpdateCartResponseOriginal, type UpdateCurrentCartRequest as UpdateCurrentCartRequestOriginal, type UpdateCurrentCartResponse as UpdateCurrentCartResponseOriginal, type UpdateFormSubmissionsInCurrentCartRequest as UpdateFormSubmissionsInCurrentCartRequestOriginal, type UpdateFormSubmissionsInCurrentCartResponse as UpdateFormSubmissionsInCurrentCartResponseOriginal, type UpdateFormSubmissionsRequest as UpdateFormSubmissionsRequestOriginal, type UpdateFormSubmissionsResponse as UpdateFormSubmissionsResponseOriginal, type UpdateLineItemsApplicationErrors as UpdateLineItemsApplicationErrorsOriginal, type UpdateLineItemsInCurrentCartRequest as UpdateLineItemsInCurrentCartRequestOriginal, type UpdateLineItemsInCurrentCartResponse as UpdateLineItemsInCurrentCartResponseOriginal, type UpdateLineItemsRequest as UpdateLineItemsRequestOriginal, type UpdateLineItemsResponse as UpdateLineItemsResponseOriginal, type V1AdditionalFee as V1AdditionalFeeOriginal, type V2AdditionalFee as V2AdditionalFeeOriginal, type V2CalculationErrors as V2CalculationErrorsOriginal, type V2CalculationErrorsShippingCalculationErrorOneOf as V2CalculationErrorsShippingCalculationErrorOneOfOriginal, type V2CarrierError as V2CarrierErrorOriginal, type V2CarrierErrors as V2CarrierErrorsOriginal, type V2Coupon as V2CouponOriginal, type V2GiftCard as V2GiftCardOriginal, type V2LineItem as V2LineItemOriginal, type V2Membership as V2MembershipOriginal, type V2PriceSummary as V2PriceSummaryOriginal, type V2SelectedMembership as V2SelectedMembershipOriginal, type V2TaxSummary as V2TaxSummaryOriginal, type ValidationError as ValidationErrorOriginal, ValidationsConfig as ValidationsConfigOriginal, type ValidationsConfigWithLiterals as ValidationsConfigWithLiteralsOriginal, type VatId as VatIdOriginal, VatType as VatTypeOriginal, type VatTypeWithLiterals as VatTypeWithLiteralsOriginal, type Violation as ViolationOriginal, type ViolationWithErrorSeverityErrorData as ViolationWithErrorSeverityErrorDataOriginal, type ViolationsList as ViolationsListOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, WeightUnit as WeightUnitOriginal, type WeightUnitWithLiterals as WeightUnitWithLiteralsOriginal, type __PublicMethodMetaInfo, addCoupon, addGiftCard, addLineItems, calculateCart, createCart, deleteCart, getCart, getCheckoutUrl, handleAsyncCheckoutCompletion, markCartAsCompleted, placeOrder, refreshCart, removeCoupon, removeGiftCard, removeLineItems, setDeliveryMethod, updateCart, updateFormSubmissions, updateLineItems };
|
|
5046
|
+
export { type ActionEvent as ActionEventOriginal, type AddCouponApplicationErrors as AddCouponApplicationErrorsOriginal, type AddCouponRequest as AddCouponRequestOriginal, type AddCouponResponse as AddCouponResponseOriginal, type AddCouponToCurrentCartRequest as AddCouponToCurrentCartRequestOriginal, type AddCouponToCurrentCartResponse as AddCouponToCurrentCartResponseOriginal, type AddGiftCardApplicationErrors as AddGiftCardApplicationErrorsOriginal, type AddGiftCardRequest as AddGiftCardRequestOriginal, type AddGiftCardResponse as AddGiftCardResponseOriginal, type AddGiftCardToCurrentCartRequest as AddGiftCardToCurrentCartRequestOriginal, type AddGiftCardToCurrentCartResponse as AddGiftCardToCurrentCartResponseOriginal, type AddLineItemsApplicationErrors as AddLineItemsApplicationErrorsOriginal, type AddLineItemsRequest as AddLineItemsRequestOriginal, type AddLineItemsResponse as AddLineItemsResponseOriginal, type AddLineItemsToCurrentCartRequest as AddLineItemsToCurrentCartRequestOriginal, type AddLineItemsToCurrentCartResponse as AddLineItemsToCurrentCartResponseOriginal, type AdditionalFee as AdditionalFeeOriginal, AdditionalFeeSource as AdditionalFeeSourceOriginal, type AdditionalFeeSourceWithLiterals as AdditionalFeeSourceWithLiteralsOriginal, type AdditionalFeeTax as AdditionalFeeTaxOriginal, type AddressLocation as AddressLocationOriginal, type Address as AddressOriginal, type AggregatedTaxBreakdown as AggregatedTaxBreakdownOriginal, type AllLineItemsOutOfStockErrorData as AllLineItemsOutOfStockErrorDataOriginal, type ApplicableLineItems as ApplicableLineItemsOriginal, type ApplicationError as ApplicationErrorOriginal, type AppliedDiscountDiscountSourceOneOf as AppliedDiscountDiscountSourceOneOfOriginal, type AppliedDiscount as AppliedDiscountOriginal, type AutoTaxFallbackCalculationDetails as AutoTaxFallbackCalculationDetailsOriginal, BalanceType as BalanceTypeOriginal, type BalanceTypeWithLiterals as BalanceTypeWithLiteralsOriginal, type BusinessInfo as BusinessInfoOriginal, type CalculateCartApplicationErrors as CalculateCartApplicationErrorsOriginal, type CalculateCartForV1Request as CalculateCartForV1RequestOriginal, type CalculateCartForV1Response as CalculateCartForV1ResponseOriginal, type CalculateCartRequest as CalculateCartRequestOriginal, type CalculateCartResponse as CalculateCartResponseOriginal, type CalculateCurrentCartRequest as CalculateCurrentCartRequestOriginal, type CalculateCurrentCartResponse as CalculateCurrentCartResponseOriginal, type CalculateTotalsResponse as CalculateTotalsResponseOriginal, type CalculatedItemModifier as CalculatedItemModifierOriginal, type CalculatedLineItem as CalculatedLineItemOriginal, type CalculatedPlatformFee as CalculatedPlatformFeeOriginal, type CalculationConfig as CalculationConfigOriginal, type CalculationErrors as CalculationErrorsOriginal, type CalculationErrorsShippingCalculationErrorOneOf as CalculationErrorsShippingCalculationErrorOneOfOriginal, type CalculationOverrides as CalculationOverridesOriginal, type CarrierError as CarrierErrorOriginal, type CarrierErrors as CarrierErrorsOriginal, type Carrier as CarrierOriginal, type CarrierServiceOption as CarrierServiceOptionOriginal, type CartAlreadyOrderedErrorData as CartAlreadyOrderedErrorDataOriginal, type Cart as CartOriginal, type CartSettings as CartSettingsOriginal, type CartSource as CartSourceOriginal, type CartSummary as CartSummaryOriginal, type CatalogItemInput as CatalogItemInputOriginal, type CatalogOverrideFields as CatalogOverrideFieldsOriginal, type CatalogReference as CatalogReferenceOriginal, ChannelType as ChannelTypeOriginal, type ChannelTypeWithLiterals as ChannelTypeWithLiteralsOriginal, type Charge as ChargeOriginal, ChargeType as ChargeTypeOriginal, type ChargeTypeWithLiterals as ChargeTypeWithLiteralsOriginal, CheckoutStage as CheckoutStageOriginal, type CheckoutStageWithLiterals as CheckoutStageWithLiteralsOriginal, type Color as ColorOriginal, type ConvertedMoney as ConvertedMoneyOriginal, type CouponAdded as CouponAddedOriginal, type CouponAlreadyExistsErrorData as CouponAlreadyExistsErrorDataOriginal, type CouponInput as CouponInputOriginal, type CouponNotFoundInCartErrorData as CouponNotFoundInCartErrorDataOriginal, type Coupon as CouponOriginal, type CouponRemoved as CouponRemovedOriginal, type CreateCartApplicationErrors as CreateCartApplicationErrorsOriginal, type CreateCartRequest as CreateCartRequestOriginal, type CreateCartResponse as CreateCartResponseOriginal, type CreateCurrentCartRequest as CreateCurrentCartRequestOriginal, type CreateCurrentCartResponse as CreateCurrentCartResponseOriginal, type CreatedByIdOneOf as CreatedByIdOneOfOriginal, type CreatedBy as CreatedByOriginal, type CustomContentReference as CustomContentReferenceOriginal, type CustomField as CustomFieldOriginal, type CustomItemAttributes as CustomItemAttributesOriginal, type CustomItemDeliveryConfig as CustomItemDeliveryConfigOriginal, type CustomItemInput as CustomItemInputOriginal, type CustomItemPaymentConfig as CustomItemPaymentConfigOriginal, type CustomItemPricingInfo as CustomItemPricingInfoOriginal, type CustomItemQuantityInfo as CustomItemQuantityInfoOriginal, type CustomItemSource as CustomItemSourceOriginal, type CustomItemTaxConfig as CustomItemTaxConfigOriginal, type CustomerInfoIdOneOf as CustomerInfoIdOneOfOriginal, type CustomerInfo as CustomerInfoOriginal, type DeleteCartRequest as DeleteCartRequestOriginal, type DeleteCartResponse as DeleteCartResponseOriginal, type DeleteCurrentCartRequest as DeleteCurrentCartRequestOriginal, type DeleteCurrentCartResponse as DeleteCurrentCartResponseOriginal, type DeliveryAllocation as DeliveryAllocationOriginal, type DeliveryInfo as DeliveryInfoOriginal, type DeliveryLogistics as DeliveryLogisticsOriginal, type DeliveryMethodInput as DeliveryMethodInputOriginal, type DeliveryMethodNotFoundErrorData as DeliveryMethodNotFoundErrorDataOriginal, type DeliveryMethod as DeliveryMethodOriginal, type DeliverySummary as DeliverySummaryOriginal, type DeliveryTimeSlot as DeliveryTimeSlotOriginal, type DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOfOriginal, type DescriptionLineName as DescriptionLineNameOriginal, type DescriptionLine as DescriptionLineOriginal, DescriptionLineType as DescriptionLineTypeOriginal, type DescriptionLineTypeWithLiterals as DescriptionLineTypeWithLiteralsOriginal, type DescriptionLineValueOneOf as DescriptionLineValueOneOfOriginal, type Description as DescriptionOriginal, type DetailsKindOneOf as DetailsKindOneOfOriginal, type Details as DetailsOriginal, type DiscountBenefit as DiscountBenefitOriginal, type DiscountBenefitValueOneOf as DiscountBenefitValueOneOfOriginal, type Discount as DiscountOriginal, type DiscountRuleName as DiscountRuleNameOriginal, type DiscountRule as DiscountRuleOriginal, DiscountScope as DiscountScopeOriginal, type DiscountScopeWithLiterals as DiscountScopeWithLiteralsOriginal, type DiscountSource as DiscountSourceOriginal, DiscountSourceType as DiscountSourceTypeOriginal, type DiscountSourceTypeWithLiterals as DiscountSourceTypeWithLiteralsOriginal, DiscountType as DiscountTypeOriginal, type DiscountTypeWithLiterals as DiscountTypeWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DuplicateItemModifierIdsErrorData as DuplicateItemModifierIdsErrorDataOriginal, type DuplicateLineItemUpdatesErrorData as DuplicateLineItemUpdatesErrorDataOriginal, type DuplicateModifierGroupIdsErrorData as DuplicateModifierGroupIdsErrorDataOriginal, type EmptyLineItemUpdatesErrorData as EmptyLineItemUpdatesErrorDataOriginal, type Empty as EmptyOriginal, type EmptyPaymentTokenErrorData as EmptyPaymentTokenErrorDataOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type EstimateCartApplicationErrors as EstimateCartApplicationErrorsOriginal, type EstimateCartRequest as EstimateCartRequestOriginal, type EstimateCartResponse as EstimateCartResponseOriginal, type EstimateCurrentCartRequest as EstimateCurrentCartRequestOriginal, type EstimateCurrentCartResponse as EstimateCurrentCartResponseOriginal, type ExtendedFields as ExtendedFieldsOriginal, type ExternalReference as ExternalReferenceOriginal, FallbackReason as FallbackReasonOriginal, type FallbackReasonWithLiterals as FallbackReasonWithLiteralsOriginal, type FieldViolation as FieldViolationOriginal, FileType as FileTypeOriginal, type FileTypeWithLiterals as FileTypeWithLiteralsOriginal, type FixedQuantityItemErrorData as FixedQuantityItemErrorDataOriginal, type FormIdentifier as FormIdentifierOriginal, type FormInfo as FormInfoOriginal, type FormSubmission as FormSubmissionOriginal, type FreeTrialPeriod as FreeTrialPeriodOriginal, type FullAddressContactDetails as FullAddressContactDetailsOriginal, type GetCartRequest as GetCartRequestOriginal, type GetCartResponse as GetCartResponseOriginal, type GetCheckoutURLRequest as GetCheckoutURLRequestOriginal, type GetCheckoutURLResponse as GetCheckoutURLResponseOriginal, type GetCheckoutUrlApplicationErrors as GetCheckoutUrlApplicationErrorsOriginal, type GetCurrentCartRequest as GetCurrentCartRequestOriginal, type GetCurrentCartResponse as GetCurrentCartResponseOriginal, type GiftCardAdded as GiftCardAddedOriginal, type GiftCardAlreadyExistsErrorData as GiftCardAlreadyExistsErrorDataOriginal, type GiftCardInput as GiftCardInputOriginal, type GiftCardNotFoundInCartErrorData as GiftCardNotFoundInCartErrorDataOriginal, type GiftCard as GiftCardOriginal, type GiftCardRedeemErrorData as GiftCardRedeemErrorDataOriginal, type GiftCardRemoved as GiftCardRemovedOriginal, type GiftCardSummary as GiftCardSummaryOriginal, type Group as GroupOriginal, type HandleAsyncCheckoutCompletionRequest as HandleAsyncCheckoutCompletionRequestOriginal, type HeadersEntry as HeadersEntryOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type InsufficientInventoryEntry as InsufficientInventoryEntryOriginal, type InsufficientInventoryErrorData as InsufficientInventoryErrorDataOriginal, type InvalidCouponCodeErrorData as InvalidCouponCodeErrorDataOriginal, InvalidCouponReason as InvalidCouponReasonOriginal, type InvalidCouponReasonWithLiterals as InvalidCouponReasonWithLiteralsOriginal, type InvalidCouponStatusErrorDataDetailsOneOf as InvalidCouponStatusErrorDataDetailsOneOfOriginal, type InvalidCouponStatusErrorData as InvalidCouponStatusErrorDataOriginal, type InvalidGiftCardCodeErrorData as InvalidGiftCardCodeErrorDataOriginal, InvalidGiftCardReason as InvalidGiftCardReasonOriginal, type InvalidGiftCardReasonWithLiterals as InvalidGiftCardReasonWithLiteralsOriginal, type InvalidGiftCardStatusErrorData as InvalidGiftCardStatusErrorDataOriginal, type InvalidMembershipEntry as InvalidMembershipEntryOriginal, type InvalidMembershipErrorData as InvalidMembershipErrorDataOriginal, type InvalidMembership as InvalidMembershipOriginal, type InvalidMembershipPaymentOptionErrorData as InvalidMembershipPaymentOptionErrorDataOriginal, type InvalidPaymentStatusErrorData as InvalidPaymentStatusErrorDataOriginal, type InvalidPriceVerificationTokenErrorData as InvalidPriceVerificationTokenErrorDataOriginal, type InvalidThirdPartyCheckoutTokenErrorData as InvalidThirdPartyCheckoutTokenErrorDataOriginal, type ItemAttributes as ItemAttributesOriginal, type ItemCombinationLineItem as ItemCombinationLineItemOriginal, type ItemCombination as ItemCombinationOriginal, type ItemDeliveryConfig as ItemDeliveryConfigOriginal, type ItemDiscount as ItemDiscountOriginal, type ItemModifier as ItemModifierOriginal, type ItemNotFoundInCatalogErrorData as ItemNotFoundInCatalogErrorDataOriginal, type ItemPaymentConfig as ItemPaymentConfigOriginal, type ItemPriceBreakdown as ItemPriceBreakdownOriginal, type ItemPricingInfo as ItemPricingInfoOriginal, type ItemQuantityInfo as ItemQuantityInfoOriginal, type ItemSource as ItemSourceOriginal, ItemStatus as ItemStatusOriginal, type ItemStatusWithLiterals as ItemStatusWithLiteralsOriginal, type ItemTaxConfig as ItemTaxConfigOriginal, type ItemTaxFullDetails as ItemTaxFullDetailsOriginal, type ItemTypeItemTypeDataOneOf as ItemTypeItemTypeDataOneOfOriginal, type ItemType as ItemTypeOriginal, ItemTypePreset as ItemTypePresetOriginal, type ItemTypePresetWithLiterals as ItemTypePresetWithLiteralsOriginal, JurisdictionType as JurisdictionTypeOriginal, type JurisdictionTypeWithLiterals as JurisdictionTypeWithLiteralsOriginal, type LegacyFields as LegacyFieldsOriginal, type LineItemAdded as LineItemAddedOriginal, type LineItemDiscount as LineItemDiscountOriginal, type LineItemIdentifierIdOneOf as LineItemIdentifierIdOneOfOriginal, type LineItemIdentifier as LineItemIdentifierOriginal, type LineItemNotFoundInCartErrorData as LineItemNotFoundInCartErrorDataOriginal, type LineItem as LineItemOriginal, type LineItemPriceConflictErrorData as LineItemPriceConflictErrorDataOriginal, type LineItemPricesData as LineItemPricesDataOriginal, type LineItemSummary as LineItemSummaryOriginal, type LineItemTax as LineItemTaxOriginal, type LineItemUpdate as LineItemUpdateOriginal, ManualCalculationReason as ManualCalculationReasonOriginal, type ManualCalculationReasonWithLiterals as ManualCalculationReasonWithLiteralsOriginal, type MarkCartAsCompletedRequest as MarkCartAsCompletedRequestOriginal, type MarkCartAsCompletedResponse as MarkCartAsCompletedResponseOriginal, type MaxItemModifiersExceededErrorData as MaxItemModifiersExceededErrorDataOriginal, type MaxLineItemsExceededErrorData as MaxLineItemsExceededErrorDataOriginal, type MembersOnlyItemErrorData as MembersOnlyItemErrorDataOriginal, type MembershipName as MembershipNameOriginal, type MembershipOptions as MembershipOptionsOriginal, type Membership as MembershipOriginal, type MembershipPaymentCredits as MembershipPaymentCreditsOriginal, type MerchantDiscount as MerchantDiscountOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MinLineItemQuantityNotReachedDetails as MinLineItemQuantityNotReachedDetailsOriginal, type MinSubtotalNotReachedDetails as MinSubtotalNotReachedDetailsOriginal, type ModifierGroup as ModifierGroupOriginal, type MultiCurrencyPrice as MultiCurrencyPriceOriginal, NameInLineItem as NameInLineItemOriginal, type NameInLineItemWithLiterals as NameInLineItemWithLiteralsOriginal, NameInOther as NameInOtherOriginal, type NameInOtherWithLiterals as NameInOtherWithLiteralsOriginal, type OtherCharge as OtherChargeOriginal, type Other as OtherOriginal, type PageUrlV2 as PageUrlV2Original, type PaymentInfo as PaymentInfoOriginal, type PaymentOption as PaymentOptionOriginal, PaymentOptionType as PaymentOptionTypeOriginal, type PaymentOptionTypeWithLiterals as PaymentOptionTypeWithLiteralsOriginal, type PaymentSummary as PaymentSummaryOriginal, type PhysicalProperties as PhysicalPropertiesOriginal, type PickupDetails as PickupDetailsOriginal, PickupMethod as PickupMethodOriginal, type PickupMethodWithLiterals as PickupMethodWithLiteralsOriginal, type PlaceOrderApplicationErrors as PlaceOrderApplicationErrorsOriginal, type PlaceOrderRequest as PlaceOrderRequestOriginal, type PlaceOrderResponse as PlaceOrderResponseOriginal, type PlainTextValue as PlainTextValueOriginal, PlatformFeeChargeType as PlatformFeeChargeTypeOriginal, type PlatformFeeChargeTypeWithLiterals as PlatformFeeChargeTypeWithLiteralsOriginal, type PlatformFeeSummary as PlatformFeeSummaryOriginal, type Policy as PolicyOriginal, type PriceDescription as PriceDescriptionOriginal, type PriceSummary as PriceSummaryOriginal, type QuantityUpdate as QuantityUpdateOriginal, RateType as RateTypeOriginal, type RateTypeWithLiterals as RateTypeWithLiteralsOriginal, type RawHttpResponse as RawHttpResponseOriginal, type RedirectUrls as RedirectUrlsOriginal, type RefreshCartApplicationErrors as RefreshCartApplicationErrorsOriginal, type RefreshCartRequest as RefreshCartRequestOriginal, type RefreshCartResponse as RefreshCartResponseOriginal, type RefreshCurrentCartRequest as RefreshCurrentCartRequestOriginal, type RefreshCurrentCartResponse as RefreshCurrentCartResponseOriginal, type Region as RegionOriginal, type RemoveCouponApplicationErrors as RemoveCouponApplicationErrorsOriginal, type RemoveCouponFromCurrentCartRequest as RemoveCouponFromCurrentCartRequestOriginal, type RemoveCouponFromCurrentCartResponse as RemoveCouponFromCurrentCartResponseOriginal, type RemoveCouponRequest as RemoveCouponRequestOriginal, type RemoveCouponResponse as RemoveCouponResponseOriginal, type RemoveGiftCardApplicationErrors as RemoveGiftCardApplicationErrorsOriginal, type RemoveGiftCardFromCurrentCartRequest as RemoveGiftCardFromCurrentCartRequestOriginal, type RemoveGiftCardFromCurrentCartResponse as RemoveGiftCardFromCurrentCartResponseOriginal, type RemoveGiftCardRequest as RemoveGiftCardRequestOriginal, type RemoveGiftCardResponse as RemoveGiftCardResponseOriginal, type RemoveLineItemsApplicationErrors as RemoveLineItemsApplicationErrorsOriginal, type RemoveLineItemsFromCurrentCartRequest as RemoveLineItemsFromCurrentCartRequestOriginal, type RemoveLineItemsFromCurrentCartResponse as RemoveLineItemsFromCurrentCartResponseOriginal, type RemoveLineItemsRequest as RemoveLineItemsRequestOriginal, type RemoveLineItemsResponse as RemoveLineItemsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, RuleType as RuleTypeOriginal, type RuleTypeWithLiterals as RuleTypeWithLiteralsOriginal, type Scope as ScopeOriginal, type SecuredMedia as SecuredMediaOriginal, type SelectedCarrierServiceOption as SelectedCarrierServiceOptionOriginal, type SelectedCarrierServiceOptionOtherCharge as SelectedCarrierServiceOptionOtherChargeOriginal, type SelectedCarrierServiceOptionPrices as SelectedCarrierServiceOptionPricesOriginal, type SelectedMembership as SelectedMembershipOriginal, type SelectedMembershipUpdate as SelectedMembershipUpdateOriginal, type SelectedMemberships as SelectedMembershipsOriginal, type ServiceProperties as ServicePropertiesOriginal, type SetDeliveryMethodApplicationErrors as SetDeliveryMethodApplicationErrorsOriginal, type SetDeliveryMethodForCurrentCartRequest as SetDeliveryMethodForCurrentCartRequestOriginal, type SetDeliveryMethodForCurrentCartResponse as SetDeliveryMethodForCurrentCartResponseOriginal, type SetDeliveryMethodRequest as SetDeliveryMethodRequestOriginal, type SetDeliveryMethodResponse as SetDeliveryMethodResponseOriginal, Severity as SeverityOriginal, type SeverityWithLiterals as SeverityWithLiteralsOriginal, type ShippingInformation as ShippingInformationOriginal, type ShippingOption as ShippingOptionOriginal, type ShippingPrice as ShippingPriceOriginal, type ShippingRegion as ShippingRegionOriginal, type SomeLineItemsOutOfStockErrorData as SomeLineItemsOutOfStockErrorDataOriginal, Source as SourceOriginal, type SourceWithLiterals as SourceWithLiteralsOriginal, type Stage as StageOriginal, type StageStagesOneOf as StageStagesOneOfOriginal, type StreetAddress as StreetAddressOriginal, type SubscriptionCharges as SubscriptionChargesOriginal, SubscriptionFrequency as SubscriptionFrequencyOriginal, type SubscriptionFrequencyWithLiterals as SubscriptionFrequencyWithLiteralsOriginal, type SubscriptionOptionInfo as SubscriptionOptionInfoOriginal, type SubscriptionSettings as SubscriptionSettingsOriginal, SuggestedFix as SuggestedFixOriginal, type SuggestedFixWithLiterals as SuggestedFixWithLiteralsOriginal, type SystemError as SystemErrorOriginal, type Target as TargetOriginal, type TargetTargetTypeOneOf as TargetTargetTypeOneOfOriginal, type TaxBreakdown as TaxBreakdownOriginal, type TaxCalculationDetailsCalculationDetailsOneOf as TaxCalculationDetailsCalculationDetailsOneOfOriginal, type TaxCalculationDetails as TaxCalculationDetailsOriginal, type TaxDetails as TaxDetailsOriginal, type TaxInfo as TaxInfoOriginal, type Tax as TaxOriginal, type TaxRateBreakdown as TaxRateBreakdownOriginal, type TaxSummary as TaxSummaryOriginal, type TaxableAddress as TaxableAddressOriginal, type TaxableAddressTaxableAddressDataOneOf as TaxableAddressTaxableAddressDataOneOfOriginal, TaxableAddressType as TaxableAddressTypeOriginal, type TaxableAddressTypeWithLiterals as TaxableAddressTypeWithLiteralsOriginal, type Title as TitleOriginal, type TranslatableString as TranslatableStringOriginal, type UnmarkAsCurrentCartRequest as UnmarkAsCurrentCartRequestOriginal, type UnmarkAsCurrentCartResponse as UnmarkAsCurrentCartResponseOriginal, type UpdateCartApplicationErrors as UpdateCartApplicationErrorsOriginal, type UpdateCartRequest as UpdateCartRequestOriginal, type UpdateCartResponse as UpdateCartResponseOriginal, type UpdateCurrentCartRequest as UpdateCurrentCartRequestOriginal, type UpdateCurrentCartResponse as UpdateCurrentCartResponseOriginal, type UpdateFormSubmissionsInCurrentCartRequest as UpdateFormSubmissionsInCurrentCartRequestOriginal, type UpdateFormSubmissionsInCurrentCartResponse as UpdateFormSubmissionsInCurrentCartResponseOriginal, type UpdateFormSubmissionsRequest as UpdateFormSubmissionsRequestOriginal, type UpdateFormSubmissionsResponse as UpdateFormSubmissionsResponseOriginal, type UpdateLineItemsApplicationErrors as UpdateLineItemsApplicationErrorsOriginal, type UpdateLineItemsInCurrentCartRequest as UpdateLineItemsInCurrentCartRequestOriginal, type UpdateLineItemsInCurrentCartResponse as UpdateLineItemsInCurrentCartResponseOriginal, type UpdateLineItemsRequest as UpdateLineItemsRequestOriginal, type UpdateLineItemsResponse as UpdateLineItemsResponseOriginal, type V1AdditionalFee as V1AdditionalFeeOriginal, type V2AdditionalFee as V2AdditionalFeeOriginal, type V2CalculationErrors as V2CalculationErrorsOriginal, type V2CalculationErrorsShippingCalculationErrorOneOf as V2CalculationErrorsShippingCalculationErrorOneOfOriginal, type V2CarrierError as V2CarrierErrorOriginal, type V2CarrierErrors as V2CarrierErrorsOriginal, type V2Coupon as V2CouponOriginal, type V2GiftCard as V2GiftCardOriginal, type V2LineItem as V2LineItemOriginal, type V2Membership as V2MembershipOriginal, type V2PriceSummary as V2PriceSummaryOriginal, type V2SelectedMembership as V2SelectedMembershipOriginal, type V2TaxSummary as V2TaxSummaryOriginal, type ValidationError as ValidationErrorOriginal, ValidationsConfig as ValidationsConfigOriginal, type ValidationsConfigWithLiterals as ValidationsConfigWithLiteralsOriginal, type VatId as VatIdOriginal, VatType as VatTypeOriginal, type VatTypeWithLiterals as VatTypeWithLiteralsOriginal, type Violation as ViolationOriginal, type ViolationWithErrorSeverityErrorData as ViolationWithErrorSeverityErrorDataOriginal, type ViolationsList as ViolationsListOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, WeightUnit as WeightUnitOriginal, type WeightUnitWithLiterals as WeightUnitWithLiteralsOriginal, type __PublicMethodMetaInfo, addCoupon, addGiftCard, addLineItems, calculateCart, createCart, deleteCart, estimateCart, getCart, getCheckoutUrl, handleAsyncCheckoutCompletion, markCartAsCompleted, placeOrder, refreshCart, removeCoupon, removeGiftCard, removeLineItems, setDeliveryMethod, updateCart, updateFormSubmissions, updateLineItems };
|
package/build/cjs/meta.js
CHANGED
|
@@ -45,6 +45,7 @@ __export(meta_exports, {
|
|
|
45
45
|
RateTypeOriginal: () => RateType,
|
|
46
46
|
RuleTypeOriginal: () => RuleType,
|
|
47
47
|
SeverityOriginal: () => Severity,
|
|
48
|
+
SourceOriginal: () => Source,
|
|
48
49
|
SubscriptionFrequencyOriginal: () => SubscriptionFrequency,
|
|
49
50
|
SuggestedFixOriginal: () => SuggestedFix,
|
|
50
51
|
TaxableAddressTypeOriginal: () => TaxableAddressType,
|
|
@@ -58,6 +59,7 @@ __export(meta_exports, {
|
|
|
58
59
|
calculateCart: () => calculateCart2,
|
|
59
60
|
createCart: () => createCart2,
|
|
60
61
|
deleteCart: () => deleteCart2,
|
|
62
|
+
estimateCart: () => estimateCart2,
|
|
61
63
|
getCart: () => getCart2,
|
|
62
64
|
getCheckoutUrl: () => getCheckoutUrl2,
|
|
63
65
|
handleAsyncCheckoutCompletion: () => handleAsyncCheckoutCompletion2,
|
|
@@ -490,6 +492,63 @@ function refreshCart(payload) {
|
|
|
490
492
|
}
|
|
491
493
|
return __refreshCart;
|
|
492
494
|
}
|
|
495
|
+
function estimateCart(payload) {
|
|
496
|
+
function __estimateCart({ host }) {
|
|
497
|
+
const metadata = {
|
|
498
|
+
entityFqdn: "wix.ecom.v2.cart",
|
|
499
|
+
method: "POST",
|
|
500
|
+
methodFqn: "wix.ecom.cart.v2.CartService.EstimateCart",
|
|
501
|
+
packageName: PACKAGE_NAME,
|
|
502
|
+
migrationOptions: {
|
|
503
|
+
optInTransformResponse: true
|
|
504
|
+
},
|
|
505
|
+
url: resolveWixEcomCartV2CartServiceUrl({
|
|
506
|
+
protoPath: "/v2/carts/{cartId}/estimate",
|
|
507
|
+
data: payload,
|
|
508
|
+
host
|
|
509
|
+
}),
|
|
510
|
+
data: payload,
|
|
511
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
512
|
+
{
|
|
513
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
514
|
+
paths: [
|
|
515
|
+
{ path: "cart.createdDate" },
|
|
516
|
+
{ path: "cart.updatedDate" },
|
|
517
|
+
{
|
|
518
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
519
|
+
},
|
|
520
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
521
|
+
{
|
|
522
|
+
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
526
|
+
},
|
|
527
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" },
|
|
528
|
+
{
|
|
529
|
+
path: "summary.paymentSummary.subscriptionCharges.charges.cycleBillingDate"
|
|
530
|
+
}
|
|
531
|
+
]
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
535
|
+
paths: [
|
|
536
|
+
{
|
|
537
|
+
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
538
|
+
},
|
|
539
|
+
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
540
|
+
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
541
|
+
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
542
|
+
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
543
|
+
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" }
|
|
544
|
+
]
|
|
545
|
+
}
|
|
546
|
+
])
|
|
547
|
+
};
|
|
548
|
+
return metadata;
|
|
549
|
+
}
|
|
550
|
+
return __estimateCart;
|
|
551
|
+
}
|
|
493
552
|
function calculateCart(payload) {
|
|
494
553
|
function __calculateCart({ host }) {
|
|
495
554
|
const metadata = {
|
|
@@ -1283,6 +1342,14 @@ var DiscountScope = /* @__PURE__ */ ((DiscountScope2) => {
|
|
|
1283
1342
|
DiscountScope2["DELIVERY"] = "DELIVERY";
|
|
1284
1343
|
return DiscountScope2;
|
|
1285
1344
|
})(DiscountScope || {});
|
|
1345
|
+
var Source = /* @__PURE__ */ ((Source2) => {
|
|
1346
|
+
Source2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
|
|
1347
|
+
Source2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
|
|
1348
|
+
Source2["LINE_ITEM"] = "LINE_ITEM";
|
|
1349
|
+
Source2["DELIVERY"] = "DELIVERY";
|
|
1350
|
+
Source2["PLATFORM"] = "PLATFORM";
|
|
1351
|
+
return Source2;
|
|
1352
|
+
})(Source || {});
|
|
1286
1353
|
var RuleType = /* @__PURE__ */ ((RuleType2) => {
|
|
1287
1354
|
RuleType2["VALIDATION"] = "VALIDATION";
|
|
1288
1355
|
RuleType2["OTHER"] = "OTHER";
|
|
@@ -1522,6 +1589,24 @@ function refreshCart2() {
|
|
|
1522
1589
|
__originalResponseType: null
|
|
1523
1590
|
};
|
|
1524
1591
|
}
|
|
1592
|
+
function estimateCart2() {
|
|
1593
|
+
const payload = { cartId: ":cartId" };
|
|
1594
|
+
const getRequestOptions = estimateCart(payload);
|
|
1595
|
+
const getUrl = (context) => {
|
|
1596
|
+
const { url } = getRequestOptions(context);
|
|
1597
|
+
return url;
|
|
1598
|
+
};
|
|
1599
|
+
return {
|
|
1600
|
+
getUrl,
|
|
1601
|
+
httpMethod: "POST",
|
|
1602
|
+
path: "/v2/carts/{cartId}/estimate",
|
|
1603
|
+
pathParams: { cartId: "cartId" },
|
|
1604
|
+
__requestType: null,
|
|
1605
|
+
__originalRequestType: null,
|
|
1606
|
+
__responseType: null,
|
|
1607
|
+
__originalResponseType: null
|
|
1608
|
+
};
|
|
1609
|
+
}
|
|
1525
1610
|
function calculateCart2() {
|
|
1526
1611
|
const payload = { cartId: ":cartId" };
|
|
1527
1612
|
const getRequestOptions = calculateCart(payload);
|
|
@@ -1801,6 +1886,7 @@ function updateFormSubmissions2() {
|
|
|
1801
1886
|
RateTypeOriginal,
|
|
1802
1887
|
RuleTypeOriginal,
|
|
1803
1888
|
SeverityOriginal,
|
|
1889
|
+
SourceOriginal,
|
|
1804
1890
|
SubscriptionFrequencyOriginal,
|
|
1805
1891
|
SuggestedFixOriginal,
|
|
1806
1892
|
TaxableAddressTypeOriginal,
|
|
@@ -1814,6 +1900,7 @@ function updateFormSubmissions2() {
|
|
|
1814
1900
|
calculateCart,
|
|
1815
1901
|
createCart,
|
|
1816
1902
|
deleteCart,
|
|
1903
|
+
estimateCart,
|
|
1817
1904
|
getCart,
|
|
1818
1905
|
getCheckoutUrl,
|
|
1819
1906
|
handleAsyncCheckoutCompletion,
|