@teemill/orders 1.17.0 → 1.19.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 +3 -2
- package/api.ts +40 -3
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +40 -3
- package/dist/api.js +1 -1
- 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 +40 -3
- package/dist/esm/api.js +1 -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/Coupon.md +25 -0
- package/docs/CreateOrder.md +2 -0
- package/docs/Order.md +2 -0
- package/docs/OrderItem.md +1 -1
- package/docs/OrderItem1.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/orders@1.
|
|
1
|
+
## @teemill/orders@1.19.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/orders@1.
|
|
39
|
+
npm install @teemill/orders@1.19.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -69,6 +69,7 @@ Class | Method | HTTP request | Description
|
|
|
69
69
|
- [ConfirmOrderRequest](docs/ConfirmOrderRequest.md)
|
|
70
70
|
- [ConfirmOrderValidationError](docs/ConfirmOrderValidationError.md)
|
|
71
71
|
- [ContactInformation](docs/ContactInformation.md)
|
|
72
|
+
- [Coupon](docs/Coupon.md)
|
|
72
73
|
- [CreateOrder](docs/CreateOrder.md)
|
|
73
74
|
- [CreateOrderContactInformation](docs/CreateOrderContactInformation.md)
|
|
74
75
|
- [CustomsInformation](docs/CustomsInformation.md)
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.19.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -196,6 +196,31 @@ export interface ContactInformation {
|
|
|
196
196
|
*/
|
|
197
197
|
'phone'?: string | null;
|
|
198
198
|
}
|
|
199
|
+
/**
|
|
200
|
+
* Coupon applied to the order.
|
|
201
|
+
* @export
|
|
202
|
+
* @interface Coupon
|
|
203
|
+
*/
|
|
204
|
+
export interface Coupon {
|
|
205
|
+
/**
|
|
206
|
+
* Unique object identifier
|
|
207
|
+
* @type {string}
|
|
208
|
+
* @memberof Coupon
|
|
209
|
+
*/
|
|
210
|
+
'id': string;
|
|
211
|
+
/**
|
|
212
|
+
*
|
|
213
|
+
* @type {string}
|
|
214
|
+
* @memberof Coupon
|
|
215
|
+
*/
|
|
216
|
+
'code': string;
|
|
217
|
+
/**
|
|
218
|
+
* Reference to the discount. **Note:** Requires the discounts integration to see the reference.
|
|
219
|
+
* @type {string}
|
|
220
|
+
* @memberof Coupon
|
|
221
|
+
*/
|
|
222
|
+
'ref'?: string | null;
|
|
223
|
+
}
|
|
199
224
|
/**
|
|
200
225
|
* Create an order
|
|
201
226
|
* @export
|
|
@@ -232,6 +257,12 @@ export interface CreateOrder {
|
|
|
232
257
|
* @memberof CreateOrder
|
|
233
258
|
*/
|
|
234
259
|
'items': Array<OrderItem1>;
|
|
260
|
+
/**
|
|
261
|
+
*
|
|
262
|
+
* @type {Array<string>}
|
|
263
|
+
* @memberof CreateOrder
|
|
264
|
+
*/
|
|
265
|
+
'preferredFulfillers'?: Array<string>;
|
|
235
266
|
}
|
|
236
267
|
/**
|
|
237
268
|
* Contact information for the order
|
|
@@ -631,6 +662,12 @@ export interface Order {
|
|
|
631
662
|
* @memberof Order
|
|
632
663
|
*/
|
|
633
664
|
'discountPrice'?: Price;
|
|
665
|
+
/**
|
|
666
|
+
*
|
|
667
|
+
* @type {Coupon}
|
|
668
|
+
* @memberof Order
|
|
669
|
+
*/
|
|
670
|
+
'coupon'?: Coupon | null;
|
|
634
671
|
/**
|
|
635
672
|
*
|
|
636
673
|
* @type {Price}
|
|
@@ -671,7 +708,7 @@ export interface OrderItem {
|
|
|
671
708
|
*/
|
|
672
709
|
'id'?: string;
|
|
673
710
|
/**
|
|
674
|
-
*
|
|
711
|
+
* A reference to the variant being ordered
|
|
675
712
|
* @type {string}
|
|
676
713
|
* @memberof OrderItem
|
|
677
714
|
*/
|
|
@@ -738,7 +775,7 @@ export interface OrderItem {
|
|
|
738
775
|
*/
|
|
739
776
|
export interface OrderItem1 {
|
|
740
777
|
/**
|
|
741
|
-
* A reference to the
|
|
778
|
+
* A reference to the variant being ordered
|
|
742
779
|
* @type {string}
|
|
743
780
|
* @memberof OrderItem1
|
|
744
781
|
*/
|
package/base.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.19.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/common.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.19.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.19.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.19.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -183,6 +183,31 @@ export interface ContactInformation {
|
|
|
183
183
|
*/
|
|
184
184
|
'phone'?: string | null;
|
|
185
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* Coupon applied to the order.
|
|
188
|
+
* @export
|
|
189
|
+
* @interface Coupon
|
|
190
|
+
*/
|
|
191
|
+
export interface Coupon {
|
|
192
|
+
/**
|
|
193
|
+
* Unique object identifier
|
|
194
|
+
* @type {string}
|
|
195
|
+
* @memberof Coupon
|
|
196
|
+
*/
|
|
197
|
+
'id': string;
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
* @type {string}
|
|
201
|
+
* @memberof Coupon
|
|
202
|
+
*/
|
|
203
|
+
'code': string;
|
|
204
|
+
/**
|
|
205
|
+
* Reference to the discount. **Note:** Requires the discounts integration to see the reference.
|
|
206
|
+
* @type {string}
|
|
207
|
+
* @memberof Coupon
|
|
208
|
+
*/
|
|
209
|
+
'ref'?: string | null;
|
|
210
|
+
}
|
|
186
211
|
/**
|
|
187
212
|
* Create an order
|
|
188
213
|
* @export
|
|
@@ -219,6 +244,12 @@ export interface CreateOrder {
|
|
|
219
244
|
* @memberof CreateOrder
|
|
220
245
|
*/
|
|
221
246
|
'items': Array<OrderItem1>;
|
|
247
|
+
/**
|
|
248
|
+
*
|
|
249
|
+
* @type {Array<string>}
|
|
250
|
+
* @memberof CreateOrder
|
|
251
|
+
*/
|
|
252
|
+
'preferredFulfillers'?: Array<string>;
|
|
222
253
|
}
|
|
223
254
|
/**
|
|
224
255
|
* Contact information for the order
|
|
@@ -613,6 +644,12 @@ export interface Order {
|
|
|
613
644
|
* @memberof Order
|
|
614
645
|
*/
|
|
615
646
|
'discountPrice'?: Price;
|
|
647
|
+
/**
|
|
648
|
+
*
|
|
649
|
+
* @type {Coupon}
|
|
650
|
+
* @memberof Order
|
|
651
|
+
*/
|
|
652
|
+
'coupon'?: Coupon | null;
|
|
616
653
|
/**
|
|
617
654
|
*
|
|
618
655
|
* @type {Price}
|
|
@@ -651,7 +688,7 @@ export interface OrderItem {
|
|
|
651
688
|
*/
|
|
652
689
|
'id'?: string;
|
|
653
690
|
/**
|
|
654
|
-
*
|
|
691
|
+
* A reference to the variant being ordered
|
|
655
692
|
* @type {string}
|
|
656
693
|
* @memberof OrderItem
|
|
657
694
|
*/
|
|
@@ -718,7 +755,7 @@ export interface OrderItem {
|
|
|
718
755
|
*/
|
|
719
756
|
export interface OrderItem1 {
|
|
720
757
|
/**
|
|
721
|
-
* A reference to the
|
|
758
|
+
* A reference to the variant being ordered
|
|
722
759
|
* @type {string}
|
|
723
760
|
* @memberof OrderItem1
|
|
724
761
|
*/
|
package/dist/api.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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.19.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/base.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.19.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.19.0
|
|
9
9
|
*
|
|
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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.19.0
|
|
6
6
|
*
|
|
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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.19.0
|
|
9
9
|
*
|
|
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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.19.0
|
|
6
6
|
*
|
|
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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.19.0
|
|
9
9
|
*
|
|
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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.19.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -183,6 +183,31 @@ export interface ContactInformation {
|
|
|
183
183
|
*/
|
|
184
184
|
'phone'?: string | null;
|
|
185
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* Coupon applied to the order.
|
|
188
|
+
* @export
|
|
189
|
+
* @interface Coupon
|
|
190
|
+
*/
|
|
191
|
+
export interface Coupon {
|
|
192
|
+
/**
|
|
193
|
+
* Unique object identifier
|
|
194
|
+
* @type {string}
|
|
195
|
+
* @memberof Coupon
|
|
196
|
+
*/
|
|
197
|
+
'id': string;
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
* @type {string}
|
|
201
|
+
* @memberof Coupon
|
|
202
|
+
*/
|
|
203
|
+
'code': string;
|
|
204
|
+
/**
|
|
205
|
+
* Reference to the discount. **Note:** Requires the discounts integration to see the reference.
|
|
206
|
+
* @type {string}
|
|
207
|
+
* @memberof Coupon
|
|
208
|
+
*/
|
|
209
|
+
'ref'?: string | null;
|
|
210
|
+
}
|
|
186
211
|
/**
|
|
187
212
|
* Create an order
|
|
188
213
|
* @export
|
|
@@ -219,6 +244,12 @@ export interface CreateOrder {
|
|
|
219
244
|
* @memberof CreateOrder
|
|
220
245
|
*/
|
|
221
246
|
'items': Array<OrderItem1>;
|
|
247
|
+
/**
|
|
248
|
+
*
|
|
249
|
+
* @type {Array<string>}
|
|
250
|
+
* @memberof CreateOrder
|
|
251
|
+
*/
|
|
252
|
+
'preferredFulfillers'?: Array<string>;
|
|
222
253
|
}
|
|
223
254
|
/**
|
|
224
255
|
* Contact information for the order
|
|
@@ -613,6 +644,12 @@ export interface Order {
|
|
|
613
644
|
* @memberof Order
|
|
614
645
|
*/
|
|
615
646
|
'discountPrice'?: Price;
|
|
647
|
+
/**
|
|
648
|
+
*
|
|
649
|
+
* @type {Coupon}
|
|
650
|
+
* @memberof Order
|
|
651
|
+
*/
|
|
652
|
+
'coupon'?: Coupon | null;
|
|
616
653
|
/**
|
|
617
654
|
*
|
|
618
655
|
* @type {Price}
|
|
@@ -651,7 +688,7 @@ export interface OrderItem {
|
|
|
651
688
|
*/
|
|
652
689
|
'id'?: string;
|
|
653
690
|
/**
|
|
654
|
-
*
|
|
691
|
+
* A reference to the variant being ordered
|
|
655
692
|
* @type {string}
|
|
656
693
|
* @memberof OrderItem
|
|
657
694
|
*/
|
|
@@ -718,7 +755,7 @@ export interface OrderItem {
|
|
|
718
755
|
*/
|
|
719
756
|
export interface OrderItem1 {
|
|
720
757
|
/**
|
|
721
|
-
* A reference to the
|
|
758
|
+
* A reference to the variant being ordered
|
|
722
759
|
* @type {string}
|
|
723
760
|
* @memberof OrderItem1
|
|
724
761
|
*/
|
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.19.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/base.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.19.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.19.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.19.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.19.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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.19.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.19.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.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.19.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.19.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.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.19.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.19.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/Coupon.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Coupon
|
|
2
|
+
|
|
3
|
+
Coupon applied to the order.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | Unique object identifier | [default to undefined]
|
|
10
|
+
**code** | **string** | | [default to undefined]
|
|
11
|
+
**ref** | **string** | Reference to the discount. **Note:** Requires the discounts integration to see the reference. | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { Coupon } from '@teemill/orders';
|
|
17
|
+
|
|
18
|
+
const instance: Coupon = {
|
|
19
|
+
id,
|
|
20
|
+
code,
|
|
21
|
+
ref,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/CreateOrder.md
CHANGED
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**shippingAddress** | [**Address**](Address.md) | | [default to undefined]
|
|
12
12
|
**customsInformation** | [**CustomsInformation**](CustomsInformation.md) | | [optional] [default to undefined]
|
|
13
13
|
**items** | [**Array<OrderItem1>**](OrderItem1.md) | Items to be ordered | [default to undefined]
|
|
14
|
+
**preferredFulfillers** | **Array<string>** | | [optional] [default to undefined]
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -23,6 +24,7 @@ const instance: CreateOrder = {
|
|
|
23
24
|
shippingAddress,
|
|
24
25
|
customsInformation,
|
|
25
26
|
items,
|
|
27
|
+
preferredFulfillers,
|
|
26
28
|
};
|
|
27
29
|
```
|
|
28
30
|
|
package/docs/Order.md
CHANGED
|
@@ -21,6 +21,7 @@ Name | Type | Description | Notes
|
|
|
21
21
|
**taxPrice** | [**Price**](Price.md) | | [optional] [default to undefined]
|
|
22
22
|
**subtotalPrice** | [**Price**](Price.md) | | [optional] [default to undefined]
|
|
23
23
|
**discountPrice** | [**Price**](Price.md) | | [optional] [default to undefined]
|
|
24
|
+
**coupon** | [**Coupon**](Coupon.md) | | [optional] [default to undefined]
|
|
24
25
|
**shippingPrice** | [**Price**](Price.md) | | [optional] [default to undefined]
|
|
25
26
|
**origin** | [**Origin**](Origin.md) | | [optional] [default to undefined]
|
|
26
27
|
**statusHistory** | [**Array<StatusHistoryItem>**](StatusHistoryItem.md) | | [optional] [default to undefined]
|
|
@@ -48,6 +49,7 @@ const instance: Order = {
|
|
|
48
49
|
taxPrice,
|
|
49
50
|
subtotalPrice,
|
|
50
51
|
discountPrice,
|
|
52
|
+
coupon,
|
|
51
53
|
shippingPrice,
|
|
52
54
|
origin,
|
|
53
55
|
statusHistory,
|
package/docs/OrderItem.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | Unique object identifier | [optional] [readonly] [default to undefined]
|
|
9
|
-
**variantRef** | **string** |
|
|
9
|
+
**variantRef** | **string** | A reference to the variant being ordered | [default to undefined]
|
|
10
10
|
**_options** | [**Array<Option>**](Option.md) | Options associated to an order item\'s variant, such as color and size. | [optional] [default to undefined]
|
|
11
11
|
**quantity** | **number** | | [default to undefined]
|
|
12
12
|
**name** | **string** | The name of the product | [optional] [default to undefined]
|
package/docs/OrderItem1.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**variantRef** | **string** | A reference to the
|
|
8
|
+
**variantRef** | **string** | A reference to the variant being ordered | [default to undefined]
|
|
9
9
|
**quantity** | **number** | | [default to undefined]
|
|
10
10
|
**recipientCost** | [**OrderItem1RecipientCost**](OrderItem1RecipientCost.md) | | [optional] [default to undefined]
|
|
11
11
|
|
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.19.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|