@teemill/orders 1.10.0 → 1.13.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 +2 -2
- package/api.ts +228 -125
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +214 -72
- package/dist/api.js +32 -89
- 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 +214 -72
- package/dist/esm/api.js +31 -88
- 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/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* 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)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.13.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.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.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* 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)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.13.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.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.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* 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)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.13.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
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. 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.0
|
|
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,12 +164,140 @@ 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
|
|
170
292
|
* @interface DeliveryEstimates
|
|
171
293
|
*/
|
|
172
294
|
export interface DeliveryEstimates {
|
|
295
|
+
/**
|
|
296
|
+
* Whether this is a priority shipping method. Fulfillments with priority methods aim for same day dispatch when ordered before 1pm, and typically offer faster delivery times.
|
|
297
|
+
* @type {boolean}
|
|
298
|
+
* @memberof DeliveryEstimates
|
|
299
|
+
*/
|
|
300
|
+
'isPriority'?: boolean;
|
|
173
301
|
/**
|
|
174
302
|
* ISO 8601 Timestamp
|
|
175
303
|
* @type {string}
|
|
@@ -400,6 +528,12 @@ export interface Order {
|
|
|
400
528
|
* @memberof Order
|
|
401
529
|
*/
|
|
402
530
|
'shippingAddress': Address;
|
|
531
|
+
/**
|
|
532
|
+
*
|
|
533
|
+
* @type {CustomsInformation1}
|
|
534
|
+
* @memberof Order
|
|
535
|
+
*/
|
|
536
|
+
'customsInformation'?: CustomsInformation1;
|
|
403
537
|
/**
|
|
404
538
|
* ISO 8601 Timestamp
|
|
405
539
|
* @type {string}
|
|
@@ -413,7 +547,13 @@ export interface Order {
|
|
|
413
547
|
*/
|
|
414
548
|
'updatedAt'?: string;
|
|
415
549
|
/**
|
|
416
|
-
*
|
|
550
|
+
* ISO 8601 Timestamp
|
|
551
|
+
* @type {string}
|
|
552
|
+
* @memberof Order
|
|
553
|
+
*/
|
|
554
|
+
'statusChangedAt'?: string;
|
|
555
|
+
/**
|
|
556
|
+
* A custom reference to the merchant\'s order.
|
|
417
557
|
* @type {string}
|
|
418
558
|
* @memberof Order
|
|
419
559
|
*/
|
|
@@ -546,6 +686,50 @@ export interface OrderItem {
|
|
|
546
686
|
*/
|
|
547
687
|
'recipientCost'?: Price;
|
|
548
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
|
+
}
|
|
549
733
|
/**
|
|
550
734
|
*
|
|
551
735
|
* @export
|
|
@@ -590,19 +774,6 @@ export interface OrdersResponse {
|
|
|
590
774
|
*/
|
|
591
775
|
'nextPageToken'?: number;
|
|
592
776
|
}
|
|
593
|
-
/**
|
|
594
|
-
*
|
|
595
|
-
* @export
|
|
596
|
-
* @interface OrdersStatusesResponse
|
|
597
|
-
*/
|
|
598
|
-
export interface OrdersStatusesResponse {
|
|
599
|
-
/**
|
|
600
|
-
*
|
|
601
|
-
* @type {Array<Status>}
|
|
602
|
-
* @memberof OrdersStatusesResponse
|
|
603
|
-
*/
|
|
604
|
-
'statuses'?: Array<Status>;
|
|
605
|
-
}
|
|
606
777
|
/**
|
|
607
778
|
*
|
|
608
779
|
* @export
|
|
@@ -759,12 +930,12 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
759
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.
|
|
760
931
|
* @summary Create order
|
|
761
932
|
* @param {string} project What project it is
|
|
762
|
-
* @param {
|
|
933
|
+
* @param {CreateOrder} createOrder Create Order schema
|
|
763
934
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
764
935
|
* @param {*} [options] Override http request option.
|
|
765
936
|
* @throws {RequiredError}
|
|
766
937
|
*/
|
|
767
|
-
createOrder: (project: string,
|
|
938
|
+
createOrder: (project: string, createOrder: CreateOrder, fields?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
768
939
|
/**
|
|
769
940
|
* Export orders as a CSV file
|
|
770
941
|
* @summary Export orders
|
|
@@ -798,18 +969,11 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
798
969
|
* @param {Array<Status>} [statuses] Filter by fulfillment status
|
|
799
970
|
* @param {string} [start] Start of date range to filter by when orders were placed
|
|
800
971
|
* @param {string} [end] End of date range to filter by when orders were placed
|
|
972
|
+
* @param {GetOrdersDateFilterTypeEnum} [dateFilterType] Filter by date range type
|
|
801
973
|
* @param {*} [options] Override http request option.
|
|
802
974
|
* @throws {RequiredError}
|
|
803
975
|
*/
|
|
804
|
-
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>;
|
|
805
|
-
/**
|
|
806
|
-
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
807
|
-
* @summary List orders\' statuses
|
|
808
|
-
* @param {string} project What project it is
|
|
809
|
-
* @param {*} [options] Override http request option.
|
|
810
|
-
* @throws {RequiredError}
|
|
811
|
-
*/
|
|
812
|
-
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>;
|
|
813
977
|
};
|
|
814
978
|
/**
|
|
815
979
|
* OrdersApi - functional programming interface
|
|
@@ -841,12 +1005,12 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
841
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.
|
|
842
1006
|
* @summary Create order
|
|
843
1007
|
* @param {string} project What project it is
|
|
844
|
-
* @param {
|
|
1008
|
+
* @param {CreateOrder} createOrder Create Order schema
|
|
845
1009
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
846
1010
|
* @param {*} [options] Override http request option.
|
|
847
1011
|
* @throws {RequiredError}
|
|
848
1012
|
*/
|
|
849
|
-
createOrder(project: string,
|
|
1013
|
+
createOrder(project: string, createOrder: CreateOrder, fields?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
|
850
1014
|
/**
|
|
851
1015
|
* Export orders as a CSV file
|
|
852
1016
|
* @summary Export orders
|
|
@@ -880,18 +1044,11 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
880
1044
|
* @param {Array<Status>} [statuses] Filter by fulfillment status
|
|
881
1045
|
* @param {string} [start] Start of date range to filter by when orders were placed
|
|
882
1046
|
* @param {string} [end] End of date range to filter by when orders were placed
|
|
1047
|
+
* @param {GetOrdersDateFilterTypeEnum} [dateFilterType] Filter by date range type
|
|
883
1048
|
* @param {*} [options] Override http request option.
|
|
884
1049
|
* @throws {RequiredError}
|
|
885
1050
|
*/
|
|
886
|
-
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>>;
|
|
887
|
-
/**
|
|
888
|
-
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
889
|
-
* @summary List orders\' statuses
|
|
890
|
-
* @param {string} project What project it is
|
|
891
|
-
* @param {*} [options] Override http request option.
|
|
892
|
-
* @throws {RequiredError}
|
|
893
|
-
*/
|
|
894
|
-
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>>;
|
|
895
1052
|
};
|
|
896
1053
|
/**
|
|
897
1054
|
* OrdersApi - factory interface
|
|
@@ -946,14 +1103,6 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
946
1103
|
* @throws {RequiredError}
|
|
947
1104
|
*/
|
|
948
1105
|
getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse>;
|
|
949
|
-
/**
|
|
950
|
-
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
951
|
-
* @summary List orders\' statuses
|
|
952
|
-
* @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
|
|
953
|
-
* @param {*} [options] Override http request option.
|
|
954
|
-
* @throws {RequiredError}
|
|
955
|
-
*/
|
|
956
|
-
getStatuses(requestParameters: OrdersApiGetStatusesRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersStatusesResponse>;
|
|
957
1106
|
};
|
|
958
1107
|
/**
|
|
959
1108
|
* Request parameters for cancelOrder operation in OrdersApi.
|
|
@@ -1024,11 +1173,11 @@ export interface OrdersApiCreateOrderRequest {
|
|
|
1024
1173
|
*/
|
|
1025
1174
|
readonly project: string;
|
|
1026
1175
|
/**
|
|
1027
|
-
* Order schema
|
|
1028
|
-
* @type {
|
|
1176
|
+
* Create Order schema
|
|
1177
|
+
* @type {CreateOrder}
|
|
1029
1178
|
* @memberof OrdersApiCreateOrder
|
|
1030
1179
|
*/
|
|
1031
|
-
readonly
|
|
1180
|
+
readonly createOrder: CreateOrder;
|
|
1032
1181
|
/**
|
|
1033
1182
|
* Specifies which fields to return, separated by commas
|
|
1034
1183
|
* @type {string}
|
|
@@ -1152,19 +1301,12 @@ export interface OrdersApiGetOrdersRequest {
|
|
|
1152
1301
|
* @memberof OrdersApiGetOrders
|
|
1153
1302
|
*/
|
|
1154
1303
|
readonly end?: string;
|
|
1155
|
-
}
|
|
1156
|
-
/**
|
|
1157
|
-
* Request parameters for getStatuses operation in OrdersApi.
|
|
1158
|
-
* @export
|
|
1159
|
-
* @interface OrdersApiGetStatusesRequest
|
|
1160
|
-
*/
|
|
1161
|
-
export interface OrdersApiGetStatusesRequest {
|
|
1162
1304
|
/**
|
|
1163
|
-
*
|
|
1164
|
-
* @type {
|
|
1165
|
-
* @memberof
|
|
1305
|
+
* Filter by date range type
|
|
1306
|
+
* @type {'createdAt' | 'updatedAt' | 'statusChangedAt'}
|
|
1307
|
+
* @memberof OrdersApiGetOrders
|
|
1166
1308
|
*/
|
|
1167
|
-
readonly
|
|
1309
|
+
readonly dateFilterType?: GetOrdersDateFilterTypeEnum;
|
|
1168
1310
|
}
|
|
1169
1311
|
/**
|
|
1170
1312
|
* OrdersApi - object-oriented interface
|
|
@@ -1227,13 +1369,13 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
1227
1369
|
* @memberof OrdersApi
|
|
1228
1370
|
*/
|
|
1229
1371
|
getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersResponse, any>>;
|
|
1230
|
-
/**
|
|
1231
|
-
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
1232
|
-
* @summary List orders\' statuses
|
|
1233
|
-
* @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
|
|
1234
|
-
* @param {*} [options] Override http request option.
|
|
1235
|
-
* @throws {RequiredError}
|
|
1236
|
-
* @memberof OrdersApi
|
|
1237
|
-
*/
|
|
1238
|
-
getStatuses(requestParameters: OrdersApiGetStatusesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersStatusesResponse, any>>;
|
|
1239
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];
|