@teemill/orders 1.26.0 → 1.28.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +49 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +15 -3
- package/api.ts +508 -14
- package/base.ts +2 -2
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +311 -9
- package/dist/api.js +312 -14
- package/dist/base.d.ts +2 -2
- package/dist/base.js +2 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +311 -9
- package/dist/esm/api.js +311 -13
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +2 -2
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +2 -2
- package/dist/esm/configuration.d.ts +2 -2
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/docs/ImportOrders202Response.md +1 -1
- package/docs/OrderImport.md +32 -0
- package/docs/OrderImportCounts.md +32 -0
- package/docs/OrderImportError.md +30 -0
- package/docs/OrderImportErrorCode.md +17 -0
- package/docs/OrderImportGroup.md +40 -0
- package/docs/OrderImportGroupStatus.md +17 -0
- package/docs/OrderImportGroupsResponse.md +22 -0
- package/docs/OrderImportStatus.md +19 -0
- package/docs/OrderImportsResponse.md +22 -0
- package/docs/OrdersApi.md +196 -5
- package/index.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# OrderImportCounts
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**total** | **number** | | [default to undefined]
|
|
9
|
+
**pending** | **number** | | [default to undefined]
|
|
10
|
+
**processing** | **number** | | [default to undefined]
|
|
11
|
+
**success** | **number** | | [default to undefined]
|
|
12
|
+
**failed** | **number** | | [default to undefined]
|
|
13
|
+
**cancelled** | **number** | | [default to undefined]
|
|
14
|
+
**completed** | **number** | | [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { OrderImportCounts } from '@teemill/orders';
|
|
20
|
+
|
|
21
|
+
const instance: OrderImportCounts = {
|
|
22
|
+
total,
|
|
23
|
+
pending,
|
|
24
|
+
processing,
|
|
25
|
+
success,
|
|
26
|
+
failed,
|
|
27
|
+
cancelled,
|
|
28
|
+
completed,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[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,30 @@
|
|
|
1
|
+
# OrderImportError
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**code** | [**OrderImportErrorCode**](OrderImportErrorCode.md) | | [default to undefined]
|
|
9
|
+
**message** | **string** | A human-readable description of the error. | [default to undefined]
|
|
10
|
+
**fieldPath** | **string** | Dot-notation path to the field that caused the error (e.g. `items.sku`). | [optional] [default to undefined]
|
|
11
|
+
**sku** | **string** | The SKU that triggered the error, if applicable. | [optional] [default to undefined]
|
|
12
|
+
**suggestedFix** | **string** | A human-readable suggestion for how to resolve the error. | [optional] [default to undefined]
|
|
13
|
+
**referenceCode** | **string** | A unique reference code for this error occurrence, useful for support enquiries. | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { OrderImportError } from '@teemill/orders';
|
|
19
|
+
|
|
20
|
+
const instance: OrderImportError = {
|
|
21
|
+
code,
|
|
22
|
+
message,
|
|
23
|
+
fieldPath,
|
|
24
|
+
sku,
|
|
25
|
+
suggestedFix,
|
|
26
|
+
referenceCode,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[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,17 @@
|
|
|
1
|
+
# OrderImportErrorCode
|
|
2
|
+
|
|
3
|
+
Machine-readable error code identifying the type of import failure: - `VARIANT_NOT_FOUND` — The SKU does not match any variant in the project\'s catalog - `MISSING_SKU` — A required SKU field was empty or missing - `SHIPPING_METHOD_UNAVAILABLE` — No shipping methods are available for the fulfillment - `TRANSIENT_SYSTEM_ERROR` — A temporary system issue occurred; the import may succeed on retry - `IMPORT_FAILED` — A general import failure that does not match a more specific code
|
|
4
|
+
|
|
5
|
+
## Enum
|
|
6
|
+
|
|
7
|
+
* `VariantNotFound` (value: `'VARIANT_NOT_FOUND'`)
|
|
8
|
+
|
|
9
|
+
* `MissingSku` (value: `'MISSING_SKU'`)
|
|
10
|
+
|
|
11
|
+
* `ShippingMethodUnavailable` (value: `'SHIPPING_METHOD_UNAVAILABLE'`)
|
|
12
|
+
|
|
13
|
+
* `TransientSystemError` (value: `'TRANSIENT_SYSTEM_ERROR'`)
|
|
14
|
+
|
|
15
|
+
* `ImportFailed` (value: `'IMPORT_FAILED'`)
|
|
16
|
+
|
|
17
|
+
[[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,40 @@
|
|
|
1
|
+
# OrderImportGroup
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | Unique object identifier | [default to undefined]
|
|
9
|
+
**status** | [**OrderImportGroupStatus**](OrderImportGroupStatus.md) | | [default to undefined]
|
|
10
|
+
**merchantReference** | **string** | The merchant reference from the CSV rows belonging to this group. | [optional] [default to undefined]
|
|
11
|
+
**resultReference** | **string** | A URI reference to the order created by this group. Only present when the group status is `success`. | [optional] [default to undefined]
|
|
12
|
+
**message** | **string** | A human-readable message describing the outcome of this group. | [optional] [default to undefined]
|
|
13
|
+
**rowsCount** | **number** | The number of CSV rows that belong to this group. | [default to undefined]
|
|
14
|
+
**skus** | **Array<string>** | The distinct SKUs referenced by rows in this group. | [default to undefined]
|
|
15
|
+
**errors** | [**Array<OrderImportError>**](OrderImportError.md) | Errors encountered while processing this group. Empty when the group succeeded. | [default to undefined]
|
|
16
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**startedAt** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**finishedAt** | **string** | | [optional] [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { OrderImportGroup } from '@teemill/orders';
|
|
24
|
+
|
|
25
|
+
const instance: OrderImportGroup = {
|
|
26
|
+
id,
|
|
27
|
+
status,
|
|
28
|
+
merchantReference,
|
|
29
|
+
resultReference,
|
|
30
|
+
message,
|
|
31
|
+
rowsCount,
|
|
32
|
+
skus,
|
|
33
|
+
errors,
|
|
34
|
+
createdAt,
|
|
35
|
+
startedAt,
|
|
36
|
+
finishedAt,
|
|
37
|
+
};
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[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,17 @@
|
|
|
1
|
+
# OrderImportGroupStatus
|
|
2
|
+
|
|
3
|
+
The lifecycle status of a single group (order) within an import: - `pending` — Group is queued and has not started processing - `processing` — Group is currently being processed - `success` — Order was created and confirmed successfully - `failed` — Order creation or confirmation failed - `cancelled` — Group was cancelled (e.g. parent import was cancelled)
|
|
4
|
+
|
|
5
|
+
## Enum
|
|
6
|
+
|
|
7
|
+
* `Pending` (value: `'pending'`)
|
|
8
|
+
|
|
9
|
+
* `Processing` (value: `'processing'`)
|
|
10
|
+
|
|
11
|
+
* `Success` (value: `'success'`)
|
|
12
|
+
|
|
13
|
+
* `Failed` (value: `'failed'`)
|
|
14
|
+
|
|
15
|
+
* `Cancelled` (value: `'cancelled'`)
|
|
16
|
+
|
|
17
|
+
[[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,22 @@
|
|
|
1
|
+
# OrderImportGroupsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**groups** | [**Array<OrderImportGroup>**](OrderImportGroup.md) | | [optional] [default to undefined]
|
|
9
|
+
**nextPageToken** | **number** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { OrderImportGroupsResponse } from '@teemill/orders';
|
|
15
|
+
|
|
16
|
+
const instance: OrderImportGroupsResponse = {
|
|
17
|
+
groups,
|
|
18
|
+
nextPageToken,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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,19 @@
|
|
|
1
|
+
# OrderImportStatus
|
|
2
|
+
|
|
3
|
+
The lifecycle status of an order import: - `queued` — Import has been accepted but no groups have started processing yet - `processing` — One or more groups are currently being processed - `completedSuccess` — All groups were imported successfully - `completedPartial` — Some groups succeeded but others failed or were cancelled - `completedFailed` — All groups failed or were cancelled, with none succeeding - `cancelled` — The entire import was cancelled before completion
|
|
4
|
+
|
|
5
|
+
## Enum
|
|
6
|
+
|
|
7
|
+
* `Queued` (value: `'queued'`)
|
|
8
|
+
|
|
9
|
+
* `Processing` (value: `'processing'`)
|
|
10
|
+
|
|
11
|
+
* `CompletedSuccess` (value: `'completedSuccess'`)
|
|
12
|
+
|
|
13
|
+
* `CompletedPartial` (value: `'completedPartial'`)
|
|
14
|
+
|
|
15
|
+
* `CompletedFailed` (value: `'completedFailed'`)
|
|
16
|
+
|
|
17
|
+
* `Cancelled` (value: `'cancelled'`)
|
|
18
|
+
|
|
19
|
+
[[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,22 @@
|
|
|
1
|
+
# OrderImportsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**imports** | [**Array<OrderImport>**](OrderImport.md) | | [optional] [default to undefined]
|
|
9
|
+
**nextPageToken** | **number** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { OrderImportsResponse } from '@teemill/orders';
|
|
15
|
+
|
|
16
|
+
const instance: OrderImportsResponse = {
|
|
17
|
+
imports,
|
|
18
|
+
nextPageToken,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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/OrdersApi.md
CHANGED
|
@@ -10,8 +10,11 @@ All URIs are relative to *https://api.localhost:8080*
|
|
|
10
10
|
|[**downloadInvoice**](#downloadinvoice) | **GET** /v1/orders/{orderId}/invoice | Download order invoice|
|
|
11
11
|
|[**exportOrders**](#exportorders) | **GET** /v1/orders/export | Export orders|
|
|
12
12
|
|[**getOrder**](#getorder) | **GET** /v1/orders/{orderId} | Get order|
|
|
13
|
+
|[**getOrderImport**](#getorderimport) | **GET** /v1/orders/imports/{importId} | Get order import|
|
|
13
14
|
|[**getOrders**](#getorders) | **GET** /v1/orders | List orders|
|
|
14
|
-
|[**importOrders**](#importorders) | **POST** /v1/orders/
|
|
15
|
+
|[**importOrders**](#importorders) | **POST** /v1/orders/imports | Import orders|
|
|
16
|
+
|[**listOrderImportGroups**](#listorderimportgroups) | **GET** /v1/orders/imports/{importId}/groups | List order import groups|
|
|
17
|
+
|[**listOrderImports**](#listorderimports) | **GET** /v1/orders/imports | List order imports|
|
|
15
18
|
|[**retryPlatformPayment**](#retryplatformpayment) | **POST** /v1/orders/{orderId}/retryPlatformPayment | Retry|
|
|
16
19
|
|
|
17
20
|
# **cancelOrder**
|
|
@@ -283,12 +286,14 @@ let project: string; //The project identifier to scope the request to. (default
|
|
|
283
286
|
let start: string; //Start of the date range to filter by when orders were placed. (default to undefined)
|
|
284
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)
|
|
285
288
|
let search: string; //Search term to filter based on order reference, customer name and email (optional) (default to undefined)
|
|
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')
|
|
286
290
|
|
|
287
291
|
const { status, data } = await apiInstance.exportOrders(
|
|
288
292
|
project,
|
|
289
293
|
start,
|
|
290
294
|
end,
|
|
291
|
-
search
|
|
295
|
+
search,
|
|
296
|
+
dateFilterType
|
|
292
297
|
);
|
|
293
298
|
```
|
|
294
299
|
|
|
@@ -300,6 +305,7 @@ const { status, data } = await apiInstance.exportOrders(
|
|
|
300
305
|
| **start** | [**string**] | Start of the date range to filter by when orders were placed. | defaults to undefined|
|
|
301
306
|
| **end** | [**string**] | End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter. | (optional) defaults to undefined|
|
|
302
307
|
| **search** | [**string**] | Search term to filter based on order reference, customer name and email | (optional) defaults to undefined|
|
|
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'|
|
|
303
309
|
|
|
304
310
|
|
|
305
311
|
### Return type
|
|
@@ -391,6 +397,65 @@ const { status, data } = await apiInstance.getOrder(
|
|
|
391
397
|
|
|
392
398
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
393
399
|
|
|
400
|
+
# **getOrderImport**
|
|
401
|
+
> OrderImport getOrderImport()
|
|
402
|
+
|
|
403
|
+
Gets the latest status and summary for an order import.
|
|
404
|
+
|
|
405
|
+
### Example
|
|
406
|
+
|
|
407
|
+
```typescript
|
|
408
|
+
import {
|
|
409
|
+
OrdersApi,
|
|
410
|
+
Configuration
|
|
411
|
+
} from '@teemill/orders';
|
|
412
|
+
|
|
413
|
+
const configuration = new Configuration();
|
|
414
|
+
const apiInstance = new OrdersApi(configuration);
|
|
415
|
+
|
|
416
|
+
let project: string; //The project identifier to scope the request to. (default to undefined)
|
|
417
|
+
let importId: string; //Unique identifier of an order import (default to undefined)
|
|
418
|
+
|
|
419
|
+
const { status, data } = await apiInstance.getOrderImport(
|
|
420
|
+
project,
|
|
421
|
+
importId
|
|
422
|
+
);
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
### Parameters
|
|
426
|
+
|
|
427
|
+
|Name | Type | Description | Notes|
|
|
428
|
+
|------------- | ------------- | ------------- | -------------|
|
|
429
|
+
| **project** | [**string**] | The project identifier to scope the request to. | defaults to undefined|
|
|
430
|
+
| **importId** | [**string**] | Unique identifier of an order import | defaults to undefined|
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
### Return type
|
|
434
|
+
|
|
435
|
+
**OrderImport**
|
|
436
|
+
|
|
437
|
+
### Authorization
|
|
438
|
+
|
|
439
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
440
|
+
|
|
441
|
+
### HTTP request headers
|
|
442
|
+
|
|
443
|
+
- **Content-Type**: Not defined
|
|
444
|
+
- **Accept**: application/json
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
### HTTP response details
|
|
448
|
+
| Status code | Description | Response headers |
|
|
449
|
+
|-------------|-------------|------------------|
|
|
450
|
+
|**200** | Summary status for a single order import. | - |
|
|
451
|
+
|**400** | Failed validation | - |
|
|
452
|
+
|**401** | Not authorised to access this resource | - |
|
|
453
|
+
|**403** | Refuse to authorize | - |
|
|
454
|
+
|**404** | Resource not found | - |
|
|
455
|
+
|**500** | Unknown server error | - |
|
|
456
|
+
|
|
457
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
458
|
+
|
|
394
459
|
# **getOrders**
|
|
395
460
|
> OrdersResponse getOrders()
|
|
396
461
|
|
|
@@ -416,7 +481,7 @@ let ids: Array<string>; //Filter to specific order IDs. Only orders matching the
|
|
|
416
481
|
let statuses: Array<Status>; //Filter by order status. Only orders matching one of the given statuses will be returned. (optional) (default to undefined)
|
|
417
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)
|
|
418
483
|
let end: string; //End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter. (optional) (default to undefined)
|
|
419
|
-
let dateFilterType: 'createdAt' | 'updatedAt' | 'statusChangedAt'; //Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query. (optional) (default to 'createdAt')
|
|
484
|
+
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')
|
|
420
485
|
|
|
421
486
|
const { status, data } = await apiInstance.getOrders(
|
|
422
487
|
project,
|
|
@@ -445,7 +510,7 @@ const { status, data } = await apiInstance.getOrders(
|
|
|
445
510
|
| **statuses** | **Array<Status>** | Filter by order status. Only orders matching one of the given statuses will be returned. | (optional) defaults to undefined|
|
|
446
511
|
| **start** | [**string**] | Start of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter. | (optional) defaults to undefined|
|
|
447
512
|
| **end** | [**string**] | End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter. | (optional) defaults to undefined|
|
|
448
|
-
| **dateFilterType** | [**'createdAt' | 'updatedAt' | 'statusChangedAt'**]**Array<'createdAt' | 'updatedAt' | 'statusChangedAt'>** | Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query. | (optional) defaults to 'createdAt'|
|
|
513
|
+
| **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'|
|
|
449
514
|
|
|
450
515
|
|
|
451
516
|
### Return type
|
|
@@ -476,7 +541,7 @@ const { status, data } = await apiInstance.getOrders(
|
|
|
476
541
|
# **importOrders**
|
|
477
542
|
> ImportOrders202Response importOrders()
|
|
478
543
|
|
|
479
|
-
Initiates an order import from a CSV file. The import is processed asynchronously.
|
|
544
|
+
Initiates an order import from a CSV file. The import is processed asynchronously. Use the returned `importId` with the GET endpoints to track progress.
|
|
480
545
|
|
|
481
546
|
### Example
|
|
482
547
|
|
|
@@ -532,6 +597,132 @@ const { status, data } = await apiInstance.importOrders(
|
|
|
532
597
|
|
|
533
598
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
534
599
|
|
|
600
|
+
# **listOrderImportGroups**
|
|
601
|
+
> OrderImportGroupsResponse listOrderImportGroups()
|
|
602
|
+
|
|
603
|
+
Lists group-level outcomes for a specific order import. Each group represents one order from the CSV (grouped by merchant reference).
|
|
604
|
+
|
|
605
|
+
### Example
|
|
606
|
+
|
|
607
|
+
```typescript
|
|
608
|
+
import {
|
|
609
|
+
OrdersApi,
|
|
610
|
+
Configuration
|
|
611
|
+
} from '@teemill/orders';
|
|
612
|
+
|
|
613
|
+
const configuration = new Configuration();
|
|
614
|
+
const apiInstance = new OrdersApi(configuration);
|
|
615
|
+
|
|
616
|
+
let project: string; //The project identifier to scope the request to. (default to undefined)
|
|
617
|
+
let importId: string; //Unique identifier of an order import (default to undefined)
|
|
618
|
+
let pageToken: number; //Page reference token (optional) (default to 1)
|
|
619
|
+
let pageSize: number; //Max page size for import endpoints. This is the maximum that will be returned, but it might be smaller. (optional) (default to 25)
|
|
620
|
+
|
|
621
|
+
const { status, data } = await apiInstance.listOrderImportGroups(
|
|
622
|
+
project,
|
|
623
|
+
importId,
|
|
624
|
+
pageToken,
|
|
625
|
+
pageSize
|
|
626
|
+
);
|
|
627
|
+
```
|
|
628
|
+
|
|
629
|
+
### Parameters
|
|
630
|
+
|
|
631
|
+
|Name | Type | Description | Notes|
|
|
632
|
+
|------------- | ------------- | ------------- | -------------|
|
|
633
|
+
| **project** | [**string**] | The project identifier to scope the request to. | defaults to undefined|
|
|
634
|
+
| **importId** | [**string**] | Unique identifier of an order import | defaults to undefined|
|
|
635
|
+
| **pageToken** | [**number**] | Page reference token | (optional) defaults to 1|
|
|
636
|
+
| **pageSize** | [**number**] | Max page size for import endpoints. This is the maximum that will be returned, but it might be smaller. | (optional) defaults to 25|
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
### Return type
|
|
640
|
+
|
|
641
|
+
**OrderImportGroupsResponse**
|
|
642
|
+
|
|
643
|
+
### Authorization
|
|
644
|
+
|
|
645
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
646
|
+
|
|
647
|
+
### HTTP request headers
|
|
648
|
+
|
|
649
|
+
- **Content-Type**: Not defined
|
|
650
|
+
- **Accept**: application/json
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
### HTTP response details
|
|
654
|
+
| Status code | Description | Response headers |
|
|
655
|
+
|-------------|-------------|------------------|
|
|
656
|
+
|**200** | Paginated group-level outcomes for an order import. | - |
|
|
657
|
+
|**400** | Failed validation | - |
|
|
658
|
+
|**401** | Not authorised to access this resource | - |
|
|
659
|
+
|**403** | Refuse to authorize | - |
|
|
660
|
+
|**404** | Resource not found | - |
|
|
661
|
+
|**500** | Unknown server error | - |
|
|
662
|
+
|
|
663
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
664
|
+
|
|
665
|
+
# **listOrderImports**
|
|
666
|
+
> OrderImportsResponse listOrderImports()
|
|
667
|
+
|
|
668
|
+
Lists recent order imports for this project, ordered by most recent first.
|
|
669
|
+
|
|
670
|
+
### Example
|
|
671
|
+
|
|
672
|
+
```typescript
|
|
673
|
+
import {
|
|
674
|
+
OrdersApi,
|
|
675
|
+
Configuration
|
|
676
|
+
} from '@teemill/orders';
|
|
677
|
+
|
|
678
|
+
const configuration = new Configuration();
|
|
679
|
+
const apiInstance = new OrdersApi(configuration);
|
|
680
|
+
|
|
681
|
+
let project: string; //The project identifier to scope the request to. (default to undefined)
|
|
682
|
+
let pageToken: number; //Page reference token (optional) (default to 1)
|
|
683
|
+
let pageSize: number; //Max page size for import endpoints. This is the maximum that will be returned, but it might be smaller. (optional) (default to 25)
|
|
684
|
+
|
|
685
|
+
const { status, data } = await apiInstance.listOrderImports(
|
|
686
|
+
project,
|
|
687
|
+
pageToken,
|
|
688
|
+
pageSize
|
|
689
|
+
);
|
|
690
|
+
```
|
|
691
|
+
|
|
692
|
+
### Parameters
|
|
693
|
+
|
|
694
|
+
|Name | Type | Description | Notes|
|
|
695
|
+
|------------- | ------------- | ------------- | -------------|
|
|
696
|
+
| **project** | [**string**] | The project identifier to scope the request to. | defaults to undefined|
|
|
697
|
+
| **pageToken** | [**number**] | Page reference token | (optional) defaults to 1|
|
|
698
|
+
| **pageSize** | [**number**] | Max page size for import endpoints. This is the maximum that will be returned, but it might be smaller. | (optional) defaults to 25|
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
### Return type
|
|
702
|
+
|
|
703
|
+
**OrderImportsResponse**
|
|
704
|
+
|
|
705
|
+
### Authorization
|
|
706
|
+
|
|
707
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
708
|
+
|
|
709
|
+
### HTTP request headers
|
|
710
|
+
|
|
711
|
+
- **Content-Type**: Not defined
|
|
712
|
+
- **Accept**: application/json
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
### HTTP response details
|
|
716
|
+
| Status code | Description | Response headers |
|
|
717
|
+
|-------------|-------------|------------------|
|
|
718
|
+
|**200** | Paginated list of order imports and their status summaries. | - |
|
|
719
|
+
|**400** | Failed validation | - |
|
|
720
|
+
|**401** | Not authorised to access this resource | - |
|
|
721
|
+
|**403** | Refuse to authorize | - |
|
|
722
|
+
|**500** | Unknown server error | - |
|
|
723
|
+
|
|
724
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
725
|
+
|
|
535
726
|
# **retryPlatformPayment**
|
|
536
727
|
> Order retryPlatformPayment()
|
|
537
728
|
|
package/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Orders
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.28.2
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|