@wix/auto_sdk_ecom_draft-orders 1.0.180 → 1.0.181
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 +4 -4
- package/build/cjs/index.js +103 -12
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +80 -2
- package/build/cjs/index.typings.js +92 -11
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +81 -2
- package/build/cjs/meta.js +51 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs +102 -12
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +80 -2
- package/build/es/index.typings.mjs +91 -11
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +81 -2
- package/build/es/meta.mjs +50 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +34 -4
- package/build/internal/cjs/index.typings.d.ts +173 -8
- package/build/internal/cjs/meta.d.ts +111 -7
- package/build/internal/es/index.d.mts +34 -4
- package/build/internal/es/index.typings.d.mts +173 -8
- package/build/internal/es/meta.d.mts +111 -7
- package/package.json +2 -2
|
@@ -2016,6 +2016,16 @@ interface DepositDetails extends DepositDetailsDepositOneOf {
|
|
|
2016
2016
|
* @readonly
|
|
2017
2017
|
*/
|
|
2018
2018
|
priceSummary?: PriceSummary;
|
|
2019
|
+
/**
|
|
2020
|
+
* Currency of `amount`, which must match the draft order's currency.
|
|
2021
|
+
* Three-letter currency code in
|
|
2022
|
+
* [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
2023
|
+
*
|
|
2024
|
+
* Required if the draft order's currency differs from the site currency.
|
|
2025
|
+
* Doesn't apply when the deposit is set as a `percentage`.
|
|
2026
|
+
* @format CURRENCY
|
|
2027
|
+
*/
|
|
2028
|
+
currency?: string | null;
|
|
2019
2029
|
}
|
|
2020
2030
|
/** @oneof */
|
|
2021
2031
|
interface DepositDetailsDepositOneOf {
|
|
@@ -2699,6 +2709,34 @@ interface SetDepositResponse {
|
|
|
2699
2709
|
/** Draft order calculated with the latest changes. */
|
|
2700
2710
|
calculatedDraftOrder?: CalculatedDraftOrder;
|
|
2701
2711
|
}
|
|
2712
|
+
interface ChangeDraftOrderCurrencyRequest {
|
|
2713
|
+
/**
|
|
2714
|
+
* Draft order ID.
|
|
2715
|
+
* @format GUID
|
|
2716
|
+
*/
|
|
2717
|
+
draftOrderId: string;
|
|
2718
|
+
/**
|
|
2719
|
+
* The currency to change the draft order to. Three-letter currency code in
|
|
2720
|
+
* [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
2721
|
+
*
|
|
2722
|
+
* This is the target currency only. Wix derives the source currency from the draft order's
|
|
2723
|
+
* stored currency.
|
|
2724
|
+
* @format CURRENCY
|
|
2725
|
+
*/
|
|
2726
|
+
targetCurrency: string;
|
|
2727
|
+
}
|
|
2728
|
+
interface ChangeDraftOrderCurrencyResponse {
|
|
2729
|
+
/** Draft order calculated with the latest changes. */
|
|
2730
|
+
calculatedDraftOrder?: CalculatedDraftOrder;
|
|
2731
|
+
/**
|
|
2732
|
+
* The draft order's currency before this call. Three-letter currency code in
|
|
2733
|
+
* [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
2734
|
+
*
|
|
2735
|
+
* This is the currency that the returned `calculatedDraftOrder` was converted from.
|
|
2736
|
+
* @format CURRENCY
|
|
2737
|
+
*/
|
|
2738
|
+
previousCurrency?: string;
|
|
2739
|
+
}
|
|
2702
2740
|
interface SetDiscountsRequest {
|
|
2703
2741
|
/**
|
|
2704
2742
|
* Draft order ID.
|
|
@@ -5085,6 +5123,14 @@ type CreateDraftOrderApplicationErrors = {
|
|
|
5085
5123
|
code?: 'NOT_AUTHORIZED_TO_READ_DRAFT_ORDERS';
|
|
5086
5124
|
description?: string;
|
|
5087
5125
|
data?: Record<string, any>;
|
|
5126
|
+
} | {
|
|
5127
|
+
code?: 'CURRENCY_NOT_PAYABLE';
|
|
5128
|
+
description?: string;
|
|
5129
|
+
data?: Record<string, any>;
|
|
5130
|
+
} | {
|
|
5131
|
+
code?: 'CURRENCY_CONVERSION_UNAVAILABLE';
|
|
5132
|
+
description?: string;
|
|
5133
|
+
data?: Record<string, any>;
|
|
5088
5134
|
};
|
|
5089
5135
|
/** @docsIgnore */
|
|
5090
5136
|
type CreateEmptyDraftOrderApplicationErrors = {
|
|
@@ -5257,6 +5303,32 @@ type SetDepositApplicationErrors = {
|
|
|
5257
5303
|
code?: 'DRAFT_ORDER_HAS_DEPOSIT_LINE_ITEMS';
|
|
5258
5304
|
description?: string;
|
|
5259
5305
|
data?: Record<string, any>;
|
|
5306
|
+
} | {
|
|
5307
|
+
code?: 'CURRENCY_REQUIRED';
|
|
5308
|
+
description?: string;
|
|
5309
|
+
data?: Record<string, any>;
|
|
5310
|
+
} | {
|
|
5311
|
+
code?: 'CURRENCY_DOES_NOT_MATCH_DRAFT_ORDER_CURRENCY';
|
|
5312
|
+
description?: string;
|
|
5313
|
+
data?: Record<string, any>;
|
|
5314
|
+
};
|
|
5315
|
+
/** @docsIgnore */
|
|
5316
|
+
type ChangeDraftOrderCurrencyApplicationErrors = {
|
|
5317
|
+
code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
|
|
5318
|
+
description?: string;
|
|
5319
|
+
data?: Record<string, any>;
|
|
5320
|
+
} | {
|
|
5321
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
5322
|
+
description?: string;
|
|
5323
|
+
data?: Record<string, any>;
|
|
5324
|
+
} | {
|
|
5325
|
+
code?: 'CURRENCY_NOT_PAYABLE';
|
|
5326
|
+
description?: string;
|
|
5327
|
+
data?: Record<string, any>;
|
|
5328
|
+
} | {
|
|
5329
|
+
code?: 'CURRENCY_CONVERSION_UNAVAILABLE';
|
|
5330
|
+
description?: string;
|
|
5331
|
+
data?: Record<string, any>;
|
|
5260
5332
|
};
|
|
5261
5333
|
/** @docsIgnore */
|
|
5262
5334
|
type SetDiscountsApplicationErrors = {
|
|
@@ -5487,6 +5559,10 @@ type CreateOrderFromDraftApplicationErrors = {
|
|
|
5487
5559
|
code?: 'SUBSCRIPTION_ACTIVATION_INCOMPATIBLE_WITH_ORDER_STATUS';
|
|
5488
5560
|
description?: string;
|
|
5489
5561
|
data?: Record<string, any>;
|
|
5562
|
+
} | {
|
|
5563
|
+
code?: 'DRAFT_ORDER_CURRENCY_NOT_PAYABLE';
|
|
5564
|
+
description?: string;
|
|
5565
|
+
data?: Record<string, any>;
|
|
5490
5566
|
};
|
|
5491
5567
|
/** @docsIgnore */
|
|
5492
5568
|
type DeleteDraftOrderApplicationErrors = {
|
|
@@ -5782,9 +5858,11 @@ interface AddLineItemsToDraftOrderOptions {
|
|
|
5782
5858
|
* @applicableIdentity APP
|
|
5783
5859
|
* @fqn com.wix.ecom.orders.draft.v1.DraftOrders.UpdateLineItems
|
|
5784
5860
|
*/
|
|
5785
|
-
declare function updateLineItems(draftOrderId: string, lineItemChanges: NonNullablePaths<LineItemChangeDetails, `lineItemId` | `newModifierGroups.modifierGroups.${number}._id` | `newModifierGroups.modifierGroups.${number}.modifiers.${number}._id`, 5>[]): Promise<NonNullablePaths<UpdateLineItemsResponse, `calculatedDraftOrder.draftOrder.lineItems` | `calculatedDraftOrder.draftOrder.lineItems.${number}.added` | `calculatedDraftOrder.draftOrder.lineItems.${number}.changedDetails.priceBeforeChange.amount` | `calculatedDraftOrder.draftOrder.lineItems.${number}.changedDetails.priceBeforeChange.formattedAmount` | `calculatedDraftOrder.draftOrder.lineItems.${number}.changedDetails.priceDescriptionBeforeChange.original` | `calculatedDraftOrder.draftOrder.lineItems.${number}.removed` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem._id` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.productName.original` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.catalogReference.catalogItemId` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.catalogReference.appId` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.quantity` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.physicalProperties.shippable` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.itemType.preset` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.itemType.custom` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.paymentOption` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.taxDetails.taxRate` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.taxInfo.taxIncludedInPrice` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.digitalFile.fileId` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.subscriptionInfo.cycleNumber` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.subscriptionInfo.subscriptionOptionTitle` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.taxableAddress.addressType` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.priceUndetermined` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.fixedQuantity` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.decimalQuantity.measurementUnit` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.decimalQuantity.otherUnit` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.decimalQuantity.value` | `calculatedDraftOrder.draftOrder.shippingInfo.added` | `calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.title` | `calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.streetAddress.number` | `calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.streetAddress.name` | `calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.contactDetails.vatId._id` | `calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.contactDetails.vatId.type` | `calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.pickupMethod` | `calculatedDraftOrder.draftOrder.shippingInfo.removed` | `calculatedDraftOrder.draftOrder.buyerInfo.visitorId` | `calculatedDraftOrder.draftOrder.buyerInfo.memberId` | `calculatedDraftOrder.draftOrder.additionalFees` | `calculatedDraftOrder.draftOrder.additionalFees.${number}.additionalFee.name` | `calculatedDraftOrder.draftOrder.additionalFees.${number}.additionalFee._id` | `calculatedDraftOrder.draftOrder.additionalFees.${number}.additionalFee.source` | `calculatedDraftOrder.draftOrder.additionalFees.${number}.taxDetails.taxable` | `calculatedDraftOrder.draftOrder.additionalFees.${number}.source` | `calculatedDraftOrder.draftOrder.additionalFees.${number}.applied` | `calculatedDraftOrder.draftOrder.discounts` | `calculatedDraftOrder.draftOrder.discounts.${number}.discount.coupon._id` | `calculatedDraftOrder.draftOrder.discounts.${number}.discount.coupon.code` | `calculatedDraftOrder.draftOrder.discounts.${number}.discount.coupon.name` | `calculatedDraftOrder.draftOrder.discounts.${number}.discount.merchantDiscount.discountReason` | `calculatedDraftOrder.draftOrder.discounts.${number}.discount.discountRule._id` | `calculatedDraftOrder.draftOrder.discounts.${number}.discount.discountType` | `calculatedDraftOrder.draftOrder.discounts.${number}.source` | `calculatedDraftOrder.draftOrder.discounts.${number}.applied` | `calculatedDraftOrder.draftOrder.createdBy.userId` | `calculatedDraftOrder.draftOrder.createdBy.appId` | `calculatedDraftOrder.draftOrder.status` | `calculatedDraftOrder.draftOrder.weightUnit` | `calculatedDraftOrder.draftOrder.balanceSummary.balance.amount` | `calculatedDraftOrder.draftOrder.balanceSummary.balance.formattedAmount` | `calculatedDraftOrder.draftOrder.balanceSummary.cashRoundingAdjustment.amount` | `calculatedDraftOrder.draftOrder.balanceSummary.cashRoundingAdjustment.formattedAmount` | `calculatedDraftOrder.draftOrder.commitSettings.updateInventory` | `calculatedDraftOrder.draftOrder.commitSettings.updateInventory.${number}.lineItemId` | `calculatedDraftOrder.draftOrder.recipientInfo.added` | `calculatedDraftOrder.draftOrder.recipientInfo.removed` | `calculatedDraftOrder.draftOrder.taxInfo.taxBreakdown` | `calculatedDraftOrder.draftOrder.taxInfo.taxBreakdown.${number}.taxName` | `calculatedDraftOrder.draftOrder.taxInfo.taxBreakdown.${number}.taxType` | `calculatedDraftOrder.draftOrder.taxInfo.taxBreakdown.${number}.jurisdiction` | `calculatedDraftOrder.draftOrder.taxInfo.taxBreakdown.${number}.jurisdictionType` | `calculatedDraftOrder.draftOrder.taxInfo.taxBreakdown.${number}.rate` | `calculatedDraftOrder.draftOrder.buyerDetails.added` | `calculatedDraftOrder.draftOrder.buyerDetails.removed` | `calculatedDraftOrder.draftOrder.billingDetails.added` | `calculatedDraftOrder.draftOrder.billingDetails.removed` | `calculatedDraftOrder.draftOrder.businessLocationDetails.added` | `calculatedDraftOrder.draftOrder.businessLocationDetails.changedDetails.businessLocationBeforeChange._id` | `calculatedDraftOrder.draftOrder.businessLocationDetails.changedDetails.businessLocationBeforeChange.name` | `calculatedDraftOrder.draftOrder.businessLocationDetails.removed` | `calculatedDraftOrder.draftOrder.platformFeeSummary.fees` | `calculatedDraftOrder.draftOrder.platformFeeSummary.fees.${number}.name.original` | `calculatedDraftOrder.draftOrder.platformFeeSummary.fees.${number}.lineItemId` | `calculatedDraftOrder.draftOrder.platformFeeSummary.fees.${number}.chargeType` | `calculatedDraftOrder.draftOrder.platformFeeSummary.fees.${number}.percentageRate` | `calculatedDraftOrder.shippingOptions` | `calculatedDraftOrder.shippingOptions.${number}.code` | `calculatedDraftOrder.shippingOptions.${number}.title` | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.pickupMethod` | `calculatedDraftOrder.shippingOptions.${number}.cost.currency` | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.code` | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.description` | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations` | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field` | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description` | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule` | `calculatedDraftOrder.calculationErrors.carrierErrors.errors` | `calculatedDraftOrder.calculationErrors.carrierErrors.errors.${number}.carrierId` | `calculatedDraftOrder.calculationErrors.orderValidationErrors`, 9> & {
|
|
5861
|
+
declare function updateLineItems(draftOrderId: string, lineItemChanges: NonNullablePaths<LineItemChangeDetails, `lineItemId` | `newModifierGroups.modifierGroups.${number}._id` | `newModifierGroups.modifierGroups.${number}.modifiers.${number}._id`, 5>[], options?: UpdateLineItemsOptions): Promise<NonNullablePaths<UpdateLineItemsResponse, `calculatedDraftOrder.draftOrder.lineItems` | `calculatedDraftOrder.draftOrder.lineItems.${number}.added` | `calculatedDraftOrder.draftOrder.lineItems.${number}.changedDetails.priceBeforeChange.amount` | `calculatedDraftOrder.draftOrder.lineItems.${number}.changedDetails.priceBeforeChange.formattedAmount` | `calculatedDraftOrder.draftOrder.lineItems.${number}.changedDetails.priceDescriptionBeforeChange.original` | `calculatedDraftOrder.draftOrder.lineItems.${number}.removed` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem._id` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.productName.original` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.catalogReference.catalogItemId` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.catalogReference.appId` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.quantity` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.physicalProperties.shippable` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.itemType.preset` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.itemType.custom` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.paymentOption` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.taxDetails.taxRate` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.taxInfo.taxIncludedInPrice` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.digitalFile.fileId` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.subscriptionInfo.cycleNumber` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.subscriptionInfo.subscriptionOptionTitle` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.taxableAddress.addressType` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.priceUndetermined` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.fixedQuantity` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.decimalQuantity.measurementUnit` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.decimalQuantity.otherUnit` | `calculatedDraftOrder.draftOrder.lineItems.${number}.lineItem.decimalQuantity.value` | `calculatedDraftOrder.draftOrder.shippingInfo.added` | `calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.title` | `calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.streetAddress.number` | `calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.streetAddress.name` | `calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.contactDetails.vatId._id` | `calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.contactDetails.vatId.type` | `calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.pickupMethod` | `calculatedDraftOrder.draftOrder.shippingInfo.removed` | `calculatedDraftOrder.draftOrder.buyerInfo.visitorId` | `calculatedDraftOrder.draftOrder.buyerInfo.memberId` | `calculatedDraftOrder.draftOrder.additionalFees` | `calculatedDraftOrder.draftOrder.additionalFees.${number}.additionalFee.name` | `calculatedDraftOrder.draftOrder.additionalFees.${number}.additionalFee._id` | `calculatedDraftOrder.draftOrder.additionalFees.${number}.additionalFee.source` | `calculatedDraftOrder.draftOrder.additionalFees.${number}.taxDetails.taxable` | `calculatedDraftOrder.draftOrder.additionalFees.${number}.source` | `calculatedDraftOrder.draftOrder.additionalFees.${number}.applied` | `calculatedDraftOrder.draftOrder.discounts` | `calculatedDraftOrder.draftOrder.discounts.${number}.discount.coupon._id` | `calculatedDraftOrder.draftOrder.discounts.${number}.discount.coupon.code` | `calculatedDraftOrder.draftOrder.discounts.${number}.discount.coupon.name` | `calculatedDraftOrder.draftOrder.discounts.${number}.discount.merchantDiscount.discountReason` | `calculatedDraftOrder.draftOrder.discounts.${number}.discount.discountRule._id` | `calculatedDraftOrder.draftOrder.discounts.${number}.discount.discountType` | `calculatedDraftOrder.draftOrder.discounts.${number}.source` | `calculatedDraftOrder.draftOrder.discounts.${number}.applied` | `calculatedDraftOrder.draftOrder.createdBy.userId` | `calculatedDraftOrder.draftOrder.createdBy.appId` | `calculatedDraftOrder.draftOrder.status` | `calculatedDraftOrder.draftOrder.weightUnit` | `calculatedDraftOrder.draftOrder.balanceSummary.balance.amount` | `calculatedDraftOrder.draftOrder.balanceSummary.balance.formattedAmount` | `calculatedDraftOrder.draftOrder.balanceSummary.cashRoundingAdjustment.amount` | `calculatedDraftOrder.draftOrder.balanceSummary.cashRoundingAdjustment.formattedAmount` | `calculatedDraftOrder.draftOrder.commitSettings.updateInventory` | `calculatedDraftOrder.draftOrder.commitSettings.updateInventory.${number}.lineItemId` | `calculatedDraftOrder.draftOrder.recipientInfo.added` | `calculatedDraftOrder.draftOrder.recipientInfo.removed` | `calculatedDraftOrder.draftOrder.taxInfo.taxBreakdown` | `calculatedDraftOrder.draftOrder.taxInfo.taxBreakdown.${number}.taxName` | `calculatedDraftOrder.draftOrder.taxInfo.taxBreakdown.${number}.taxType` | `calculatedDraftOrder.draftOrder.taxInfo.taxBreakdown.${number}.jurisdiction` | `calculatedDraftOrder.draftOrder.taxInfo.taxBreakdown.${number}.jurisdictionType` | `calculatedDraftOrder.draftOrder.taxInfo.taxBreakdown.${number}.rate` | `calculatedDraftOrder.draftOrder.buyerDetails.added` | `calculatedDraftOrder.draftOrder.buyerDetails.removed` | `calculatedDraftOrder.draftOrder.billingDetails.added` | `calculatedDraftOrder.draftOrder.billingDetails.removed` | `calculatedDraftOrder.draftOrder.businessLocationDetails.added` | `calculatedDraftOrder.draftOrder.businessLocationDetails.changedDetails.businessLocationBeforeChange._id` | `calculatedDraftOrder.draftOrder.businessLocationDetails.changedDetails.businessLocationBeforeChange.name` | `calculatedDraftOrder.draftOrder.businessLocationDetails.removed` | `calculatedDraftOrder.draftOrder.platformFeeSummary.fees` | `calculatedDraftOrder.draftOrder.platformFeeSummary.fees.${number}.name.original` | `calculatedDraftOrder.draftOrder.platformFeeSummary.fees.${number}.lineItemId` | `calculatedDraftOrder.draftOrder.platformFeeSummary.fees.${number}.chargeType` | `calculatedDraftOrder.draftOrder.platformFeeSummary.fees.${number}.percentageRate` | `calculatedDraftOrder.shippingOptions` | `calculatedDraftOrder.shippingOptions.${number}.code` | `calculatedDraftOrder.shippingOptions.${number}.title` | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.pickupMethod` | `calculatedDraftOrder.shippingOptions.${number}.cost.currency` | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.code` | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.description` | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations` | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field` | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description` | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule` | `calculatedDraftOrder.calculationErrors.carrierErrors.errors` | `calculatedDraftOrder.calculationErrors.carrierErrors.errors.${number}.carrierId` | `calculatedDraftOrder.calculationErrors.orderValidationErrors`, 9> & {
|
|
5786
5862
|
__applicationErrorsType?: UpdateLineItemsApplicationErrors;
|
|
5787
5863
|
}>;
|
|
5864
|
+
interface UpdateLineItemsOptions {
|
|
5865
|
+
}
|
|
5788
5866
|
interface SetDepositOptions {
|
|
5789
5867
|
/**
|
|
5790
5868
|
* Deposit to set on the draft order.
|
|
@@ -6309,4 +6387,4 @@ interface SetBusinessLocationOptions {
|
|
|
6309
6387
|
businessLocation?: Location;
|
|
6310
6388
|
}
|
|
6311
6389
|
|
|
6312
|
-
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type Activity, type ActivityContentOneOf, ActivityType, type ActivityTypeWithLiterals, type AddLineItemsToDraftOrderApplicationErrors, type AddLineItemsToDraftOrderOptions, type AddLineItemsToDraftOrderRequest, type AddLineItemsToDraftOrderResponse, type AdditionalFee, type AdditionalFeeDetails, type AdditionalFeeOption, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type Address, type AddressLocation, type AddressWithContact, AdjustmentType, type AdjustmentTypeWithLiterals, type ApplicationError, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, AppliedDiscountDiscountType, type AppliedDiscountDiscountTypeWithLiterals, AttributionSource, type AttributionSourceWithLiterals, type AuthorizedPaymentCaptured, type AuthorizedPaymentCreated, type AuthorizedPaymentVoided, type Balance, type BalanceSummary, type BaseEventMetadata, type BillingAdjustment, type BillingAdjustmentPriceSummary, type BillingChangedDetails, type BillingDetails, type BillingDetailsChangeTypeOneOf, type BillingSettings, type BusinessLocationChangedDetails, type BusinessLocationDetails, type BusinessLocationDetailsChangeTypeOneOf, type BuyerChangedDetails, type BuyerDetails, type BuyerDetailsChangeTypeOneOf, type BuyerInfo, type BuyerInfoIdOneOf, type CalculatedDraftOrder, CalculationBehavior, type CalculationBehaviorWithLiterals, type CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf, type CarrierError, type CarrierErrors, type CashRounding, type CatalogReference, type CatalogReferenceLineItem, type ChannelInfo, ChannelType, type ChannelTypeWithLiterals, ChargeType, type ChargeTypeWithLiterals, type ChargebackCreated, type ChargebackReversed, type Color, type CommitDraftOrderApplicationErrors, type CommitDraftOrderOptions, type CommitDraftOrderRequest, type CommitDraftOrderResponse, type CommonQueryWithEntityContext, type Coupon, type CreateCustomAdditionalFeesApplicationErrors, type CreateCustomAdditionalFeesOptions, type CreateCustomAdditionalFeesRequest, type CreateCustomAdditionalFeesResponse, type CreateCustomDiscountsApplicationErrors, type CreateCustomDiscountsOptions, type CreateCustomDiscountsRequest, type CreateCustomDiscountsResponse, type CreateDraftOrderApplicationErrors, type CreateDraftOrderOptions, type CreateDraftOrderOptionsSourceOneOf, type CreateDraftOrderRequest, type CreateDraftOrderRequestSourceOneOf, type CreateDraftOrderResponse, type CreateEmptyDraftOrderApplicationErrors, type CreateEmptyDraftOrderRequest, type CreateEmptyDraftOrderResponse, type CreateOrderFromDraftApplicationErrors, type CreateOrderFromDraftOptions, type CreateOrderFromDraftRequest, type CreateOrderFromDraftResponse, type CreatedBy, type CreatedByStringOneOf, type CreditCardDetails, type CurrencyConversionDetails, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomActivity, type CustomAllowedActions, type CustomField, type CustomLineItem, type DecimalQuantity, type DecimalQuantityOverride, type DecimalQuantityUnitOneOf, type DeleteCustomAdditionalFeesApplicationErrors, type DeleteCustomAdditionalFeesRequest, type DeleteCustomAdditionalFeesResponse, type DeleteCustomDiscountsApplicationErrors, type DeleteCustomDiscountsRequest, type DeleteCustomDiscountsResponse, type DeleteDraftOrderApplicationErrors, type DeleteDraftOrderRequest, type DeleteDraftOrderResponse, type DeliveryLogistics, type DeliveryTimeSlot, type DepositDetails, type DepositDetailsDepositOneOf, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type DescriptionLinesOverride, type Details, type DetailsKindOneOf, type DigitalFile, type Dimensions, DimensionsUnit, type DimensionsUnitWithLiterals, type DiscountDetails, type DiscountOption, type DiscountOptionDiscountAmountOneOf, DiscountReason, type DiscountReasonWithLiterals, type DiscountRule, type DiscountRuleName, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type DraftOrder, type DraftOrderChangesApplied, type DraftOrderCommitSettings, type DraftOrderCreatedEnvelope, type DraftOrderDeletedEnvelope, type DraftOrderInput, type DraftOrderQuery, type DraftOrderQuerySpec, type DraftOrderUpdatedEnvelope, type DraftOrdersQueryBuilder, type DraftOrdersQueryResult, EditingStatus, type EditingStatusWithLiterals, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type ExternalReceipt, type FieldViolation, FileType, type FileTypeWithLiterals, type FocalPoint, type FormIdentifier, type FormInfo, type FreeTrialPeriod, FulfillmentStatus, type FulfillmentStatusWithLiterals, type FulfillmentStatusesAggregate, type FullAddressContactDetails, type GetDraftOrderApplicationErrors, type GetDraftOrderRequest, type GetDraftOrderResponse, type GetOrderDraftabilityStatusRequest, type GetOrderDraftabilityStatusResponse, type GiftCardPaymentRefund, type IdAndApplied, type IdentificationData, type IdentificationDataIdOneOf, type InventoryUpdate, type ItemChangedDetails, type ItemChangedImplicitlyDetails, type ItemCombination, type ItemCombinationLineItem, type ItemDetails, type ItemDetailsChangeTypeOneOf, type ItemModifier, type ItemTaxFullDetails, type ItemType, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LineItemAmount, type LineItemChangeDetails, type LineItemChanges, type LineItemDescriptionLineChange, type LineItemDiscount, type LineItemExchangeData, type LineItemModifiersChange, type LineItemPriceChange, type LineItemProductNameChange, type LineItemQuantityChange, LineItemQuantityChangeType, type LineItemQuantityChangeTypeWithLiterals, type LineItemTaxBreakdown, type LineItemTaxInfo, type Location, type LocationAndQuantity, type ManagedAdditionalFee, type ManagedDiscount, type ManagedLineItem, MeasurementUnit, type MeasurementUnitWithLiterals, type MembershipPaymentRefund, type MerchantComment, type MerchantDiscount, type MerchantDiscountMerchantDiscountReasonOneOf, type MessageEnvelope, type ModifierGroup, type ModifiersGroupsOverride, type NewExchangeOrderCreated, NonDraftableReason, type NonDraftableReasonWithLiterals, type Order, OrderActionType, type OrderActionTypeWithLiterals, OrderActivityTypeEnumActivityType, type OrderActivityTypeEnumActivityTypeWithLiterals, type OrderChange, type OrderChangeValueOneOf, type OrderCreateNotifications, type OrderCreateSettings, type OrderCreateSettingsEditableByOneOf, type OrderCreatedFromExchange, type OrderLineItem, type OrderRefunded, type OrderSettings, type OrderSettingsAllowedActionsOneOf, type OrderSettingsEditableByOneOf, OrderStatus, type OrderStatusWithLiterals, type OrderTaxBreakdown, type OrderTaxInfo, type OwnerApps, type PaymentCanceled, type PaymentCanceledPaymentDetailsOneOf, type PaymentDeclined, type PaymentDeclinedPaymentDetailsOneOf, type PaymentOptionOverride, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PaymentPending, type PaymentPendingPaymentDetailsOneOf, type PaymentRefundFailed, type PaymentRefunded, PaymentStatus, type PaymentStatusWithLiterals, type PhysicalProperties, type PickupAddress, type PickupDetails, PickupDetailsPickupMethod, type PickupDetailsPickupMethodWithLiterals, PickupMethod, type PickupMethodWithLiterals, type PlainTextValue, type PlatformFee, type PlatformFeeSummary, type Price, type PriceDescription, type PriceSummary, type ProductName, ProductPeriodAlignment, type ProductPeriodAlignmentWithLiterals, type QueryDraftOrdersRequest, type QueryDraftOrdersResponse, type ReceiptCreated, type ReceiptCreatedReceiptInfoOneOf, type ReceiptSent, type ReceiptSentReceiptInfoOneOf, type RecipientInfoChangedDetails, type RecipientInfoDetails, type RecipientInfoDetailsChangeTypeOneOf, type RefundInitiated, type RefundedAsStoreCredit, type RefundedPayment, type RefundedPaymentKindOneOf, type RegularPayment, type RegularPaymentPaymentMethodDetailsOneOf, type RegularPaymentRefund, type RestockLocation, type RestoreInfo, RuleType, type RuleTypeWithLiterals, type SavedPaymentMethod, type SecuredMedia, type ServiceProperties, type SetAdditionalFeesApplicationErrors, type SetAdditionalFeesRequest, type SetAdditionalFeesResponse, type SetBillingInfoApplicationErrors, type SetBillingInfoOptions, type SetBillingInfoRequest, type SetBillingInfoResponse, type SetBusinessLocationApplicationErrors, type SetBusinessLocationOptions, type SetBusinessLocationRequest, type SetBusinessLocationResponse, type SetBuyerInfoApplicationErrors, type SetBuyerInfoOptions, type SetBuyerInfoRequest, type SetBuyerInfoResponse, type SetDepositApplicationErrors, type SetDepositOptions, type SetDepositRequest, type SetDepositResponse, type SetDiscountsApplicationErrors, type SetDiscountsRequest, type SetDiscountsResponse, type SetRecipientInfoApplicationErrors, type SetRecipientInfoOptions, type SetRecipientInfoRequest, type SetRecipientInfoResponse, type SetShippingInfoApplicationErrors, type SetShippingInfoOptions, type SetShippingInfoRequest, type SetShippingInfoResponse, type SetTaxExemptionApplicationErrors, type SetTaxExemptionOptions, type SetTaxExemptionRequest, type SetTaxExemptionResponse, type ShippingChangedDetails, type ShippingDetails, type ShippingDetailsChangeTypeOneOf, type ShippingInformation, type ShippingInformationChange, type ShippingOption, type ShippingPrice, type ShippingRegion, SortOrder, type SortOrderWithLiterals, type Sorting, SourceType, type SourceTypeWithLiterals, SpecificItemsCouponBehavior, type SpecificItemsCouponBehaviorWithLiterals, type StreetAddress, SubscriptionActivation, type SubscriptionActivationWithLiterals, type SubscriptionDescription, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionInfo, type SubscriptionSettings, type SubscriptionTitle, type SystemError, type TagList, type Tags, type TaxDetails, type TaxSummary, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type TotalPriceChange, type TranslatableString, type TranslatedValue, type UpdateExtendedFieldsApplicationErrors, type UpdateExtendedFieldsOptions, type UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse, type UpdateLineItemsApplicationErrors, type UpdateLineItemsRequest, type UpdateLineItemsResponse, type UpdateShippingInfoRequest, type UpdateShippingInfoResponse, type V1BalanceSummary, type V1CreatedBy, type V1CreatedByStringOneOf, type V1DeliveryLogistics, type V1DeliveryLogisticsAddressOneOf, type V1DeliveryTimeSlot, V1OrderStatus, type V1OrderStatusWithLiterals, type V1PickupDetails, type V1ShippingInformation, type V1ShippingPrice, type ValidationError, type VatId, VatType, type VatTypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, type WixReceipt, addLineItemsToDraftOrder, commitDraftOrder, createCustomAdditionalFees, createCustomDiscounts, createDraftOrder, createEmptyDraftOrder, createOrderFromDraft, deleteCustomAdditionalFees, deleteCustomDiscounts, deleteDraftOrder, getDraftOrder, getOrderDraftabilityStatus, onDraftOrderCreated, onDraftOrderDeleted, onDraftOrderUpdated, queryDraftOrders, setAdditionalFees, setBillingInfo, setBusinessLocation, setBuyerInfo, setDiscounts, setRecipientInfo, setShippingInfo, setTaxExemption, typedQueryDraftOrders, updateExtendedFields, updateLineItems, utils };
|
|
6390
|
+
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type Activity, type ActivityContentOneOf, ActivityType, type ActivityTypeWithLiterals, type AddLineItemsToDraftOrderApplicationErrors, type AddLineItemsToDraftOrderOptions, type AddLineItemsToDraftOrderRequest, type AddLineItemsToDraftOrderResponse, type AdditionalFee, type AdditionalFeeDetails, type AdditionalFeeOption, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type Address, type AddressLocation, type AddressWithContact, AdjustmentType, type AdjustmentTypeWithLiterals, type ApplicationError, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, AppliedDiscountDiscountType, type AppliedDiscountDiscountTypeWithLiterals, AttributionSource, type AttributionSourceWithLiterals, type AuthorizedPaymentCaptured, type AuthorizedPaymentCreated, type AuthorizedPaymentVoided, type Balance, type BalanceSummary, type BaseEventMetadata, type BillingAdjustment, type BillingAdjustmentPriceSummary, type BillingChangedDetails, type BillingDetails, type BillingDetailsChangeTypeOneOf, type BillingSettings, type BusinessLocationChangedDetails, type BusinessLocationDetails, type BusinessLocationDetailsChangeTypeOneOf, type BuyerChangedDetails, type BuyerDetails, type BuyerDetailsChangeTypeOneOf, type BuyerInfo, type BuyerInfoIdOneOf, type CalculatedDraftOrder, CalculationBehavior, type CalculationBehaviorWithLiterals, type CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf, type CarrierError, type CarrierErrors, type CashRounding, type CatalogReference, type CatalogReferenceLineItem, type ChangeDraftOrderCurrencyApplicationErrors, type ChangeDraftOrderCurrencyRequest, type ChangeDraftOrderCurrencyResponse, type ChannelInfo, ChannelType, type ChannelTypeWithLiterals, ChargeType, type ChargeTypeWithLiterals, type ChargebackCreated, type ChargebackReversed, type Color, type CommitDraftOrderApplicationErrors, type CommitDraftOrderOptions, type CommitDraftOrderRequest, type CommitDraftOrderResponse, type CommonQueryWithEntityContext, type Coupon, type CreateCustomAdditionalFeesApplicationErrors, type CreateCustomAdditionalFeesOptions, type CreateCustomAdditionalFeesRequest, type CreateCustomAdditionalFeesResponse, type CreateCustomDiscountsApplicationErrors, type CreateCustomDiscountsOptions, type CreateCustomDiscountsRequest, type CreateCustomDiscountsResponse, type CreateDraftOrderApplicationErrors, type CreateDraftOrderOptions, type CreateDraftOrderOptionsSourceOneOf, type CreateDraftOrderRequest, type CreateDraftOrderRequestSourceOneOf, type CreateDraftOrderResponse, type CreateEmptyDraftOrderApplicationErrors, type CreateEmptyDraftOrderRequest, type CreateEmptyDraftOrderResponse, type CreateOrderFromDraftApplicationErrors, type CreateOrderFromDraftOptions, type CreateOrderFromDraftRequest, type CreateOrderFromDraftResponse, type CreatedBy, type CreatedByStringOneOf, type CreditCardDetails, type CurrencyConversionDetails, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomActivity, type CustomAllowedActions, type CustomField, type CustomLineItem, type DecimalQuantity, type DecimalQuantityOverride, type DecimalQuantityUnitOneOf, type DeleteCustomAdditionalFeesApplicationErrors, type DeleteCustomAdditionalFeesRequest, type DeleteCustomAdditionalFeesResponse, type DeleteCustomDiscountsApplicationErrors, type DeleteCustomDiscountsRequest, type DeleteCustomDiscountsResponse, type DeleteDraftOrderApplicationErrors, type DeleteDraftOrderRequest, type DeleteDraftOrderResponse, type DeliveryLogistics, type DeliveryTimeSlot, type DepositDetails, type DepositDetailsDepositOneOf, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type DescriptionLinesOverride, type Details, type DetailsKindOneOf, type DigitalFile, type Dimensions, DimensionsUnit, type DimensionsUnitWithLiterals, type DiscountDetails, type DiscountOption, type DiscountOptionDiscountAmountOneOf, DiscountReason, type DiscountReasonWithLiterals, type DiscountRule, type DiscountRuleName, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type DraftOrder, type DraftOrderChangesApplied, type DraftOrderCommitSettings, type DraftOrderCreatedEnvelope, type DraftOrderDeletedEnvelope, type DraftOrderInput, type DraftOrderQuery, type DraftOrderQuerySpec, type DraftOrderUpdatedEnvelope, type DraftOrdersQueryBuilder, type DraftOrdersQueryResult, EditingStatus, type EditingStatusWithLiterals, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type ExternalReceipt, type FieldViolation, FileType, type FileTypeWithLiterals, type FocalPoint, type FormIdentifier, type FormInfo, type FreeTrialPeriod, FulfillmentStatus, type FulfillmentStatusWithLiterals, type FulfillmentStatusesAggregate, type FullAddressContactDetails, type GetDraftOrderApplicationErrors, type GetDraftOrderRequest, type GetDraftOrderResponse, type GetOrderDraftabilityStatusRequest, type GetOrderDraftabilityStatusResponse, type GiftCardPaymentRefund, type IdAndApplied, type IdentificationData, type IdentificationDataIdOneOf, type InventoryUpdate, type ItemChangedDetails, type ItemChangedImplicitlyDetails, type ItemCombination, type ItemCombinationLineItem, type ItemDetails, type ItemDetailsChangeTypeOneOf, type ItemModifier, type ItemTaxFullDetails, type ItemType, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LineItemAmount, type LineItemChangeDetails, type LineItemChanges, type LineItemDescriptionLineChange, type LineItemDiscount, type LineItemExchangeData, type LineItemModifiersChange, type LineItemPriceChange, type LineItemProductNameChange, type LineItemQuantityChange, LineItemQuantityChangeType, type LineItemQuantityChangeTypeWithLiterals, type LineItemTaxBreakdown, type LineItemTaxInfo, type Location, type LocationAndQuantity, type ManagedAdditionalFee, type ManagedDiscount, type ManagedLineItem, MeasurementUnit, type MeasurementUnitWithLiterals, type MembershipPaymentRefund, type MerchantComment, type MerchantDiscount, type MerchantDiscountMerchantDiscountReasonOneOf, type MessageEnvelope, type ModifierGroup, type ModifiersGroupsOverride, type NewExchangeOrderCreated, NonDraftableReason, type NonDraftableReasonWithLiterals, type Order, OrderActionType, type OrderActionTypeWithLiterals, OrderActivityTypeEnumActivityType, type OrderActivityTypeEnumActivityTypeWithLiterals, type OrderChange, type OrderChangeValueOneOf, type OrderCreateNotifications, type OrderCreateSettings, type OrderCreateSettingsEditableByOneOf, type OrderCreatedFromExchange, type OrderLineItem, type OrderRefunded, type OrderSettings, type OrderSettingsAllowedActionsOneOf, type OrderSettingsEditableByOneOf, OrderStatus, type OrderStatusWithLiterals, type OrderTaxBreakdown, type OrderTaxInfo, type OwnerApps, type PaymentCanceled, type PaymentCanceledPaymentDetailsOneOf, type PaymentDeclined, type PaymentDeclinedPaymentDetailsOneOf, type PaymentOptionOverride, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PaymentPending, type PaymentPendingPaymentDetailsOneOf, type PaymentRefundFailed, type PaymentRefunded, PaymentStatus, type PaymentStatusWithLiterals, type PhysicalProperties, type PickupAddress, type PickupDetails, PickupDetailsPickupMethod, type PickupDetailsPickupMethodWithLiterals, PickupMethod, type PickupMethodWithLiterals, type PlainTextValue, type PlatformFee, type PlatformFeeSummary, type Price, type PriceDescription, type PriceSummary, type ProductName, ProductPeriodAlignment, type ProductPeriodAlignmentWithLiterals, type QueryDraftOrdersRequest, type QueryDraftOrdersResponse, type ReceiptCreated, type ReceiptCreatedReceiptInfoOneOf, type ReceiptSent, type ReceiptSentReceiptInfoOneOf, type RecipientInfoChangedDetails, type RecipientInfoDetails, type RecipientInfoDetailsChangeTypeOneOf, type RefundInitiated, type RefundedAsStoreCredit, type RefundedPayment, type RefundedPaymentKindOneOf, type RegularPayment, type RegularPaymentPaymentMethodDetailsOneOf, type RegularPaymentRefund, type RestockLocation, type RestoreInfo, RuleType, type RuleTypeWithLiterals, type SavedPaymentMethod, type SecuredMedia, type ServiceProperties, type SetAdditionalFeesApplicationErrors, type SetAdditionalFeesRequest, type SetAdditionalFeesResponse, type SetBillingInfoApplicationErrors, type SetBillingInfoOptions, type SetBillingInfoRequest, type SetBillingInfoResponse, type SetBusinessLocationApplicationErrors, type SetBusinessLocationOptions, type SetBusinessLocationRequest, type SetBusinessLocationResponse, type SetBuyerInfoApplicationErrors, type SetBuyerInfoOptions, type SetBuyerInfoRequest, type SetBuyerInfoResponse, type SetDepositApplicationErrors, type SetDepositOptions, type SetDepositRequest, type SetDepositResponse, type SetDiscountsApplicationErrors, type SetDiscountsRequest, type SetDiscountsResponse, type SetRecipientInfoApplicationErrors, type SetRecipientInfoOptions, type SetRecipientInfoRequest, type SetRecipientInfoResponse, type SetShippingInfoApplicationErrors, type SetShippingInfoOptions, type SetShippingInfoRequest, type SetShippingInfoResponse, type SetTaxExemptionApplicationErrors, type SetTaxExemptionOptions, type SetTaxExemptionRequest, type SetTaxExemptionResponse, type ShippingChangedDetails, type ShippingDetails, type ShippingDetailsChangeTypeOneOf, type ShippingInformation, type ShippingInformationChange, type ShippingOption, type ShippingPrice, type ShippingRegion, SortOrder, type SortOrderWithLiterals, type Sorting, SourceType, type SourceTypeWithLiterals, SpecificItemsCouponBehavior, type SpecificItemsCouponBehaviorWithLiterals, type StreetAddress, SubscriptionActivation, type SubscriptionActivationWithLiterals, type SubscriptionDescription, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionInfo, type SubscriptionSettings, type SubscriptionTitle, type SystemError, type TagList, type Tags, type TaxDetails, type TaxSummary, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type TotalPriceChange, type TranslatableString, type TranslatedValue, type UpdateExtendedFieldsApplicationErrors, type UpdateExtendedFieldsOptions, type UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse, type UpdateLineItemsApplicationErrors, type UpdateLineItemsOptions, type UpdateLineItemsRequest, type UpdateLineItemsResponse, type UpdateShippingInfoRequest, type UpdateShippingInfoResponse, type V1BalanceSummary, type V1CreatedBy, type V1CreatedByStringOneOf, type V1DeliveryLogistics, type V1DeliveryLogisticsAddressOneOf, type V1DeliveryTimeSlot, V1OrderStatus, type V1OrderStatusWithLiterals, type V1PickupDetails, type V1ShippingInformation, type V1ShippingPrice, type ValidationError, type VatId, VatType, type VatTypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, type WixReceipt, addLineItemsToDraftOrder, commitDraftOrder, createCustomAdditionalFees, createCustomDiscounts, createDraftOrder, createEmptyDraftOrder, createOrderFromDraft, deleteCustomAdditionalFees, deleteCustomDiscounts, deleteDraftOrder, getDraftOrder, getOrderDraftabilityStatus, onDraftOrderCreated, onDraftOrderDeleted, onDraftOrderUpdated, queryDraftOrders, setAdditionalFees, setBillingInfo, setBusinessLocation, setBuyerInfo, setDiscounts, setRecipientInfo, setShippingInfo, setTaxExemption, typedQueryDraftOrders, updateExtendedFields, updateLineItems, utils };
|
|
@@ -60,6 +60,7 @@ __export(index_typings_exports, {
|
|
|
60
60
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
61
61
|
WeightUnit: () => WeightUnit,
|
|
62
62
|
addLineItemsToDraftOrder: () => addLineItemsToDraftOrder2,
|
|
63
|
+
changeDraftOrderCurrency: () => changeDraftOrderCurrency2,
|
|
63
64
|
commitDraftOrder: () => commitDraftOrder2,
|
|
64
65
|
createCustomAdditionalFees: () => createCustomAdditionalFees2,
|
|
65
66
|
createCustomDiscounts: () => createCustomDiscounts2,
|
|
@@ -889,6 +890,37 @@ function setDeposit(payload) {
|
|
|
889
890
|
}
|
|
890
891
|
return __setDeposit;
|
|
891
892
|
}
|
|
893
|
+
function changeDraftOrderCurrency(payload) {
|
|
894
|
+
function __changeDraftOrderCurrency({ host }) {
|
|
895
|
+
const metadata = {
|
|
896
|
+
entityFqdn: "wix.ecom.v1.draft_order",
|
|
897
|
+
method: "POST",
|
|
898
|
+
methodFqn: "com.wix.ecom.orders.draft.v1.DraftOrders.ChangeDraftOrderCurrency",
|
|
899
|
+
packageName: PACKAGE_NAME,
|
|
900
|
+
migrationOptions: {
|
|
901
|
+
optInTransformResponse: true
|
|
902
|
+
},
|
|
903
|
+
url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({
|
|
904
|
+
protoPath: "/v1/draft-orders/{draftOrderId}/change-currency",
|
|
905
|
+
data: payload,
|
|
906
|
+
host
|
|
907
|
+
}),
|
|
908
|
+
data: payload,
|
|
909
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
910
|
+
{
|
|
911
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
912
|
+
paths: TRANSFORM_PATHS_2
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
916
|
+
paths: TRANSFORM_PATHS_3
|
|
917
|
+
}
|
|
918
|
+
])
|
|
919
|
+
};
|
|
920
|
+
return metadata;
|
|
921
|
+
}
|
|
922
|
+
return __changeDraftOrderCurrency;
|
|
923
|
+
}
|
|
892
924
|
function setDiscounts(payload) {
|
|
893
925
|
function __setDiscounts({ host }) {
|
|
894
926
|
const metadata = {
|
|
@@ -2165,7 +2197,8 @@ async function addLineItemsToDraftOrder2(draftOrderId, options) {
|
|
|
2165
2197
|
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2166
2198
|
draftOrderId,
|
|
2167
2199
|
catalogLineItems: options?.catalogLineItems,
|
|
2168
|
-
customLineItems: options?.customLineItems
|
|
2200
|
+
customLineItems: options?.customLineItems,
|
|
2201
|
+
currency: options?.currency
|
|
2169
2202
|
}),
|
|
2170
2203
|
[
|
|
2171
2204
|
{
|
|
@@ -2203,7 +2236,8 @@ async function addLineItemsToDraftOrder2(draftOrderId, options) {
|
|
|
2203
2236
|
explicitPathsToArguments: {
|
|
2204
2237
|
draftOrderId: "$[0]",
|
|
2205
2238
|
catalogLineItems: "$[1].catalogLineItems",
|
|
2206
|
-
customLineItems: "$[1].customLineItems"
|
|
2239
|
+
customLineItems: "$[1].customLineItems",
|
|
2240
|
+
currency: "$[1].currency"
|
|
2207
2241
|
},
|
|
2208
2242
|
singleArgumentUnchanged: false
|
|
2209
2243
|
},
|
|
@@ -2213,11 +2247,12 @@ async function addLineItemsToDraftOrder2(draftOrderId, options) {
|
|
|
2213
2247
|
throw transformedError;
|
|
2214
2248
|
}
|
|
2215
2249
|
}
|
|
2216
|
-
async function updateLineItems2(draftOrderId, lineItemChanges) {
|
|
2217
|
-
const { httpClient, sideEffects } = arguments[
|
|
2250
|
+
async function updateLineItems2(draftOrderId, lineItemChanges, options) {
|
|
2251
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
2218
2252
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2219
2253
|
draftOrderId,
|
|
2220
|
-
lineItemChanges
|
|
2254
|
+
lineItemChanges,
|
|
2255
|
+
currency: options?.currency
|
|
2221
2256
|
});
|
|
2222
2257
|
const reqOpts = updateLineItems(payload);
|
|
2223
2258
|
sideEffects?.onSiteCall?.();
|
|
@@ -2243,11 +2278,12 @@ async function updateLineItems2(draftOrderId, lineItemChanges) {
|
|
|
2243
2278
|
spreadPathsToArguments: {},
|
|
2244
2279
|
explicitPathsToArguments: {
|
|
2245
2280
|
draftOrderId: "$[0]",
|
|
2246
|
-
lineItemChanges: "$[1]"
|
|
2281
|
+
lineItemChanges: "$[1]",
|
|
2282
|
+
currency: "$[2].currency"
|
|
2247
2283
|
},
|
|
2248
2284
|
singleArgumentUnchanged: false
|
|
2249
2285
|
},
|
|
2250
|
-
["draftOrderId", "lineItemChanges"]
|
|
2286
|
+
["draftOrderId", "lineItemChanges", "options"]
|
|
2251
2287
|
);
|
|
2252
2288
|
sideEffects?.onError?.(err);
|
|
2253
2289
|
throw transformedError;
|
|
@@ -2293,6 +2329,46 @@ async function setDeposit2(draftOrderId, options) {
|
|
|
2293
2329
|
throw transformedError;
|
|
2294
2330
|
}
|
|
2295
2331
|
}
|
|
2332
|
+
async function changeDraftOrderCurrency2(draftOrderId, targetCurrency) {
|
|
2333
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2334
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2335
|
+
draftOrderId,
|
|
2336
|
+
targetCurrency
|
|
2337
|
+
});
|
|
2338
|
+
const reqOpts = changeDraftOrderCurrency(payload);
|
|
2339
|
+
sideEffects?.onSiteCall?.();
|
|
2340
|
+
try {
|
|
2341
|
+
const result = await httpClient.request(reqOpts);
|
|
2342
|
+
sideEffects?.onSuccess?.(result);
|
|
2343
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
2344
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2345
|
+
{
|
|
2346
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2347
|
+
paths: TRANSFORM_PATHS_32
|
|
2348
|
+
},
|
|
2349
|
+
{
|
|
2350
|
+
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2351
|
+
paths: TRANSFORM_PATHS_42
|
|
2352
|
+
}
|
|
2353
|
+
])
|
|
2354
|
+
);
|
|
2355
|
+
} catch (err) {
|
|
2356
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2357
|
+
err,
|
|
2358
|
+
{
|
|
2359
|
+
spreadPathsToArguments: {},
|
|
2360
|
+
explicitPathsToArguments: {
|
|
2361
|
+
draftOrderId: "$[0]",
|
|
2362
|
+
targetCurrency: "$[1]"
|
|
2363
|
+
},
|
|
2364
|
+
singleArgumentUnchanged: false
|
|
2365
|
+
},
|
|
2366
|
+
["draftOrderId", "targetCurrency"]
|
|
2367
|
+
);
|
|
2368
|
+
sideEffects?.onError?.(err);
|
|
2369
|
+
throw transformedError;
|
|
2370
|
+
}
|
|
2371
|
+
}
|
|
2296
2372
|
async function setDiscounts2(draftOrderId, discounts) {
|
|
2297
2373
|
const { httpClient, sideEffects } = arguments[2];
|
|
2298
2374
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -2334,7 +2410,8 @@ async function createCustomDiscounts2(draftOrderId, options) {
|
|
|
2334
2410
|
const { httpClient, sideEffects } = arguments[2];
|
|
2335
2411
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2336
2412
|
draftOrderId,
|
|
2337
|
-
discounts: options?.discounts
|
|
2413
|
+
discounts: options?.discounts,
|
|
2414
|
+
currency: options?.currency
|
|
2338
2415
|
});
|
|
2339
2416
|
const reqOpts = createCustomDiscounts(payload);
|
|
2340
2417
|
sideEffects?.onSiteCall?.();
|
|
@@ -2360,7 +2437,8 @@ async function createCustomDiscounts2(draftOrderId, options) {
|
|
|
2360
2437
|
spreadPathsToArguments: {},
|
|
2361
2438
|
explicitPathsToArguments: {
|
|
2362
2439
|
draftOrderId: "$[0]",
|
|
2363
|
-
discounts: "$[1].discounts"
|
|
2440
|
+
discounts: "$[1].discounts",
|
|
2441
|
+
currency: "$[1].currency"
|
|
2364
2442
|
},
|
|
2365
2443
|
singleArgumentUnchanged: false
|
|
2366
2444
|
},
|
|
@@ -2534,7 +2612,8 @@ async function setShippingInfo2(draftOrderId, options) {
|
|
|
2534
2612
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
2535
2613
|
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2536
2614
|
draftOrderId,
|
|
2537
|
-
shippingInfo: options?.shippingInfo
|
|
2615
|
+
shippingInfo: options?.shippingInfo,
|
|
2616
|
+
currency: options?.currency
|
|
2538
2617
|
}),
|
|
2539
2618
|
[
|
|
2540
2619
|
{
|
|
@@ -2567,7 +2646,8 @@ async function setShippingInfo2(draftOrderId, options) {
|
|
|
2567
2646
|
spreadPathsToArguments: {},
|
|
2568
2647
|
explicitPathsToArguments: {
|
|
2569
2648
|
draftOrderId: "$[0]",
|
|
2570
|
-
shippingInfo: "$[1].shippingInfo"
|
|
2649
|
+
shippingInfo: "$[1].shippingInfo",
|
|
2650
|
+
currency: "$[1].currency"
|
|
2571
2651
|
},
|
|
2572
2652
|
singleArgumentUnchanged: false
|
|
2573
2653
|
},
|
|
@@ -3136,6 +3216,7 @@ async function setBusinessLocation2(draftOrderId, options) {
|
|
|
3136
3216
|
WebhookIdentityType,
|
|
3137
3217
|
WeightUnit,
|
|
3138
3218
|
addLineItemsToDraftOrder,
|
|
3219
|
+
changeDraftOrderCurrency,
|
|
3139
3220
|
commitDraftOrder,
|
|
3140
3221
|
createCustomAdditionalFees,
|
|
3141
3222
|
createCustomDiscounts,
|