@wix/auto_sdk_ecom_current-cart 1.0.164 → 1.0.166
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 +1 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -39
- package/build/cjs/index.typings.js +1 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -32
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +0 -4
- package/build/cjs/schemas.js +1 -9
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +1 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -39
- package/build/es/index.typings.mjs +1 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -32
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +0 -4
- package/build/es/schemas.mjs +1 -9
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +1 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +9 -40
- package/build/internal/cjs/index.typings.js +1 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +2 -32
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +0 -4
- package/build/internal/cjs/schemas.js +1 -9
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +1 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +9 -40
- package/build/internal/es/index.typings.mjs +1 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +2 -32
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +0 -4
- package/build/internal/es/schemas.mjs +1 -9
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1208,13 +1208,6 @@ interface UpdateCartRequest {
|
|
|
1208
1208
|
cartInfo?: Cart;
|
|
1209
1209
|
/** Coupon code. For more information, see the Coupons API. */
|
|
1210
1210
|
couponCode?: string | null;
|
|
1211
|
-
/**
|
|
1212
|
-
* Merchant discounts to apply to specific line items. If no `lineItemIds` are passed, the discount will be applied to the whole cart.
|
|
1213
|
-
* @maxSize 100
|
|
1214
|
-
* @deprecated Merchant discounts to apply to specific line items. If no `lineItemIds` are passed, the discount will be applied to the whole cart.
|
|
1215
|
-
* @targetRemovalDate 2025-09-01
|
|
1216
|
-
*/
|
|
1217
|
-
merchantDiscounts?: MerchantDiscountInput[];
|
|
1218
1211
|
/**
|
|
1219
1212
|
* Catalog line items.
|
|
1220
1213
|
* @maxSize 300
|
|
@@ -1229,19 +1222,6 @@ interface UpdateCartRequest {
|
|
|
1229
1222
|
*/
|
|
1230
1223
|
customLineItems?: CustomLineItem[];
|
|
1231
1224
|
}
|
|
1232
|
-
interface MerchantDiscountInput {
|
|
1233
|
-
/**
|
|
1234
|
-
* Discount amount.
|
|
1235
|
-
* @decimalValue options { gte:0 }
|
|
1236
|
-
*/
|
|
1237
|
-
amount?: string;
|
|
1238
|
-
/**
|
|
1239
|
-
* IDs of line items the discount applies to.
|
|
1240
|
-
* @format GUID
|
|
1241
|
-
* @maxSize 300
|
|
1242
|
-
*/
|
|
1243
|
-
lineItemIds?: string[];
|
|
1244
|
-
}
|
|
1245
1225
|
interface CustomLineItem {
|
|
1246
1226
|
/**
|
|
1247
1227
|
* Custom line item quantity.
|
|
@@ -1617,10 +1597,7 @@ interface LineItemPricesData {
|
|
|
1617
1597
|
priceBeforeDiscounts?: MultiCurrencyPrice;
|
|
1618
1598
|
/** Total line item price after catalog-defined discounts, automatic discounts, and modifiers. */
|
|
1619
1599
|
lineItemPrice?: MultiCurrencyPrice;
|
|
1620
|
-
/**
|
|
1621
|
-
* Item price before all discounts and modifiers.
|
|
1622
|
-
* Defaults to `price` when not provided.
|
|
1623
|
-
*/
|
|
1600
|
+
/** Catalog price before any discounts, with modifiers. */
|
|
1624
1601
|
fullPrice?: MultiCurrencyPrice;
|
|
1625
1602
|
/**
|
|
1626
1603
|
* Partial payment out of `price` to be paid upfront during the checkout.
|
|
@@ -2871,13 +2848,6 @@ interface CreateCartRequest {
|
|
|
2871
2848
|
cartInfo?: Cart;
|
|
2872
2849
|
/** Code of an existing coupon to apply to cart. For more information, see the Coupons API. */
|
|
2873
2850
|
couponCode?: string | null;
|
|
2874
|
-
/**
|
|
2875
|
-
* Merchant discounts to apply to specific line items. If no `lineItemIds` are passed, the discount will be applied to the whole cart.
|
|
2876
|
-
* @maxSize 100
|
|
2877
|
-
* @deprecated Merchant discounts to apply to specific line items. If no `lineItemIds` are passed, the discount will be applied to the whole cart.
|
|
2878
|
-
* @targetRemovalDate 2025-09-01
|
|
2879
|
-
*/
|
|
2880
|
-
merchantDiscounts?: MerchantDiscountInput[];
|
|
2881
2851
|
/**
|
|
2882
2852
|
* Catalog line items.
|
|
2883
2853
|
* @maxSize 300
|
|
@@ -3239,13 +3209,6 @@ interface UpdateCurrentCartOptions {
|
|
|
3239
3209
|
cartInfo?: Cart;
|
|
3240
3210
|
/** Coupon code. For more information, see the Coupons API. */
|
|
3241
3211
|
couponCode?: string | null;
|
|
3242
|
-
/**
|
|
3243
|
-
* Merchant discounts to apply to specific line items. If no `lineItemIds` are passed, the discount will be applied to the whole cart.
|
|
3244
|
-
* @maxSize 100
|
|
3245
|
-
* @deprecated Merchant discounts to apply to specific line items. If no `lineItemIds` are passed, the discount will be applied to the whole cart.
|
|
3246
|
-
* @targetRemovalDate 2025-09-01
|
|
3247
|
-
*/
|
|
3248
|
-
merchantDiscounts?: MerchantDiscountInput[];
|
|
3249
3212
|
/**
|
|
3250
3213
|
* Catalog line items.
|
|
3251
3214
|
* @maxSize 300
|
|
@@ -3450,4 +3413,4 @@ interface EstimateCurrentCartTotalsOptions {
|
|
|
3450
3413
|
*/
|
|
3451
3414
|
declare function deleteCurrentCart(): Promise<void>;
|
|
3452
3415
|
|
|
3453
|
-
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddToCartRequest, type AddToCartResponse, type AddToCurrentCartAndEstimateTotalsRequest, type AddToCurrentCartOptions, type AddToCurrentCartRequest, type AdditionalFee, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type Address, type AddressLocation, type AddressWithContact, type AggregatedTaxBreakdown, type ApplicableLineItems, type ApplicationError, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, AppliedDiscountDiscountType, type AppliedDiscountDiscountTypeWithLiterals, type AutoTaxFallbackCalculationDetails, BalanceType, type BalanceTypeWithLiterals, type BaseEventMetadata, type BillingSettings, type BuyerInfo, type BuyerInfoIdOneOf, type CalculatedItemModifier, type CalculatedLineItem, type CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf, type Carrier, type CarrierError, type CarrierErrors, type CarrierServiceOption, type Cart, type CartCreatedEnvelope, type CartDeletedEnvelope, type CartDiscount, type CartDiscountDiscountSourceOneOf, type CartUpdatedEnvelope, type CatalogOverrideFields, type CatalogReference, ChannelType, type ChannelTypeWithLiterals, ChargeType, type ChargeTypeWithLiterals, type Color, type Coupon, type CreateCartRequest, type CreateCartResponse, type CreateCheckoutFromCurrentCartOptions, type CreateCheckoutFromCurrentCartRequest, type CreateCheckoutRequest, type CreateCheckoutResponse, type CustomLineItem, type DeleteCartRequest, type DeleteCartResponse, type DeleteCurrentCartRequest, type DeliveryAllocation, type DeliveryLogistics, type DeliveryTimeSlot, type Description, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type Details, type DetailsKindOneOf, type Dimensions, DimensionsUnit, type DimensionsUnitWithLiterals, type DiscountRule, type DiscountRuleName, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EstimateCurrentCartTotalsOptions, type EstimateCurrentCartTotalsRequest, type EstimateTotalsRequest, type EstimateTotalsResponse, type EventMetadata, type ExtendedFields, FallbackReason, type FallbackReasonWithLiterals, type FieldViolation, FileType, type FileTypeWithLiterals, type FocalPoint, type FreeTrialPeriod, type FullAddressContactDetails, type GetCartByCheckoutIdRequest, type GetCartByCheckoutIdResponse, type GetCartRequest, type GetCartResponse, type GetCurrentCartApplicationErrors, type GetCurrentCartRequest, type GetCurrentCartResponse, type GiftCard, type GiftCardCalculationError, type Group, type HostSelectedMembership, type IdentificationData, type IdentificationDataIdOneOf, type InvalidMembership, type ItemAvailabilityInfo, ItemAvailabilityStatus, type ItemAvailabilityStatusWithLiterals, type ItemCombination, type ItemCombinationLineItem, type ItemModifier, type ItemTaxFullDetails, type ItemType, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LineItem, type LineItemAdded, type LineItemDiscount, type LineItemPricesData, type LineItemQuantityUpdate, ManualCalculationReason, type ManualCalculationReasonWithLiterals, type Membership, type MembershipName, type MembershipOptions, type MembershipPaymentCredits, type MerchantDiscount, type
|
|
3416
|
+
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddToCartRequest, type AddToCartResponse, type AddToCurrentCartAndEstimateTotalsRequest, type AddToCurrentCartOptions, type AddToCurrentCartRequest, type AdditionalFee, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type Address, type AddressLocation, type AddressWithContact, type AggregatedTaxBreakdown, type ApplicableLineItems, type ApplicationError, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, AppliedDiscountDiscountType, type AppliedDiscountDiscountTypeWithLiterals, type AutoTaxFallbackCalculationDetails, BalanceType, type BalanceTypeWithLiterals, type BaseEventMetadata, type BillingSettings, type BuyerInfo, type BuyerInfoIdOneOf, type CalculatedItemModifier, type CalculatedLineItem, type CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf, type Carrier, type CarrierError, type CarrierErrors, type CarrierServiceOption, type Cart, type CartCreatedEnvelope, type CartDeletedEnvelope, type CartDiscount, type CartDiscountDiscountSourceOneOf, type CartUpdatedEnvelope, type CatalogOverrideFields, type CatalogReference, ChannelType, type ChannelTypeWithLiterals, ChargeType, type ChargeTypeWithLiterals, type Color, type Coupon, type CreateCartRequest, type CreateCartResponse, type CreateCheckoutFromCurrentCartOptions, type CreateCheckoutFromCurrentCartRequest, type CreateCheckoutRequest, type CreateCheckoutResponse, type CustomLineItem, type DeleteCartRequest, type DeleteCartResponse, type DeleteCurrentCartRequest, type DeliveryAllocation, type DeliveryLogistics, type DeliveryTimeSlot, type Description, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type Details, type DetailsKindOneOf, type Dimensions, DimensionsUnit, type DimensionsUnitWithLiterals, type DiscountRule, type DiscountRuleName, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EstimateCurrentCartTotalsOptions, type EstimateCurrentCartTotalsRequest, type EstimateTotalsRequest, type EstimateTotalsResponse, type EventMetadata, type ExtendedFields, FallbackReason, type FallbackReasonWithLiterals, type FieldViolation, FileType, type FileTypeWithLiterals, type FocalPoint, type FreeTrialPeriod, type FullAddressContactDetails, type GetCartByCheckoutIdRequest, type GetCartByCheckoutIdResponse, type GetCartRequest, type GetCartResponse, type GetCurrentCartApplicationErrors, type GetCurrentCartRequest, type GetCurrentCartResponse, type GiftCard, type GiftCardCalculationError, type Group, type HostSelectedMembership, type IdentificationData, type IdentificationDataIdOneOf, type InvalidMembership, type ItemAvailabilityInfo, ItemAvailabilityStatus, type ItemAvailabilityStatusWithLiterals, type ItemCombination, type ItemCombinationLineItem, type ItemModifier, type ItemTaxFullDetails, type ItemType, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LineItem, type LineItemAdded, type LineItemDiscount, type LineItemPricesData, type LineItemQuantityUpdate, ManualCalculationReason, type ManualCalculationReasonWithLiterals, type Membership, type MembershipName, type MembershipOptions, type MembershipPaymentCredits, type MerchantDiscount, type MessageEnvelope, type ModifierGroup, type MultiCurrencyPrice, NameInLineItem, type NameInLineItemWithLiterals, NameInOther, type NameInOtherWithLiterals, type Other, type OtherCharge, type PaymentOption, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PhysicalProperties, type PickupDetails, PickupMethod, type PickupMethodWithLiterals, type PlainTextValue, type PlatformFee, PlatformFeeChargeType, type PlatformFeeChargeTypeWithLiterals, type Policy, type PriceDescription, type PriceSummary, type ProductName, ProductPeriodAlignment, type ProductPeriodAlignmentWithLiterals, RateType, type RateTypeWithLiterals, type Region, type RemoveBusinessLocationRequest, type RemoveBusinessLocationResponse, type RemoveCouponFromCurrentCartRequest, type RemoveCouponRequest, type RemoveCouponResponse, type RemoveLineItemsFromCurrentCartRequest, type RemoveLineItemsRequest, type RemoveLineItemsResponse, type RestoreInfo, RuleType, type RuleTypeWithLiterals, type Scope, type SecuredMedia, type SelectedCarrierServiceOption, type SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices, type SelectedMembership, type SelectedMemberships, type SelectedShippingOption, type ServiceProperties, Severity, type SeverityWithLiterals, type ShippingInformation, type ShippingOption, type ShippingPrice, type ShippingRegion, type StreetAddress, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionOptionInfo, type SubscriptionSettings, SuggestedFix, type SuggestedFixWithLiterals, type SystemError, type Target, type TargetLineItem, type TargetTargetTypeOneOf, type TaxBreakdown, type TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf, type TaxRateBreakdown, type TaxSummary, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type Title, type TranslatableString, type UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartLineItemQuantityRequest, type UpdateCurrentCartOptions, type UpdateLineItemsQuantityRequest, type UpdateLineItemsQuantityResponse, type V1Coupon, type V1DiscountRule, type V1DiscountRuleName, type V1ItemModifier, type V1MerchantDiscount, type V1ModifierGroup, type ValidationError, type VatId, VatType, type VatTypeWithLiterals, type Violation, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, addToCurrentCart, createCheckoutFromCurrentCart, deleteCurrentCart, estimateCurrentCartTotals, getCurrentCart, onCartCreated, onCartDeleted, onCartUpdated, removeCouponFromCurrentCart, removeLineItemsFromCurrentCart, updateCurrentCart, updateCurrentCartLineItemQuantity };
|
|
@@ -855,6 +855,7 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
|
855
855
|
ChannelType2["PAYPAL_AGENTIC_CHECKOUT"] = "PAYPAL_AGENTIC_CHECKOUT";
|
|
856
856
|
ChannelType2["STRIPE_AGENTIC_CHECKOUT"] = "STRIPE_AGENTIC_CHECKOUT";
|
|
857
857
|
ChannelType2["WIX_INVOICES_PLATFORM"] = "WIX_INVOICES_PLATFORM";
|
|
858
|
+
ChannelType2["UCP_AGENTIC_CHECKOUT"] = "UCP_AGENTIC_CHECKOUT";
|
|
858
859
|
return ChannelType2;
|
|
859
860
|
})(ChannelType || {});
|
|
860
861
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
@@ -912,7 +913,6 @@ async function updateCurrentCart2(options) {
|
|
|
912
913
|
renameKeysFromSDKRequestToRESTRequest({
|
|
913
914
|
cartInfo: options?.cartInfo,
|
|
914
915
|
couponCode: options?.couponCode,
|
|
915
|
-
merchantDiscounts: options?.merchantDiscounts,
|
|
916
916
|
lineItems: options?.lineItems,
|
|
917
917
|
customLineItems: options?.customLineItems
|
|
918
918
|
}),
|
|
@@ -973,7 +973,6 @@ async function updateCurrentCart2(options) {
|
|
|
973
973
|
explicitPathsToArguments: {
|
|
974
974
|
cartInfo: "$[0].cartInfo",
|
|
975
975
|
couponCode: "$[0].couponCode",
|
|
976
|
-
merchantDiscounts: "$[0].merchantDiscounts",
|
|
977
976
|
lineItems: "$[0].lineItems",
|
|
978
977
|
customLineItems: "$[0].customLineItems"
|
|
979
978
|
},
|