@wix/auto_sdk_ecom_draft-orders 1.0.202 → 1.0.203

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.
@@ -84,7 +84,8 @@ interface ChangeDraftOrderCurrencySignature {
84
84
  * Changes a draft order's currency and converts every stored amount to that currency.
85
85
  *
86
86
  * You can change the currency only while the draft order is uncommitted, and only to a
87
- * currency the site can accept payment in.
87
+ * currency the site can accept payment in. You can't change the currency of a draft order
88
+ * created to edit an existing order.
88
89
  *
89
90
  * The draft order stores the converted amounts only. It doesn't store the original amounts
90
91
  * or the exchange rate. Each change converts the amounts at their stored values and replaces
@@ -6648,6 +6648,18 @@ type ChangeDraftOrderCurrencyApplicationErrors = {
6648
6648
  code?: 'CURRENCY_CONVERSION_UNAVAILABLE';
6649
6649
  description?: string;
6650
6650
  data?: Record<string, any>;
6651
+ } | {
6652
+ code?: 'DRAFT_ORDER_UPDATE_IN_PROGRESS';
6653
+ description?: string;
6654
+ data?: Record<string, any>;
6655
+ } | {
6656
+ code?: 'CHANGE_CURRENCY_NOT_ALLOWED_IN_EDIT_MODE';
6657
+ description?: string;
6658
+ data?: Record<string, any>;
6659
+ } | {
6660
+ code?: 'FAILED_TO_FETCH_PAYABLE_CURRENCIES';
6661
+ description?: string;
6662
+ data?: Record<string, any>;
6651
6663
  };
6652
6664
  /** @docsIgnore */
6653
6665
  type SetDiscountsApplicationErrors = {
@@ -7233,7 +7245,8 @@ interface SetDepositOptions {
7233
7245
  * Changes a draft order's currency and converts every stored amount to that currency.
7234
7246
  *
7235
7247
  * You can change the currency only while the draft order is uncommitted, and only to a
7236
- * currency the site can accept payment in.
7248
+ * currency the site can accept payment in. You can't change the currency of a draft order
7249
+ * created to edit an existing order.
7237
7250
  *
7238
7251
  * The draft order stores the converted amounts only. It doesn't store the original amounts
7239
7252
  * or the exchange rate. Each change converts the amounts at their stored values and replaces
@@ -6778,6 +6778,18 @@ type ChangeDraftOrderCurrencyApplicationErrors = {
6778
6778
  code?: 'CURRENCY_CONVERSION_UNAVAILABLE';
6779
6779
  description?: string;
6780
6780
  data?: Record<string, any>;
6781
+ } | {
6782
+ code?: 'DRAFT_ORDER_UPDATE_IN_PROGRESS';
6783
+ description?: string;
6784
+ data?: Record<string, any>;
6785
+ } | {
6786
+ code?: 'CHANGE_CURRENCY_NOT_ALLOWED_IN_EDIT_MODE';
6787
+ description?: string;
6788
+ data?: Record<string, any>;
6789
+ } | {
6790
+ code?: 'FAILED_TO_FETCH_PAYABLE_CURRENCIES';
6791
+ description?: string;
6792
+ data?: Record<string, any>;
6781
6793
  };
6782
6794
  /** @docsIgnore */
6783
6795
  type SetDiscountsApplicationErrors = {
@@ -84,7 +84,8 @@ interface ChangeDraftOrderCurrencySignature {
84
84
  * Changes a draft order's currency and converts every stored amount to that currency.
85
85
  *
86
86
  * You can change the currency only while the draft order is uncommitted, and only to a
87
- * currency the site can accept payment in.
87
+ * currency the site can accept payment in. You can't change the currency of a draft order
88
+ * created to edit an existing order.
88
89
  *
89
90
  * The draft order stores the converted amounts only. It doesn't store the original amounts
90
91
  * or the exchange rate. Each change converts the amounts at their stored values and replaces
@@ -6648,6 +6648,18 @@ type ChangeDraftOrderCurrencyApplicationErrors = {
6648
6648
  code?: 'CURRENCY_CONVERSION_UNAVAILABLE';
6649
6649
  description?: string;
6650
6650
  data?: Record<string, any>;
6651
+ } | {
6652
+ code?: 'DRAFT_ORDER_UPDATE_IN_PROGRESS';
6653
+ description?: string;
6654
+ data?: Record<string, any>;
6655
+ } | {
6656
+ code?: 'CHANGE_CURRENCY_NOT_ALLOWED_IN_EDIT_MODE';
6657
+ description?: string;
6658
+ data?: Record<string, any>;
6659
+ } | {
6660
+ code?: 'FAILED_TO_FETCH_PAYABLE_CURRENCIES';
6661
+ description?: string;
6662
+ data?: Record<string, any>;
6651
6663
  };
6652
6664
  /** @docsIgnore */
6653
6665
  type SetDiscountsApplicationErrors = {
@@ -7233,7 +7245,8 @@ interface SetDepositOptions {
7233
7245
  * Changes a draft order's currency and converts every stored amount to that currency.
7234
7246
  *
7235
7247
  * You can change the currency only while the draft order is uncommitted, and only to a
7236
- * currency the site can accept payment in.
7248
+ * currency the site can accept payment in. You can't change the currency of a draft order
7249
+ * created to edit an existing order.
7237
7250
  *
7238
7251
  * The draft order stores the converted amounts only. It doesn't store the original amounts
7239
7252
  * or the exchange rate. Each change converts the amounts at their stored values and replaces
@@ -6778,6 +6778,18 @@ type ChangeDraftOrderCurrencyApplicationErrors = {
6778
6778
  code?: 'CURRENCY_CONVERSION_UNAVAILABLE';
6779
6779
  description?: string;
6780
6780
  data?: Record<string, any>;
6781
+ } | {
6782
+ code?: 'DRAFT_ORDER_UPDATE_IN_PROGRESS';
6783
+ description?: string;
6784
+ data?: Record<string, any>;
6785
+ } | {
6786
+ code?: 'CHANGE_CURRENCY_NOT_ALLOWED_IN_EDIT_MODE';
6787
+ description?: string;
6788
+ data?: Record<string, any>;
6789
+ } | {
6790
+ code?: 'FAILED_TO_FETCH_PAYABLE_CURRENCIES';
6791
+ description?: string;
6792
+ data?: Record<string, any>;
6781
6793
  };
6782
6794
  /** @docsIgnore */
6783
6795
  type SetDiscountsApplicationErrors = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_ecom_draft-orders",
3
- "version": "1.0.202",
3
+ "version": "1.0.203",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.ecom.v1.draft_order"
51
51
  }
52
52
  },
53
- "falconPackageHash": "1da4ce027ac6039d4387b2faa082611b720f5eb8f1e3321daab8675a"
53
+ "falconPackageHash": "b6e67b6acfbd1246537f7b6e8d546170635dfc7439a0a576d6cd8410"
54
54
  }