@teemill/orders 1.29.3 → 1.30.2

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.
@@ -1 +1 @@
1
- 7.21.0
1
+ 7.22.0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/orders@1.29.3
1
+ ## @teemill/orders@1.30.2
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @teemill/orders@1.29.3 --save
39
+ npm install @teemill/orders@1.30.2 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Orders
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
6
6
  *
7
- * The version of the OpenAPI document: 1.29.3
7
+ * The version of the OpenAPI document: 1.30.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -341,7 +341,7 @@ export interface Fulfillment {
341
341
  */
342
342
  'frozen'?: boolean;
343
343
  /**
344
- * List of reason codes why this fulfillment is frozen. - `moderation` - Held for content moderation review. - `internal_screen_print` - Awaiting internal screen print processing. - `manual` - Manually frozen by a user. - `client_credit_control` - The client is under credit control. - `factory_credit_control` - The factory fulfilling the order is under credit control. - `billing_failed` - Payment for this order failed. - `pickface_flagged` - Flagged on the pickface for review. - `flow_frozen` - Frozen by internal production flow handling. - `fraud` - Frozen due to fraud checks.
344
+ * List of reason codes why this fulfillment is frozen. - `moderation` - Held for content moderation review. - `internal_screen_print` - Awaiting internal screen print processing. - `manual` - Manually frozen by a user. - `credit_control` - Client is under credit control. - `billing_failed` - Payment for this order failed. - `pickface_flagged` - Flagged on the pickface for review. - `flow_frozen` - Frozen by internal production flow handling. - `fraud` - Frozen due to fraud checks.
345
345
  */
346
346
  'frozenReasons'?: Array<FulfillmentFrozenReasonsEnum>;
347
347
  }
