@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
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Orders
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.28.2
|
|
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
|
*/
|
|
@@ -807,10 +930,11 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
807
930
|
* @param {string} start Start of the date range to filter by when orders were placed.
|
|
808
931
|
* @param {string} [end] End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
809
932
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
933
|
+
* @param {ExportOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
810
934
|
* @param {*} [options] Override http request option.
|
|
811
935
|
* @throws {RequiredError}
|
|
812
936
|
*/
|
|
813
|
-
exportOrders: (project: string, start: string, end?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
937
|
+
exportOrders: (project: string, start: string, end?: string, search?: string, dateFilterType?: ExportOrdersDateFilterTypeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
814
938
|
/**
|
|
815
939
|
* Get an order by a given ID.
|
|
816
940
|
* @summary Get order
|
|
@@ -821,6 +945,15 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
821
945
|
* @throws {RequiredError}
|
|
822
946
|
*/
|
|
823
947
|
getOrder: (project: string, orderId: string, fields?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
948
|
+
/**
|
|
949
|
+
* Gets the latest status and summary for an order import.
|
|
950
|
+
* @summary Get order import
|
|
951
|
+
* @param {string} project The project identifier to scope the request to.
|
|
952
|
+
* @param {string} importId Unique identifier of an order import
|
|
953
|
+
* @param {*} [options] Override http request option.
|
|
954
|
+
* @throws {RequiredError}
|
|
955
|
+
*/
|
|
956
|
+
getOrderImport: (project: string, importId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
824
957
|
/**
|
|
825
958
|
* Lists all orders placed on this project, paginated into configurable chunks.
|
|
826
959
|
* @summary List orders
|
|
@@ -839,7 +972,7 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
839
972
|
*/
|
|
840
973
|
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
974
|
/**
|
|
842
|
-
* Initiates an order import from a CSV file. The import is processed asynchronously.
|
|
975
|
+
* 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
976
|
* @summary Import orders
|
|
844
977
|
* @param {string} project The project identifier to scope the request to.
|
|
845
978
|
* @param {File} file CSV file containing order data
|
|
@@ -847,6 +980,27 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
847
980
|
* @throws {RequiredError}
|
|
848
981
|
*/
|
|
849
982
|
importOrders: (project: string, file: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
983
|
+
/**
|
|
984
|
+
* Lists group-level outcomes for a specific order import. Each group represents one order from the CSV (grouped by merchant reference).
|
|
985
|
+
* @summary List order import groups
|
|
986
|
+
* @param {string} project The project identifier to scope the request to.
|
|
987
|
+
* @param {string} importId Unique identifier of an order import
|
|
988
|
+
* @param {number} [pageToken] Page reference token
|
|
989
|
+
* @param {number} [pageSize] Max page size for import endpoints. This is the maximum that will be returned, but it might be smaller.
|
|
990
|
+
* @param {*} [options] Override http request option.
|
|
991
|
+
* @throws {RequiredError}
|
|
992
|
+
*/
|
|
993
|
+
listOrderImportGroups: (project: string, importId: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
994
|
+
/**
|
|
995
|
+
* Lists recent order imports for this project, ordered by most recent first.
|
|
996
|
+
* @summary List order imports
|
|
997
|
+
* @param {string} project The project identifier to scope the request to.
|
|
998
|
+
* @param {number} [pageToken] Page reference token
|
|
999
|
+
* @param {number} [pageSize] Max page size for import endpoints. This is the maximum that will be returned, but it might be smaller.
|
|
1000
|
+
* @param {*} [options] Override http request option.
|
|
1001
|
+
* @throws {RequiredError}
|
|
1002
|
+
*/
|
|
1003
|
+
listOrderImports: (project: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
850
1004
|
/**
|
|
851
1005
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
852
1006
|
* @summary Retry
|
|
@@ -909,10 +1063,11 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
909
1063
|
* @param {string} start Start of the date range to filter by when orders were placed.
|
|
910
1064
|
* @param {string} [end] End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
911
1065
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
1066
|
+
* @param {ExportOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
912
1067
|
* @param {*} [options] Override http request option.
|
|
913
1068
|
* @throws {RequiredError}
|
|
914
1069
|
*/
|
|
915
|
-
exportOrders(project: string, start: string, end?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
1070
|
+
exportOrders(project: string, start: string, end?: string, search?: string, dateFilterType?: ExportOrdersDateFilterTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
916
1071
|
/**
|
|
917
1072
|
* Get an order by a given ID.
|
|
918
1073
|
* @summary Get order
|
|
@@ -923,6 +1078,15 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
923
1078
|
* @throws {RequiredError}
|
|
924
1079
|
*/
|
|
925
1080
|
getOrder(project: string, orderId: string, fields?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
|
1081
|
+
/**
|
|
1082
|
+
* Gets the latest status and summary for an order import.
|
|
1083
|
+
* @summary Get order import
|
|
1084
|
+
* @param {string} project The project identifier to scope the request to.
|
|
1085
|
+
* @param {string} importId Unique identifier of an order import
|
|
1086
|
+
* @param {*} [options] Override http request option.
|
|
1087
|
+
* @throws {RequiredError}
|
|
1088
|
+
*/
|
|
1089
|
+
getOrderImport(project: string, importId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderImport>>;
|
|
926
1090
|
/**
|
|
927
1091
|
* Lists all orders placed on this project, paginated into configurable chunks.
|
|
928
1092
|
* @summary List orders
|
|
@@ -941,7 +1105,7 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
941
1105
|
*/
|
|
942
1106
|
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
1107
|
/**
|
|
944
|
-
* Initiates an order import from a CSV file. The import is processed asynchronously.
|
|
1108
|
+
* 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
1109
|
* @summary Import orders
|
|
946
1110
|
* @param {string} project The project identifier to scope the request to.
|
|
947
1111
|
* @param {File} file CSV file containing order data
|
|
@@ -949,6 +1113,27 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
949
1113
|
* @throws {RequiredError}
|
|
950
1114
|
*/
|
|
951
1115
|
importOrders(project: string, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImportOrders202Response>>;
|
|
1116
|
+
/**
|
|
1117
|
+
* Lists group-level outcomes for a specific order import. Each group represents one order from the CSV (grouped by merchant reference).
|
|
1118
|
+
* @summary List order import groups
|
|
1119
|
+
* @param {string} project The project identifier to scope the request to.
|
|
1120
|
+
* @param {string} importId Unique identifier of an order import
|
|
1121
|
+
* @param {number} [pageToken] Page reference token
|
|
1122
|
+
* @param {number} [pageSize] Max page size for import endpoints. This is the maximum that will be returned, but it might be smaller.
|
|
1123
|
+
* @param {*} [options] Override http request option.
|
|
1124
|
+
* @throws {RequiredError}
|
|
1125
|
+
*/
|
|
1126
|
+
listOrderImportGroups(project: string, importId: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderImportGroupsResponse>>;
|
|
1127
|
+
/**
|
|
1128
|
+
* Lists recent order imports for this project, ordered by most recent first.
|
|
1129
|
+
* @summary List order imports
|
|
1130
|
+
* @param {string} project The project identifier to scope the request to.
|
|
1131
|
+
* @param {number} [pageToken] Page reference token
|
|
1132
|
+
* @param {number} [pageSize] Max page size for import endpoints. This is the maximum that will be returned, but it might be smaller.
|
|
1133
|
+
* @param {*} [options] Override http request option.
|
|
1134
|
+
* @throws {RequiredError}
|
|
1135
|
+
*/
|
|
1136
|
+
listOrderImports(project: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderImportsResponse>>;
|
|
952
1137
|
/**
|
|
953
1138
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
954
1139
|
* @summary Retry
|
|
@@ -1012,6 +1197,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
1012
1197
|
* @throws {RequiredError}
|
|
1013
1198
|
*/
|
|
1014
1199
|
getOrder(requestParameters: OrdersApiGetOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<Order>;
|
|
1200
|
+
/**
|
|
1201
|
+
* Gets the latest status and summary for an order import.
|
|
1202
|
+
* @summary Get order import
|
|
1203
|
+
* @param {OrdersApiGetOrderImportRequest} requestParameters Request parameters.
|
|
1204
|
+
* @param {*} [options] Override http request option.
|
|
1205
|
+
* @throws {RequiredError}
|
|
1206
|
+
*/
|
|
1207
|
+
getOrderImport(requestParameters: OrdersApiGetOrderImportRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrderImport>;
|
|
1015
1208
|
/**
|
|
1016
1209
|
* Lists all orders placed on this project, paginated into configurable chunks.
|
|
1017
1210
|
* @summary List orders
|
|
@@ -1021,13 +1214,29 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
1021
1214
|
*/
|
|
1022
1215
|
getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse>;
|
|
1023
1216
|
/**
|
|
1024
|
-
* Initiates an order import from a CSV file. The import is processed asynchronously.
|
|
1217
|
+
* 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
1218
|
* @summary Import orders
|
|
1026
1219
|
* @param {OrdersApiImportOrdersRequest} requestParameters Request parameters.
|
|
1027
1220
|
* @param {*} [options] Override http request option.
|
|
1028
1221
|
* @throws {RequiredError}
|
|
1029
1222
|
*/
|
|
1030
1223
|
importOrders(requestParameters: OrdersApiImportOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<ImportOrders202Response>;
|
|
1224
|
+
/**
|
|
1225
|
+
* Lists group-level outcomes for a specific order import. Each group represents one order from the CSV (grouped by merchant reference).
|
|
1226
|
+
* @summary List order import groups
|
|
1227
|
+
* @param {OrdersApiListOrderImportGroupsRequest} requestParameters Request parameters.
|
|
1228
|
+
* @param {*} [options] Override http request option.
|
|
1229
|
+
* @throws {RequiredError}
|
|
1230
|
+
*/
|
|
1231
|
+
listOrderImportGroups(requestParameters: OrdersApiListOrderImportGroupsRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrderImportGroupsResponse>;
|
|
1232
|
+
/**
|
|
1233
|
+
* Lists recent order imports for this project, ordered by most recent first.
|
|
1234
|
+
* @summary List order imports
|
|
1235
|
+
* @param {OrdersApiListOrderImportsRequest} requestParameters Request parameters.
|
|
1236
|
+
* @param {*} [options] Override http request option.
|
|
1237
|
+
* @throws {RequiredError}
|
|
1238
|
+
*/
|
|
1239
|
+
listOrderImports(requestParameters: OrdersApiListOrderImportsRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrderImportsResponse>;
|
|
1031
1240
|
/**
|
|
1032
1241
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
1033
1242
|
* @summary Retry
|
|
@@ -1125,6 +1334,10 @@ export interface OrdersApiExportOrdersRequest {
|
|
|
1125
1334
|
* Search term to filter based on order reference, customer name and email
|
|
1126
1335
|
*/
|
|
1127
1336
|
readonly search?: string;
|
|
1337
|
+
/**
|
|
1338
|
+
* Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
1339
|
+
*/
|
|
1340
|
+
readonly dateFilterType?: ExportOrdersDateFilterTypeEnum;
|
|
1128
1341
|
}
|
|
1129
1342
|
/**
|
|
1130
1343
|
* Request parameters for getOrder operation in OrdersApi.
|
|
@@ -1143,6 +1356,19 @@ export interface OrdersApiGetOrderRequest {
|
|
|
1143
1356
|
*/
|
|
1144
1357
|
readonly fields?: string;
|
|
1145
1358
|
}
|
|
1359
|
+
/**
|
|
1360
|
+
* Request parameters for getOrderImport operation in OrdersApi.
|
|
1361
|
+
*/
|
|
1362
|
+
export interface OrdersApiGetOrderImportRequest {
|
|
1363
|
+
/**
|
|
1364
|
+
* The project identifier to scope the request to.
|
|
1365
|
+
*/
|
|
1366
|
+
readonly project: string;
|
|
1367
|
+
/**
|
|
1368
|
+
* Unique identifier of an order import
|
|
1369
|
+
*/
|
|
1370
|
+
readonly importId: string;
|
|
1371
|
+
}
|
|
1146
1372
|
/**
|
|
1147
1373
|
* Request parameters for getOrders operation in OrdersApi.
|
|
1148
1374
|
*/
|
|
@@ -1201,6 +1427,44 @@ export interface OrdersApiImportOrdersRequest {
|
|
|
1201
1427
|
*/
|
|
1202
1428
|
readonly file: File;
|
|
1203
1429
|
}
|
|
1430
|
+
/**
|
|
1431
|
+
* Request parameters for listOrderImportGroups operation in OrdersApi.
|
|
1432
|
+
*/
|
|
1433
|
+
export interface OrdersApiListOrderImportGroupsRequest {
|
|
1434
|
+
/**
|
|
1435
|
+
* The project identifier to scope the request to.
|
|
1436
|
+
*/
|
|
1437
|
+
readonly project: string;
|
|
1438
|
+
/**
|
|
1439
|
+
* Unique identifier of an order import
|
|
1440
|
+
*/
|
|
1441
|
+
readonly importId: string;
|
|
1442
|
+
/**
|
|
1443
|
+
* Page reference token
|
|
1444
|
+
*/
|
|
1445
|
+
readonly pageToken?: number;
|
|
1446
|
+
/**
|
|
1447
|
+
* Max page size for import endpoints. This is the maximum that will be returned, but it might be smaller.
|
|
1448
|
+
*/
|
|
1449
|
+
readonly pageSize?: number;
|
|
1450
|
+
}
|
|
1451
|
+
/**
|
|
1452
|
+
* Request parameters for listOrderImports operation in OrdersApi.
|
|
1453
|
+
*/
|
|
1454
|
+
export interface OrdersApiListOrderImportsRequest {
|
|
1455
|
+
/**
|
|
1456
|
+
* The project identifier to scope the request to.
|
|
1457
|
+
*/
|
|
1458
|
+
readonly project: string;
|
|
1459
|
+
/**
|
|
1460
|
+
* Page reference token
|
|
1461
|
+
*/
|
|
1462
|
+
readonly pageToken?: number;
|
|
1463
|
+
/**
|
|
1464
|
+
* Max page size for import endpoints. This is the maximum that will be returned, but it might be smaller.
|
|
1465
|
+
*/
|
|
1466
|
+
readonly pageSize?: number;
|
|
1467
|
+
}
|
|
1204
1468
|
/**
|
|
1205
1469
|
* Request parameters for retryPlatformPayment operation in OrdersApi.
|
|
1206
1470
|
*/
|
|
@@ -1270,6 +1534,14 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
1270
1534
|
* @throws {RequiredError}
|
|
1271
1535
|
*/
|
|
1272
1536
|
getOrder(requestParameters: OrdersApiGetOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any, {}>>;
|
|
1537
|
+
/**
|
|
1538
|
+
* Gets the latest status and summary for an order import.
|
|
1539
|
+
* @summary Get order import
|
|
1540
|
+
* @param {OrdersApiGetOrderImportRequest} requestParameters Request parameters.
|
|
1541
|
+
* @param {*} [options] Override http request option.
|
|
1542
|
+
* @throws {RequiredError}
|
|
1543
|
+
*/
|
|
1544
|
+
getOrderImport(requestParameters: OrdersApiGetOrderImportRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderImport, any, {}>>;
|
|
1273
1545
|
/**
|
|
1274
1546
|
* Lists all orders placed on this project, paginated into configurable chunks.
|
|
1275
1547
|
* @summary List orders
|
|
@@ -1279,13 +1551,29 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
1279
1551
|
*/
|
|
1280
1552
|
getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersResponse, any, {}>>;
|
|
1281
1553
|
/**
|
|
1282
|
-
* Initiates an order import from a CSV file. The import is processed asynchronously.
|
|
1554
|
+
* 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
1555
|
* @summary Import orders
|
|
1284
1556
|
* @param {OrdersApiImportOrdersRequest} requestParameters Request parameters.
|
|
1285
1557
|
* @param {*} [options] Override http request option.
|
|
1286
1558
|
* @throws {RequiredError}
|
|
1287
1559
|
*/
|
|
1288
1560
|
importOrders(requestParameters: OrdersApiImportOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ImportOrders202Response, any, {}>>;
|
|
1561
|
+
/**
|
|
1562
|
+
* Lists group-level outcomes for a specific order import. Each group represents one order from the CSV (grouped by merchant reference).
|
|
1563
|
+
* @summary List order import groups
|
|
1564
|
+
* @param {OrdersApiListOrderImportGroupsRequest} requestParameters Request parameters.
|
|
1565
|
+
* @param {*} [options] Override http request option.
|
|
1566
|
+
* @throws {RequiredError}
|
|
1567
|
+
*/
|
|
1568
|
+
listOrderImportGroups(requestParameters: OrdersApiListOrderImportGroupsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderImportGroupsResponse, any, {}>>;
|
|
1569
|
+
/**
|
|
1570
|
+
* Lists recent order imports for this project, ordered by most recent first.
|
|
1571
|
+
* @summary List order imports
|
|
1572
|
+
* @param {OrdersApiListOrderImportsRequest} requestParameters Request parameters.
|
|
1573
|
+
* @param {*} [options] Override http request option.
|
|
1574
|
+
* @throws {RequiredError}
|
|
1575
|
+
*/
|
|
1576
|
+
listOrderImports(requestParameters: OrdersApiListOrderImportsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderImportsResponse, any, {}>>;
|
|
1289
1577
|
/**
|
|
1290
1578
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
1291
1579
|
* @summary Retry
|
|
@@ -1295,9 +1583,23 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
1295
1583
|
*/
|
|
1296
1584
|
retryPlatformPayment(requestParameters: OrdersApiRetryPlatformPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any, {}>>;
|
|
1297
1585
|
}
|
|
1586
|
+
export declare const ExportOrdersDateFilterTypeEnum: {
|
|
1587
|
+
readonly CreatedAt: "createdAt";
|
|
1588
|
+
readonly UpdatedAt: "updatedAt";
|
|
1589
|
+
readonly PaidAt: "paidAt";
|
|
1590
|
+
readonly StatusChangedAt: "statusChangedAt";
|
|
1591
|
+
readonly CompletedAt: "completedAt";
|
|
1592
|
+
readonly RefundedAt: "refundedAt";
|
|
1593
|
+
readonly QuoteAt: "quoteAt";
|
|
1594
|
+
};
|
|
1595
|
+
export type ExportOrdersDateFilterTypeEnum = typeof ExportOrdersDateFilterTypeEnum[keyof typeof ExportOrdersDateFilterTypeEnum];
|
|
1298
1596
|
export declare const GetOrdersDateFilterTypeEnum: {
|
|
1299
1597
|
readonly CreatedAt: "createdAt";
|
|
1300
1598
|
readonly UpdatedAt: "updatedAt";
|
|
1599
|
+
readonly PaidAt: "paidAt";
|
|
1301
1600
|
readonly StatusChangedAt: "statusChangedAt";
|
|
1601
|
+
readonly CompletedAt: "completedAt";
|
|
1602
|
+
readonly RefundedAt: "refundedAt";
|
|
1603
|
+
readonly QuoteAt: "quoteAt";
|
|
1302
1604
|
};
|
|
1303
1605
|
export type GetOrdersDateFilterTypeEnum = typeof GetOrdersDateFilterTypeEnum[keyof typeof GetOrdersDateFilterTypeEnum];
|