@teemill/orders 1.26.0 → 1.27.0
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/README.md +15 -3
- package/api.ts +476 -7
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +288 -6
- package/dist/api.js +287 -7
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +288 -6
- package/dist/esm/api.js +286 -6
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- 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/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 +190 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.27.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -354,7 +354,7 @@ export interface Image {
|
|
|
354
354
|
}
|
|
355
355
|
export interface ImportOrders202Response {
|
|
356
356
|
/**
|
|
357
|
-
*
|
|
357
|
+
* Unique object identifier
|
|
358
358
|
*/
|
|
359
359
|
'importId'?: string;
|
|
360
360
|
}
|
|
@@ -449,6 +449,129 @@ export interface Order {
|
|
|
449
449
|
*/
|
|
450
450
|
'paymentAttempts'?: Array<PaymentAttempt>;
|
|
451
451
|
}
|
|
452
|
+
export interface OrderImport {
|
|
453
|
+
/**
|
|
454
|
+
* Unique object identifier
|
|
455
|
+
*/
|
|
456
|
+
'importId': string;
|
|
457
|
+
'status': OrderImportStatus;
|
|
458
|
+
'counts': OrderImportCounts;
|
|
459
|
+
/**
|
|
460
|
+
* ISO 8601 Timestamp
|
|
461
|
+
*/
|
|
462
|
+
'createdAt': string;
|
|
463
|
+
'cancelledAt'?: string | null;
|
|
464
|
+
'startedAt'?: string | null;
|
|
465
|
+
'finishedAt'?: string | null;
|
|
466
|
+
}
|
|
467
|
+
export interface OrderImportCounts {
|
|
468
|
+
'total': number;
|
|
469
|
+
'pending': number;
|
|
470
|
+
'processing': number;
|
|
471
|
+
'success': number;
|
|
472
|
+
'failed': number;
|
|
473
|
+
'cancelled': number;
|
|
474
|
+
'completed': number;
|
|
475
|
+
}
|
|
476
|
+
export interface OrderImportError {
|
|
477
|
+
'code': OrderImportErrorCode;
|
|
478
|
+
/**
|
|
479
|
+
* A human-readable description of the error.
|
|
480
|
+
*/
|
|
481
|
+
'message': string;
|
|
482
|
+
/**
|
|
483
|
+
* Dot-notation path to the field that caused the error (e.g. `items.sku`).
|
|
484
|
+
*/
|
|
485
|
+
'fieldPath'?: string | null;
|
|
486
|
+
/**
|
|
487
|
+
* The SKU that triggered the error, if applicable.
|
|
488
|
+
*/
|
|
489
|
+
'sku'?: string | null;
|
|
490
|
+
/**
|
|
491
|
+
* A human-readable suggestion for how to resolve the error.
|
|
492
|
+
*/
|
|
493
|
+
'suggestedFix'?: string | null;
|
|
494
|
+
/**
|
|
495
|
+
* A unique reference code for this error occurrence, useful for support enquiries.
|
|
496
|
+
*/
|
|
497
|
+
'referenceCode'?: string | null;
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* 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
|
|
501
|
+
*/
|
|
502
|
+
export declare const OrderImportErrorCode: {
|
|
503
|
+
readonly VariantNotFound: "VARIANT_NOT_FOUND";
|
|
504
|
+
readonly MissingSku: "MISSING_SKU";
|
|
505
|
+
readonly ShippingMethodUnavailable: "SHIPPING_METHOD_UNAVAILABLE";
|
|
506
|
+
readonly TransientSystemError: "TRANSIENT_SYSTEM_ERROR";
|
|
507
|
+
readonly ImportFailed: "IMPORT_FAILED";
|
|
508
|
+
};
|
|
509
|
+
export type OrderImportErrorCode = typeof OrderImportErrorCode[keyof typeof OrderImportErrorCode];
|
|
510
|
+
export interface OrderImportGroup {
|
|
511
|
+
/**
|
|
512
|
+
* Unique object identifier
|
|
513
|
+
*/
|
|
514
|
+
'id': string;
|
|
515
|
+
'status': OrderImportGroupStatus;
|
|
516
|
+
/**
|
|
517
|
+
* The merchant reference from the CSV rows belonging to this group.
|
|
518
|
+
*/
|
|
519
|
+
'merchantReference'?: string | null;
|
|
520
|
+
/**
|
|
521
|
+
* A URI reference to the order created by this group. Only present when the group status is `success`.
|
|
522
|
+
*/
|
|
523
|
+
'resultReference'?: string | null;
|
|
524
|
+
/**
|
|
525
|
+
* A human-readable message describing the outcome of this group.
|
|
526
|
+
*/
|
|
527
|
+
'message'?: string | null;
|
|
528
|
+
/**
|
|
529
|
+
* The number of CSV rows that belong to this group.
|
|
530
|
+
*/
|
|
531
|
+
'rowsCount': number;
|
|
532
|
+
/**
|
|
533
|
+
* The distinct SKUs referenced by rows in this group.
|
|
534
|
+
*/
|
|
535
|
+
'skus': Array<string>;
|
|
536
|
+
/**
|
|
537
|
+
* Errors encountered while processing this group. Empty when the group succeeded.
|
|
538
|
+
*/
|
|
539
|
+
'errors': Array<OrderImportError>;
|
|
540
|
+
'createdAt'?: string | null;
|
|
541
|
+
'startedAt'?: string | null;
|
|
542
|
+
'finishedAt'?: string | null;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* 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)
|
|
546
|
+
*/
|
|
547
|
+
export declare const OrderImportGroupStatus: {
|
|
548
|
+
readonly Pending: "pending";
|
|
549
|
+
readonly Processing: "processing";
|
|
550
|
+
readonly Success: "success";
|
|
551
|
+
readonly Failed: "failed";
|
|
552
|
+
readonly Cancelled: "cancelled";
|
|
553
|
+
};
|
|
554
|
+
export type OrderImportGroupStatus = typeof OrderImportGroupStatus[keyof typeof OrderImportGroupStatus];
|
|
555
|
+
export interface OrderImportGroupsResponse {
|
|
556
|
+
'groups'?: Array<OrderImportGroup>;
|
|
557
|
+
'nextPageToken'?: number | null;
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* 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
|
|
561
|
+
*/
|
|
562
|
+
export declare const OrderImportStatus: {
|
|
563
|
+
readonly Queued: "queued";
|
|
564
|
+
readonly Processing: "processing";
|
|
565
|
+
readonly CompletedSuccess: "completedSuccess";
|
|
566
|
+
readonly CompletedPartial: "completedPartial";
|
|
567
|
+
readonly CompletedFailed: "completedFailed";
|
|
568
|
+
readonly Cancelled: "cancelled";
|
|
569
|
+
};
|
|
570
|
+
export type OrderImportStatus = typeof OrderImportStatus[keyof typeof OrderImportStatus];
|
|
571
|
+
export interface OrderImportsResponse {
|
|
572
|
+
'imports'?: Array<OrderImport>;
|
|
573
|
+
'nextPageToken'?: number | null;
|
|
574
|
+
}
|
|
452
575
|
/**
|
|
453
576
|
* A line item in an order, representing a specific product variant and quantity.
|
|
454
577
|
*/
|
|
@@ -821,6 +944,15 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
821
944
|
* @throws {RequiredError}
|
|
822
945
|
*/
|
|
823
946
|
getOrder: (project: string, orderId: string, fields?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
947
|
+
/**
|
|
948
|
+
* Gets the latest status and summary for an order import.
|
|
949
|
+
* @summary Get order import
|
|
950
|
+
* @param {string} project The project identifier to scope the request to.
|
|
951
|
+
* @param {string} importId Unique identifier of an order import
|
|
952
|
+
* @param {*} [options] Override http request option.
|
|
953
|
+
* @throws {RequiredError}
|
|
954
|
+
*/
|
|
955
|
+
getOrderImport: (project: string, importId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
824
956
|
/**
|
|
825
957
|
* Lists all orders placed on this project, paginated into configurable chunks.
|
|
826
958
|
* @summary List orders
|
|
@@ -839,7 +971,7 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
839
971
|
*/
|
|
840
972
|
getOrders: (project: string, fields?: string, pageToken?: number, pageSize?: number, search?: string, ids?: Array<string>, statuses?: Array<Status>, start?: string, end?: string, dateFilterType?: GetOrdersDateFilterTypeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
841
973
|
/**
|
|
842
|
-
* Initiates an order import from a CSV file. The import is processed asynchronously.
|
|
974
|
+
* Initiates an order import from a CSV file. The import is processed asynchronously. Use the returned `importId` with the GET endpoints to track progress.
|
|
843
975
|
* @summary Import orders
|
|
844
976
|
* @param {string} project The project identifier to scope the request to.
|
|
845
977
|
* @param {File} file CSV file containing order data
|
|
@@ -847,6 +979,27 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
847
979
|
* @throws {RequiredError}
|
|
848
980
|
*/
|
|
849
981
|
importOrders: (project: string, file: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
982
|
+
/**
|
|
983
|
+
* Lists group-level outcomes for a specific order import. Each group represents one order from the CSV (grouped by merchant reference).
|
|
984
|
+
* @summary List order import groups
|
|
985
|
+
* @param {string} project The project identifier to scope the request to.
|
|
986
|
+
* @param {string} importId Unique identifier of an order import
|
|
987
|
+
* @param {number} [pageToken] Page reference token
|
|
988
|
+
* @param {number} [pageSize] Max page size for import endpoints. This is the maximum that will be returned, but it might be smaller.
|
|
989
|
+
* @param {*} [options] Override http request option.
|
|
990
|
+
* @throws {RequiredError}
|
|
991
|
+
*/
|
|
992
|
+
listOrderImportGroups: (project: string, importId: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
993
|
+
/**
|
|
994
|
+
* Lists recent order imports for this project, ordered by most recent first.
|
|
995
|
+
* @summary List order imports
|
|
996
|
+
* @param {string} project The project identifier to scope the request to.
|
|
997
|
+
* @param {number} [pageToken] Page reference token
|
|
998
|
+
* @param {number} [pageSize] Max page size for import endpoints. This is the maximum that will be returned, but it might be smaller.
|
|
999
|
+
* @param {*} [options] Override http request option.
|
|
1000
|
+
* @throws {RequiredError}
|
|
1001
|
+
*/
|
|
1002
|
+
listOrderImports: (project: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
850
1003
|
/**
|
|
851
1004
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
852
1005
|
* @summary Retry
|
|
@@ -923,6 +1076,15 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
923
1076
|
* @throws {RequiredError}
|
|
924
1077
|
*/
|
|
925
1078
|
getOrder(project: string, orderId: string, fields?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
|
1079
|
+
/**
|
|
1080
|
+
* Gets the latest status and summary for an order import.
|
|
1081
|
+
* @summary Get order import
|
|
1082
|
+
* @param {string} project The project identifier to scope the request to.
|
|
1083
|
+
* @param {string} importId Unique identifier of an order import
|
|
1084
|
+
* @param {*} [options] Override http request option.
|
|
1085
|
+
* @throws {RequiredError}
|
|
1086
|
+
*/
|
|
1087
|
+
getOrderImport(project: string, importId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderImport>>;
|
|
926
1088
|
/**
|
|
927
1089
|
* Lists all orders placed on this project, paginated into configurable chunks.
|
|
928
1090
|
* @summary List orders
|
|
@@ -941,7 +1103,7 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
941
1103
|
*/
|
|
942
1104
|
getOrders(project: string, fields?: string, pageToken?: number, pageSize?: number, search?: string, ids?: Array<string>, statuses?: Array<Status>, start?: string, end?: string, dateFilterType?: GetOrdersDateFilterTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrdersResponse>>;
|
|
943
1105
|
/**
|
|
944
|
-
* Initiates an order import from a CSV file. The import is processed asynchronously.
|
|
1106
|
+
* Initiates an order import from a CSV file. The import is processed asynchronously. Use the returned `importId` with the GET endpoints to track progress.
|
|
945
1107
|
* @summary Import orders
|
|
946
1108
|
* @param {string} project The project identifier to scope the request to.
|
|
947
1109
|
* @param {File} file CSV file containing order data
|
|
@@ -949,6 +1111,27 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
949
1111
|
* @throws {RequiredError}
|
|
950
1112
|
*/
|
|
951
1113
|
importOrders(project: string, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImportOrders202Response>>;
|
|
1114
|
+
/**
|
|
1115
|
+
* Lists group-level outcomes for a specific order import. Each group represents one order from the CSV (grouped by merchant reference).
|
|
1116
|
+
* @summary List order import groups
|
|
1117
|
+
* @param {string} project The project identifier to scope the request to.
|
|
1118
|
+
* @param {string} importId Unique identifier of an order import
|
|
1119
|
+
* @param {number} [pageToken] Page reference token
|
|
1120
|
+
* @param {number} [pageSize] Max page size for import endpoints. This is the maximum that will be returned, but it might be smaller.
|
|
1121
|
+
* @param {*} [options] Override http request option.
|
|
1122
|
+
* @throws {RequiredError}
|
|
1123
|
+
*/
|
|
1124
|
+
listOrderImportGroups(project: string, importId: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderImportGroupsResponse>>;
|
|
1125
|
+
/**
|
|
1126
|
+
* Lists recent order imports for this project, ordered by most recent first.
|
|
1127
|
+
* @summary List order imports
|
|
1128
|
+
* @param {string} project The project identifier to scope the request to.
|
|
1129
|
+
* @param {number} [pageToken] Page reference token
|
|
1130
|
+
* @param {number} [pageSize] Max page size for import endpoints. This is the maximum that will be returned, but it might be smaller.
|
|
1131
|
+
* @param {*} [options] Override http request option.
|
|
1132
|
+
* @throws {RequiredError}
|
|
1133
|
+
*/
|
|
1134
|
+
listOrderImports(project: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderImportsResponse>>;
|
|
952
1135
|
/**
|
|
953
1136
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
954
1137
|
* @summary Retry
|
|
@@ -1012,6 +1195,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
1012
1195
|
* @throws {RequiredError}
|
|
1013
1196
|
*/
|
|
1014
1197
|
getOrder(requestParameters: OrdersApiGetOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<Order>;
|
|
1198
|
+
/**
|
|
1199
|
+
* Gets the latest status and summary for an order import.
|
|
1200
|
+
* @summary Get order import
|
|
1201
|
+
* @param {OrdersApiGetOrderImportRequest} requestParameters Request parameters.
|
|
1202
|
+
* @param {*} [options] Override http request option.
|
|
1203
|
+
* @throws {RequiredError}
|
|
1204
|
+
*/
|
|
1205
|
+
getOrderImport(requestParameters: OrdersApiGetOrderImportRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrderImport>;
|
|
1015
1206
|
/**
|
|
1016
1207
|
* Lists all orders placed on this project, paginated into configurable chunks.
|
|
1017
1208
|
* @summary List orders
|
|
@@ -1021,13 +1212,29 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
1021
1212
|
*/
|
|
1022
1213
|
getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse>;
|
|
1023
1214
|
/**
|
|
1024
|
-
* Initiates an order import from a CSV file. The import is processed asynchronously.
|
|
1215
|
+
* Initiates an order import from a CSV file. The import is processed asynchronously. Use the returned `importId` with the GET endpoints to track progress.
|
|
1025
1216
|
* @summary Import orders
|
|
1026
1217
|
* @param {OrdersApiImportOrdersRequest} requestParameters Request parameters.
|
|
1027
1218
|
* @param {*} [options] Override http request option.
|
|
1028
1219
|
* @throws {RequiredError}
|
|
1029
1220
|
*/
|
|
1030
1221
|
importOrders(requestParameters: OrdersApiImportOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<ImportOrders202Response>;
|
|
1222
|
+
/**
|
|
1223
|
+
* Lists group-level outcomes for a specific order import. Each group represents one order from the CSV (grouped by merchant reference).
|
|
1224
|
+
* @summary List order import groups
|
|
1225
|
+
* @param {OrdersApiListOrderImportGroupsRequest} requestParameters Request parameters.
|
|
1226
|
+
* @param {*} [options] Override http request option.
|
|
1227
|
+
* @throws {RequiredError}
|
|
1228
|
+
*/
|
|
1229
|
+
listOrderImportGroups(requestParameters: OrdersApiListOrderImportGroupsRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrderImportGroupsResponse>;
|
|
1230
|
+
/**
|
|
1231
|
+
* Lists recent order imports for this project, ordered by most recent first.
|
|
1232
|
+
* @summary List order imports
|
|
1233
|
+
* @param {OrdersApiListOrderImportsRequest} requestParameters Request parameters.
|
|
1234
|
+
* @param {*} [options] Override http request option.
|
|
1235
|
+
* @throws {RequiredError}
|
|
1236
|
+
*/
|
|
1237
|
+
listOrderImports(requestParameters: OrdersApiListOrderImportsRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrderImportsResponse>;
|
|
1031
1238
|
/**
|
|
1032
1239
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
1033
1240
|
* @summary Retry
|
|
@@ -1143,6 +1350,19 @@ export interface OrdersApiGetOrderRequest {
|
|
|
1143
1350
|
*/
|
|
1144
1351
|
readonly fields?: string;
|
|
1145
1352
|
}
|
|
1353
|
+
/**
|
|
1354
|
+
* Request parameters for getOrderImport operation in OrdersApi.
|
|
1355
|
+
*/
|
|
1356
|
+
export interface OrdersApiGetOrderImportRequest {
|
|
1357
|
+
/**
|
|
1358
|
+
* The project identifier to scope the request to.
|
|
1359
|
+
*/
|
|
1360
|
+
readonly project: string;
|
|
1361
|
+
/**
|
|
1362
|
+
* Unique identifier of an order import
|
|
1363
|
+
*/
|
|
1364
|
+
readonly importId: string;
|
|
1365
|
+
}
|
|
1146
1366
|
/**
|
|
1147
1367
|
* Request parameters for getOrders operation in OrdersApi.
|
|
1148
1368
|
*/
|
|
@@ -1201,6 +1421,44 @@ export interface OrdersApiImportOrdersRequest {
|
|
|
1201
1421
|
*/
|
|
1202
1422
|
readonly file: File;
|
|
1203
1423
|
}
|
|
1424
|
+
/**
|
|
1425
|
+
* Request parameters for listOrderImportGroups operation in OrdersApi.
|
|
1426
|
+
*/
|
|
1427
|
+
export interface OrdersApiListOrderImportGroupsRequest {
|
|
1428
|
+
/**
|
|
1429
|
+
* The project identifier to scope the request to.
|
|
1430
|
+
*/
|
|
1431
|
+
readonly project: string;
|
|
1432
|
+
/**
|
|
1433
|
+
* Unique identifier of an order import
|
|
1434
|
+
*/
|
|
1435
|
+
readonly importId: string;
|
|
1436
|
+
/**
|
|
1437
|
+
* Page reference token
|
|
1438
|
+
*/
|
|
1439
|
+
readonly pageToken?: number;
|
|
1440
|
+
/**
|
|
1441
|
+
* Max page size for import endpoints. This is the maximum that will be returned, but it might be smaller.
|
|
1442
|
+
*/
|
|
1443
|
+
readonly pageSize?: number;
|
|
1444
|
+
}
|
|
1445
|
+
/**
|
|
1446
|
+
* Request parameters for listOrderImports operation in OrdersApi.
|
|
1447
|
+
*/
|
|
1448
|
+
export interface OrdersApiListOrderImportsRequest {
|
|
1449
|
+
/**
|
|
1450
|
+
* The project identifier to scope the request to.
|
|
1451
|
+
*/
|
|
1452
|
+
readonly project: string;
|
|
1453
|
+
/**
|
|
1454
|
+
* Page reference token
|
|
1455
|
+
*/
|
|
1456
|
+
readonly pageToken?: number;
|
|
1457
|
+
/**
|
|
1458
|
+
* Max page size for import endpoints. This is the maximum that will be returned, but it might be smaller.
|
|
1459
|
+
*/
|
|
1460
|
+
readonly pageSize?: number;
|
|
1461
|
+
}
|
|
1204
1462
|
/**
|
|
1205
1463
|
* Request parameters for retryPlatformPayment operation in OrdersApi.
|
|
1206
1464
|
*/
|
|
@@ -1270,6 +1528,14 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
1270
1528
|
* @throws {RequiredError}
|
|
1271
1529
|
*/
|
|
1272
1530
|
getOrder(requestParameters: OrdersApiGetOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any, {}>>;
|
|
1531
|
+
/**
|
|
1532
|
+
* Gets the latest status and summary for an order import.
|
|
1533
|
+
* @summary Get order import
|
|
1534
|
+
* @param {OrdersApiGetOrderImportRequest} requestParameters Request parameters.
|
|
1535
|
+
* @param {*} [options] Override http request option.
|
|
1536
|
+
* @throws {RequiredError}
|
|
1537
|
+
*/
|
|
1538
|
+
getOrderImport(requestParameters: OrdersApiGetOrderImportRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderImport, any, {}>>;
|
|
1273
1539
|
/**
|
|
1274
1540
|
* Lists all orders placed on this project, paginated into configurable chunks.
|
|
1275
1541
|
* @summary List orders
|
|
@@ -1279,13 +1545,29 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
1279
1545
|
*/
|
|
1280
1546
|
getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersResponse, any, {}>>;
|
|
1281
1547
|
/**
|
|
1282
|
-
* Initiates an order import from a CSV file. The import is processed asynchronously.
|
|
1548
|
+
* Initiates an order import from a CSV file. The import is processed asynchronously. Use the returned `importId` with the GET endpoints to track progress.
|
|
1283
1549
|
* @summary Import orders
|
|
1284
1550
|
* @param {OrdersApiImportOrdersRequest} requestParameters Request parameters.
|
|
1285
1551
|
* @param {*} [options] Override http request option.
|
|
1286
1552
|
* @throws {RequiredError}
|
|
1287
1553
|
*/
|
|
1288
1554
|
importOrders(requestParameters: OrdersApiImportOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ImportOrders202Response, any, {}>>;
|
|
1555
|
+
/**
|
|
1556
|
+
* Lists group-level outcomes for a specific order import. Each group represents one order from the CSV (grouped by merchant reference).
|
|
1557
|
+
* @summary List order import groups
|
|
1558
|
+
* @param {OrdersApiListOrderImportGroupsRequest} requestParameters Request parameters.
|
|
1559
|
+
* @param {*} [options] Override http request option.
|
|
1560
|
+
* @throws {RequiredError}
|
|
1561
|
+
*/
|
|
1562
|
+
listOrderImportGroups(requestParameters: OrdersApiListOrderImportGroupsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderImportGroupsResponse, any, {}>>;
|
|
1563
|
+
/**
|
|
1564
|
+
* Lists recent order imports for this project, ordered by most recent first.
|
|
1565
|
+
* @summary List order imports
|
|
1566
|
+
* @param {OrdersApiListOrderImportsRequest} requestParameters Request parameters.
|
|
1567
|
+
* @param {*} [options] Override http request option.
|
|
1568
|
+
* @throws {RequiredError}
|
|
1569
|
+
*/
|
|
1570
|
+
listOrderImports(requestParameters: OrdersApiListOrderImportsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderImportsResponse, any, {}>>;
|
|
1289
1571
|
/**
|
|
1290
1572
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
1291
1573
|
* @summary Retry
|