@wix/auto_sdk_ecom_cart-v-2 1.0.150 → 1.0.152
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 +1 -1
- package/build/cjs/index.js +70 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +128 -7
- package/build/cjs/index.typings.js +62 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +132 -8
- package/build/cjs/meta.js +57 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +4 -0
- package/build/cjs/schemas.js +6 -2
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +67 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +128 -7
- package/build/es/index.typings.mjs +59 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +132 -8
- package/build/es/meta.mjs +54 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +4 -0
- package/build/es/schemas.mjs +6 -2
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +14 -3
- package/build/internal/cjs/index.js +70 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +156 -7
- package/build/internal/cjs/index.typings.js +62 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +132 -8
- package/build/internal/cjs/meta.js +57 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +4 -0
- package/build/internal/cjs/schemas.js +6 -2
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +14 -3
- package/build/internal/es/index.mjs +67 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +156 -7
- package/build/internal/es/index.typings.mjs +59 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +132 -8
- package/build/internal/es/meta.mjs +54 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +4 -0
- package/build/internal/es/schemas.mjs +6 -2
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
2
|
import { CreateCartOptions, Cart, CreateCartApplicationErrors, UpdateCart, UpdateCartApplicationErrors, RefreshCartResponse, RefreshCartApplicationErrors, EstimateCartOptions, EstimateCartResponse, EstimateCartApplicationErrors, CalculateCartOptions, CalculateCartResponse, CalculateCartApplicationErrors, GetCheckoutUrlOptions, GetCheckoutURLResponse, GetCheckoutUrlApplicationErrors, PlaceOrderOptions, PlaceOrderResponse, PlaceOrderApplicationErrors, AddLineItemsOptions, AddLineItemsResponse, AddLineItemsApplicationErrors, RemoveLineItemsResponse, RemoveLineItemsApplicationErrors, UpdateLineItemsOptions, UpdateLineItemsResponse, UpdateLineItemsApplicationErrors, CouponInput, AddCouponResponse, AddCouponApplicationErrors, RemoveCouponResponse, RemoveCouponApplicationErrors, DeliveryMethodInput, SetDeliveryMethodResponse, SetDeliveryMethodApplicationErrors, RemoveDeliveryMethodResponse, RemoveDeliveryMethodApplicationErrors, GiftCardInput, AddGiftCardResponse, AddGiftCardApplicationErrors, RemoveGiftCardResponse, RemoveGiftCardApplicationErrors, MarkCartAsCompletedOptions, MarkCartAsCompletedResponse, RawHttpResponse, UpdateFormSubmissionsOptions, UpdateFormSubmissionsResponse } from './index.typings.js';
|
|
3
|
-
export { AccountInfo, ActionEvent, AddCouponRequest, AddCouponToCurrentCartRequest, AddCouponToCurrentCartResponse, AddGiftCardRequest, AddGiftCardToCurrentCartRequest, AddGiftCardToCurrentCartResponse, AddLineItemsRequest, AddLineItemsToCurrentCartRequest, AddLineItemsToCurrentCartResponse, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, AdditionalFeeTax, Address, AddressLocation, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, BillingSettings, BusinessInfo, CalculateCartForV1Request, CalculateCartForV1Response, CalculateCartRequest, CalculateCurrentCartRequest, CalculateCurrentCartResponse, CalculateTotalsResponse, CalculatedItemModifier, CalculatedLineItem, CalculatedPlatformFee, CalculationConfig, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CalculationOverrides, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CartAlreadyOrderedErrorData, CartEstimationIndicators, CartSettings, CartSource, CartSummary, CatalogItemInput, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, ChargeType, ChargeTypeWithLiterals, CheckoutStage, CheckoutStageWithLiterals, Color, ConvertedMoney, Coupon, CouponAdded, CouponAlreadyExistsErrorData, CouponNotFoundInCartErrorData, CouponRemoved, CreateCartRequest, CreateCartResponse, CreateCurrentCartRequest, CreateCurrentCartResponse, CreatedBy, CreatedByIdOneOf, CustomContentReference, CustomField, CustomItemAttributes, CustomItemDeliveryConfig, CustomItemInput, CustomItemPaymentConfig, CustomItemPricingInfo, CustomItemQuantityInfo, CustomItemSource, CustomItemTaxConfig, CustomValidationErrorData, CustomerInfo, CustomerInfoIdOneOf, DeleteCartRequest, DeleteCartResponse, DeleteCurrentCartRequest, DeleteCurrentCartResponse, DeliveryAllocation, DeliveryInfo, DeliveryLogistics, DeliveryMethod, DeliveryMethodNotFoundErrorData, DeliverySummary, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Dimensions, DimensionsUnit, DimensionsUnitWithLiterals, Discount, DiscountBenefit, DiscountBenefitValueOneOf, DiscountRule, DiscountRuleName, DiscountScope, DiscountScopeWithLiterals, DiscountSource, DiscountSourceType, DiscountSourceTypeWithLiterals, DiscountType, DiscountTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, DuplicateItemModifierIdsErrorData, DuplicateLineItemUpdatesErrorData, DuplicateModifierGroupIdsErrorData, Empty, EmptyLineItemUpdatesErrorData, EmptyPaymentTokenErrorData, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EstimateCartRequest, EstimateCurrentCartRequest, EstimateCurrentCartResponse, ExistingMembership, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FixedQuantityItemErrorData, FormIdentifier, FormInfo, FormSubmission, FreeTrialPeriod, FullAddressContactDetails, FutureMembership, GetCartRequest, GetCartResponse, GetCheckoutURLRequest, GetCurrentCartRequest, GetCurrentCartResponse, GiftCard, GiftCardAdded, GiftCardAlreadyExistsErrorData, GiftCardCalculationError, GiftCardNotFoundInCartErrorData, GiftCardRedeemErrorData, GiftCardRemoved, GiftCardSummary, Group, HandleAsyncCheckoutCompletionRequest, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, InsufficientInventoryEntry, InsufficientInventoryErrorData, InvalidCartErrorData, InvalidCouponCodeErrorData, InvalidCouponReason, InvalidCouponReasonWithLiterals, InvalidCouponStatusErrorData, InvalidCouponStatusErrorDataDetailsOneOf, InvalidGiftCardCodeErrorData, InvalidGiftCardReason, InvalidGiftCardReasonWithLiterals, InvalidGiftCardStatusErrorData, InvalidMembership, InvalidMembershipEntry, InvalidMembershipErrorData, InvalidMembershipPaymentOptionErrorData, InvalidMembershipReason, InvalidMembershipReasonWithLiterals, InvalidMembershipStatusErrorData, InvalidPaymentStatusErrorData, InvalidPriceVerificationTokenErrorData, InvalidThirdPartyCheckoutTokenErrorData, ItemAttributes, ItemCombination, ItemCombinationLineItem, ItemDeliveryConfig, ItemDiscount, ItemModifier, ItemNotFoundInCatalogErrorData, ItemPaymentConfig, ItemPriceBreakdown, ItemPricingInfo, ItemQuantityInfo, ItemSource, ItemStatus, ItemStatusWithLiterals, ItemTaxConfig, ItemTaxFullDetails, ItemType, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, JurisdictionType, JurisdictionTypeWithLiterals, LegacyFields, LineItem, LineItemAdded, LineItemDiscount, LineItemIdentifier, LineItemIdentifierIdOneOf, LineItemNotFoundInCartErrorData, LineItemPriceConflictErrorData, LineItemPricesData, LineItemSummary, LineItemTax, LineItemUpdate, LineItemsOutOfStockErrorData, ManualCalculationReason, ManualCalculationReasonWithLiterals, MarkCartAsCompletedRequest, MaxItemModifiersExceededErrorData, MaxLineItemsExceededErrorData, MembersOnlyItemErrorData, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MembershipSummary, 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, Price, PriceDescription, PriceSummary, ProductPeriodAlignment, ProductPeriodAlignmentWithLiterals, QuantityUpdate, RateType, RateTypeWithLiterals, RedirectUrls, RefreshCartRequest, RefreshCurrentCartRequest, RefreshCurrentCartResponse, Region, RemoveCouponFromCurrentCartRequest, RemoveCouponFromCurrentCartResponse, RemoveCouponRequest, RemoveDeliveryMethodFromCurrentCartRequest, RemoveDeliveryMethodFromCurrentCartResponse, RemoveDeliveryMethodRequest, RemoveGiftCardFromCurrentCartRequest, RemoveGiftCardFromCurrentCartResponse, RemoveGiftCardRequest, RemoveLineItemsFromCurrentCartRequest, RemoveLineItemsFromCurrentCartResponse, RemoveLineItemsRequest, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMembershipUpdate, SelectedMemberships, ServiceProperties, SetDeliveryMethodForCurrentCartRequest, SetDeliveryMethodForCurrentCartResponse, SetDeliveryMethodRequest, Severity, SeverityWithLiterals, ShippingInformation, ShippingOption, ShippingPrice, ShippingRegion, Source, SourceWithLiterals, Stage, StageStagesOneOf, StreetAddress, SubscriptionCharges, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionOptionInfo, SubscriptionSettings, SubtotalBelowOrderMinimumErrorData, SuggestedFix, SuggestedFixWithLiterals, SystemError, Target, TargetTargetTypeOneOf, Tax, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxDetails, TaxInfo, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, Title, TranslatableString, UnmarkAsCurrentCartRequest, UnmarkAsCurrentCartResponse, UpdateCartRequest, UpdateCartResponse, UpdateCurrentCartRequest, UpdateCurrentCartResponse, UpdateFormSubmissionsInCurrentCartRequest, UpdateFormSubmissionsInCurrentCartResponse, UpdateFormSubmissionsRequest, UpdateLineItemsInCurrentCartRequest, UpdateLineItemsInCurrentCartResponse, UpdateLineItemsRequest, V1AdditionalFee, V1PriceSummary, V2AdditionalFee, V2CalculationErrors, V2CalculationErrorsShippingCalculationErrorOneOf, V2CarrierError, V2CarrierErrors, V2Coupon, V2GiftCard, V2LineItem, V2LineItemDiscount, V2Membership, V2MembershipIdentifierOneOf, V2PriceSummary, V2SelectedMembership, V2TaxSummary, V2Violation, V2ViolationDataOneOf, ValidationError, ValidationsConfig, ValidationsConfigWithLiterals, VatId, VatType, VatTypeWithLiterals, Violation, ViolationCode, ViolationCodeWithLiterals, ViolationScope, ViolationScopeWithLiterals, ViolationSeverity, ViolationSeverityWithLiterals, ViolationWithErrorSeverityErrorData, ViolationsList, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, ActionEvent, AddCouponRequest, AddCouponToCurrentCartRequest, AddCouponToCurrentCartResponse, AddGiftCardRequest, AddGiftCardToCurrentCartRequest, AddGiftCardToCurrentCartResponse, AddLineItemsRequest, AddLineItemsToCurrentCartRequest, AddLineItemsToCurrentCartResponse, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, AdditionalFeeTax, Address, AddressLocation, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, Benefit, BenefitQuotaOneOf, BillingSettings, BusinessInfo, CalculateCartForV1Request, CalculateCartForV1Response, CalculateCartRequest, CalculateCurrentCartRequest, CalculateCurrentCartResponse, CalculateTotalsResponse, CalculatedItemModifier, CalculatedLineItem, CalculatedPlatformFee, CalculationConfig, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CalculationOverrides, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CartAlreadyOrderedErrorData, CartEstimationIndicators, CartSettings, CartSource, CartSummary, CatalogItemInput, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, ChargeType, ChargeTypeWithLiterals, CheckoutStage, CheckoutStageWithLiterals, Color, ConvertedMoney, Coupon, CouponAdded, CouponAlreadyExistsErrorData, CouponNotFoundInCartErrorData, CouponRemoved, CreateCartRequest, CreateCartResponse, CreateCurrentCartRequest, CreateCurrentCartResponse, CreatedBy, CreatedByIdOneOf, CustomContentReference, CustomField, CustomItemAttributes, CustomItemDeliveryConfig, CustomItemInput, CustomItemPaymentConfig, CustomItemPricingInfo, CustomItemQuantityInfo, CustomItemSource, CustomItemTaxConfig, CustomValidationErrorData, CustomerInfo, CustomerInfoIdOneOf, DeleteCartRequest, DeleteCartResponse, DeleteCurrentCartRequest, DeleteCurrentCartResponse, DeliveryAllocation, DeliveryInfo, DeliveryLogistics, DeliveryMethod, DeliveryMethodNotFoundErrorData, DeliverySummary, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Dimensions, DimensionsUnit, DimensionsUnitWithLiterals, Discount, DiscountBenefit, DiscountBenefitValueOneOf, DiscountRule, DiscountRuleName, DiscountScope, DiscountScopeWithLiterals, DiscountSource, DiscountSourceType, DiscountSourceTypeWithLiterals, DiscountType, DiscountTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, DuplicateItemModifierIdsErrorData, DuplicateLineItemUpdatesErrorData, DuplicateModifierGroupIdsErrorData, Empty, EmptyLineItemUpdatesErrorData, EmptyPaymentTokenErrorData, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EstimateCartRequest, EstimateCurrentCartRequest, EstimateCurrentCartResponse, ExistingMembership, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FixedQuantityItemErrorData, FormIdentifier, FormInfo, FormSubmission, FreeTrialPeriod, FullAddressContactDetails, FutureMembership, GetCartRequest, GetCartResponse, GetCheckoutURLRequest, GetCurrentCartRequest, GetCurrentCartResponse, GetUpsellOptionsForCurrentCartRequest, GetUpsellOptionsForCurrentCartResponse, GetUpsellOptionsRequest, GetUpsellOptionsResponse, GiftCard, GiftCardAdded, GiftCardAlreadyExistsErrorData, GiftCardCalculationError, GiftCardNotFoundInCartErrorData, GiftCardRedeemErrorData, GiftCardRemoved, GiftCardSummary, Group, HandleAsyncCheckoutCompletionRequest, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, InsufficientInventoryEntry, InsufficientInventoryErrorData, InvalidCartErrorData, InvalidCouponCodeErrorData, InvalidCouponReason, InvalidCouponReasonWithLiterals, InvalidCouponStatusErrorData, InvalidCouponStatusErrorDataDetailsOneOf, InvalidGiftCardCodeErrorData, InvalidGiftCardReason, InvalidGiftCardReasonWithLiterals, InvalidGiftCardStatusErrorData, InvalidMembership, InvalidMembershipEntry, InvalidMembershipErrorData, InvalidMembershipPaymentOptionErrorData, InvalidMembershipReason, InvalidMembershipReasonWithLiterals, InvalidMembershipStatusErrorData, InvalidPaymentStatusErrorData, InvalidPriceVerificationTokenErrorData, InvalidThirdPartyCheckoutTokenErrorData, ItemAttributes, ItemCombination, ItemCombinationLineItem, ItemDeliveryConfig, ItemDiscount, ItemModifier, ItemNotFoundInCatalogErrorData, ItemPaymentConfig, ItemPriceBreakdown, ItemPricingInfo, ItemQuantityInfo, ItemSource, ItemStatus, ItemStatusWithLiterals, ItemTaxConfig, ItemTaxFullDetails, ItemType, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, ItemUpsells, JurisdictionType, JurisdictionTypeWithLiterals, LegacyFields, LimitedQuota, LimitedQuotaType, LimitedQuotaTypeWithLiterals, LineItem, LineItemAdded, LineItemDiscount, LineItemIdentifier, LineItemIdentifierIdOneOf, LineItemNotFoundInCartErrorData, LineItemPriceConflictErrorData, LineItemPricesData, LineItemSummary, LineItemTax, LineItemUpdate, LineItemsOutOfStockErrorData, ManualCalculationReason, ManualCalculationReasonWithLiterals, MarkCartAsCompletedRequest, MaxItemModifiersExceededErrorData, MaxLineItemsExceededErrorData, MembersOnlyItemErrorData, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MembershipSummary, 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, Price, PriceDescription, PriceSummary, ProductPeriodAlignment, ProductPeriodAlignmentWithLiterals, QuantityUpdate, QuotaType, QuotaTypeWithLiterals, RateType, RateTypeWithLiterals, RedirectUrls, RefreshCartRequest, RefreshCurrentCartRequest, RefreshCurrentCartResponse, Region, RemoveCouponFromCurrentCartRequest, RemoveCouponFromCurrentCartResponse, RemoveCouponRequest, RemoveDeliveryMethodFromCurrentCartRequest, RemoveDeliveryMethodFromCurrentCartResponse, RemoveDeliveryMethodRequest, RemoveGiftCardFromCurrentCartRequest, RemoveGiftCardFromCurrentCartResponse, RemoveGiftCardRequest, RemoveLineItemsFromCurrentCartRequest, RemoveLineItemsFromCurrentCartResponse, RemoveLineItemsRequest, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMembershipUpdate, SelectedMemberships, ServiceProperties, SetDeliveryMethodForCurrentCartRequest, SetDeliveryMethodForCurrentCartResponse, SetDeliveryMethodRequest, Severity, SeverityWithLiterals, ShippingInformation, ShippingOption, ShippingPrice, ShippingRegion, Source, SourceWithLiterals, Stage, StageStagesOneOf, StreetAddress, SubscriptionCharges, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionOptionInfo, SubscriptionSettings, SubtotalBelowOrderMinimumErrorData, SuggestedFix, SuggestedFixWithLiterals, SystemError, Target, TargetTargetTypeOneOf, Tax, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxDetails, TaxInfo, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, Title, TranslatableString, UnmarkAsCurrentCartRequest, UnmarkAsCurrentCartResponse, UpdateCartRequest, UpdateCartResponse, UpdateCurrentCartRequest, UpdateCurrentCartResponse, UpdateFormSubmissionsInCurrentCartRequest, UpdateFormSubmissionsInCurrentCartResponse, UpdateFormSubmissionsRequest, UpdateLineItemsInCurrentCartRequest, UpdateLineItemsInCurrentCartResponse, UpdateLineItemsRequest, UpsellOption, V1AdditionalFee, V1PriceSummary, V2AdditionalFee, V2CalculationErrors, V2CalculationErrorsShippingCalculationErrorOneOf, V2CarrierError, V2CarrierErrors, V2Coupon, V2GiftCard, V2LineItem, V2LineItemDiscount, V2Membership, V2MembershipIdentifierOneOf, V2PriceSummary, V2SelectedMembership, V2TaxSummary, V2Violation, V2ViolationDataOneOf, ValidationError, ValidationsConfig, ValidationsConfigWithLiterals, VatId, VatType, VatTypeWithLiterals, Violation, ViolationCode, ViolationCodeWithLiterals, ViolationScope, ViolationScopeWithLiterals, ViolationSeverity, ViolationSeverityWithLiterals, ViolationWithErrorSeverityErrorData, ViolationsList, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createCart$1(httpClient: HttpClient): CreateCartSignature;
|
|
6
6
|
interface CreateCartSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -38,6 +38,7 @@ __export(index_exports, {
|
|
|
38
38
|
ItemStatus: () => ItemStatus,
|
|
39
39
|
ItemTypePreset: () => ItemTypePreset,
|
|
40
40
|
JurisdictionType: () => JurisdictionType,
|
|
41
|
+
LimitedQuotaType: () => LimitedQuotaType,
|
|
41
42
|
ManualCalculationReason: () => ManualCalculationReason,
|
|
42
43
|
NameInLineItem: () => NameInLineItem,
|
|
43
44
|
NameInOther: () => NameInOther,
|
|
@@ -45,6 +46,7 @@ __export(index_exports, {
|
|
|
45
46
|
PickupMethod: () => PickupMethod,
|
|
46
47
|
PlatformFeeChargeType: () => PlatformFeeChargeType,
|
|
47
48
|
ProductPeriodAlignment: () => ProductPeriodAlignment,
|
|
49
|
+
QuotaType: () => QuotaType,
|
|
48
50
|
RateType: () => RateType,
|
|
49
51
|
RuleType: () => RuleType,
|
|
50
52
|
Severity: () => Severity,
|
|
@@ -68,6 +70,7 @@ __export(index_exports, {
|
|
|
68
70
|
estimateCart: () => estimateCart4,
|
|
69
71
|
getCart: () => getCart4,
|
|
70
72
|
getCheckoutUrl: () => getCheckoutUrl4,
|
|
73
|
+
getUpsellOptions: () => getUpsellOptions4,
|
|
71
74
|
handleAsyncCheckoutCompletion: () => handleAsyncCheckoutCompletion4,
|
|
72
75
|
markCartAsCompleted: () => markCartAsCompleted4,
|
|
73
76
|
placeOrder: () => placeOrder4,
|
|
@@ -349,6 +352,27 @@ function getCart(payload) {
|
|
|
349
352
|
}
|
|
350
353
|
return __getCart;
|
|
351
354
|
}
|
|
355
|
+
function getUpsellOptions(payload) {
|
|
356
|
+
function __getUpsellOptions({ host }) {
|
|
357
|
+
const metadata = {
|
|
358
|
+
entityFqdn: "wix.ecom.v2.cart",
|
|
359
|
+
method: "GET",
|
|
360
|
+
methodFqn: "wix.ecom.cart.v2.CartService.GetUpsellOptions",
|
|
361
|
+
packageName: PACKAGE_NAME,
|
|
362
|
+
migrationOptions: {
|
|
363
|
+
optInTransformResponse: true
|
|
364
|
+
},
|
|
365
|
+
url: resolveWixEcomCartV2CartServiceUrl({
|
|
366
|
+
protoPath: "/v2/carts/{cartId}/upsell-options",
|
|
367
|
+
data: payload,
|
|
368
|
+
host
|
|
369
|
+
}),
|
|
370
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
371
|
+
};
|
|
372
|
+
return metadata;
|
|
373
|
+
}
|
|
374
|
+
return __getUpsellOptions;
|
|
375
|
+
}
|
|
352
376
|
function updateCart(payload) {
|
|
353
377
|
function __updateCart({ host }) {
|
|
354
378
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -1586,6 +1610,8 @@ var ViolationCode = /* @__PURE__ */ ((ViolationCode2) => {
|
|
|
1586
1610
|
ViolationCode2["CANNOT_PAY_FOR_GIFT_CARD_WITH_GIFT_CARD"] = "CANNOT_PAY_FOR_GIFT_CARD_WITH_GIFT_CARD";
|
|
1587
1611
|
ViolationCode2["SUBTOTAL_BELOW_ORDER_MINIMUM"] = "SUBTOTAL_BELOW_ORDER_MINIMUM";
|
|
1588
1612
|
ViolationCode2["INVALID_MEMBERSHIP_STATUS"] = "INVALID_MEMBERSHIP_STATUS";
|
|
1613
|
+
ViolationCode2["INVALID_POSTAL_CODE"] = "INVALID_POSTAL_CODE";
|
|
1614
|
+
ViolationCode2["INVALID_SUBDIVISION"] = "INVALID_SUBDIVISION";
|
|
1589
1615
|
return ViolationCode2;
|
|
1590
1616
|
})(ViolationCode || {});
|
|
1591
1617
|
var ViolationSeverity = /* @__PURE__ */ ((ViolationSeverity2) => {
|
|
@@ -1679,6 +1705,16 @@ var BalanceType = /* @__PURE__ */ ((BalanceType2) => {
|
|
|
1679
1705
|
BalanceType2["CREDIT"] = "CREDIT";
|
|
1680
1706
|
return BalanceType2;
|
|
1681
1707
|
})(BalanceType || {});
|
|
1708
|
+
var QuotaType = /* @__PURE__ */ ((QuotaType2) => {
|
|
1709
|
+
QuotaType2["LIMITED"] = "LIMITED";
|
|
1710
|
+
QuotaType2["UNLIMITED"] = "UNLIMITED";
|
|
1711
|
+
return QuotaType2;
|
|
1712
|
+
})(QuotaType || {});
|
|
1713
|
+
var LimitedQuotaType = /* @__PURE__ */ ((LimitedQuotaType2) => {
|
|
1714
|
+
LimitedQuotaType2["PUNCH_CARD"] = "PUNCH_CARD";
|
|
1715
|
+
LimitedQuotaType2["CREDIT"] = "CREDIT";
|
|
1716
|
+
return LimitedQuotaType2;
|
|
1717
|
+
})(LimitedQuotaType || {});
|
|
1682
1718
|
var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
|
|
1683
1719
|
AdditionalFeeSource2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
|
|
1684
1720
|
AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
|
|
@@ -1822,6 +1858,29 @@ async function getCart2(cartId) {
|
|
|
1822
1858
|
throw transformedError;
|
|
1823
1859
|
}
|
|
1824
1860
|
}
|
|
1861
|
+
async function getUpsellOptions2(cartId) {
|
|
1862
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1863
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ cartId });
|
|
1864
|
+
const reqOpts = getUpsellOptions(payload);
|
|
1865
|
+
sideEffects?.onSiteCall?.();
|
|
1866
|
+
try {
|
|
1867
|
+
const result = await httpClient.request(reqOpts);
|
|
1868
|
+
sideEffects?.onSuccess?.(result);
|
|
1869
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1870
|
+
} catch (err) {
|
|
1871
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1872
|
+
err,
|
|
1873
|
+
{
|
|
1874
|
+
spreadPathsToArguments: {},
|
|
1875
|
+
explicitPathsToArguments: { cartId: "$[0]" },
|
|
1876
|
+
singleArgumentUnchanged: false
|
|
1877
|
+
},
|
|
1878
|
+
["cartId"]
|
|
1879
|
+
);
|
|
1880
|
+
sideEffects?.onError?.(err);
|
|
1881
|
+
throw transformedError;
|
|
1882
|
+
}
|
|
1883
|
+
}
|
|
1825
1884
|
async function updateCart2(_id, cart) {
|
|
1826
1885
|
const { httpClient, sideEffects } = arguments[2];
|
|
1827
1886
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
@@ -2711,6 +2770,13 @@ function getCart3(httpClient) {
|
|
|
2711
2770
|
{ httpClient }
|
|
2712
2771
|
);
|
|
2713
2772
|
}
|
|
2773
|
+
function getUpsellOptions3(httpClient) {
|
|
2774
|
+
return (cartId) => getUpsellOptions2(
|
|
2775
|
+
cartId,
|
|
2776
|
+
// @ts-ignore
|
|
2777
|
+
{ httpClient }
|
|
2778
|
+
);
|
|
2779
|
+
}
|
|
2714
2780
|
function updateCart3(httpClient) {
|
|
2715
2781
|
return (_id, cart) => updateCart2(
|
|
2716
2782
|
_id,
|
|
@@ -2864,6 +2930,7 @@ function updateFormSubmissions3(httpClient) {
|
|
|
2864
2930
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
2865
2931
|
var createCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createCart3);
|
|
2866
2932
|
var getCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getCart3);
|
|
2933
|
+
var getUpsellOptions4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getUpsellOptions3);
|
|
2867
2934
|
var updateCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateCart3);
|
|
2868
2935
|
var deleteCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteCart3);
|
|
2869
2936
|
var refreshCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(refreshCart3);
|
|
@@ -2903,6 +2970,7 @@ var updateFormSubmissions4 = /* @__PURE__ */ (0, import_rest_modules3.createREST
|
|
|
2903
2970
|
ItemStatus,
|
|
2904
2971
|
ItemTypePreset,
|
|
2905
2972
|
JurisdictionType,
|
|
2973
|
+
LimitedQuotaType,
|
|
2906
2974
|
ManualCalculationReason,
|
|
2907
2975
|
NameInLineItem,
|
|
2908
2976
|
NameInOther,
|
|
@@ -2910,6 +2978,7 @@ var updateFormSubmissions4 = /* @__PURE__ */ (0, import_rest_modules3.createREST
|
|
|
2910
2978
|
PickupMethod,
|
|
2911
2979
|
PlatformFeeChargeType,
|
|
2912
2980
|
ProductPeriodAlignment,
|
|
2981
|
+
QuotaType,
|
|
2913
2982
|
RateType,
|
|
2914
2983
|
RuleType,
|
|
2915
2984
|
Severity,
|
|
@@ -2933,6 +3002,7 @@ var updateFormSubmissions4 = /* @__PURE__ */ (0, import_rest_modules3.createREST
|
|
|
2933
3002
|
estimateCart,
|
|
2934
3003
|
getCart,
|
|
2935
3004
|
getCheckoutUrl,
|
|
3005
|
+
getUpsellOptions,
|
|
2936
3006
|
handleAsyncCheckoutCompletion,
|
|
2937
3007
|
markCartAsCompleted,
|
|
2938
3008
|
placeOrder,
|