@wix/auto_sdk_ecom_cart-v-2 1.0.16 → 1.0.18
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 +69 -39
- package/build/cjs/index.js +2 -17
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +2 -17
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +156 -34
- package/build/es/index.d.mts +69 -39
- package/build/es/index.mjs +2 -15
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +2 -15
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +156 -34
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +2 -17
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +70 -40
- package/build/internal/cjs/index.typings.js +2 -17
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +156 -34
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +2 -15
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +70 -40
- package/build/internal/es/index.typings.mjs +2 -15
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +156 -34
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ActionEvent, AddCouponRequest, AddCouponResponse, AddCouponToCurrentCartRequest, AddCouponToCurrentCartResponse, AddGiftCardRequest, AddGiftCardResponse, AddGiftCardToCurrentCartRequest, AddGiftCardToCurrentCartResponse, AddLineItemsOptions, AddLineItemsRequest, AddLineItemsResponse, AddLineItemsToCurrentCartRequest, AddLineItemsToCurrentCartResponse, AdditionalFee, AdditionalFeeTax, Address, AddressLocation, ApplicationError, BusinessInfo, CalculateCartOptions, CalculateCartRequest, CalculateCartResponse, CalculateCurrentCartRequest, CalculateCurrentCartResponse,
|
|
1
|
+
export { ActionEvent, AddCouponRequest, AddCouponResponse, AddCouponToCurrentCartRequest, AddCouponToCurrentCartResponse, AddGiftCardRequest, AddGiftCardResponse, AddGiftCardToCurrentCartRequest, AddGiftCardToCurrentCartResponse, AddLineItemsOptions, AddLineItemsRequest, AddLineItemsResponse, AddLineItemsToCurrentCartRequest, AddLineItemsToCurrentCartResponse, AdditionalFee, AdditionalFeeTax, Address, AddressLocation, ApplicationError, BusinessInfo, CalculateCartOptions, CalculateCartRequest, CalculateCartResponse, CalculateCurrentCartRequest, CalculateCurrentCartResponse, CalculationConfig, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CarrierError, CarrierErrors, Cart, CartSettings, CartSource, CartSummary, CatalogItemInput, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, Color, Coupon, CreateCartOptions, CreateCartRequest, CreateCartResponse, CreateCurrentCartRequest, CreateCurrentCartResponse, CreatedBy, CreatedByIdOneOf, CustomContentReference, CustomField, CustomItemAttributes, CustomItemDeliveryConfig, CustomItemInput, CustomItemPaymentConfig, CustomItemPricingInfo, CustomItemQuantityInfo, CustomItemSource, CustomItemTaxConfig, CustomerInfo, CustomerInfoIdOneOf, DeleteCartRequest, DeleteCartResponse, DeleteCurrentCartRequest, DeleteCurrentCartResponse, DeliveryInfo, DeliveryMethod, DeliverySummary, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Discount, DiscountBenefit, DiscountBenefitValueOneOf, DiscountScope, DiscountScopeWithLiterals, DiscountSource, DiscountSourceType, DiscountSourceTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, ExternalReference, FieldViolation, FileType, FileTypeWithLiterals, FreeTrialPeriod, FullAddressContactDetails, GetCartRequest, GetCartResponse, GetCheckoutURLRequest, GetCheckoutURLResponse, GetCheckoutUrlOptions, GetCurrentCartRequest, GetCurrentCartResponse, GiftCard, GiftCardSummary, Group, HandleAsyncCheckoutCompletionRequest, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, ItemAttributes, ItemDeliveryConfig, ItemDiscount, ItemModifier, ItemPaymentConfig, ItemPriceBreakdown, ItemPricingInfo, ItemQuantityInfo, ItemSource, ItemStatus, ItemStatusWithLiterals, ItemTaxConfig, ItemType, ItemTypeItemType, ItemTypeItemTypeDataOneOf, ItemTypeItemTypeWithLiterals, LegacyFields, LineItem, LineItemSummary, LineItemTax, LineItemUpdate, MarkCartAsCompletedOptions, MarkCartAsCompletedRequest, MarkCartAsCompletedResponse, Membership, MessageEnvelope, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, PaymentInfo, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PaymentSummary, PhysicalProperties, PlaceOrderOptions, PlaceOrderRequest, PlaceOrderResponse, PlainTextValue, Policy, PriceDescription, PriceSummary, QuantityUpdate, RawHttpResponse, RedirectUrls, RefreshCartRequest, RefreshCartResponse, RefreshCurrentCartRequest, RefreshCurrentCartResponse, RemoveCouponFromCurrentCartRequest, RemoveCouponFromCurrentCartResponse, RemoveCouponRequest, RemoveCouponResponse, RemoveGiftCardFromCurrentCartRequest, RemoveGiftCardFromCurrentCartResponse, RemoveGiftCardRequest, RemoveGiftCardResponse, RemoveLineItemsFromCurrentCartRequest, RemoveLineItemsFromCurrentCartResponse, RemoveLineItemsRequest, RemoveLineItemsResponse, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedMembership, SelectedMembershipUpdate, ServiceProperties, Severity, SeverityWithLiterals, StreetAddress, SubscriptionCharges, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionOptionInfo, SubscriptionSettings, SuggestedFix, SuggestedFixWithLiterals, SystemError, Target, TargetTargetTypeOneOf, Tax, TaxDetails, TaxInfo, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, Title, TranslatableString, UpdateCart, UpdateCartRequest, UpdateCartResponse, UpdateCurrentCartRequest, UpdateCurrentCartResponse, UpdateLineItemsInCurrentCartRequest, UpdateLineItemsInCurrentCartResponse, UpdateLineItemsOptions, UpdateLineItemsRequest, UpdateLineItemsResponse, V2AdditionalFee, V2LineItem, ValidationError, ValidationsConfig, ValidationsConfigWithLiterals, VatId, VatType, VatTypeWithLiterals, Violation, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals } from './index.mjs';
|
|
@@ -1096,19 +1096,6 @@ var DiscountScope = /* @__PURE__ */ ((DiscountScope2) => {
|
|
|
1096
1096
|
DiscountScope2["DELIVERY"] = "DELIVERY";
|
|
1097
1097
|
return DiscountScope2;
|
|
1098
1098
|
})(DiscountScope || {});
|
|
1099
|
-
var CalculationComponent = /* @__PURE__ */ ((CalculationComponent2) => {
|
|
1100
|
-
CalculationComponent2["UNKNOWN_CALCULATION_COMPONENT"] = "UNKNOWN_CALCULATION_COMPONENT";
|
|
1101
|
-
CalculationComponent2["DISCOUNTS"] = "DISCOUNTS";
|
|
1102
|
-
CalculationComponent2["DELIVERY"] = "DELIVERY";
|
|
1103
|
-
CalculationComponent2["TAX"] = "TAX";
|
|
1104
|
-
CalculationComponent2["MEMBERSHIPS"] = "MEMBERSHIPS";
|
|
1105
|
-
CalculationComponent2["GIFT_CARDS"] = "GIFT_CARDS";
|
|
1106
|
-
return CalculationComponent2;
|
|
1107
|
-
})(CalculationComponent || {});
|
|
1108
|
-
var ErrorCode = /* @__PURE__ */ ((ErrorCode2) => {
|
|
1109
|
-
ErrorCode2["UNKNOWN_ERROR_CODE"] = "UNKNOWN_ERROR_CODE";
|
|
1110
|
-
return ErrorCode2;
|
|
1111
|
-
})(ErrorCode || {});
|
|
1112
1099
|
var RuleType = /* @__PURE__ */ ((RuleType2) => {
|
|
1113
1100
|
RuleType2["VALIDATION"] = "VALIDATION";
|
|
1114
1101
|
RuleType2["OTHER"] = "OTHER";
|
|
@@ -1511,6 +1498,7 @@ async function placeOrder2(cartId, options) {
|
|
|
1511
1498
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1512
1499
|
cartId,
|
|
1513
1500
|
pricingToken: options?.pricingToken,
|
|
1501
|
+
paymentToken: options?.paymentToken,
|
|
1514
1502
|
redirectUrls: options?.redirectUrls,
|
|
1515
1503
|
savePaymentMethod: options?.savePaymentMethod,
|
|
1516
1504
|
delayCapture: options?.delayCapture
|
|
@@ -1529,6 +1517,7 @@ async function placeOrder2(cartId, options) {
|
|
|
1529
1517
|
explicitPathsToArguments: {
|
|
1530
1518
|
cartId: "$[0]",
|
|
1531
1519
|
pricingToken: "$[1].pricingToken",
|
|
1520
|
+
paymentToken: "$[1].paymentToken",
|
|
1532
1521
|
redirectUrls: "$[1].redirectUrls",
|
|
1533
1522
|
savePaymentMethod: "$[1].savePaymentMethod",
|
|
1534
1523
|
delayCapture: "$[1].delayCapture"
|
|
@@ -1964,12 +1953,10 @@ async function handleAsyncCheckoutCompletion2(token) {
|
|
|
1964
1953
|
}
|
|
1965
1954
|
}
|
|
1966
1955
|
export {
|
|
1967
|
-
CalculationComponent,
|
|
1968
1956
|
ChannelType,
|
|
1969
1957
|
DescriptionLineType,
|
|
1970
1958
|
DiscountScope,
|
|
1971
1959
|
DiscountSourceType,
|
|
1972
|
-
ErrorCode,
|
|
1973
1960
|
FileType,
|
|
1974
1961
|
ItemStatus,
|
|
1975
1962
|
ItemTypeItemType,
|