@wix/auto_sdk_ecom_draft-orders 1.0.179 → 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.
@@ -463,7 +463,7 @@ interface OrderLineItem {
463
463
  itemType?: ItemType;
464
464
  /**
465
465
  * Fulfiller ID. Field is empty when the line item is self-fulfilled.
466
- * To get fulfillment information, pass the order ID to [List Fulfillments For Single Order](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/order-fulfillments/list-fulfillments-for-single-order).
466
+ * To get fulfillment information, pass the order ID to [List Fulfillments For Single Order](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/order-fulfillments/list-fulfillments-for-single-order).
467
467
  * @format GUID
468
468
  */
469
469
  fulfillerId?: string | null;
@@ -560,7 +560,7 @@ interface OrderLineItem {
560
560
  /**
561
561
  * Custom extended fields for the line item object.
562
562
  *
563
- * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
563
+ * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.
564
564
  */
565
565
  extendedFields?: ExtendedFields;
566
566
  /**
@@ -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.
@@ -3150,7 +3188,7 @@ interface Order {
3150
3188
  /**
3151
3189
  * Custom field data for the order object.
3152
3190
  *
3153
- * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
3191
+ * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.
3154
3192
  */
3155
3193
  extendedFields?: ExtendedFields;
3156
3194
  /**
@@ -3169,7 +3207,7 @@ interface Order {
3169
3207
  /**
3170
3208
  * Order tags.
3171
3209
  *
3172
- * [Tags](https://dev.wix.com/docs/rest/business-management/tags/introduction) are labels attached to entities, allowing for flexible categorization and data management.
3210
+ * [Tags](https://dev.wix.com/docs/api-reference/business-management/tags/introduction) are labels attached to entities, allowing for flexible categorization and data management.
3173
3211
  */
3174
3212
  tags?: Tags;
3175
3213
  /**
@@ -3250,7 +3288,8 @@ declare enum FulfillmentStatus {
3250
3288
  NOT_FULFILLED = "NOT_FULFILLED",
3251
3289
  /**
3252
3290
  * All of the order items are fulfilled or the order was manually marked as fulfilled.
3253
- * Orders without shipping info are fulfilled automatically.
3291
+ * Paid orders without shipping info are fulfilled automatically.
3292
+ * Manually marking an order as fulfilled doesn't create a [fulfillment](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/order-fulfillments/introduction). Instead, an `ORDER_FULFILLED` activity is added to the order's `activities`.
3254
3293
  */
3255
3294
  FULFILLED = "FULFILLED",
3256
3295
  /** Some, but not all, of the order items are fulfilled. */
@@ -4044,9 +4083,9 @@ declare enum ActivityType {
4044
4083
  ORDER_PLACED = "ORDER_PLACED",
4045
4084
  /** Order payment was completed and confirmed. */
4046
4085
  ORDER_PAID = "ORDER_PAID",
4047
- /** Order items were marked as fulfilled (shipped or ready for pickup). */
4086
+ /** Order was manually marked as fulfilled, for example, in the site dashboard. The activity's `createdDate` is the date and time the order was marked as fulfilled. */
4048
4087
  ORDER_FULFILLED = "ORDER_FULFILLED",
4049
- /** Order fulfillment status was changed to not fulfilled. */
4088
+ /** Order was manually marked as not fulfilled, for example, in the site dashboard. */
4050
4089
  ORDER_NOT_FULFILLED = "ORDER_NOT_FULFILLED",
4051
4090
  /** Order was canceled by merchant or customer. */
4052
4091
  ORDER_CANCELED = "ORDER_CANCELED",
@@ -4172,9 +4211,9 @@ declare enum OrderActivityTypeEnumActivityType {
4172
4211
  ORDER_PLACED = "ORDER_PLACED",
4173
4212
  /** Order payment was completed and confirmed. */
4174
4213
  ORDER_PAID = "ORDER_PAID",
4175
- /** Order items were marked as fulfilled (shipped or ready for pickup). */
4214
+ /** Order was manually marked as fulfilled, for example, in the site dashboard. The activity's `createdDate` is the date and time the order was marked as fulfilled. */
4176
4215
  ORDER_FULFILLED = "ORDER_FULFILLED",
4177
- /** Order fulfillment status was changed to not fulfilled. */
4216
+ /** Order was manually marked as not fulfilled, for example, in the site dashboard. */
4178
4217
  ORDER_NOT_FULFILLED = "ORDER_NOT_FULFILLED",
4179
4218
  /** Order was canceled by merchant or customer. */
4180
4219
  ORDER_CANCELED = "ORDER_CANCELED",
@@ -5084,6 +5123,14 @@ type CreateDraftOrderApplicationErrors = {
5084
5123
  code?: 'NOT_AUTHORIZED_TO_READ_DRAFT_ORDERS';
5085
5124
  description?: string;
5086
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>;
5087
5134
  };
5088
5135
  /** @docsIgnore */
5089
5136
  type CreateEmptyDraftOrderApplicationErrors = {
@@ -5256,6 +5303,32 @@ type SetDepositApplicationErrors = {
5256
5303
  code?: 'DRAFT_ORDER_HAS_DEPOSIT_LINE_ITEMS';
5257
5304
  description?: string;
5258
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>;
5259
5332
  };
5260
5333
  /** @docsIgnore */
5261
5334
  type SetDiscountsApplicationErrors = {
@@ -5486,6 +5559,10 @@ type CreateOrderFromDraftApplicationErrors = {
5486
5559
  code?: 'SUBSCRIPTION_ACTIVATION_INCOMPATIBLE_WITH_ORDER_STATUS';
5487
5560
  description?: string;
5488
5561
  data?: Record<string, any>;
5562
+ } | {
5563
+ code?: 'DRAFT_ORDER_CURRENCY_NOT_PAYABLE';
5564
+ description?: string;
5565
+ data?: Record<string, any>;
5489
5566
  };
5490
5567
  /** @docsIgnore */
5491
5568
  type DeleteDraftOrderApplicationErrors = {
@@ -5781,9 +5858,11 @@ interface AddLineItemsToDraftOrderOptions {
5781
5858
  * @applicableIdentity APP
5782
5859
  * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.UpdateLineItems
5783
5860
  */
5784
- 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> & {
5785
5862
  __applicationErrorsType?: UpdateLineItemsApplicationErrors;
5786
5863
  }>;
5864
+ interface UpdateLineItemsOptions {
5865
+ }
5787
5866
  interface SetDepositOptions {
5788
5867
  /**
5789
5868
  * Deposit to set on the draft order.
@@ -6308,4 +6387,4 @@ interface SetBusinessLocationOptions {
6308
6387
  businessLocation?: Location;
6309
6388
  }
6310
6389
 
6311
- 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 };
@@ -802,6 +802,37 @@ function setDeposit(payload) {
802
802
  }
803
803
  return __setDeposit;
804
804
  }
805
+ function changeDraftOrderCurrency(payload) {
806
+ function __changeDraftOrderCurrency({ host }) {
807
+ const metadata = {
808
+ entityFqdn: "wix.ecom.v1.draft_order",
809
+ method: "POST",
810
+ methodFqn: "com.wix.ecom.orders.draft.v1.DraftOrders.ChangeDraftOrderCurrency",
811
+ packageName: PACKAGE_NAME,
812
+ migrationOptions: {
813
+ optInTransformResponse: true
814
+ },
815
+ url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({
816
+ protoPath: "/v1/draft-orders/{draftOrderId}/change-currency",
817
+ data: payload,
818
+ host
819
+ }),
820
+ data: payload,
821
+ transformResponse: (payload2) => transformPaths(payload2, [
822
+ {
823
+ transformFn: transformRESTTimestampToSDKTimestamp,
824
+ paths: TRANSFORM_PATHS_2
825
+ },
826
+ {
827
+ transformFn: transformRESTFloatToSDKFloat,
828
+ paths: TRANSFORM_PATHS_3
829
+ }
830
+ ])
831
+ };
832
+ return metadata;
833
+ }
834
+ return __changeDraftOrderCurrency;
835
+ }
805
836
  function setDiscounts(payload) {
806
837
  function __setDiscounts({ host }) {
807
838
  const metadata = {
@@ -2078,7 +2109,8 @@ async function addLineItemsToDraftOrder2(draftOrderId, options) {
2078
2109
  renameKeysFromSDKRequestToRESTRequest({
2079
2110
  draftOrderId,
2080
2111
  catalogLineItems: options?.catalogLineItems,
2081
- customLineItems: options?.customLineItems
2112
+ customLineItems: options?.customLineItems,
2113
+ currency: options?.currency
2082
2114
  }),
2083
2115
  [
2084
2116
  {
@@ -2116,7 +2148,8 @@ async function addLineItemsToDraftOrder2(draftOrderId, options) {
2116
2148
  explicitPathsToArguments: {
2117
2149
  draftOrderId: "$[0]",
2118
2150
  catalogLineItems: "$[1].catalogLineItems",
2119
- customLineItems: "$[1].customLineItems"
2151
+ customLineItems: "$[1].customLineItems",
2152
+ currency: "$[1].currency"
2120
2153
  },
2121
2154
  singleArgumentUnchanged: false
2122
2155
  },
@@ -2126,11 +2159,12 @@ async function addLineItemsToDraftOrder2(draftOrderId, options) {
2126
2159
  throw transformedError;
2127
2160
  }
2128
2161
  }
2129
- async function updateLineItems2(draftOrderId, lineItemChanges) {
2130
- const { httpClient, sideEffects } = arguments[2];
2162
+ async function updateLineItems2(draftOrderId, lineItemChanges, options) {
2163
+ const { httpClient, sideEffects } = arguments[3];
2131
2164
  const payload = renameKeysFromSDKRequestToRESTRequest({
2132
2165
  draftOrderId,
2133
- lineItemChanges
2166
+ lineItemChanges,
2167
+ currency: options?.currency
2134
2168
  });
2135
2169
  const reqOpts = updateLineItems(payload);
2136
2170
  sideEffects?.onSiteCall?.();
@@ -2156,11 +2190,12 @@ async function updateLineItems2(draftOrderId, lineItemChanges) {
2156
2190
  spreadPathsToArguments: {},
2157
2191
  explicitPathsToArguments: {
2158
2192
  draftOrderId: "$[0]",
2159
- lineItemChanges: "$[1]"
2193
+ lineItemChanges: "$[1]",
2194
+ currency: "$[2].currency"
2160
2195
  },
2161
2196
  singleArgumentUnchanged: false
2162
2197
  },
2163
- ["draftOrderId", "lineItemChanges"]
2198
+ ["draftOrderId", "lineItemChanges", "options"]
2164
2199
  );
2165
2200
  sideEffects?.onError?.(err);
2166
2201
  throw transformedError;
@@ -2206,6 +2241,46 @@ async function setDeposit2(draftOrderId, options) {
2206
2241
  throw transformedError;
2207
2242
  }
2208
2243
  }
2244
+ async function changeDraftOrderCurrency2(draftOrderId, targetCurrency) {
2245
+ const { httpClient, sideEffects } = arguments[2];
2246
+ const payload = renameKeysFromSDKRequestToRESTRequest({
2247
+ draftOrderId,
2248
+ targetCurrency
2249
+ });
2250
+ const reqOpts = changeDraftOrderCurrency(payload);
2251
+ sideEffects?.onSiteCall?.();
2252
+ try {
2253
+ const result = await httpClient.request(reqOpts);
2254
+ sideEffects?.onSuccess?.(result);
2255
+ return renameKeysFromRESTResponseToSDKResponse(
2256
+ transformPaths2(result.data, [
2257
+ {
2258
+ transformFn: transformRESTImageToSDKImage,
2259
+ paths: TRANSFORM_PATHS_32
2260
+ },
2261
+ {
2262
+ transformFn: transformRESTAddressToSDKAddress,
2263
+ paths: TRANSFORM_PATHS_42
2264
+ }
2265
+ ])
2266
+ );
2267
+ } catch (err) {
2268
+ const transformedError = sdkTransformError(
2269
+ err,
2270
+ {
2271
+ spreadPathsToArguments: {},
2272
+ explicitPathsToArguments: {
2273
+ draftOrderId: "$[0]",
2274
+ targetCurrency: "$[1]"
2275
+ },
2276
+ singleArgumentUnchanged: false
2277
+ },
2278
+ ["draftOrderId", "targetCurrency"]
2279
+ );
2280
+ sideEffects?.onError?.(err);
2281
+ throw transformedError;
2282
+ }
2283
+ }
2209
2284
  async function setDiscounts2(draftOrderId, discounts) {
2210
2285
  const { httpClient, sideEffects } = arguments[2];
2211
2286
  const payload = renameKeysFromSDKRequestToRESTRequest({
@@ -2247,7 +2322,8 @@ async function createCustomDiscounts2(draftOrderId, options) {
2247
2322
  const { httpClient, sideEffects } = arguments[2];
2248
2323
  const payload = renameKeysFromSDKRequestToRESTRequest({
2249
2324
  draftOrderId,
2250
- discounts: options?.discounts
2325
+ discounts: options?.discounts,
2326
+ currency: options?.currency
2251
2327
  });
2252
2328
  const reqOpts = createCustomDiscounts(payload);
2253
2329
  sideEffects?.onSiteCall?.();
@@ -2273,7 +2349,8 @@ async function createCustomDiscounts2(draftOrderId, options) {
2273
2349
  spreadPathsToArguments: {},
2274
2350
  explicitPathsToArguments: {
2275
2351
  draftOrderId: "$[0]",
2276
- discounts: "$[1].discounts"
2352
+ discounts: "$[1].discounts",
2353
+ currency: "$[1].currency"
2277
2354
  },
2278
2355
  singleArgumentUnchanged: false
2279
2356
  },
@@ -2447,7 +2524,8 @@ async function setShippingInfo2(draftOrderId, options) {
2447
2524
  const payload = transformPaths2(
2448
2525
  renameKeysFromSDKRequestToRESTRequest({
2449
2526
  draftOrderId,
2450
- shippingInfo: options?.shippingInfo
2527
+ shippingInfo: options?.shippingInfo,
2528
+ currency: options?.currency
2451
2529
  }),
2452
2530
  [
2453
2531
  {
@@ -2480,7 +2558,8 @@ async function setShippingInfo2(draftOrderId, options) {
2480
2558
  spreadPathsToArguments: {},
2481
2559
  explicitPathsToArguments: {
2482
2560
  draftOrderId: "$[0]",
2483
- shippingInfo: "$[1].shippingInfo"
2561
+ shippingInfo: "$[1].shippingInfo",
2562
+ currency: "$[1].currency"
2484
2563
  },
2485
2564
  singleArgumentUnchanged: false
2486
2565
  },
@@ -3048,6 +3127,7 @@ export {
3048
3127
  WebhookIdentityType,
3049
3128
  WeightUnit,
3050
3129
  addLineItemsToDraftOrder2 as addLineItemsToDraftOrder,
3130
+ changeDraftOrderCurrency2 as changeDraftOrderCurrency,
3051
3131
  commitDraftOrder2 as commitDraftOrder,
3052
3132
  createCustomAdditionalFees2 as createCustomAdditionalFees,
3053
3133
  createCustomDiscounts2 as createCustomDiscounts,