@@ -350,8 +350,7 @@ export const FulfillmentFrozenReasonsEnum = {
350
350
  Moderation: 'moderation',
351
351
  InternalScreenPrint: 'internal_screen_print',
352
352
  Manual: 'manual',
353
- ClientCreditControl: 'client_credit_control',
354
- FactoryCreditControl: 'factory_credit_control',
353
+ CreditControl: 'credit_control',
355
354
  BillingFailed: 'billing_failed',
356
355
  PickfaceFlagged: 'pickface_flagged',
357
356
  FlowFrozen: 'flow_frozen',
@@ -1023,7 +1022,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
1023
1022
  // verify required parameter 'orderId' is not null or undefined
1024
1023
  assertParamExists('cancelOrder', 'orderId', orderId)
1025
1024
  const localVarPath = `/v1/orders/{orderId}`
1026
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
1025
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
1027
1026
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1028
1027
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1029
1028
  let baseOptions;
@@ -1079,7 +1078,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
1079
1078
  // verify required parameter 'confirmOrderRequest' is not null or undefined
1080
1079
  assertParamExists('confirmOrder', 'confirmOrderRequest', confirmOrderRequest)
1081
1080
  const localVarPath = `/v1/orders/{orderId}/confirm`
1082
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
1081
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
1083
1082
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1084
1083
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1085
1084
  let baseOptions;
@@ -1187,7 +1186,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
1187
1186
  // verify required parameter 'orderId' is not null or undefined
1188
1187
  assertParamExists('downloadInvoice', 'orderId', orderId)
1189
1188
  const localVarPath = `/v1/orders/{orderId}/invoice`
1190
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
1189
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
1191
1190
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1192
1191
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1193
1192
  let baseOptions;
@@ -1306,7 +1305,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
1306
1305
  // verify required parameter 'orderId' is not null or undefined
1307
1306
  assertParamExists('getOrder', 'orderId', orderId)
1308
1307
  const localVarPath = `/v1/orders/{orderId}`
1309
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
1308
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
1310
1309
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1311
1310
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1312
1311
  let baseOptions;
@@ -1358,7 +1357,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
1358
1357
  // verify required parameter 'importId' is not null or undefined
1359
1358
  assertParamExists('getOrderImport', 'importId', importId)
1360
1359
  const localVarPath = `/v1/orders/imports/{importId}`
1361
- .replace(`{${"importId"}}`, encodeURIComponent(String(importId)));
1360
+ .replace('{importId}', encodeURIComponent(String(importId)));
1362
1361
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1363
1362
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1364
1363
  let baseOptions;
@@ -1555,7 +1554,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
1555
1554
  // verify required parameter 'importId' is not null or undefined
1556
1555
  assertParamExists('listOrderImportGroups', 'importId', importId)
1557
1556
  const localVarPath = `/v1/orders/imports/{importId}/groups`
1558
- .replace(`{${"importId"}}`, encodeURIComponent(String(importId)));
1557
+ .replace('{importId}', encodeURIComponent(String(importId)));
1559
1558
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1560
1559
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1561
1560
  let baseOptions;
@@ -1666,7 +1665,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
1666
1665
  // verify required parameter 'orderId' is not null or undefined
1667
1666
  assertParamExists('retryPlatformPayment', 'orderId', orderId)
1668
1667
  const localVarPath = `/v1/orders/{orderId}/retryPlatformPayment`
1669
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
1668
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
1670
1669
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1671
1670
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1672
1671
  let baseOptions;
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Orders
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
6
6
  *
7
- * The version of the OpenAPI document: 1.29.3
7
+ * The version of the OpenAPI document: 1.30.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Orders
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
6
6
  *
7
- * The version of the OpenAPI document: 1.29.3
7
+ * The version of the OpenAPI document: 1.30.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Orders
4
4
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
5
5
  *
6
- * The version of the OpenAPI document: 1.29.3
6
+ * The version of the OpenAPI document: 1.30.2
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -115,7 +115,7 @@ export class Configuration {
115
115
  * @return True if the given MIME is JSON, false otherwise.
116
116
  */
117
117
  public isJsonMime(mime: string): boolean {
118
- const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
119
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
118
+ const jsonMime: RegExp = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
119
+ return mime !== null && jsonMime.test(mime);
120
120
  }
121
121
  }
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Orders
3
3
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
4
4
  *
5
- * The version of the OpenAPI document: 1.29.3
5
+ * The version of the OpenAPI document: 1.30.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -324,7 +324,7 @@ export interface Fulfillment {
324
324
  */
325
325
  'frozen'?: boolean;
326
326
  /**
327
- * List of reason codes why this fulfillment is frozen. - `moderation` - Held for content moderation review. - `internal_screen_print` - Awaiting internal screen print processing. - `manual` - Manually frozen by a user. - `client_credit_control` - The client is under credit control. - `factory_credit_control` - The factory fulfilling the order is under credit control. - `billing_failed` - Payment for this order failed. - `pickface_flagged` - Flagged on the pickface for review. - `flow_frozen` - Frozen by internal production flow handling. - `fraud` - Frozen due to fraud checks.
327
+ * List of reason codes why this fulfillment is frozen. - `moderation` - Held for content moderation review. - `internal_screen_print` - Awaiting internal screen print processing. - `manual` - Manually frozen by a user. - `credit_control` - Client is under credit control. - `billing_failed` - Payment for this order failed. - `pickface_flagged` - Flagged on the pickface for review. - `flow_frozen` - Frozen by internal production flow handling. - `fraud` - Frozen due to fraud checks.
328
328
  */
329
329
  'frozenReasons'?: Array<FulfillmentFrozenReasonsEnum>;
330
330
  }
@@ -332,8 +332,7 @@ export declare const FulfillmentFrozenReasonsEnum: {
332
332
  readonly Moderation: "moderation";
333
333
  readonly InternalScreenPrint: "internal_screen_print";
334
334
  readonly Manual: "manual";
335
- readonly ClientCreditControl: "client_credit_control";
336
- readonly FactoryCreditControl: "factory_credit_control";
335
+ readonly CreditControl: "credit_control";
337
336
  readonly BillingFailed: "billing_failed";
338
337
  readonly PickfaceFlagged: "pickface_flagged";
339
338
  readonly FlowFrozen: "flow_frozen";
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Orders
6
6
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
7
7
  *
8
- * The version of the OpenAPI document: 1.29.3
8
+ * The version of the OpenAPI document: 1.30.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -42,8 +42,7 @@ exports.FulfillmentFrozenReasonsEnum = {
42
42
  Moderation: 'moderation',
43
43
  InternalScreenPrint: 'internal_screen_print',
44
44
  Manual: 'manual',
45
- ClientCreditControl: 'client_credit_control',
46
- FactoryCreditControl: 'factory_credit_control',
45
+ CreditControl: 'credit_control',
47
46
  BillingFailed: 'billing_failed',
48
47
  PickfaceFlagged: 'pickface_flagged',
49
48
  FlowFrozen: 'flow_frozen',
@@ -132,7 +131,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
132
131
  // verify required parameter 'orderId' is not null or undefined
133
132
  (0, common_1.assertParamExists)('cancelOrder', 'orderId', orderId);
134
133
  const localVarPath = `/v1/orders/{orderId}`
135
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
134
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
136
135
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
137
136
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
138
137
  let baseOptions;
@@ -180,7 +179,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
180
179
  // verify required parameter 'confirmOrderRequest' is not null or undefined
181
180
  (0, common_1.assertParamExists)('confirmOrder', 'confirmOrderRequest', confirmOrderRequest);
182
181
  const localVarPath = `/v1/orders/{orderId}/confirm`
183
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
182
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
184
183
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
185
184
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
186
185
  let baseOptions;
@@ -272,7 +271,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
272
271
  // verify required parameter 'orderId' is not null or undefined
273
272
  (0, common_1.assertParamExists)('downloadInvoice', 'orderId', orderId);
274
273
  const localVarPath = `/v1/orders/{orderId}/invoice`
275
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
274
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
276
275
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
277
276
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
278
277
  let baseOptions;
@@ -373,7 +372,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
373
372
  // verify required parameter 'orderId' is not null or undefined
374
373
  (0, common_1.assertParamExists)('getOrder', 'orderId', orderId);
375
374
  const localVarPath = `/v1/orders/{orderId}`
376
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
375
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
377
376
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
378
377
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
379
378
  let baseOptions;
@@ -417,7 +416,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
417
416
  // verify required parameter 'importId' is not null or undefined
418
417
  (0, common_1.assertParamExists)('getOrderImport', 'importId', importId);
419
418
  const localVarPath = `/v1/orders/imports/{importId}`
420
- .replace(`{${"importId"}}`, encodeURIComponent(String(importId)));
419
+ .replace('{importId}', encodeURIComponent(String(importId)));
421
420
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
422
421
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
423
422
  let baseOptions;
@@ -583,7 +582,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
583
582
  // verify required parameter 'importId' is not null or undefined
584
583
  (0, common_1.assertParamExists)('listOrderImportGroups', 'importId', importId);
585
584
  const localVarPath = `/v1/orders/imports/{importId}/groups`
586
- .replace(`{${"importId"}}`, encodeURIComponent(String(importId)));
585
+ .replace('{importId}', encodeURIComponent(String(importId)));
587
586
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
588
587
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
589
588
  let baseOptions;
@@ -676,7 +675,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
676
675
  // verify required parameter 'orderId' is not null or undefined
677
676
  (0, common_1.assertParamExists)('retryPlatformPayment', 'orderId', orderId);
678
677
  const localVarPath = `/v1/orders/{orderId}/retryPlatformPayment`
679
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
678
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
680
679
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
681
680
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
682
681
  let baseOptions;
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Orders
3
3
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
4
4
  *
5
- * The version of the OpenAPI document: 1.29.3
5
+ * The version of the OpenAPI document: 1.30.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Orders
6
6
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
7
7
  *
8
- * The version of the OpenAPI document: 1.29.3
8
+ * The version of the OpenAPI document: 1.30.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Orders
3
3
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
4
4
  *
5
- * The version of the OpenAPI document: 1.29.3
5
+ * The version of the OpenAPI document: 1.30.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Orders
6
6
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
7
7
  *
8
- * The version of the OpenAPI document: 1.29.3
8
+ * The version of the OpenAPI document: 1.30.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Orders
3
3
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
4
4
  *
5
- * The version of the OpenAPI document: 1.29.3
5
+ * The version of the OpenAPI document: 1.30.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Orders
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
6
6
  *
7
- * The version of the OpenAPI document: 1.29.3
7
+ * The version of the OpenAPI document: 1.30.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -37,8 +37,8 @@ class Configuration {
37
37
  * @return True if the given MIME is JSON, false otherwise.
38
38
  */
39
39
  isJsonMime(mime) {
40
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
41
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
40
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
41
+ return mime !== null && jsonMime.test(mime);
42
42
  }
43
43
  }
44
44
  exports.Configuration = Configuration;
package/dist/esm/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Orders
3
3
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
4
4
  *
5
- * The version of the OpenAPI document: 1.29.3
5
+ * The version of the OpenAPI document: 1.30.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -324,7 +324,7 @@ export interface Fulfillment {
324
324
  */
325
325
  'frozen'?: boolean;
326
326
  /**
327
- * List of reason codes why this fulfillment is frozen. - `moderation` - Held for content moderation review. - `internal_screen_print` - Awaiting internal screen print processing. - `manual` - Manually frozen by a user. - `client_credit_control` - The client is under credit control. - `factory_credit_control` - The factory fulfilling the order is under credit control. - `billing_failed` - Payment for this order failed. - `pickface_flagged` - Flagged on the pickface for review. - `flow_frozen` - Frozen by internal production flow handling. - `fraud` - Frozen due to fraud checks.
327
+ * List of reason codes why this fulfillment is frozen. - `moderation` - Held for content moderation review. - `internal_screen_print` - Awaiting internal screen print processing. - `manual` - Manually frozen by a user. - `credit_control` - Client is under credit control. - `billing_failed` - Payment for this order failed. - `pickface_flagged` - Flagged on the pickface for review. - `flow_frozen` - Frozen by internal production flow handling. - `fraud` - Frozen due to fraud checks.
328
328
  */
329
329
  'frozenReasons'?: Array<FulfillmentFrozenReasonsEnum>;
330
330
  }
@@ -332,8 +332,7 @@ export declare const FulfillmentFrozenReasonsEnum: {
332
332
  readonly Moderation: "moderation";
333
333
  readonly InternalScreenPrint: "internal_screen_print";
334
334
  readonly Manual: "manual";
335
- readonly ClientCreditControl: "client_credit_control";
336
- readonly FactoryCreditControl: "factory_credit_control";
335
+ readonly CreditControl: "credit_control";
337
336
  readonly BillingFailed: "billing_failed";
338
337
  readonly PickfaceFlagged: "pickface_flagged";
339
338
  readonly FlowFrozen: "flow_frozen";
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Orders
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
6
6
  *
7
- * The version of the OpenAPI document: 1.29.3
7
+ * The version of the OpenAPI document: 1.30.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -39,8 +39,7 @@ export const FulfillmentFrozenReasonsEnum = {
39
39
  Moderation: 'moderation',
40
40
  InternalScreenPrint: 'internal_screen_print',
41
41
  Manual: 'manual',
42
- ClientCreditControl: 'client_credit_control',
43
- FactoryCreditControl: 'factory_credit_control',
42
+ CreditControl: 'credit_control',
44
43
  BillingFailed: 'billing_failed',
45
44
  PickfaceFlagged: 'pickface_flagged',
46
45
  FlowFrozen: 'flow_frozen',
@@ -129,7 +128,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
129
128
  // verify required parameter 'orderId' is not null or undefined
130
129
  assertParamExists('cancelOrder', 'orderId', orderId);
131
130
  const localVarPath = `/v1/orders/{orderId}`
132
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
131
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
133
132
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
134
133
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
135
134
  let baseOptions;
@@ -177,7 +176,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
177
176
  // verify required parameter 'confirmOrderRequest' is not null or undefined
178
177
  assertParamExists('confirmOrder', 'confirmOrderRequest', confirmOrderRequest);
179
178
  const localVarPath = `/v1/orders/{orderId}/confirm`
180
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
179
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
181
180
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
182
181
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
183
182
  let baseOptions;
@@ -269,7 +268,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
269
268
  // verify required parameter 'orderId' is not null or undefined
270
269
  assertParamExists('downloadInvoice', 'orderId', orderId);
271
270
  const localVarPath = `/v1/orders/{orderId}/invoice`
272
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
271
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
273
272
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
274
273
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
275
274
  let baseOptions;
@@ -370,7 +369,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
370
369
  // verify required parameter 'orderId' is not null or undefined
371
370
  assertParamExists('getOrder', 'orderId', orderId);
372
371
  const localVarPath = `/v1/orders/{orderId}`
373
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
372
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
374
373
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
375
374
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
376
375
  let baseOptions;
@@ -414,7 +413,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
414
413
  // verify required parameter 'importId' is not null or undefined
415
414
  assertParamExists('getOrderImport', 'importId', importId);
416
415
  const localVarPath = `/v1/orders/imports/{importId}`
417
- .replace(`{${"importId"}}`, encodeURIComponent(String(importId)));
416
+ .replace('{importId}', encodeURIComponent(String(importId)));
418
417
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
419
418
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
420
419
  let baseOptions;
@@ -580,7 +579,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
580
579
  // verify required parameter 'importId' is not null or undefined
581
580
  assertParamExists('listOrderImportGroups', 'importId', importId);
582
581
  const localVarPath = `/v1/orders/imports/{importId}/groups`
583
- .replace(`{${"importId"}}`, encodeURIComponent(String(importId)));
582
+ .replace('{importId}', encodeURIComponent(String(importId)));
584
583
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
585
584
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
586
585
  let baseOptions;
@@ -673,7 +672,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
673
672
  // verify required parameter 'orderId' is not null or undefined
674
673
  assertParamExists('retryPlatformPayment', 'orderId', orderId);
675
674
  const localVarPath = `/v1/orders/{orderId}/retryPlatformPayment`
676
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
675
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
677
676
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
678
677
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
679
678
  let baseOptions;
@@ -2,7 +2,7 @@
2
2
  * Orders
3
3
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
4
4
  *
5
- * The version of the OpenAPI document: 1.29.3
5
+ * The version of the OpenAPI document: 1.30.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Orders
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
6
6
  *
7
- * The version of the OpenAPI document: 1.29.3
7
+ * The version of the OpenAPI document: 1.30.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Orders
3
3
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
4
4
  *
5
- * The version of the OpenAPI document: 1.29.3
5
+ * The version of the OpenAPI document: 1.30.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Orders
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
6
6
  *
7
- * The version of the OpenAPI document: 1.29.3
7
+ * The version of the OpenAPI document: 1.30.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Orders
3
3
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
4
4
  *
5
- * The version of the OpenAPI document: 1.29.3
5
+ * The version of the OpenAPI document: 1.30.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,7 +3,7 @@
3
3
  * Orders
4
4
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
5
5
  *
6
- * The version of the OpenAPI document: 1.29.3
6
+ * The version of the OpenAPI document: 1.30.2
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -34,7 +34,7 @@ export class Configuration {
34
34
  * @return True if the given MIME is JSON, false otherwise.
35
35
  */
36
36
  isJsonMime(mime) {
37
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
38
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
37
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
38
+ return mime !== null && jsonMime.test(mime);
39
39
  }
40
40
  }
@@ -2,7 +2,7 @@
2
2
  * Orders
3
3
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
4
4
  *
5
- * The version of the OpenAPI document: 1.29.3
5
+ * The version of the OpenAPI document: 1.30.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Orders
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
6
6
  *
7
- * The version of the OpenAPI document: 1.29.3
7
+ * The version of the OpenAPI document: 1.30.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Orders
3
3
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
4
4
  *
5
- * The version of the OpenAPI document: 1.29.3
5
+ * The version of the OpenAPI document: 1.30.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Orders
6
6
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
7
7
  *
8
- * The version of the OpenAPI document: 1.29.3
8
+ * The version of the OpenAPI document: 1.30.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
16
16
  **packageWeight** | **number** | The estimated weight of the package in grams. | [optional] [default to undefined]
17
17
  **platformRef** | **string** | Reference to the source platform of this fulfillment. | [optional] [default to undefined]
18
18
  **frozen** | **boolean** | Whether the fulfillment is frozen. This will prevent the fulfillment from being picked. | [optional] [readonly] [default to undefined]
19
- **frozenReasons** | **Array&lt;string&gt;** | List of reason codes why this fulfillment is frozen. - &#x60;moderation&#x60; - Held for content moderation review. - &#x60;internal_screen_print&#x60; - Awaiting internal screen print processing. - &#x60;manual&#x60; - Manually frozen by a user. - &#x60;client_credit_control&#x60; - The client is under credit control. - &#x60;factory_credit_control&#x60; - The factory fulfilling the order is under credit control. - &#x60;billing_failed&#x60; - Payment for this order failed. - &#x60;pickface_flagged&#x60; - Flagged on the pickface for review. - &#x60;flow_frozen&#x60; - Frozen by internal production flow handling. - &#x60;fraud&#x60; - Frozen due to fraud checks. | [optional] [readonly] [default to undefined]
19
+ **frozenReasons** | **Array&lt;string&gt;** | List of reason codes why this fulfillment is frozen. - &#x60;moderation&#x60; - Held for content moderation review. - &#x60;internal_screen_print&#x60; - Awaiting internal screen print processing. - &#x60;manual&#x60; - Manually frozen by a user. - &#x60;credit_control&#x60; - Client is under credit control. - &#x60;billing_failed&#x60; - Payment for this order failed. - &#x60;pickface_flagged&#x60; - Flagged on the pickface for review. - &#x60;flow_frozen&#x60; - Frozen by internal production flow handling. - &#x60;fraud&#x60; - Frozen due to fraud checks. | [optional] [readonly] [default to undefined]
20
20
 
21
21
  ## Example
22
22
 
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Orders
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
6
6
  *
7
- * The version of the OpenAPI document: 1.29.3
7
+ * The version of the OpenAPI document: 1.30.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/orders",
3
- "version": "1.29.3",
3
+ "version": "1.30.2",
4
4
  "description": "OpenAPI client for @teemill/orders",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -24,7 +24,7 @@
24
24
  "prepare": "npm run build"
25
25
  },
26
26
  "dependencies": {
27
- "axios": "1.15.0"
27
+ "axios": "^1.16.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "12.11.5 - 12.20.42",