@wix/auto_sdk_ecom_current-cart-v-2 1.0.40 → 1.0.42
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 +90 -3916
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +4140 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -1
- package/build/es/index.d.mts +90 -3916
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +4140 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -1
- package/build/internal/cjs/index.d.ts +0 -28
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +14 -14
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +0 -28
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +14 -14
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -3983,7 +3983,7 @@ interface HeadersEntry {
|
|
|
3983
3983
|
}
|
|
3984
3984
|
/**
|
|
3985
3985
|
* Creates the Current Cart of the customer.
|
|
3986
|
-
* @
|
|
3986
|
+
* @public
|
|
3987
3987
|
* @documentationMaturity preview
|
|
3988
3988
|
* @requiredField options.catalogItems.catalogReference
|
|
3989
3989
|
* @requiredField options.catalogItems.quantity
|
|
@@ -4033,7 +4033,7 @@ interface CreateCurrentCartOptions {
|
|
|
4033
4033
|
}
|
|
4034
4034
|
/**
|
|
4035
4035
|
* Retrieves the Current Cart of the customer.
|
|
4036
|
-
* @
|
|
4036
|
+
* @public
|
|
4037
4037
|
* @documentationMaturity preview
|
|
4038
4038
|
* @permissionId ecom:v2:cart:get_cart
|
|
4039
4039
|
* @applicableIdentity APP
|
|
@@ -4046,7 +4046,7 @@ declare function getCurrentCart(): Promise<NonNullablePaths<GetCurrentCartRespon
|
|
|
4046
4046
|
* Use this endpoint to set and replace fields such as buyer note and delivery method.
|
|
4047
4047
|
* To add or remove elements from lists (e.g., line items, discounts, gift cards), use their dedicated endpoints.
|
|
4048
4048
|
* @param cart - Cart to be updated, may be partial.
|
|
4049
|
-
* @
|
|
4049
|
+
* @public
|
|
4050
4050
|
* @documentationMaturity preview
|
|
4051
4051
|
* @requiredField cart
|
|
4052
4052
|
* @permissionId ecom:v2:cart:update_cart
|
|
@@ -4057,7 +4057,7 @@ declare function getCurrentCart(): Promise<NonNullablePaths<GetCurrentCartRespon
|
|
|
4057
4057
|
declare function updateCurrentCart(cart: Cart): Promise<NonNullablePaths<UpdateCurrentCartResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart`, 7>>;
|
|
4058
4058
|
/**
|
|
4059
4059
|
* Deletes the Current Cart of the customer.
|
|
4060
|
-
* @
|
|
4060
|
+
* @public
|
|
4061
4061
|
* @documentationMaturity preview
|
|
4062
4062
|
* @permissionId ecom:v2:cart:delete_cart
|
|
4063
4063
|
* @applicableIdentity APP
|
|
@@ -4066,7 +4066,7 @@ declare function updateCurrentCart(cart: Cart): Promise<NonNullablePaths<UpdateC
|
|
|
4066
4066
|
declare function deleteCurrentCart(): Promise<void>;
|
|
4067
4067
|
/**
|
|
4068
4068
|
* Re-evaluates prices, inventory and discounts to ensure the Cart is up-to-date with the latest changes.
|
|
4069
|
-
* @
|
|
4069
|
+
* @public
|
|
4070
4070
|
* @documentationMaturity preview
|
|
4071
4071
|
* @permissionId ecom:v2:cart:refresh_cart
|
|
4072
4072
|
* @applicableIdentity APP
|
|
@@ -4076,7 +4076,7 @@ declare function refreshCurrentCart(): Promise<NonNullablePaths<RefreshCurrentCa
|
|
|
4076
4076
|
/**
|
|
4077
4077
|
* Calculates the cart based on its current state (line items, discounts, delivery method, etc.)
|
|
4078
4078
|
* and returns a detailed summary including subtotal, delivery costs, taxes, fees and the total price.
|
|
4079
|
-
* @
|
|
4079
|
+
* @public
|
|
4080
4080
|
* @documentationMaturity preview
|
|
4081
4081
|
* @permissionId ecom:v2:cart:calculate_cart
|
|
4082
4082
|
* @applicableIdentity APP
|
|
@@ -4104,7 +4104,7 @@ interface CalculateCurrentCartOptions {
|
|
|
4104
4104
|
/**
|
|
4105
4105
|
* Adds line items to the Cart.
|
|
4106
4106
|
* If a Current Cart is not already existing, it will be created.
|
|
4107
|
-
* @
|
|
4107
|
+
* @public
|
|
4108
4108
|
* @documentationMaturity preview
|
|
4109
4109
|
* @requiredField options.catalogItems.catalogReference
|
|
4110
4110
|
* @requiredField options.catalogItems.quantity
|
|
@@ -4135,7 +4135,7 @@ interface AddLineItemsToCurrentCartOptions {
|
|
|
4135
4135
|
/**
|
|
4136
4136
|
* Removes line items from the Cart.
|
|
4137
4137
|
* @param lineItemIds - Line item IDs to remove from cart.
|
|
4138
|
-
* @
|
|
4138
|
+
* @public
|
|
4139
4139
|
* @documentationMaturity preview
|
|
4140
4140
|
* @requiredField lineItemIds
|
|
4141
4141
|
* @permissionId ecom:v2:cart:update_cart
|
|
@@ -4146,7 +4146,7 @@ declare function removeLineItemsFromCurrentCart(lineItemIds: string[]): Promise<
|
|
|
4146
4146
|
/**
|
|
4147
4147
|
* Updates line items in the Cart.
|
|
4148
4148
|
* Use this endpoint to update line items properties such as quantity and selected membership.
|
|
4149
|
-
* @
|
|
4149
|
+
* @public
|
|
4150
4150
|
* @documentationMaturity preview
|
|
4151
4151
|
* @requiredField options.lineItems.lineItemId
|
|
4152
4152
|
* @requiredField options.lineItems.quantity.newQuantity
|
|
@@ -4168,7 +4168,7 @@ interface UpdateLineItemsInCurrentCartOptions {
|
|
|
4168
4168
|
* @param coupon - Coupon to apply.
|
|
4169
4169
|
*
|
|
4170
4170
|
* Currently only one is supported.
|
|
4171
|
-
* @
|
|
4171
|
+
* @public
|
|
4172
4172
|
* @documentationMaturity preview
|
|
4173
4173
|
* @requiredField coupon
|
|
4174
4174
|
* @requiredField coupon.code
|
|
@@ -4180,7 +4180,7 @@ declare function addCouponToCurrentCart(coupon: NonNullablePaths<CouponInput, `c
|
|
|
4180
4180
|
/**
|
|
4181
4181
|
* Removes a coupon from the Cart.
|
|
4182
4182
|
* @param couponId - Coupon ID.
|
|
4183
|
-
* @
|
|
4183
|
+
* @public
|
|
4184
4184
|
* @documentationMaturity preview
|
|
4185
4185
|
* @requiredField couponId
|
|
4186
4186
|
* @permissionId ecom:v2:cart:update_cart
|
|
@@ -4191,7 +4191,7 @@ declare function removeCouponFromCurrentCart(couponId: string): Promise<NonNulla
|
|
|
4191
4191
|
/**
|
|
4192
4192
|
* Sets the delivery method for the Current Cart.
|
|
4193
4193
|
* @param deliveryMethod - Delivery method.
|
|
4194
|
-
* @
|
|
4194
|
+
* @public
|
|
4195
4195
|
* @documentationMaturity preview
|
|
4196
4196
|
* @requiredField deliveryMethod
|
|
4197
4197
|
* @requiredField deliveryMethod.code
|
|
@@ -4206,7 +4206,7 @@ declare function setDeliveryMethodForCurrentCart(deliveryMethod: NonNullablePath
|
|
|
4206
4206
|
* @param giftCard - Gift card code.
|
|
4207
4207
|
*
|
|
4208
4208
|
* Currently only one is supported.
|
|
4209
|
-
* @
|
|
4209
|
+
* @public
|
|
4210
4210
|
* @documentationMaturity preview
|
|
4211
4211
|
* @requiredField giftCard
|
|
4212
4212
|
* @requiredField giftCard.code
|
|
@@ -4218,7 +4218,7 @@ declare function addGiftCardToCurrentCart(giftCard: NonNullablePaths<GiftCardInp
|
|
|
4218
4218
|
/**
|
|
4219
4219
|
* Removes a gift card from the Current Cart.
|
|
4220
4220
|
* @param giftCardId - Gift card ID.
|
|
4221
|
-
* @
|
|
4221
|
+
* @public
|
|
4222
4222
|
* @documentationMaturity preview
|
|
4223
4223
|
* @requiredField giftCardId
|
|
4224
4224
|
* @permissionId ecom:v2:cart:update_cart
|