@teemill/orders 1.25.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 +17 -3
- package/api.ts +590 -11
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +346 -11
- package/dist/api.js +365 -2
- 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 +346 -11
- package/dist/esm/api.js +364 -1
- 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 +20 -0
- package/docs/Order.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/OrderPaymentMethod.md +21 -0
- package/docs/OrdersApi.md +248 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/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).
|
|
@@ -352,6 +352,12 @@ export interface Image {
|
|
|
352
352
|
*/
|
|
353
353
|
'sortOrder'?: number;
|
|
354
354
|
}
|
|
355
|
+
export interface ImportOrders202Response {
|
|
356
|
+
/**
|
|
357
|
+
* Unique object identifier
|
|
358
|
+
*/
|
|
359
|
+
'importId'?: string;
|
|
360
|
+
}
|
|
355
361
|
export interface Option {
|
|
356
362
|
/**
|
|
357
363
|
* Option name
|
|
@@ -379,7 +385,7 @@ export interface Order {
|
|
|
379
385
|
*/
|
|
380
386
|
'status'?: Status;
|
|
381
387
|
'contactInformation': ContactInformation;
|
|
382
|
-
'paymentMethod'?:
|
|
388
|
+
'paymentMethod'?: OrderPaymentMethod;
|
|
383
389
|
/**
|
|
384
390
|
* The address the order will be shipped to.
|
|
385
391
|
*/
|
|
@@ -443,6 +449,129 @@ export interface Order {
|
|
|
443
449
|
*/
|
|
444
450
|
'paymentAttempts'?: Array<PaymentAttempt>;
|
|
445
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
|
+
}
|
|
446
575
|
/**
|
|
447
576
|
* A line item in an order, representing a specific product variant and quantity.
|
|
448
577
|
*/
|
|
@@ -492,6 +621,15 @@ export interface OrderItem {
|
|
|
492
621
|
*/
|
|
493
622
|
'recipientCost'?: Price;
|
|
494
623
|
}
|
|
624
|
+
/**
|
|
625
|
+
* The payment method used for this order.
|
|
626
|
+
*/
|
|
627
|
+
export interface OrderPaymentMethod {
|
|
628
|
+
/**
|
|
629
|
+
* The type of payment method used.
|
|
630
|
+
*/
|
|
631
|
+
'type'?: string | null;
|
|
632
|
+
}
|
|
495
633
|
/**
|
|
496
634
|
* Shipment tracking information. Available once the fulfillment has been dispatched.
|
|
497
635
|
*/
|
|
@@ -564,15 +702,6 @@ export declare const PaymentAttemptStatusEnum: {
|
|
|
564
702
|
readonly Cancelled: "cancelled";
|
|
565
703
|
};
|
|
566
704
|
export type PaymentAttemptStatusEnum = typeof PaymentAttemptStatusEnum[keyof typeof PaymentAttemptStatusEnum];
|
|
567
|
-
/**
|
|
568
|
-
* The payment method used for this order.
|
|
569
|
-
*/
|
|
570
|
-
export interface PaymentMethod {
|
|
571
|
-
/**
|
|
572
|
-
* The type of payment method used.
|
|
573
|
-
*/
|
|
574
|
-
'type'?: string | null;
|
|
575
|
-
}
|
|
576
705
|
/**
|
|
577
706
|
* A monetary value with its currency.
|
|
578
707
|
*/
|
|
@@ -815,6 +944,15 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
815
944
|
* @throws {RequiredError}
|
|
816
945
|
*/
|
|
817
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>;
|
|
818
956
|
/**
|
|
819
957
|
* Lists all orders placed on this project, paginated into configurable chunks.
|
|
820
958
|
* @summary List orders
|
|
@@ -832,6 +970,36 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
832
970
|
* @throws {RequiredError}
|
|
833
971
|
*/
|
|
834
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>;
|
|
973
|
+
/**
|
|
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.
|
|
975
|
+
* @summary Import orders
|
|
976
|
+
* @param {string} project The project identifier to scope the request to.
|
|
977
|
+
* @param {File} file CSV file containing order data
|
|
978
|
+
* @param {*} [options] Override http request option.
|
|
979
|
+
* @throws {RequiredError}
|
|
980
|
+
*/
|
|
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>;
|
|
835
1003
|
/**
|
|
836
1004
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
837
1005
|
* @summary Retry
|
|
@@ -908,6 +1076,15 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
908
1076
|
* @throws {RequiredError}
|
|
909
1077
|
*/
|
|
910
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>>;
|
|
911
1088
|
/**
|
|
912
1089
|
* Lists all orders placed on this project, paginated into configurable chunks.
|
|
913
1090
|
* @summary List orders
|
|
@@ -925,6 +1102,36 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
925
1102
|
* @throws {RequiredError}
|
|
926
1103
|
*/
|
|
927
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>>;
|
|
1105
|
+
/**
|
|
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.
|
|
1107
|
+
* @summary Import orders
|
|
1108
|
+
* @param {string} project The project identifier to scope the request to.
|
|
1109
|
+
* @param {File} file CSV file containing order data
|
|
1110
|
+
* @param {*} [options] Override http request option.
|
|
1111
|
+
* @throws {RequiredError}
|
|
1112
|
+
*/
|
|
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>>;
|
|
928
1135
|
/**
|
|
929
1136
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
930
1137
|
* @summary Retry
|
|
@@ -988,6 +1195,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
988
1195
|
* @throws {RequiredError}
|
|
989
1196
|
*/
|
|
990
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>;
|
|
991
1206
|
/**
|
|
992
1207
|
* Lists all orders placed on this project, paginated into configurable chunks.
|
|
993
1208
|
* @summary List orders
|
|
@@ -996,6 +1211,30 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
996
1211
|
* @throws {RequiredError}
|
|
997
1212
|
*/
|
|
998
1213
|
getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse>;
|
|
1214
|
+
/**
|
|
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.
|
|
1216
|
+
* @summary Import orders
|
|
1217
|
+
* @param {OrdersApiImportOrdersRequest} requestParameters Request parameters.
|
|
1218
|
+
* @param {*} [options] Override http request option.
|
|
1219
|
+
* @throws {RequiredError}
|
|
1220
|
+
*/
|
|
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>;
|
|
999
1238
|
/**
|
|
1000
1239
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
1001
1240
|
* @summary Retry
|
|
@@ -1111,6 +1350,19 @@ export interface OrdersApiGetOrderRequest {
|
|
|
1111
1350
|
*/
|
|
1112
1351
|
readonly fields?: string;
|
|
1113
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
|
+
}
|
|
1114
1366
|
/**
|
|
1115
1367
|
* Request parameters for getOrders operation in OrdersApi.
|
|
1116
1368
|
*/
|
|
@@ -1156,6 +1408,57 @@ export interface OrdersApiGetOrdersRequest {
|
|
|
1156
1408
|
*/
|
|
1157
1409
|
readonly dateFilterType?: GetOrdersDateFilterTypeEnum;
|
|
1158
1410
|
}
|
|
1411
|
+
/**
|
|
1412
|
+
* Request parameters for importOrders operation in OrdersApi.
|
|
1413
|
+
*/
|
|
1414
|
+
export interface OrdersApiImportOrdersRequest {
|
|
1415
|
+
/**
|
|
1416
|
+
* The project identifier to scope the request to.
|
|
1417
|
+
*/
|
|
1418
|
+
readonly project: string;
|
|
1419
|
+
/**
|
|
1420
|
+
* CSV file containing order data
|
|
1421
|
+
*/
|
|
1422
|
+
readonly file: File;
|
|
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
|
+
}
|
|
1159
1462
|
/**
|
|
1160
1463
|
* Request parameters for retryPlatformPayment operation in OrdersApi.
|
|
1161
1464
|
*/
|
|
@@ -1225,6 +1528,14 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
1225
1528
|
* @throws {RequiredError}
|
|
1226
1529
|
*/
|
|
1227
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, {}>>;
|
|
1228
1539
|
/**
|
|
1229
1540
|
* Lists all orders placed on this project, paginated into configurable chunks.
|
|
1230
1541
|
* @summary List orders
|
|
@@ -1233,6 +1544,30 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
1233
1544
|
* @throws {RequiredError}
|
|
1234
1545
|
*/
|
|
1235
1546
|
getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersResponse, any, {}>>;
|
|
1547
|
+
/**
|
|
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.
|
|
1549
|
+
* @summary Import orders
|
|
1550
|
+
* @param {OrdersApiImportOrdersRequest} requestParameters Request parameters.
|
|
1551
|
+
* @param {*} [options] Override http request option.
|
|
1552
|
+
* @throws {RequiredError}
|
|
1553
|
+
*/
|
|
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, {}>>;
|
|
1236
1571
|
/**
|
|
1237
1572
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
1238
1573
|
* @summary Retry
|