@teemill/orders 1.16.0 → 1.18.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 CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/orders@1.16.0
1
+ ## @teemill/orders@1.18.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.16.0 --save
39
+ npm install @teemill/orders@1.18.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.16.0
7
+ * The version of the OpenAPI document: 1.18.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
@@ -631,6 +656,12 @@ export interface Order {
631
656
  * @memberof Order
632
657
  */
633
658
  'discountPrice'?: Price;
659
+ /**
660
+ *
661
+ * @type {Coupon}
662
+ * @memberof Order
663
+ */
664
+ 'coupon'?: Coupon | null;
634
665
  /**
635
666
  *
636
667
  * @type {Price}
@@ -839,35 +870,23 @@ export interface Origin {
839
870
  'isPaid'?: boolean;
840
871
  }
841
872
  /**
842
- *
873
+ * List of payment attempts for this order
843
874
  * @export
844
875
  * @interface PaymentAttempt
845
876
  */
846
877
  export interface PaymentAttempt {
847
- /**
848
- * Unique object identifier
849
- * @type {string}
850
- * @memberof PaymentAttempt
851
- */
852
- 'id'?: string;
853
- /**
854
- * Unique object identifier
855
- * @type {string}
856
- * @memberof PaymentAttempt
857
- */
858
- 'invoiceId'?: string;
859
878
  /**
860
879
  *
861
880
  * @type {string}
862
881
  * @memberof PaymentAttempt
863
882
  */
864
- 'paymentMethodType'?: string;
883
+ 'paymentProvider'?: PaymentAttemptPaymentProviderEnum;
865
884
  /**
866
885
  *
867
- * @type {Status}
886
+ * @type {string}
868
887
  * @memberof PaymentAttempt
869
888
  */
870
- 'status'?: Status;
889
+ 'status'?: PaymentAttemptStatusEnum;
871
890
  /**
872
891
  *
873
892
  * @type {string}
@@ -888,6 +907,21 @@ export interface PaymentAttempt {
888
907
  'createdAt'?: string;
889
908
  }
890
909
 
910
+ export const PaymentAttemptPaymentProviderEnum = {
911
+ Stripe: 'stripe',
912
+ Paypal: 'paypal',
913
+ Wallet: 'wallet'
914
+ } as const;
915
+
916
+ export type PaymentAttemptPaymentProviderEnum = typeof PaymentAttemptPaymentProviderEnum[keyof typeof PaymentAttemptPaymentProviderEnum];
917
+ export const PaymentAttemptStatusEnum = {
918
+ Success: 'success',
919
+ Failed: 'failed',
920
+ Pending: 'pending',
921
+ Cancelled: 'cancelled'
922
+ } as const;
923
+
924
+ export type PaymentAttemptStatusEnum = typeof PaymentAttemptStatusEnum[keyof typeof PaymentAttemptStatusEnum];
891
925
 
892
926
  /**
893
927
  * Standard price definition that defines the amount and currency.
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.16.0
7
+ * The version of the OpenAPI document: 1.18.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.16.0
7
+ * The version of the OpenAPI document: 1.18.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.16.0
7
+ * The version of the OpenAPI document: 1.18.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.16.0
5
+ * The version of the OpenAPI document: 1.18.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
@@ -613,6 +638,12 @@ export interface Order {
613
638
  * @memberof Order
614
639
  */
615
640
  'discountPrice'?: Price;
641
+ /**
642
+ *
643
+ * @type {Coupon}
644
+ * @memberof Order
645
+ */
646
+ 'coupon'?: Coupon | null;
616
647
  /**
617
648
  *
618
649
  * @type {Price}
@@ -819,35 +850,23 @@ export interface Origin {
819
850
  'isPaid'?: boolean;
820
851
  }
821
852
  /**
822
- *
853
+ * List of payment attempts for this order
823
854
  * @export
824
855
  * @interface PaymentAttempt
825
856
  */
826
857
  export interface PaymentAttempt {
827
- /**
828
- * Unique object identifier
829
- * @type {string}
830
- * @memberof PaymentAttempt
831
- */
832
- 'id'?: string;
833
- /**
834
- * Unique object identifier
835
- * @type {string}
836
- * @memberof PaymentAttempt
837
- */
838
- 'invoiceId'?: string;
839
858
  /**
840
859
  *
841
860
  * @type {string}
842
861
  * @memberof PaymentAttempt
843
862
  */
844
- 'paymentMethodType'?: string;
863
+ 'paymentProvider'?: PaymentAttemptPaymentProviderEnum;
845
864
  /**
846
865
  *
847
- * @type {Status}
866
+ * @type {string}
848
867
  * @memberof PaymentAttempt
849
868
  */
850
- 'status'?: Status;
869
+ 'status'?: PaymentAttemptStatusEnum;
851
870
  /**
852
871
  *
853
872
  * @type {string}
@@ -867,6 +886,19 @@ export interface PaymentAttempt {
867
886
  */
868
887
  'createdAt'?: string;
869
888
  }
889
+ export declare const PaymentAttemptPaymentProviderEnum: {
890
+ readonly Stripe: "stripe";
891
+ readonly Paypal: "paypal";
892
+ readonly Wallet: "wallet";
893
+ };
894
+ export type PaymentAttemptPaymentProviderEnum = typeof PaymentAttemptPaymentProviderEnum[keyof typeof PaymentAttemptPaymentProviderEnum];
895
+ export declare const PaymentAttemptStatusEnum: {
896
+ readonly Success: "success";
897
+ readonly Failed: "failed";
898
+ readonly Pending: "pending";
899
+ readonly Cancelled: "cancelled";
900
+ };
901
+ export type PaymentAttemptStatusEnum = typeof PaymentAttemptStatusEnum[keyof typeof PaymentAttemptStatusEnum];
870
902
  /**
871
903
  * Standard price definition that defines the amount and currency.
872
904
  * @export
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.16.0
8
+ * The version of the OpenAPI document: 1.18.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.GetOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.Status = exports.CustomsInformationPreRegistrationTypeEnum = exports.ConfirmOrderValidationErrorCodeEnum = void 0;
25
+ exports.GetOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.Status = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.CustomsInformationPreRegistrationTypeEnum = exports.ConfirmOrderValidationErrorCodeEnum = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -38,6 +38,17 @@ exports.ConfirmOrderValidationErrorCodeEnum = {
38
38
  exports.CustomsInformationPreRegistrationTypeEnum = {
39
39
  Ioss: 'IOSS'
40
40
  };
41
+ exports.PaymentAttemptPaymentProviderEnum = {
42
+ Stripe: 'stripe',
43
+ Paypal: 'paypal',
44
+ Wallet: 'wallet'
45
+ };
46
+ exports.PaymentAttemptStatusEnum = {
47
+ Success: 'success',
48
+ Failed: 'failed',
49
+ Pending: 'pending',
50
+ Cancelled: 'cancelled'
51
+ };
41
52
  /**
42
53
  *
43
54
  * @export
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.16.0
5
+ * The version of the OpenAPI document: 1.18.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.16.0
8
+ * The version of the OpenAPI document: 1.18.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.16.0
5
+ * The version of the OpenAPI document: 1.18.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.16.0
8
+ * The version of the OpenAPI document: 1.18.0
9
9
  *
10
10
  *
11
11
  * 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.16.0
5
+ * The version of the OpenAPI document: 1.18.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.16.0
8
+ * The version of the OpenAPI document: 1.18.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.16.0
5
+ * The version of the OpenAPI document: 1.18.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
@@ -613,6 +638,12 @@ export interface Order {
613
638
  * @memberof Order
614
639
  */
615
640
  'discountPrice'?: Price;
641
+ /**
642
+ *
643
+ * @type {Coupon}
644
+ * @memberof Order
645
+ */
646
+ 'coupon'?: Coupon | null;
616
647
  /**
617
648
  *
618
649
  * @type {Price}
@@ -819,35 +850,23 @@ export interface Origin {
819
850
  'isPaid'?: boolean;
820
851
  }
821
852
  /**
822
- *
853
+ * List of payment attempts for this order
823
854
  * @export
824
855
  * @interface PaymentAttempt
825
856
  */
826
857
  export interface PaymentAttempt {
827
- /**
828
- * Unique object identifier
829
- * @type {string}
830
- * @memberof PaymentAttempt
831
- */
832
- 'id'?: string;
833
- /**
834
- * Unique object identifier
835
- * @type {string}
836
- * @memberof PaymentAttempt
837
- */
838
- 'invoiceId'?: string;
839
858
  /**
840
859
  *
841
860
  * @type {string}
842
861
  * @memberof PaymentAttempt
843
862
  */
844
- 'paymentMethodType'?: string;
863
+ 'paymentProvider'?: PaymentAttemptPaymentProviderEnum;
845
864
  /**
846
865
  *
847
- * @type {Status}
866
+ * @type {string}
848
867
  * @memberof PaymentAttempt
849
868
  */
850
- 'status'?: Status;
869
+ 'status'?: PaymentAttemptStatusEnum;
851
870
  /**
852
871
  *
853
872
  * @type {string}
@@ -867,6 +886,19 @@ export interface PaymentAttempt {
867
886
  */
868
887
  'createdAt'?: string;
869
888
  }
889
+ export declare const PaymentAttemptPaymentProviderEnum: {
890
+ readonly Stripe: "stripe";
891
+ readonly Paypal: "paypal";
892
+ readonly Wallet: "wallet";
893
+ };
894
+ export type PaymentAttemptPaymentProviderEnum = typeof PaymentAttemptPaymentProviderEnum[keyof typeof PaymentAttemptPaymentProviderEnum];
895
+ export declare const PaymentAttemptStatusEnum: {
896
+ readonly Success: "success";
897
+ readonly Failed: "failed";
898
+ readonly Pending: "pending";
899
+ readonly Cancelled: "cancelled";
900
+ };
901
+ export type PaymentAttemptStatusEnum = typeof PaymentAttemptStatusEnum[keyof typeof PaymentAttemptStatusEnum];
870
902
  /**
871
903
  * Standard price definition that defines the amount and currency.
872
904
  * @export
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.16.0
7
+ * The version of the OpenAPI document: 1.18.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -35,6 +35,17 @@ export const ConfirmOrderValidationErrorCodeEnum = {
35
35
  export const CustomsInformationPreRegistrationTypeEnum = {
36
36
  Ioss: 'IOSS'
37
37
  };
38
+ export const PaymentAttemptPaymentProviderEnum = {
39
+ Stripe: 'stripe',
40
+ Paypal: 'paypal',
41
+ Wallet: 'wallet'
42
+ };
43
+ export const PaymentAttemptStatusEnum = {
44
+ Success: 'success',
45
+ Failed: 'failed',
46
+ Pending: 'pending',
47
+ Cancelled: 'cancelled'
48
+ };
38
49
  /**
39
50
  *
40
51
  * @export
@@ -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.16.0
5
+ * The version of the OpenAPI document: 1.18.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.16.0
7
+ * The version of the OpenAPI document: 1.18.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.16.0
5
+ * The version of the OpenAPI document: 1.18.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.16.0
7
+ * The version of the OpenAPI document: 1.18.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.16.0
5
+ * The version of the OpenAPI document: 1.18.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.16.0
7
+ * The version of the OpenAPI document: 1.18.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.16.0
5
+ * The version of the OpenAPI document: 1.18.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.16.0
7
+ * The version of the OpenAPI document: 1.18.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.16.0
5
+ * The version of the OpenAPI document: 1.18.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.16.0
8
+ * The version of the OpenAPI document: 1.18.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/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,
@@ -1,14 +1,13 @@
1
1
  # PaymentAttempt
2
2
 
3
+ List of payment attempts for this order
3
4
 
4
5
  ## Properties
5
6
 
6
7
  Name | Type | Description | Notes
7
8
  ------------ | ------------- | ------------- | -------------
8
- **id** | **string** | Unique object identifier | [optional] [default to undefined]
9
- **invoiceId** | **string** | Unique object identifier | [optional] [default to undefined]
10
- **paymentMethodType** | **string** | | [optional] [default to undefined]
11
- **status** | [**Status**](Status.md) | | [optional] [default to undefined]
9
+ **paymentProvider** | **string** | | [optional] [default to undefined]
10
+ **status** | **string** | | [optional] [default to undefined]
12
11
  **transactionId** | **string** | | [optional] [default to undefined]
13
12
  **message** | **string** | | [optional] [default to undefined]
14
13
  **createdAt** | **string** | ISO 8601 Timestamp | [optional] [default to undefined]
@@ -19,9 +18,7 @@ Name | Type | Description | Notes
19
18
  import { PaymentAttempt } from '@teemill/orders';
20
19
 
21
20
  const instance: PaymentAttempt = {
22
- id,
23
- invoiceId,
24
- paymentMethodType,
21
+ paymentProvider,
25
22
  status,
26
23
  transactionId,
27
24
  message,
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.16.0
7
+ * The version of the OpenAPI document: 1.18.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/orders",
3
- "version": "1.16.0",
3
+ "version": "1.18.0",
4
4
  "description": "OpenAPI client for @teemill/orders",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {