@teemill/orders 1.30.2 → 1.30.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +3 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +5 -2
- package/api.ts +48 -11
- package/base.ts +1 -1
- package/common.ts +16 -4
- package/configuration.ts +1 -1
- package/dist/api.d.ts +44 -11
- package/dist/api.js +15 -7
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +6 -1
- package/dist/common.js +16 -5
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +44 -11
- package/dist/esm/api.js +14 -6
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +6 -1
- package/dist/esm/common.js +14 -4
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/Fulfillment.md +1 -1
- package/docs/Order.md +2 -0
- package/docs/OrdersApi.md +4 -4
- package/docs/OrdersListMetaFilters.md +23 -0
- package/docs/OrdersResponse.md +4 -2
- package/docs/OrdersResponseMeta.md +21 -0
- package/docs/VatRegisteredFilterOption.md +11 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -42,7 +42,9 @@ docs/OrderItem.md
|
|
|
42
42
|
docs/OrderPaymentMethod.md
|
|
43
43
|
docs/OrderTracking.md
|
|
44
44
|
docs/OrdersApi.md
|
|
45
|
+
docs/OrdersListMetaFilters.md
|
|
45
46
|
docs/OrdersResponse.md
|
|
47
|
+
docs/OrdersResponseMeta.md
|
|
46
48
|
docs/Origin.md
|
|
47
49
|
docs/PaymentAttempt.md
|
|
48
50
|
docs/Price.md
|
|
@@ -54,6 +56,7 @@ docs/Status.md
|
|
|
54
56
|
docs/StatusHistoryItem.md
|
|
55
57
|
docs/StockConflictError.md
|
|
56
58
|
docs/StockUnavailableError.md
|
|
59
|
+
docs/VatRegisteredFilterOption.md
|
|
57
60
|
git_push.sh
|
|
58
61
|
index.ts
|
|
59
62
|
package.json
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.23.0
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/orders@1.30.
|
|
1
|
+
## @teemill/orders@1.30.4
|
|
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.30.
|
|
39
|
+
npm install @teemill/orders@1.30.4 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -103,7 +103,9 @@ Class | Method | HTTP request | Description
|
|
|
103
103
|
- [OrderItem](docs/OrderItem.md)
|
|
104
104
|
- [OrderPaymentMethod](docs/OrderPaymentMethod.md)
|
|
105
105
|
- [OrderTracking](docs/OrderTracking.md)
|
|
106
|
+
- [OrdersListMetaFilters](docs/OrdersListMetaFilters.md)
|
|
106
107
|
- [OrdersResponse](docs/OrdersResponse.md)
|
|
108
|
+
- [OrdersResponseMeta](docs/OrdersResponseMeta.md)
|
|
107
109
|
- [Origin](docs/Origin.md)
|
|
108
110
|
- [PaymentAttempt](docs/PaymentAttempt.md)
|
|
109
111
|
- [Price](docs/Price.md)
|
|
@@ -115,6 +117,7 @@ Class | Method | HTTP request | Description
|
|
|
115
117
|
- [StatusHistoryItem](docs/StatusHistoryItem.md)
|
|
116
118
|
- [StockConflictError](docs/StockConflictError.md)
|
|
117
119
|
- [StockUnavailableError](docs/StockUnavailableError.md)
|
|
120
|
+
- [VatRegisteredFilterOption](docs/VatRegisteredFilterOption.md)
|
|
118
121
|
|
|
119
122
|
|
|
120
123
|
<a id="documentation-for-authorization"></a>
|
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.30.
|
|
7
|
+
* The version of the OpenAPI document: 1.30.4
|
|
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. - `
|
|
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.
|
|
345
345
|
*/
|
|
346
346
|
'frozenReasons'?: Array<FulfillmentFrozenReasonsEnum>;
|
|
347
347
|
}
|
|
@@ -350,7 +350,8 @@ export const FulfillmentFrozenReasonsEnum = {
|
|
|
350
350
|
Moderation: 'moderation',
|
|
351
351
|
InternalScreenPrint: 'internal_screen_print',
|
|
352
352
|
Manual: 'manual',
|
|
353
|
-
|
|
353
|
+
ClientCreditControl: 'client_credit_control',
|
|
354
|
+
FactoryCreditControl: 'factory_credit_control',
|
|
354
355
|
BillingFailed: 'billing_failed',
|
|
355
356
|
PickfaceFlagged: 'pickface_flagged',
|
|
356
357
|
FlowFrozen: 'flow_frozen',
|
|
@@ -432,6 +433,10 @@ export interface Order {
|
|
|
432
433
|
* The address the order will be shipped to.
|
|
433
434
|
*/
|
|
434
435
|
'shippingAddress': Address;
|
|
436
|
+
/**
|
|
437
|
+
* The customer\'s VAT registration number for B2B orders.
|
|
438
|
+
*/
|
|
439
|
+
'vatNumber'?: string;
|
|
435
440
|
'customsInformation'?: CustomsInformation1;
|
|
436
441
|
/**
|
|
437
442
|
* When the order was created.
|
|
@@ -748,12 +753,32 @@ export interface OrderTracking {
|
|
|
748
753
|
*/
|
|
749
754
|
'url'?: string;
|
|
750
755
|
}
|
|
756
|
+
/**
|
|
757
|
+
* Filters that may be applied via `key:value` tags in the `search` query parameter. Each property name is a filter key; its value lists the allowed options for that filter on this project. Keys omitted from this object are not available for the current project.
|
|
758
|
+
*/
|
|
759
|
+
export interface OrdersListMetaFilters {
|
|
760
|
+
/**
|
|
761
|
+
* Project-specific subset of the `Status` enum. Use as `status:<code>` search tags; only values listed here are valid for the current project.
|
|
762
|
+
*/
|
|
763
|
+
'status'?: Array<Status>;
|
|
764
|
+
/**
|
|
765
|
+
* When present, always lists `yes` and `no` — the only valid values for `vatRegistered:yes` and `vatRegistered:no` search tags. Omitted for projects where VAT registration filtering is not available.
|
|
766
|
+
*/
|
|
767
|
+
'vatRegistered'?: Array<VatRegisteredFilterOption>;
|
|
768
|
+
}
|
|
751
769
|
export interface OrdersResponse {
|
|
752
|
-
'orders'
|
|
770
|
+
'orders': Array<Order>;
|
|
771
|
+
'meta': OrdersResponseMeta;
|
|
753
772
|
/**
|
|
754
773
|
* The token referencing the next page number
|
|
755
774
|
*/
|
|
756
|
-
'nextPageToken'
|
|
775
|
+
'nextPageToken': number | null;
|
|
776
|
+
}
|
|
777
|
+
/**
|
|
778
|
+
* Metadata about the orders list, including available filters.
|
|
779
|
+
*/
|
|
780
|
+
export interface OrdersResponseMeta {
|
|
781
|
+
'filters': OrdersListMetaFilters;
|
|
757
782
|
}
|
|
758
783
|
/**
|
|
759
784
|
* The marketing or acquisition source of the order, such as `facebook_cpc`, `google_cpc`, or `organic`.
|
|
@@ -1001,6 +1026,18 @@ export const StockUnavailableErrorCodeEnum = {
|
|
|
1001
1026
|
|
|
1002
1027
|
export type StockUnavailableErrorCodeEnum = typeof StockUnavailableErrorCodeEnum[keyof typeof StockUnavailableErrorCodeEnum];
|
|
1003
1028
|
|
|
1029
|
+
/**
|
|
1030
|
+
* Whether a billing VAT number was provided.
|
|
1031
|
+
*/
|
|
1032
|
+
|
|
1033
|
+
export const VatRegisteredFilterOption = {
|
|
1034
|
+
True: 'true',
|
|
1035
|
+
False: 'false',
|
|
1036
|
+
} as const;
|
|
1037
|
+
|
|
1038
|
+
export type VatRegisteredFilterOption = typeof VatRegisteredFilterOption[keyof typeof VatRegisteredFilterOption];
|
|
1039
|
+
|
|
1040
|
+
|
|
1004
1041
|
|
|
1005
1042
|
/**
|
|
1006
1043
|
* OrdersApi - axios parameter creator
|
|
@@ -1226,7 +1263,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1226
1263
|
* @param {string} project The project identifier to scope the request to.
|
|
1227
1264
|
* @param {string} start Start of the date range to filter by when orders were placed.
|
|
1228
1265
|
* @param {string} [end] End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
1229
|
-
* @param {string} [search] Search
|
|
1266
|
+
* @param {string} [search] Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
1230
1267
|
* @param {ExportOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
1231
1268
|
* @param {*} [options] Override http request option.
|
|
1232
1269
|
* @throws {RequiredError}
|
|
@@ -1398,7 +1435,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1398
1435
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
1399
1436
|
* @param {number} [pageToken] Page reference token
|
|
1400
1437
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1401
|
-
* @param {string} [search] Search
|
|
1438
|
+
* @param {string} [search] Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
1402
1439
|
* @param {Array<string>} [ids] Filter to specific order IDs. Only orders matching these IDs will be returned.
|
|
1403
1440
|
* @param {Array<Status>} [statuses] Filter by order status. Only orders matching one of the given statuses will be returned.
|
|
1404
1441
|
* @param {string} [start] Start of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
@@ -1778,7 +1815,7 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
1778
1815
|
* @param {string} project The project identifier to scope the request to.
|
|
1779
1816
|
* @param {string} start Start of the date range to filter by when orders were placed.
|
|
1780
1817
|
* @param {string} [end] End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
1781
|
-
* @param {string} [search] Search
|
|
1818
|
+
* @param {string} [search] Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
1782
1819
|
* @param {ExportOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
1783
1820
|
* @param {*} [options] Override http request option.
|
|
1784
1821
|
* @throws {RequiredError}
|
|
@@ -1825,7 +1862,7 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
1825
1862
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
1826
1863
|
* @param {number} [pageToken] Page reference token
|
|
1827
1864
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1828
|
-
* @param {string} [search] Search
|
|
1865
|
+
* @param {string} [search] Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
1829
1866
|
* @param {Array<string>} [ids] Filter to specific order IDs. Only orders matching these IDs will be returned.
|
|
1830
1867
|
* @param {Array<Status>} [statuses] Filter by order status. Only orders matching one of the given statuses will be returned.
|
|
1831
1868
|
* @param {string} [start] Start of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
@@ -2132,7 +2169,7 @@ export interface OrdersApiExportOrdersRequest {
|
|
|
2132
2169
|
readonly end?: string
|
|
2133
2170
|
|
|
2134
2171
|
/**
|
|
2135
|
-
* Search
|
|
2172
|
+
* Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
2136
2173
|
*/
|
|
2137
2174
|
readonly search?: string
|
|
2138
2175
|
|
|
@@ -2202,7 +2239,7 @@ export interface OrdersApiGetOrdersRequest {
|
|
|
2202
2239
|
readonly pageSize?: number
|
|
2203
2240
|
|
|
2204
2241
|
/**
|
|
2205
|
-
* Search
|
|
2242
|
+
* Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
2206
2243
|
*/
|
|
2207
2244
|
readonly search?: string
|
|
2208
2245
|
|
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.30.
|
|
7
|
+
* The version of the OpenAPI document: 1.30.4
|
|
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.30.
|
|
7
|
+
* The version of the OpenAPI document: 1.30.4
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -86,7 +86,7 @@ export const setOAuthToObject = async function (object: any, name: string, scope
|
|
|
86
86
|
function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
|
|
87
87
|
if (parameter == null) return;
|
|
88
88
|
if (typeof parameter === "object") {
|
|
89
|
-
if (Array.isArray(parameter)) {
|
|
89
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
90
90
|
(parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key !== '' ? `${key}[]` : key));
|
|
91
91
|
}
|
|
92
92
|
else {
|
|
@@ -112,7 +112,19 @@ function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: an
|
|
|
112
112
|
export const setSearchParams = function (url: URL, ...objects: any[]) {
|
|
113
113
|
const searchParams = new URLSearchParams(url.search);
|
|
114
114
|
setFlattenedQueryParams(searchParams, objects);
|
|
115
|
-
url.search =
|
|
115
|
+
url.search = searchParams.toString();
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
120
|
+
* @export
|
|
121
|
+
*/
|
|
122
|
+
export const replaceWithSerializableTypeIfNeeded = function (_key: string, value: unknown) {
|
|
123
|
+
if (value instanceof Set) {
|
|
124
|
+
return Array.from(value);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return value;
|
|
116
128
|
}
|
|
117
129
|
|
|
118
130
|
/**
|
|
@@ -125,7 +137,7 @@ export const serializeDataIfNeeded = function (value: any, requestOptions: any,
|
|
|
125
137
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
126
138
|
: nonString;
|
|
127
139
|
return needsSerialization
|
|
128
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
140
|
+
? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)
|
|
129
141
|
: (value || "");
|
|
130
142
|
}
|
|
131
143
|
|
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.30.
|
|
6
|
+
* The version of the OpenAPI document: 1.30.4
|
|
7
7
|
*
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
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.30.
|
|
5
|
+
* The version of the OpenAPI document: 1.30.4
|
|
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. - `
|
|
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.
|
|
328
328
|
*/
|
|
329
329
|
'frozenReasons'?: Array<FulfillmentFrozenReasonsEnum>;
|
|
330
330
|
}
|
|
@@ -332,7 +332,8 @@ export declare const FulfillmentFrozenReasonsEnum: {
|
|
|
332
332
|
readonly Moderation: "moderation";
|
|
333
333
|
readonly InternalScreenPrint: "internal_screen_print";
|
|
334
334
|
readonly Manual: "manual";
|
|
335
|
-
readonly
|
|
335
|
+
readonly ClientCreditControl: "client_credit_control";
|
|
336
|
+
readonly FactoryCreditControl: "factory_credit_control";
|
|
336
337
|
readonly BillingFailed: "billing_failed";
|
|
337
338
|
readonly PickfaceFlagged: "pickface_flagged";
|
|
338
339
|
readonly FlowFrozen: "flow_frozen";
|
|
@@ -412,6 +413,10 @@ export interface Order {
|
|
|
412
413
|
* The address the order will be shipped to.
|
|
413
414
|
*/
|
|
414
415
|
'shippingAddress': Address;
|
|
416
|
+
/**
|
|
417
|
+
* The customer\'s VAT registration number for B2B orders.
|
|
418
|
+
*/
|
|
419
|
+
'vatNumber'?: string;
|
|
415
420
|
'customsInformation'?: CustomsInformation1;
|
|
416
421
|
/**
|
|
417
422
|
* When the order was created.
|
|
@@ -708,12 +713,32 @@ export interface OrderTracking {
|
|
|
708
713
|
*/
|
|
709
714
|
'url'?: string;
|
|
710
715
|
}
|
|
716
|
+
/**
|
|
717
|
+
* Filters that may be applied via `key:value` tags in the `search` query parameter. Each property name is a filter key; its value lists the allowed options for that filter on this project. Keys omitted from this object are not available for the current project.
|
|
718
|
+
*/
|
|
719
|
+
export interface OrdersListMetaFilters {
|
|
720
|
+
/**
|
|
721
|
+
* Project-specific subset of the `Status` enum. Use as `status:<code>` search tags; only values listed here are valid for the current project.
|
|
722
|
+
*/
|
|
723
|
+
'status'?: Array<Status>;
|
|
724
|
+
/**
|
|
725
|
+
* When present, always lists `yes` and `no` — the only valid values for `vatRegistered:yes` and `vatRegistered:no` search tags. Omitted for projects where VAT registration filtering is not available.
|
|
726
|
+
*/
|
|
727
|
+
'vatRegistered'?: Array<VatRegisteredFilterOption>;
|
|
728
|
+
}
|
|
711
729
|
export interface OrdersResponse {
|
|
712
|
-
'orders'
|
|
730
|
+
'orders': Array<Order>;
|
|
731
|
+
'meta': OrdersResponseMeta;
|
|
713
732
|
/**
|
|
714
733
|
* The token referencing the next page number
|
|
715
734
|
*/
|
|
716
|
-
'nextPageToken'
|
|
735
|
+
'nextPageToken': number | null;
|
|
736
|
+
}
|
|
737
|
+
/**
|
|
738
|
+
* Metadata about the orders list, including available filters.
|
|
739
|
+
*/
|
|
740
|
+
export interface OrdersResponseMeta {
|
|
741
|
+
'filters': OrdersListMetaFilters;
|
|
717
742
|
}
|
|
718
743
|
/**
|
|
719
744
|
* The marketing or acquisition source of the order, such as `facebook_cpc`, `google_cpc`, or `organic`.
|
|
@@ -947,6 +972,14 @@ export declare const StockUnavailableErrorCodeEnum: {
|
|
|
947
972
|
readonly StockUnavailable: "STOCK_UNAVAILABLE";
|
|
948
973
|
};
|
|
949
974
|
export type StockUnavailableErrorCodeEnum = typeof StockUnavailableErrorCodeEnum[keyof typeof StockUnavailableErrorCodeEnum];
|
|
975
|
+
/**
|
|
976
|
+
* Whether a billing VAT number was provided.
|
|
977
|
+
*/
|
|
978
|
+
export declare const VatRegisteredFilterOption: {
|
|
979
|
+
readonly True: "true";
|
|
980
|
+
readonly False: "false";
|
|
981
|
+
};
|
|
982
|
+
export type VatRegisteredFilterOption = typeof VatRegisteredFilterOption[keyof typeof VatRegisteredFilterOption];
|
|
950
983
|
/**
|
|
951
984
|
* OrdersApi - axios parameter creator
|
|
952
985
|
*/
|
|
@@ -997,7 +1030,7 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
997
1030
|
* @param {string} project The project identifier to scope the request to.
|
|
998
1031
|
* @param {string} start Start of the date range to filter by when orders were placed.
|
|
999
1032
|
* @param {string} [end] End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
1000
|
-
* @param {string} [search] Search
|
|
1033
|
+
* @param {string} [search] Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
1001
1034
|
* @param {ExportOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
1002
1035
|
* @param {*} [options] Override http request option.
|
|
1003
1036
|
* @throws {RequiredError}
|
|
@@ -1029,7 +1062,7 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
1029
1062
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
1030
1063
|
* @param {number} [pageToken] Page reference token
|
|
1031
1064
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1032
|
-
* @param {string} [search] Search
|
|
1065
|
+
* @param {string} [search] Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
1033
1066
|
* @param {Array<string>} [ids] Filter to specific order IDs. Only orders matching these IDs will be returned.
|
|
1034
1067
|
* @param {Array<Status>} [statuses] Filter by order status. Only orders matching one of the given statuses will be returned.
|
|
1035
1068
|
* @param {string} [start] Start of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
@@ -1130,7 +1163,7 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
1130
1163
|
* @param {string} project The project identifier to scope the request to.
|
|
1131
1164
|
* @param {string} start Start of the date range to filter by when orders were placed.
|
|
1132
1165
|
* @param {string} [end] End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
1133
|
-
* @param {string} [search] Search
|
|
1166
|
+
* @param {string} [search] Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
1134
1167
|
* @param {ExportOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
1135
1168
|
* @param {*} [options] Override http request option.
|
|
1136
1169
|
* @throws {RequiredError}
|
|
@@ -1162,7 +1195,7 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
1162
1195
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
1163
1196
|
* @param {number} [pageToken] Page reference token
|
|
1164
1197
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1165
|
-
* @param {string} [search] Search
|
|
1198
|
+
* @param {string} [search] Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
1166
1199
|
* @param {Array<string>} [ids] Filter to specific order IDs. Only orders matching these IDs will be returned.
|
|
1167
1200
|
* @param {Array<Status>} [statuses] Filter by order status. Only orders matching one of the given statuses will be returned.
|
|
1168
1201
|
* @param {string} [start] Start of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
@@ -1399,7 +1432,7 @@ export interface OrdersApiExportOrdersRequest {
|
|
|
1399
1432
|
*/
|
|
1400
1433
|
readonly end?: string;
|
|
1401
1434
|
/**
|
|
1402
|
-
* Search
|
|
1435
|
+
* Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
1403
1436
|
*/
|
|
1404
1437
|
readonly search?: string;
|
|
1405
1438
|
/**
|
|
@@ -1458,7 +1491,7 @@ export interface OrdersApiGetOrdersRequest {
|
|
|
1458
1491
|
*/
|
|
1459
1492
|
readonly pageSize?: number;
|
|
1460
1493
|
/**
|
|
1461
|
-
* Search
|
|
1494
|
+
* Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
1462
1495
|
*/
|
|
1463
1496
|
readonly search?: string;
|
|
1464
1497
|
/**
|
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.30.
|
|
8
|
+
* The version of the OpenAPI document: 1.30.4
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.GetOrdersDateFilterTypeEnum = exports.ExportOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.StockUnavailableErrorCodeEnum = exports.Status = exports.ProductUnavailableErrorAvailableQuantityEnum = exports.ProductUnavailableErrorCodeEnum = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.OrderImportStatus = exports.OrderImportGroupStatus = exports.OrderImportErrorCode = exports.FulfillmentFrozenReasonsEnum = exports.CustomsInformationPreRegistrationTypeEnum = exports.ConfirmOrderValidationErrorCodeEnum = void 0;
|
|
25
|
+
exports.GetOrdersDateFilterTypeEnum = exports.ExportOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.VatRegisteredFilterOption = exports.StockUnavailableErrorCodeEnum = exports.Status = exports.ProductUnavailableErrorAvailableQuantityEnum = exports.ProductUnavailableErrorCodeEnum = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.OrderImportStatus = exports.OrderImportGroupStatus = exports.OrderImportErrorCode = exports.FulfillmentFrozenReasonsEnum = exports.CustomsInformationPreRegistrationTypeEnum = exports.ConfirmOrderValidationErrorCodeEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -42,7 +42,8 @@ exports.FulfillmentFrozenReasonsEnum = {
|
|
|
42
42
|
Moderation: 'moderation',
|
|
43
43
|
InternalScreenPrint: 'internal_screen_print',
|
|
44
44
|
Manual: 'manual',
|
|
45
|
-
|
|
45
|
+
ClientCreditControl: 'client_credit_control',
|
|
46
|
+
FactoryCreditControl: 'factory_credit_control',
|
|
46
47
|
BillingFailed: 'billing_failed',
|
|
47
48
|
PickfaceFlagged: 'pickface_flagged',
|
|
48
49
|
FlowFrozen: 'flow_frozen',
|
|
@@ -111,6 +112,13 @@ exports.Status = {
|
|
|
111
112
|
exports.StockUnavailableErrorCodeEnum = {
|
|
112
113
|
StockUnavailable: 'STOCK_UNAVAILABLE',
|
|
113
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
* Whether a billing VAT number was provided.
|
|
117
|
+
*/
|
|
118
|
+
exports.VatRegisteredFilterOption = {
|
|
119
|
+
True: 'true',
|
|
120
|
+
False: 'false',
|
|
121
|
+
};
|
|
114
122
|
/**
|
|
115
123
|
* OrdersApi - axios parameter creator
|
|
116
124
|
*/
|
|
@@ -304,7 +312,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
304
312
|
* @param {string} project The project identifier to scope the request to.
|
|
305
313
|
* @param {string} start Start of the date range to filter by when orders were placed.
|
|
306
314
|
* @param {string} [end] End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
307
|
-
* @param {string} [search] Search
|
|
315
|
+
* @param {string} [search] Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
308
316
|
* @param {ExportOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
309
317
|
* @param {*} [options] Override http request option.
|
|
310
318
|
* @throws {RequiredError}
|
|
@@ -450,7 +458,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
450
458
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
451
459
|
* @param {number} [pageToken] Page reference token
|
|
452
460
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
453
|
-
* @param {string} [search] Search
|
|
461
|
+
* @param {string} [search] Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
454
462
|
* @param {Array<string>} [ids] Filter to specific order IDs. Only orders matching these IDs will be returned.
|
|
455
463
|
* @param {Array<Status>} [statuses] Filter by order status. Only orders matching one of the given statuses will be returned.
|
|
456
464
|
* @param {string} [start] Start of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
@@ -792,7 +800,7 @@ const OrdersApiFp = function (configuration) {
|
|
|
792
800
|
* @param {string} project The project identifier to scope the request to.
|
|
793
801
|
* @param {string} start Start of the date range to filter by when orders were placed.
|
|
794
802
|
* @param {string} [end] End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
795
|
-
* @param {string} [search] Search
|
|
803
|
+
* @param {string} [search] Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
796
804
|
* @param {ExportOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
797
805
|
* @param {*} [options] Override http request option.
|
|
798
806
|
* @throws {RequiredError}
|
|
@@ -848,7 +856,7 @@ const OrdersApiFp = function (configuration) {
|
|
|
848
856
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
849
857
|
* @param {number} [pageToken] Page reference token
|
|
850
858
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
851
|
-
* @param {string} [search] Search
|
|
859
|
+
* @param {string} [search] Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
852
860
|
* @param {Array<string>} [ids] Filter to specific order IDs. Only orders matching these IDs will be returned.
|
|
853
861
|
* @param {Array<Status>} [statuses] Filter by order status. Only orders matching one of the given statuses will be returned.
|
|
854
862
|
* @param {string} [start] Start of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
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.30.
|
|
5
|
+
* The version of the OpenAPI document: 1.30.4
|
|
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.30.
|
|
8
|
+
* The version of the OpenAPI document: 1.30.4
|
|
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.30.
|
|
5
|
+
* The version of the OpenAPI document: 1.30.4
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -48,6 +48,11 @@ export declare const setOAuthToObject: (object: any, name: string, scopes: strin
|
|
|
48
48
|
* @export
|
|
49
49
|
*/
|
|
50
50
|
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const replaceWithSerializableTypeIfNeeded: (_key: string, value: unknown) => unknown;
|
|
51
56
|
/**
|
|
52
57
|
*
|
|
53
58
|
* @export
|
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.30.
|
|
8
|
+
* The version of the OpenAPI document: 1.30.4
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
25
|
+
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.replaceWithSerializableTypeIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
26
26
|
const base_1 = require("./base");
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
@@ -99,7 +99,7 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
99
99
|
if (parameter == null)
|
|
100
100
|
return;
|
|
101
101
|
if (typeof parameter === "object") {
|
|
102
|
-
if (Array.isArray(parameter)) {
|
|
102
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
103
103
|
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key !== '' ? `${key}[]` : key));
|
|
104
104
|
}
|
|
105
105
|
else {
|
|
@@ -122,9 +122,20 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
122
122
|
const setSearchParams = function (url, ...objects) {
|
|
123
123
|
const searchParams = new URLSearchParams(url.search);
|
|
124
124
|
setFlattenedQueryParams(searchParams, objects);
|
|
125
|
-
url.search =
|
|
125
|
+
url.search = searchParams.toString();
|
|
126
126
|
};
|
|
127
127
|
exports.setSearchParams = setSearchParams;
|
|
128
|
+
/**
|
|
129
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
130
|
+
* @export
|
|
131
|
+
*/
|
|
132
|
+
const replaceWithSerializableTypeIfNeeded = function (_key, value) {
|
|
133
|
+
if (value instanceof Set) {
|
|
134
|
+
return Array.from(value);
|
|
135
|
+
}
|
|
136
|
+
return value;
|
|
137
|
+
};
|
|
138
|
+
exports.replaceWithSerializableTypeIfNeeded = replaceWithSerializableTypeIfNeeded;
|
|
128
139
|
/**
|
|
129
140
|
*
|
|
130
141
|
* @export
|
|
@@ -135,7 +146,7 @@ const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
|
135
146
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
136
147
|
: nonString;
|
|
137
148
|
return needsSerialization
|
|
138
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
149
|
+
? JSON.stringify(value !== undefined ? value : {}, exports.replaceWithSerializableTypeIfNeeded)
|
|
139
150
|
: (value || "");
|
|
140
151
|
};
|
|
141
152
|
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
package/dist/configuration.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.30.
|
|
5
|
+
* The version of the OpenAPI document: 1.30.4
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.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.30.
|
|
7
|
+
* The version of the OpenAPI document: 1.30.4
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
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.30.
|
|
5
|
+
* The version of the OpenAPI document: 1.30.4
|
|
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. - `
|
|
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.
|
|
328
328
|
*/
|
|
329
329
|
'frozenReasons'?: Array<FulfillmentFrozenReasonsEnum>;
|
|
330
330
|
}
|
|
@@ -332,7 +332,8 @@ export declare const FulfillmentFrozenReasonsEnum: {
|
|
|
332
332
|
readonly Moderation: "moderation";
|
|
333
333
|
readonly InternalScreenPrint: "internal_screen_print";
|
|
334
334
|
readonly Manual: "manual";
|
|
335
|
-
readonly
|
|
335
|
+
readonly ClientCreditControl: "client_credit_control";
|
|
336
|
+
readonly FactoryCreditControl: "factory_credit_control";
|
|
336
337
|
readonly BillingFailed: "billing_failed";
|
|
337
338
|
readonly PickfaceFlagged: "pickface_flagged";
|
|
338
339
|
readonly FlowFrozen: "flow_frozen";
|
|
@@ -412,6 +413,10 @@ export interface Order {
|
|
|
412
413
|
* The address the order will be shipped to.
|
|
413
414
|
*/
|
|
414
415
|
'shippingAddress': Address;
|
|
416
|
+
/**
|
|
417
|
+
* The customer\'s VAT registration number for B2B orders.
|
|
418
|
+
*/
|
|
419
|
+
'vatNumber'?: string;
|
|
415
420
|
'customsInformation'?: CustomsInformation1;
|
|
416
421
|
/**
|
|
417
422
|
* When the order was created.
|
|
@@ -708,12 +713,32 @@ export interface OrderTracking {
|
|
|
708
713
|
*/
|
|
709
714
|
'url'?: string;
|
|
710
715
|
}
|
|
716
|
+
/**
|
|
717
|
+
* Filters that may be applied via `key:value` tags in the `search` query parameter. Each property name is a filter key; its value lists the allowed options for that filter on this project. Keys omitted from this object are not available for the current project.
|
|
718
|
+
*/
|
|
719
|
+
export interface OrdersListMetaFilters {
|
|
720
|
+
/**
|
|
721
|
+
* Project-specific subset of the `Status` enum. Use as `status:<code>` search tags; only values listed here are valid for the current project.
|
|
722
|
+
*/
|
|
723
|
+
'status'?: Array<Status>;
|
|
724
|
+
/**
|
|
725
|
+
* When present, always lists `yes` and `no` — the only valid values for `vatRegistered:yes` and `vatRegistered:no` search tags. Omitted for projects where VAT registration filtering is not available.
|
|
726
|
+
*/
|
|
727
|
+
'vatRegistered'?: Array<VatRegisteredFilterOption>;
|
|
728
|
+
}
|
|
711
729
|
export interface OrdersResponse {
|
|
712
|
-
'orders'
|
|
730
|
+
'orders': Array<Order>;
|
|
731
|
+
'meta': OrdersResponseMeta;
|
|
713
732
|
/**
|
|
714
733
|
* The token referencing the next page number
|
|
715
734
|
*/
|
|
716
|
-
'nextPageToken'
|
|
735
|
+
'nextPageToken': number | null;
|
|
736
|
+
}
|
|
737
|
+
/**
|
|
738
|
+
* Metadata about the orders list, including available filters.
|
|
739
|
+
*/
|
|
740
|
+
export interface OrdersResponseMeta {
|
|
741
|
+
'filters': OrdersListMetaFilters;
|
|
717
742
|
}
|
|
718
743
|
/**
|
|
719
744
|
* The marketing or acquisition source of the order, such as `facebook_cpc`, `google_cpc`, or `organic`.
|
|
@@ -947,6 +972,14 @@ export declare const StockUnavailableErrorCodeEnum: {
|
|
|
947
972
|
readonly StockUnavailable: "STOCK_UNAVAILABLE";
|
|
948
973
|
};
|
|
949
974
|
export type StockUnavailableErrorCodeEnum = typeof StockUnavailableErrorCodeEnum[keyof typeof StockUnavailableErrorCodeEnum];
|
|
975
|
+
/**
|
|
976
|
+
* Whether a billing VAT number was provided.
|
|
977
|
+
*/
|
|
978
|
+
export declare const VatRegisteredFilterOption: {
|
|
979
|
+
readonly True: "true";
|
|
980
|
+
readonly False: "false";
|
|
981
|
+
};
|
|
982
|
+
export type VatRegisteredFilterOption = typeof VatRegisteredFilterOption[keyof typeof VatRegisteredFilterOption];
|
|
950
983
|
/**
|
|
951
984
|
* OrdersApi - axios parameter creator
|
|
952
985
|
*/
|
|
@@ -997,7 +1030,7 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
997
1030
|
* @param {string} project The project identifier to scope the request to.
|
|
998
1031
|
* @param {string} start Start of the date range to filter by when orders were placed.
|
|
999
1032
|
* @param {string} [end] End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
1000
|
-
* @param {string} [search] Search
|
|
1033
|
+
* @param {string} [search] Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
1001
1034
|
* @param {ExportOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
1002
1035
|
* @param {*} [options] Override http request option.
|
|
1003
1036
|
* @throws {RequiredError}
|
|
@@ -1029,7 +1062,7 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
1029
1062
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
1030
1063
|
* @param {number} [pageToken] Page reference token
|
|
1031
1064
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1032
|
-
* @param {string} [search] Search
|
|
1065
|
+
* @param {string} [search] Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
1033
1066
|
* @param {Array<string>} [ids] Filter to specific order IDs. Only orders matching these IDs will be returned.
|
|
1034
1067
|
* @param {Array<Status>} [statuses] Filter by order status. Only orders matching one of the given statuses will be returned.
|
|
1035
1068
|
* @param {string} [start] Start of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
@@ -1130,7 +1163,7 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
1130
1163
|
* @param {string} project The project identifier to scope the request to.
|
|
1131
1164
|
* @param {string} start Start of the date range to filter by when orders were placed.
|
|
1132
1165
|
* @param {string} [end] End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
1133
|
-
* @param {string} [search] Search
|
|
1166
|
+
* @param {string} [search] Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
1134
1167
|
* @param {ExportOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
1135
1168
|
* @param {*} [options] Override http request option.
|
|
1136
1169
|
* @throws {RequiredError}
|
|
@@ -1162,7 +1195,7 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
1162
1195
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
1163
1196
|
* @param {number} [pageToken] Page reference token
|
|
1164
1197
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1165
|
-
* @param {string} [search] Search
|
|
1198
|
+
* @param {string} [search] Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
1166
1199
|
* @param {Array<string>} [ids] Filter to specific order IDs. Only orders matching these IDs will be returned.
|
|
1167
1200
|
* @param {Array<Status>} [statuses] Filter by order status. Only orders matching one of the given statuses will be returned.
|
|
1168
1201
|
* @param {string} [start] Start of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
@@ -1399,7 +1432,7 @@ export interface OrdersApiExportOrdersRequest {
|
|
|
1399
1432
|
*/
|
|
1400
1433
|
readonly end?: string;
|
|
1401
1434
|
/**
|
|
1402
|
-
* Search
|
|
1435
|
+
* Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
1403
1436
|
*/
|
|
1404
1437
|
readonly search?: string;
|
|
1405
1438
|
/**
|
|
@@ -1458,7 +1491,7 @@ export interface OrdersApiGetOrdersRequest {
|
|
|
1458
1491
|
*/
|
|
1459
1492
|
readonly pageSize?: number;
|
|
1460
1493
|
/**
|
|
1461
|
-
* Search
|
|
1494
|
+
* Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
1462
1495
|
*/
|
|
1463
1496
|
readonly search?: string;
|
|
1464
1497
|
/**
|
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.30.
|
|
7
|
+
* The version of the OpenAPI document: 1.30.4
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -39,7 +39,8 @@ export const FulfillmentFrozenReasonsEnum = {
|
|
|
39
39
|
Moderation: 'moderation',
|
|
40
40
|
InternalScreenPrint: 'internal_screen_print',
|
|
41
41
|
Manual: 'manual',
|
|
42
|
-
|
|
42
|
+
ClientCreditControl: 'client_credit_control',
|
|
43
|
+
FactoryCreditControl: 'factory_credit_control',
|
|
43
44
|
BillingFailed: 'billing_failed',
|
|
44
45
|
PickfaceFlagged: 'pickface_flagged',
|
|
45
46
|
FlowFrozen: 'flow_frozen',
|
|
@@ -108,6 +109,13 @@ export const Status = {
|
|
|
108
109
|
export const StockUnavailableErrorCodeEnum = {
|
|
109
110
|
StockUnavailable: 'STOCK_UNAVAILABLE',
|
|
110
111
|
};
|
|
112
|
+
/**
|
|
113
|
+
* Whether a billing VAT number was provided.
|
|
114
|
+
*/
|
|
115
|
+
export const VatRegisteredFilterOption = {
|
|
116
|
+
True: 'true',
|
|
117
|
+
False: 'false',
|
|
118
|
+
};
|
|
111
119
|
/**
|
|
112
120
|
* OrdersApi - axios parameter creator
|
|
113
121
|
*/
|
|
@@ -301,7 +309,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
301
309
|
* @param {string} project The project identifier to scope the request to.
|
|
302
310
|
* @param {string} start Start of the date range to filter by when orders were placed.
|
|
303
311
|
* @param {string} [end] End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
304
|
-
* @param {string} [search] Search
|
|
312
|
+
* @param {string} [search] Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
305
313
|
* @param {ExportOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
306
314
|
* @param {*} [options] Override http request option.
|
|
307
315
|
* @throws {RequiredError}
|
|
@@ -447,7 +455,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
447
455
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
448
456
|
* @param {number} [pageToken] Page reference token
|
|
449
457
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
450
|
-
* @param {string} [search] Search
|
|
458
|
+
* @param {string} [search] Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
451
459
|
* @param {Array<string>} [ids] Filter to specific order IDs. Only orders matching these IDs will be returned.
|
|
452
460
|
* @param {Array<Status>} [statuses] Filter by order status. Only orders matching one of the given statuses will be returned.
|
|
453
461
|
* @param {string} [start] Start of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
@@ -788,7 +796,7 @@ export const OrdersApiFp = function (configuration) {
|
|
|
788
796
|
* @param {string} project The project identifier to scope the request to.
|
|
789
797
|
* @param {string} start Start of the date range to filter by when orders were placed.
|
|
790
798
|
* @param {string} [end] End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
791
|
-
* @param {string} [search] Search
|
|
799
|
+
* @param {string} [search] Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
792
800
|
* @param {ExportOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
793
801
|
* @param {*} [options] Override http request option.
|
|
794
802
|
* @throws {RequiredError}
|
|
@@ -844,7 +852,7 @@ export const OrdersApiFp = function (configuration) {
|
|
|
844
852
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
845
853
|
* @param {number} [pageToken] Page reference token
|
|
846
854
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
847
|
-
* @param {string} [search] Search
|
|
855
|
+
* @param {string} [search] Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com`
|
|
848
856
|
* @param {Array<string>} [ids] Filter to specific order IDs. Only orders matching these IDs will be returned.
|
|
849
857
|
* @param {Array<Status>} [statuses] Filter by order status. Only orders matching one of the given statuses will be returned.
|
|
850
858
|
* @param {string} [start] Start of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
package/dist/esm/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.30.
|
|
5
|
+
* The version of the OpenAPI document: 1.30.4
|
|
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.30.
|
|
7
|
+
* The version of the OpenAPI document: 1.30.4
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/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.30.
|
|
5
|
+
* The version of the OpenAPI document: 1.30.4
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -48,6 +48,11 @@ export declare const setOAuthToObject: (object: any, name: string, scopes: strin
|
|
|
48
48
|
* @export
|
|
49
49
|
*/
|
|
50
50
|
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const replaceWithSerializableTypeIfNeeded: (_key: string, value: unknown) => unknown;
|
|
51
56
|
/**
|
|
52
57
|
*
|
|
53
58
|
* @export
|
package/dist/esm/common.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.30.
|
|
7
|
+
* The version of the OpenAPI document: 1.30.4
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -91,7 +91,7 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
91
91
|
if (parameter == null)
|
|
92
92
|
return;
|
|
93
93
|
if (typeof parameter === "object") {
|
|
94
|
-
if (Array.isArray(parameter)) {
|
|
94
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
95
95
|
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key !== '' ? `${key}[]` : key));
|
|
96
96
|
}
|
|
97
97
|
else {
|
|
@@ -114,7 +114,17 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
114
114
|
export const setSearchParams = function (url, ...objects) {
|
|
115
115
|
const searchParams = new URLSearchParams(url.search);
|
|
116
116
|
setFlattenedQueryParams(searchParams, objects);
|
|
117
|
-
url.search =
|
|
117
|
+
url.search = searchParams.toString();
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
121
|
+
* @export
|
|
122
|
+
*/
|
|
123
|
+
export const replaceWithSerializableTypeIfNeeded = function (_key, value) {
|
|
124
|
+
if (value instanceof Set) {
|
|
125
|
+
return Array.from(value);
|
|
126
|
+
}
|
|
127
|
+
return value;
|
|
118
128
|
};
|
|
119
129
|
/**
|
|
120
130
|
*
|
|
@@ -126,7 +136,7 @@ export const serializeDataIfNeeded = function (value, requestOptions, configurat
|
|
|
126
136
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
127
137
|
: nonString;
|
|
128
138
|
return needsSerialization
|
|
129
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
139
|
+
? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)
|
|
130
140
|
: (value || "");
|
|
131
141
|
};
|
|
132
142
|
/**
|
|
@@ -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.30.
|
|
5
|
+
* The version of the OpenAPI document: 1.30.4
|
|
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.30.
|
|
6
|
+
* The version of the OpenAPI document: 1.30.4
|
|
7
7
|
*
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/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.30.
|
|
5
|
+
* The version of the OpenAPI document: 1.30.4
|
|
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.30.
|
|
7
|
+
* The version of the OpenAPI document: 1.30.4
|
|
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.30.
|
|
5
|
+
* The version of the OpenAPI document: 1.30.4
|
|
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.30.
|
|
8
|
+
* The version of the OpenAPI document: 1.30.4
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/Fulfillment.md
CHANGED
|
@@ -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<string>** | 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. - `
|
|
19
|
+
**frozenReasons** | **Array<string>** | 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. | [optional] [readonly] [default to undefined]
|
|
20
20
|
|
|
21
21
|
## Example
|
|
22
22
|
|
package/docs/Order.md
CHANGED
|
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**contactInformation** | [**ContactInformation**](ContactInformation.md) | | [default to undefined]
|
|
13
13
|
**paymentMethod** | [**OrderPaymentMethod**](OrderPaymentMethod.md) | | [optional] [default to undefined]
|
|
14
14
|
**shippingAddress** | [**Address**](Address.md) | The address the order will be shipped to. | [default to undefined]
|
|
15
|
+
**vatNumber** | **string** | The customer\'s VAT registration number for B2B orders. | [optional] [default to undefined]
|
|
15
16
|
**customsInformation** | [**CustomsInformation1**](CustomsInformation1.md) | | [optional] [default to undefined]
|
|
16
17
|
**createdAt** | **string** | When the order was created. | [optional] [default to undefined]
|
|
17
18
|
**updatedAt** | **string** | When the order was last updated. | [optional] [default to undefined]
|
|
@@ -41,6 +42,7 @@ const instance: Order = {
|
|
|
41
42
|
contactInformation,
|
|
42
43
|
paymentMethod,
|
|
43
44
|
shippingAddress,
|
|
45
|
+
vatNumber,
|
|
44
46
|
customsInformation,
|
|
45
47
|
createdAt,
|
|
46
48
|
updatedAt,
|
package/docs/OrdersApi.md
CHANGED
|
@@ -285,7 +285,7 @@ const apiInstance = new OrdersApi(configuration);
|
|
|
285
285
|
let project: string; //The project identifier to scope the request to. (default to undefined)
|
|
286
286
|
let start: string; //Start of the date range to filter by when orders were placed. (default to undefined)
|
|
287
287
|
let end: string; //End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter. (optional) (default to undefined)
|
|
288
|
-
let search: string; //Search
|
|
288
|
+
let search: string; //Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com` (optional) (default to undefined)
|
|
289
289
|
let dateFilterType: 'createdAt' | 'updatedAt' | 'paidAt' | 'statusChangedAt' | 'completedAt' | 'refundedAt' | 'quoteAt'; //Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query. (optional) (default to 'createdAt')
|
|
290
290
|
|
|
291
291
|
const { status, data } = await apiInstance.exportOrders(
|
|
@@ -304,7 +304,7 @@ const { status, data } = await apiInstance.exportOrders(
|
|
|
304
304
|
| **project** | [**string**] | The project identifier to scope the request to. | defaults to undefined|
|
|
305
305
|
| **start** | [**string**] | Start of the date range to filter by when orders were placed. | defaults to undefined|
|
|
306
306
|
| **end** | [**string**] | End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter. | (optional) defaults to undefined|
|
|
307
|
-
| **search** | [**string**] | Search
|
|
307
|
+
| **search** | [**string**] | Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com` | (optional) defaults to undefined|
|
|
308
308
|
| **dateFilterType** | [**'createdAt' | 'updatedAt' | 'paidAt' | 'statusChangedAt' | 'completedAt' | 'refundedAt' | 'quoteAt'**]**Array<'createdAt' | 'updatedAt' | 'paidAt' | 'statusChangedAt' | 'completedAt' | 'refundedAt' | 'quoteAt'>** | Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query. | (optional) defaults to 'createdAt'|
|
|
309
309
|
|
|
310
310
|
|
|
@@ -476,7 +476,7 @@ let project: string; //The project identifier to scope the request to. (default
|
|
|
476
476
|
let fields: string; //Specifies which fields to return, separated by commas (optional) (default to undefined)
|
|
477
477
|
let pageToken: number; //Page reference token (optional) (default to 1)
|
|
478
478
|
let pageSize: number; //Max page size. This is the maximum page size that will be returned, but it might be smaller. (optional) (default to 100)
|
|
479
|
-
let search: string; //Search
|
|
479
|
+
let search: string; //Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com` (optional) (default to undefined)
|
|
480
480
|
let ids: Array<string>; //Filter to specific order IDs. Only orders matching these IDs will be returned. (optional) (default to undefined)
|
|
481
481
|
let statuses: Array<Status>; //Filter by order status. Only orders matching one of the given statuses will be returned. (optional) (default to undefined)
|
|
482
482
|
let start: string; //Start of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter. (optional) (default to undefined)
|
|
@@ -505,7 +505,7 @@ const { status, data } = await apiInstance.getOrders(
|
|
|
505
505
|
| **fields** | [**string**] | Specifies which fields to return, separated by commas | (optional) defaults to undefined|
|
|
506
506
|
| **pageToken** | [**number**] | Page reference token | (optional) defaults to 1|
|
|
507
507
|
| **pageSize** | [**number**] | Max page size. This is the maximum page size that will be returned, but it might be smaller. | (optional) defaults to 100|
|
|
508
|
-
| **search** | [**string**] | Search
|
|
508
|
+
| **search** | [**string**] | Search expression for listing orders. Supports free text and structured filter tags in the same string. **Free text** — words without a `key:value` shape match order reference, customer name, and email. **Filter tags** — use `key:value` tokens (space-separated). Available filters and allowed values are returned on each list response in `meta.filters`; only keys present there are valid for your project. * `status:<code>` — filter by order status (allowed values in `meta.filters.status`) * `vatRegistered:<yes|no>` — filter by whether a billing VAT number was provided; only `vatRegistered:yes` and `vatRegistered:no` are valid Combine both: `status:paid vatRegistered:yes smith@example.com` | (optional) defaults to undefined|
|
|
509
509
|
| **ids** | **Array<string>** | Filter to specific order IDs. Only orders matching these IDs will be returned. | (optional) defaults to undefined|
|
|
510
510
|
| **statuses** | **Array<Status>** | Filter by order status. Only orders matching one of the given statuses will be returned. | (optional) defaults to undefined|
|
|
511
511
|
| **start** | [**string**] | Start of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter. | (optional) defaults to undefined|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# OrdersListMetaFilters
|
|
2
|
+
|
|
3
|
+
Filters that may be applied via `key:value` tags in the `search` query parameter. Each property name is a filter key; its value lists the allowed options for that filter on this project. Keys omitted from this object are not available for the current project.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**status** | [**Array<Status>**](Status.md) | Project-specific subset of the `Status` enum. Use as `status:<code>` search tags; only values listed here are valid for the current project. | [optional] [default to undefined]
|
|
10
|
+
**vatRegistered** | [**Array<VatRegisteredFilterOption>**](VatRegisteredFilterOption.md) | When present, always lists `yes` and `no` — the only valid values for `vatRegistered:yes` and `vatRegistered:no` search tags. Omitted for projects where VAT registration filtering is not available. | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { OrdersListMetaFilters } from '@teemill/orders';
|
|
16
|
+
|
|
17
|
+
const instance: OrdersListMetaFilters = {
|
|
18
|
+
status,
|
|
19
|
+
vatRegistered,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/OrdersResponse.md
CHANGED
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**orders** | [**Array<Order>**](Order.md) | | [
|
|
9
|
-
**
|
|
8
|
+
**orders** | [**Array<Order>**](Order.md) | | [default to undefined]
|
|
9
|
+
**meta** | [**OrdersResponseMeta**](OrdersResponseMeta.md) | | [default to undefined]
|
|
10
|
+
**nextPageToken** | **number** | The token referencing the next page number | [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -15,6 +16,7 @@ import { OrdersResponse } from '@teemill/orders';
|
|
|
15
16
|
|
|
16
17
|
const instance: OrdersResponse = {
|
|
17
18
|
orders,
|
|
19
|
+
meta,
|
|
18
20
|
nextPageToken,
|
|
19
21
|
};
|
|
20
22
|
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# OrdersResponseMeta
|
|
2
|
+
|
|
3
|
+
Metadata about the orders list, including available filters.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**filters** | [**OrdersListMetaFilters**](OrdersListMetaFilters.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { OrdersResponseMeta } from '@teemill/orders';
|
|
15
|
+
|
|
16
|
+
const instance: OrdersResponseMeta = {
|
|
17
|
+
filters,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# VatRegisteredFilterOption
|
|
2
|
+
|
|
3
|
+
Whether a billing VAT number was provided.
|
|
4
|
+
|
|
5
|
+
## Enum
|
|
6
|
+
|
|
7
|
+
* `True` (value: `'true'`)
|
|
8
|
+
|
|
9
|
+
* `False` (value: `'false'`)
|
|
10
|
+
|
|
11
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
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.30.
|
|
7
|
+
* The version of the OpenAPI document: 1.30.4
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|