@teemill/orders 1.11.0 → 1.13.1
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 +2 -2
- package/api.ts +231 -134
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +217 -81
- package/dist/api.js +38 -95
- 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 +217 -81
- package/dist/esm/api.js +37 -94
- 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/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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.13.1
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -24,7 +24,7 @@ export interface Address {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof Address
|
|
26
26
|
*/
|
|
27
|
-
'contactName'
|
|
27
|
+
'contactName'?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -36,7 +36,7 @@ export interface Address {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof Address
|
|
38
38
|
*/
|
|
39
|
-
'line1'
|
|
39
|
+
'line1'?: string;
|
|
40
40
|
/**
|
|
41
41
|
* Second line of the address.
|
|
42
42
|
* @type {string}
|
|
@@ -48,7 +48,7 @@ export interface Address {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof Address
|
|
50
50
|
*/
|
|
51
|
-
'city'
|
|
51
|
+
'city'?: string;
|
|
52
52
|
/**
|
|
53
53
|
* Postal code of the address.
|
|
54
54
|
* @type {string}
|
|
@@ -62,7 +62,7 @@ export interface Address {
|
|
|
62
62
|
*/
|
|
63
63
|
'country': string;
|
|
64
64
|
/**
|
|
65
|
-
* State of the address.
|
|
65
|
+
* State of the address. If the country is Canada, Australia, or the United States, this field is required.
|
|
66
66
|
* @type {string}
|
|
67
67
|
* @memberof Address
|
|
68
68
|
*/
|
|
@@ -164,6 +164,128 @@ export interface ContactInformation {
|
|
|
164
164
|
*/
|
|
165
165
|
'phone'?: string | null;
|
|
166
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Create an order
|
|
169
|
+
* @export
|
|
170
|
+
* @interface CreateOrder
|
|
171
|
+
*/
|
|
172
|
+
export interface CreateOrder {
|
|
173
|
+
/**
|
|
174
|
+
* A custom reference to the merchant\'s order.
|
|
175
|
+
* @type {string}
|
|
176
|
+
* @memberof CreateOrder
|
|
177
|
+
*/
|
|
178
|
+
'merchantReference'?: string | null;
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @type {CreateOrderContactInformation}
|
|
182
|
+
* @memberof CreateOrder
|
|
183
|
+
*/
|
|
184
|
+
'contactInformation': CreateOrderContactInformation;
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* @type {Address}
|
|
188
|
+
* @memberof CreateOrder
|
|
189
|
+
*/
|
|
190
|
+
'shippingAddress': Address;
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @type {CustomsInformation}
|
|
194
|
+
* @memberof CreateOrder
|
|
195
|
+
*/
|
|
196
|
+
'customsInformation'?: CustomsInformation;
|
|
197
|
+
/**
|
|
198
|
+
* Items to be ordered
|
|
199
|
+
* @type {Array<OrderItem1>}
|
|
200
|
+
* @memberof CreateOrder
|
|
201
|
+
*/
|
|
202
|
+
'items': Array<OrderItem1>;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Contact information for the order
|
|
206
|
+
* @export
|
|
207
|
+
* @interface CreateOrderContactInformation
|
|
208
|
+
*/
|
|
209
|
+
export interface CreateOrderContactInformation {
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @type {string}
|
|
213
|
+
* @memberof CreateOrderContactInformation
|
|
214
|
+
*/
|
|
215
|
+
'email': string;
|
|
216
|
+
/**
|
|
217
|
+
*
|
|
218
|
+
* @type {string}
|
|
219
|
+
* @memberof CreateOrderContactInformation
|
|
220
|
+
*/
|
|
221
|
+
'phone'?: string | null;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
* @export
|
|
226
|
+
* @interface CustomsInformation
|
|
227
|
+
*/
|
|
228
|
+
export interface CustomsInformation {
|
|
229
|
+
/**
|
|
230
|
+
* Pre-registration type
|
|
231
|
+
* @type {string}
|
|
232
|
+
* @memberof CustomsInformation
|
|
233
|
+
*/
|
|
234
|
+
'preRegistrationType'?: CustomsInformationPreRegistrationTypeEnum;
|
|
235
|
+
/**
|
|
236
|
+
* Pre-registration number
|
|
237
|
+
* @type {string}
|
|
238
|
+
* @memberof CustomsInformation
|
|
239
|
+
*/
|
|
240
|
+
'preRegistrationNumber'?: string;
|
|
241
|
+
/**
|
|
242
|
+
* VAT number
|
|
243
|
+
* @type {string}
|
|
244
|
+
* @memberof CustomsInformation
|
|
245
|
+
*/
|
|
246
|
+
'vatNumber'?: string;
|
|
247
|
+
/**
|
|
248
|
+
* EORI number
|
|
249
|
+
* @type {string}
|
|
250
|
+
* @memberof CustomsInformation
|
|
251
|
+
*/
|
|
252
|
+
'eoriNumber'?: string;
|
|
253
|
+
}
|
|
254
|
+
export declare const CustomsInformationPreRegistrationTypeEnum: {
|
|
255
|
+
readonly Ioss: "IOSS";
|
|
256
|
+
};
|
|
257
|
+
export type CustomsInformationPreRegistrationTypeEnum = typeof CustomsInformationPreRegistrationTypeEnum[keyof typeof CustomsInformationPreRegistrationTypeEnum];
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @export
|
|
261
|
+
* @interface CustomsInformation1
|
|
262
|
+
*/
|
|
263
|
+
export interface CustomsInformation1 {
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @type {string}
|
|
267
|
+
* @memberof CustomsInformation1
|
|
268
|
+
*/
|
|
269
|
+
'preRegistrationType'?: string;
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* @type {string}
|
|
273
|
+
* @memberof CustomsInformation1
|
|
274
|
+
*/
|
|
275
|
+
'preRegistrationNumber'?: string;
|
|
276
|
+
/**
|
|
277
|
+
*
|
|
278
|
+
* @type {string}
|
|
279
|
+
* @memberof CustomsInformation1
|
|
280
|
+
*/
|
|
281
|
+
'vatNumber'?: string;
|
|
282
|
+
/**
|
|
283
|
+
*
|
|
284
|
+
* @type {string}
|
|
285
|
+
* @memberof CustomsInformation1
|
|
286
|
+
*/
|
|
287
|
+
'eoriNumber'?: string;
|
|
288
|
+
}
|
|
167
289
|
/**
|
|
168
290
|
*
|
|
169
291
|
* @export
|
|
@@ -406,6 +528,12 @@ export interface Order {
|
|
|
406
528
|
* @memberof Order
|
|
407
529
|
*/
|
|
408
530
|
'shippingAddress': Address;
|
|
531
|
+
/**
|
|
532
|
+
*
|
|
533
|
+
* @type {CustomsInformation1}
|
|
534
|
+
* @memberof Order
|
|
535
|
+
*/
|
|
536
|
+
'customsInformation'?: CustomsInformation1;
|
|
409
537
|
/**
|
|
410
538
|
* ISO 8601 Timestamp
|
|
411
539
|
* @type {string}
|
|
@@ -419,7 +547,13 @@ export interface Order {
|
|
|
419
547
|
*/
|
|
420
548
|
'updatedAt'?: string;
|
|
421
549
|
/**
|
|
422
|
-
*
|
|
550
|
+
* ISO 8601 Timestamp
|
|
551
|
+
* @type {string}
|
|
552
|
+
* @memberof Order
|
|
553
|
+
*/
|
|
554
|
+
'statusChangedAt'?: string;
|
|
555
|
+
/**
|
|
556
|
+
* A custom reference to the merchant\'s order.
|
|
423
557
|
* @type {string}
|
|
424
558
|
* @memberof Order
|
|
425
559
|
*/
|
|
@@ -552,6 +686,50 @@ export interface OrderItem {
|
|
|
552
686
|
*/
|
|
553
687
|
'recipientCost'?: Price;
|
|
554
688
|
}
|
|
689
|
+
/**
|
|
690
|
+
*
|
|
691
|
+
* @export
|
|
692
|
+
* @interface OrderItem1
|
|
693
|
+
*/
|
|
694
|
+
export interface OrderItem1 {
|
|
695
|
+
/**
|
|
696
|
+
* A reference to the resource location
|
|
697
|
+
* @type {string}
|
|
698
|
+
* @memberof OrderItem1
|
|
699
|
+
*/
|
|
700
|
+
'variantRef': string;
|
|
701
|
+
/**
|
|
702
|
+
*
|
|
703
|
+
* @type {number}
|
|
704
|
+
* @memberof OrderItem1
|
|
705
|
+
*/
|
|
706
|
+
'quantity': number;
|
|
707
|
+
/**
|
|
708
|
+
*
|
|
709
|
+
* @type {OrderItem1RecipientCost}
|
|
710
|
+
* @memberof OrderItem1
|
|
711
|
+
*/
|
|
712
|
+
'recipientCost'?: OrderItem1RecipientCost;
|
|
713
|
+
}
|
|
714
|
+
/**
|
|
715
|
+
*
|
|
716
|
+
* @export
|
|
717
|
+
* @interface OrderItem1RecipientCost
|
|
718
|
+
*/
|
|
719
|
+
export interface OrderItem1RecipientCost {
|
|
720
|
+
/**
|
|
721
|
+
*
|
|
722
|
+
* @type {string}
|
|
723
|
+
* @memberof OrderItem1RecipientCost
|
|
724
|
+
*/
|
|
725
|
+
'amount': string;
|
|
726
|
+
/**
|
|
727
|
+
*
|
|
728
|
+
* @type {string}
|
|
729
|
+
* @memberof OrderItem1RecipientCost
|
|
730
|
+
*/
|
|
731
|
+
'currencyCode': string;
|
|
732
|
+
}
|
|
555
733
|
/**
|
|
556
734
|
*
|
|
557
735
|
* @export
|
|
@@ -596,19 +774,6 @@ export interface OrdersResponse {
|
|
|
596
774
|
*/
|
|
597
775
|
'nextPageToken'?: number;
|
|
598
776
|
}
|
|
599
|
-
/**
|
|
600
|
-
*
|
|
601
|
-
* @export
|
|
602
|
-
* @interface OrdersStatusesResponse
|
|
603
|
-
*/
|
|
604
|
-
export interface OrdersStatusesResponse {
|
|
605
|
-
/**
|
|
606
|
-
*
|
|
607
|
-
* @type {Array<Status>}
|
|
608
|
-
* @memberof OrdersStatusesResponse
|
|
609
|
-
*/
|
|
610
|
-
'statuses'?: Array<Status>;
|
|
611
|
-
}
|
|
612
777
|
/**
|
|
613
778
|
*
|
|
614
779
|
* @export
|
|
@@ -765,18 +930,18 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
765
930
|
* Creates a new order for the provided variants. You can fetch details and references to the given project\'s variants from the Product Catalog API.
|
|
766
931
|
* @summary Create order
|
|
767
932
|
* @param {string} project What project it is
|
|
768
|
-
* @param {
|
|
933
|
+
* @param {CreateOrder} createOrder Create Order schema
|
|
769
934
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
770
935
|
* @param {*} [options] Override http request option.
|
|
771
936
|
* @throws {RequiredError}
|
|
772
937
|
*/
|
|
773
|
-
createOrder: (project: string,
|
|
938
|
+
createOrder: (project: string, createOrder: CreateOrder, fields?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
774
939
|
/**
|
|
775
940
|
* Export orders as a CSV file
|
|
776
941
|
* @summary Export orders
|
|
777
942
|
* @param {string} project What project it is
|
|
778
943
|
* @param {string} start Start of date range to filter by when orders were placed
|
|
779
|
-
* @param {string} [end] End of date range
|
|
944
|
+
* @param {string} [end] End of date range
|
|
780
945
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
781
946
|
* @param {*} [options] Override http request option.
|
|
782
947
|
* @throws {RequiredError}
|
|
@@ -802,20 +967,13 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
802
967
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
803
968
|
* @param {Array<string>} [ids] Specify fulfillment IDs to list
|
|
804
969
|
* @param {Array<Status>} [statuses] Filter by fulfillment status
|
|
805
|
-
* @param {string} [start] Start of date range
|
|
806
|
-
* @param {string} [end] End of date range
|
|
970
|
+
* @param {string} [start] Start of date range
|
|
971
|
+
* @param {string} [end] End of date range
|
|
972
|
+
* @param {GetOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
807
973
|
* @param {*} [options] Override http request option.
|
|
808
974
|
* @throws {RequiredError}
|
|
809
975
|
*/
|
|
810
|
-
getOrders: (project: string, fields?: string, pageToken?: number, pageSize?: number, search?: string, ids?: Array<string>, statuses?: Array<Status>, start?: string, end?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
811
|
-
/**
|
|
812
|
-
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
813
|
-
* @summary List orders\' statuses
|
|
814
|
-
* @param {string} project What project it is
|
|
815
|
-
* @param {*} [options] Override http request option.
|
|
816
|
-
* @throws {RequiredError}
|
|
817
|
-
*/
|
|
818
|
-
getStatuses: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
976
|
+
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>;
|
|
819
977
|
};
|
|
820
978
|
/**
|
|
821
979
|
* OrdersApi - functional programming interface
|
|
@@ -847,18 +1005,18 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
847
1005
|
* Creates a new order for the provided variants. You can fetch details and references to the given project\'s variants from the Product Catalog API.
|
|
848
1006
|
* @summary Create order
|
|
849
1007
|
* @param {string} project What project it is
|
|
850
|
-
* @param {
|
|
1008
|
+
* @param {CreateOrder} createOrder Create Order schema
|
|
851
1009
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
852
1010
|
* @param {*} [options] Override http request option.
|
|
853
1011
|
* @throws {RequiredError}
|
|
854
1012
|
*/
|
|
855
|
-
createOrder(project: string,
|
|
1013
|
+
createOrder(project: string, createOrder: CreateOrder, fields?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
|
856
1014
|
/**
|
|
857
1015
|
* Export orders as a CSV file
|
|
858
1016
|
* @summary Export orders
|
|
859
1017
|
* @param {string} project What project it is
|
|
860
1018
|
* @param {string} start Start of date range to filter by when orders were placed
|
|
861
|
-
* @param {string} [end] End of date range
|
|
1019
|
+
* @param {string} [end] End of date range
|
|
862
1020
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
863
1021
|
* @param {*} [options] Override http request option.
|
|
864
1022
|
* @throws {RequiredError}
|
|
@@ -884,20 +1042,13 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
884
1042
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
885
1043
|
* @param {Array<string>} [ids] Specify fulfillment IDs to list
|
|
886
1044
|
* @param {Array<Status>} [statuses] Filter by fulfillment status
|
|
887
|
-
* @param {string} [start] Start of date range
|
|
888
|
-
* @param {string} [end] End of date range
|
|
1045
|
+
* @param {string} [start] Start of date range
|
|
1046
|
+
* @param {string} [end] End of date range
|
|
1047
|
+
* @param {GetOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
889
1048
|
* @param {*} [options] Override http request option.
|
|
890
1049
|
* @throws {RequiredError}
|
|
891
1050
|
*/
|
|
892
|
-
getOrders(project: string, fields?: string, pageToken?: number, pageSize?: number, search?: string, ids?: Array<string>, statuses?: Array<Status>, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrdersResponse>>;
|
|
893
|
-
/**
|
|
894
|
-
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
895
|
-
* @summary List orders\' statuses
|
|
896
|
-
* @param {string} project What project it is
|
|
897
|
-
* @param {*} [options] Override http request option.
|
|
898
|
-
* @throws {RequiredError}
|
|
899
|
-
*/
|
|
900
|
-
getStatuses(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrdersStatusesResponse>>;
|
|
1051
|
+
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>>;
|
|
901
1052
|
};
|
|
902
1053
|
/**
|
|
903
1054
|
* OrdersApi - factory interface
|
|
@@ -952,14 +1103,6 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
952
1103
|
* @throws {RequiredError}
|
|
953
1104
|
*/
|
|
954
1105
|
getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse>;
|
|
955
|
-
/**
|
|
956
|
-
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
957
|
-
* @summary List orders\' statuses
|
|
958
|
-
* @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
|
|
959
|
-
* @param {*} [options] Override http request option.
|
|
960
|
-
* @throws {RequiredError}
|
|
961
|
-
*/
|
|
962
|
-
getStatuses(requestParameters: OrdersApiGetStatusesRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersStatusesResponse>;
|
|
963
1106
|
};
|
|
964
1107
|
/**
|
|
965
1108
|
* Request parameters for cancelOrder operation in OrdersApi.
|
|
@@ -1030,11 +1173,11 @@ export interface OrdersApiCreateOrderRequest {
|
|
|
1030
1173
|
*/
|
|
1031
1174
|
readonly project: string;
|
|
1032
1175
|
/**
|
|
1033
|
-
* Order schema
|
|
1034
|
-
* @type {
|
|
1176
|
+
* Create Order schema
|
|
1177
|
+
* @type {CreateOrder}
|
|
1035
1178
|
* @memberof OrdersApiCreateOrder
|
|
1036
1179
|
*/
|
|
1037
|
-
readonly
|
|
1180
|
+
readonly createOrder: CreateOrder;
|
|
1038
1181
|
/**
|
|
1039
1182
|
* Specifies which fields to return, separated by commas
|
|
1040
1183
|
* @type {string}
|
|
@@ -1061,7 +1204,7 @@ export interface OrdersApiExportOrdersRequest {
|
|
|
1061
1204
|
*/
|
|
1062
1205
|
readonly start: string;
|
|
1063
1206
|
/**
|
|
1064
|
-
* End of date range
|
|
1207
|
+
* End of date range
|
|
1065
1208
|
* @type {string}
|
|
1066
1209
|
* @memberof OrdersApiExportOrders
|
|
1067
1210
|
*/
|
|
@@ -1147,30 +1290,23 @@ export interface OrdersApiGetOrdersRequest {
|
|
|
1147
1290
|
*/
|
|
1148
1291
|
readonly statuses?: Array<Status>;
|
|
1149
1292
|
/**
|
|
1150
|
-
* Start of date range
|
|
1293
|
+
* Start of date range
|
|
1151
1294
|
* @type {string}
|
|
1152
1295
|
* @memberof OrdersApiGetOrders
|
|
1153
1296
|
*/
|
|
1154
1297
|
readonly start?: string;
|
|
1155
1298
|
/**
|
|
1156
|
-
* End of date range
|
|
1299
|
+
* End of date range
|
|
1157
1300
|
* @type {string}
|
|
1158
1301
|
* @memberof OrdersApiGetOrders
|
|
1159
1302
|
*/
|
|
1160
1303
|
readonly end?: string;
|
|
1161
|
-
}
|
|
1162
|
-
/**
|
|
1163
|
-
* Request parameters for getStatuses operation in OrdersApi.
|
|
1164
|
-
* @export
|
|
1165
|
-
* @interface OrdersApiGetStatusesRequest
|
|
1166
|
-
*/
|
|
1167
|
-
export interface OrdersApiGetStatusesRequest {
|
|
1168
1304
|
/**
|
|
1169
|
-
*
|
|
1170
|
-
* @type {
|
|
1171
|
-
* @memberof
|
|
1305
|
+
* Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
1306
|
+
* @type {'createdAt' | 'updatedAt' | 'statusChangedAt'}
|
|
1307
|
+
* @memberof OrdersApiGetOrders
|
|
1172
1308
|
*/
|
|
1173
|
-
readonly
|
|
1309
|
+
readonly dateFilterType?: GetOrdersDateFilterTypeEnum;
|
|
1174
1310
|
}
|
|
1175
1311
|
/**
|
|
1176
1312
|
* OrdersApi - object-oriented interface
|
|
@@ -1233,13 +1369,13 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
1233
1369
|
* @memberof OrdersApi
|
|
1234
1370
|
*/
|
|
1235
1371
|
getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersResponse, any>>;
|
|
1236
|
-
/**
|
|
1237
|
-
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
1238
|
-
* @summary List orders\' statuses
|
|
1239
|
-
* @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
|
|
1240
|
-
* @param {*} [options] Override http request option.
|
|
1241
|
-
* @throws {RequiredError}
|
|
1242
|
-
* @memberof OrdersApi
|
|
1243
|
-
*/
|
|
1244
|
-
getStatuses(requestParameters: OrdersApiGetStatusesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersStatusesResponse, any>>;
|
|
1245
1372
|
}
|
|
1373
|
+
/**
|
|
1374
|
+
* @export
|
|
1375
|
+
*/
|
|
1376
|
+
export declare const GetOrdersDateFilterTypeEnum: {
|
|
1377
|
+
readonly CreatedAt: "createdAt";
|
|
1378
|
+
readonly UpdatedAt: "updatedAt";
|
|
1379
|
+
readonly StatusChangedAt: "statusChangedAt";
|
|
1380
|
+
};
|
|
1381
|
+
export type GetOrdersDateFilterTypeEnum = typeof GetOrdersDateFilterTypeEnum[keyof typeof GetOrdersDateFilterTypeEnum];
|