@teemill/platform 0.16.0 → 0.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 +4 -2
- package/api.ts +86 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +82 -1
- package/dist/api.js +13 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +82 -1
- package/dist/esm/api.js +12 -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 +22 -0
- package/docs/Order.md +4 -0
- package/docs/PaymentAttempt.md +29 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/platform@0.
|
|
1
|
+
## @teemill/platform@0.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/platform@0.
|
|
39
|
+
npm install @teemill/platform@0.18.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -77,6 +77,7 @@ Class | Method | HTTP request | Description
|
|
|
77
77
|
- [ApiError](docs/ApiError.md)
|
|
78
78
|
- [AuthorizeStripe200Response](docs/AuthorizeStripe200Response.md)
|
|
79
79
|
- [ContactInformation](docs/ContactInformation.md)
|
|
80
|
+
- [Coupon](docs/Coupon.md)
|
|
80
81
|
- [Customer](docs/Customer.md)
|
|
81
82
|
- [CustomersResponse](docs/CustomersResponse.md)
|
|
82
83
|
- [DeliveryEstimates](docs/DeliveryEstimates.md)
|
|
@@ -96,6 +97,7 @@ Class | Method | HTTP request | Description
|
|
|
96
97
|
- [OrdersResponse](docs/OrdersResponse.md)
|
|
97
98
|
- [Origin](docs/Origin.md)
|
|
98
99
|
- [PaymentAccount](docs/PaymentAccount.md)
|
|
100
|
+
- [PaymentAttempt](docs/PaymentAttempt.md)
|
|
99
101
|
- [Platform](docs/Platform.md)
|
|
100
102
|
- [PlatformLogo](docs/PlatformLogo.md)
|
|
101
103
|
- [Price](docs/Price.md)
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Platform API
|
|
5
5
|
* Manage Your podOS platform
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.18.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -129,6 +129,25 @@ export interface ContactInformation {
|
|
|
129
129
|
*/
|
|
130
130
|
'phone'?: string | null;
|
|
131
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @export
|
|
135
|
+
* @interface Coupon
|
|
136
|
+
*/
|
|
137
|
+
export interface Coupon {
|
|
138
|
+
/**
|
|
139
|
+
* Unique object identifier
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof Coupon
|
|
142
|
+
*/
|
|
143
|
+
'id': string;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {string}
|
|
147
|
+
* @memberof Coupon
|
|
148
|
+
*/
|
|
149
|
+
'code': string;
|
|
150
|
+
}
|
|
132
151
|
/**
|
|
133
152
|
* The customer that has placed an order on your platform
|
|
134
153
|
* @export
|
|
@@ -521,6 +540,12 @@ export interface Order {
|
|
|
521
540
|
* @memberof Order
|
|
522
541
|
*/
|
|
523
542
|
'discountPrice'?: Price;
|
|
543
|
+
/**
|
|
544
|
+
*
|
|
545
|
+
* @type {Coupon}
|
|
546
|
+
* @memberof Order
|
|
547
|
+
*/
|
|
548
|
+
'coupon'?: Coupon | null;
|
|
524
549
|
/**
|
|
525
550
|
*
|
|
526
551
|
* @type {Price}
|
|
@@ -545,6 +570,12 @@ export interface Order {
|
|
|
545
570
|
* @memberof Order
|
|
546
571
|
*/
|
|
547
572
|
'project': Project;
|
|
573
|
+
/**
|
|
574
|
+
*
|
|
575
|
+
* @type {Array<PaymentAttempt>}
|
|
576
|
+
* @memberof Order
|
|
577
|
+
*/
|
|
578
|
+
'paymentAttempts'?: Array<PaymentAttempt>;
|
|
548
579
|
}
|
|
549
580
|
|
|
550
581
|
|
|
@@ -740,6 +771,60 @@ export const PaymentAccountMethodEnum = {
|
|
|
740
771
|
|
|
741
772
|
export type PaymentAccountMethodEnum = typeof PaymentAccountMethodEnum[keyof typeof PaymentAccountMethodEnum];
|
|
742
773
|
|
|
774
|
+
/**
|
|
775
|
+
* List of payment attempts for this order
|
|
776
|
+
* @export
|
|
777
|
+
* @interface PaymentAttempt
|
|
778
|
+
*/
|
|
779
|
+
export interface PaymentAttempt {
|
|
780
|
+
/**
|
|
781
|
+
*
|
|
782
|
+
* @type {string}
|
|
783
|
+
* @memberof PaymentAttempt
|
|
784
|
+
*/
|
|
785
|
+
'paymentProvider'?: PaymentAttemptPaymentProviderEnum;
|
|
786
|
+
/**
|
|
787
|
+
*
|
|
788
|
+
* @type {string}
|
|
789
|
+
* @memberof PaymentAttempt
|
|
790
|
+
*/
|
|
791
|
+
'status'?: PaymentAttemptStatusEnum;
|
|
792
|
+
/**
|
|
793
|
+
*
|
|
794
|
+
* @type {string}
|
|
795
|
+
* @memberof PaymentAttempt
|
|
796
|
+
*/
|
|
797
|
+
'transactionId'?: string | null;
|
|
798
|
+
/**
|
|
799
|
+
*
|
|
800
|
+
* @type {string}
|
|
801
|
+
* @memberof PaymentAttempt
|
|
802
|
+
*/
|
|
803
|
+
'message'?: string;
|
|
804
|
+
/**
|
|
805
|
+
* ISO 8601 Timestamp
|
|
806
|
+
* @type {string}
|
|
807
|
+
* @memberof PaymentAttempt
|
|
808
|
+
*/
|
|
809
|
+
'createdAt'?: string;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
export const PaymentAttemptPaymentProviderEnum = {
|
|
813
|
+
Stripe: 'stripe',
|
|
814
|
+
Paypal: 'paypal',
|
|
815
|
+
Wallet: 'wallet'
|
|
816
|
+
} as const;
|
|
817
|
+
|
|
818
|
+
export type PaymentAttemptPaymentProviderEnum = typeof PaymentAttemptPaymentProviderEnum[keyof typeof PaymentAttemptPaymentProviderEnum];
|
|
819
|
+
export const PaymentAttemptStatusEnum = {
|
|
820
|
+
Success: 'success',
|
|
821
|
+
Failed: 'failed',
|
|
822
|
+
Pending: 'pending',
|
|
823
|
+
Cancelled: 'cancelled'
|
|
824
|
+
} as const;
|
|
825
|
+
|
|
826
|
+
export type PaymentAttemptStatusEnum = typeof PaymentAttemptStatusEnum[keyof typeof PaymentAttemptStatusEnum];
|
|
827
|
+
|
|
743
828
|
/**
|
|
744
829
|
*
|
|
745
830
|
* @export
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Platform API
|
|
3
3
|
* Manage Your podOS platform
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.18.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -119,6 +119,25 @@ export interface ContactInformation {
|
|
|
119
119
|
*/
|
|
120
120
|
'phone'?: string | null;
|
|
121
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @export
|
|
125
|
+
* @interface Coupon
|
|
126
|
+
*/
|
|
127
|
+
export interface Coupon {
|
|
128
|
+
/**
|
|
129
|
+
* Unique object identifier
|
|
130
|
+
* @type {string}
|
|
131
|
+
* @memberof Coupon
|
|
132
|
+
*/
|
|
133
|
+
'id': string;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @type {string}
|
|
137
|
+
* @memberof Coupon
|
|
138
|
+
*/
|
|
139
|
+
'code': string;
|
|
140
|
+
}
|
|
122
141
|
/**
|
|
123
142
|
* The customer that has placed an order on your platform
|
|
124
143
|
* @export
|
|
@@ -509,6 +528,12 @@ export interface Order {
|
|
|
509
528
|
* @memberof Order
|
|
510
529
|
*/
|
|
511
530
|
'discountPrice'?: Price;
|
|
531
|
+
/**
|
|
532
|
+
*
|
|
533
|
+
* @type {Coupon}
|
|
534
|
+
* @memberof Order
|
|
535
|
+
*/
|
|
536
|
+
'coupon'?: Coupon | null;
|
|
512
537
|
/**
|
|
513
538
|
*
|
|
514
539
|
* @type {Price}
|
|
@@ -533,6 +558,12 @@ export interface Order {
|
|
|
533
558
|
* @memberof Order
|
|
534
559
|
*/
|
|
535
560
|
'project': Project;
|
|
561
|
+
/**
|
|
562
|
+
*
|
|
563
|
+
* @type {Array<PaymentAttempt>}
|
|
564
|
+
* @memberof Order
|
|
565
|
+
*/
|
|
566
|
+
'paymentAttempts'?: Array<PaymentAttempt>;
|
|
536
567
|
}
|
|
537
568
|
/**
|
|
538
569
|
*
|
|
@@ -721,6 +752,56 @@ export declare const PaymentAccountMethodEnum: {
|
|
|
721
752
|
readonly Stripe: "stripe";
|
|
722
753
|
};
|
|
723
754
|
export type PaymentAccountMethodEnum = typeof PaymentAccountMethodEnum[keyof typeof PaymentAccountMethodEnum];
|
|
755
|
+
/**
|
|
756
|
+
* List of payment attempts for this order
|
|
757
|
+
* @export
|
|
758
|
+
* @interface PaymentAttempt
|
|
759
|
+
*/
|
|
760
|
+
export interface PaymentAttempt {
|
|
761
|
+
/**
|
|
762
|
+
*
|
|
763
|
+
* @type {string}
|
|
764
|
+
* @memberof PaymentAttempt
|
|
765
|
+
*/
|
|
766
|
+
'paymentProvider'?: PaymentAttemptPaymentProviderEnum;
|
|
767
|
+
/**
|
|
768
|
+
*
|
|
769
|
+
* @type {string}
|
|
770
|
+
* @memberof PaymentAttempt
|
|
771
|
+
*/
|
|
772
|
+
'status'?: PaymentAttemptStatusEnum;
|
|
773
|
+
/**
|
|
774
|
+
*
|
|
775
|
+
* @type {string}
|
|
776
|
+
* @memberof PaymentAttempt
|
|
777
|
+
*/
|
|
778
|
+
'transactionId'?: string | null;
|
|
779
|
+
/**
|
|
780
|
+
*
|
|
781
|
+
* @type {string}
|
|
782
|
+
* @memberof PaymentAttempt
|
|
783
|
+
*/
|
|
784
|
+
'message'?: string;
|
|
785
|
+
/**
|
|
786
|
+
* ISO 8601 Timestamp
|
|
787
|
+
* @type {string}
|
|
788
|
+
* @memberof PaymentAttempt
|
|
789
|
+
*/
|
|
790
|
+
'createdAt'?: string;
|
|
791
|
+
}
|
|
792
|
+
export declare const PaymentAttemptPaymentProviderEnum: {
|
|
793
|
+
readonly Stripe: "stripe";
|
|
794
|
+
readonly Paypal: "paypal";
|
|
795
|
+
readonly Wallet: "wallet";
|
|
796
|
+
};
|
|
797
|
+
export type PaymentAttemptPaymentProviderEnum = typeof PaymentAttemptPaymentProviderEnum[keyof typeof PaymentAttemptPaymentProviderEnum];
|
|
798
|
+
export declare const PaymentAttemptStatusEnum: {
|
|
799
|
+
readonly Success: "success";
|
|
800
|
+
readonly Failed: "failed";
|
|
801
|
+
readonly Pending: "pending";
|
|
802
|
+
readonly Cancelled: "cancelled";
|
|
803
|
+
};
|
|
804
|
+
export type PaymentAttemptStatusEnum = typeof PaymentAttemptStatusEnum[keyof typeof PaymentAttemptStatusEnum];
|
|
724
805
|
/**
|
|
725
806
|
*
|
|
726
807
|
* @export
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Platform API
|
|
6
6
|
* Manage Your podOS platform
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.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.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.ListCustomersSortByEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAccountMethodEnum = exports.OrderStatus = void 0;
|
|
25
|
+
exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.ListCustomersSortByEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -44,6 +44,17 @@ exports.OrderStatus = {
|
|
|
44
44
|
exports.PaymentAccountMethodEnum = {
|
|
45
45
|
Stripe: 'stripe'
|
|
46
46
|
};
|
|
47
|
+
exports.PaymentAttemptPaymentProviderEnum = {
|
|
48
|
+
Stripe: 'stripe',
|
|
49
|
+
Paypal: 'paypal',
|
|
50
|
+
Wallet: 'wallet'
|
|
51
|
+
};
|
|
52
|
+
exports.PaymentAttemptStatusEnum = {
|
|
53
|
+
Success: 'success',
|
|
54
|
+
Failed: 'failed',
|
|
55
|
+
Pending: 'pending',
|
|
56
|
+
Cancelled: 'cancelled'
|
|
57
|
+
};
|
|
47
58
|
/**
|
|
48
59
|
* CustomersApi - axios parameter creator
|
|
49
60
|
* @export
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Platform API
|
|
3
3
|
* Manage Your podOS platform
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.18.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -119,6 +119,25 @@ export interface ContactInformation {
|
|
|
119
119
|
*/
|
|
120
120
|
'phone'?: string | null;
|
|
121
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @export
|
|
125
|
+
* @interface Coupon
|
|
126
|
+
*/
|
|
127
|
+
export interface Coupon {
|
|
128
|
+
/**
|
|
129
|
+
* Unique object identifier
|
|
130
|
+
* @type {string}
|
|
131
|
+
* @memberof Coupon
|
|
132
|
+
*/
|
|
133
|
+
'id': string;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @type {string}
|
|
137
|
+
* @memberof Coupon
|
|
138
|
+
*/
|
|
139
|
+
'code': string;
|
|
140
|
+
}
|
|
122
141
|
/**
|
|
123
142
|
* The customer that has placed an order on your platform
|
|
124
143
|
* @export
|
|
@@ -509,6 +528,12 @@ export interface Order {
|
|
|
509
528
|
* @memberof Order
|
|
510
529
|
*/
|
|
511
530
|
'discountPrice'?: Price;
|
|
531
|
+
/**
|
|
532
|
+
*
|
|
533
|
+
* @type {Coupon}
|
|
534
|
+
* @memberof Order
|
|
535
|
+
*/
|
|
536
|
+
'coupon'?: Coupon | null;
|
|
512
537
|
/**
|
|
513
538
|
*
|
|
514
539
|
* @type {Price}
|
|
@@ -533,6 +558,12 @@ export interface Order {
|
|
|
533
558
|
* @memberof Order
|
|
534
559
|
*/
|
|
535
560
|
'project': Project;
|
|
561
|
+
/**
|
|
562
|
+
*
|
|
563
|
+
* @type {Array<PaymentAttempt>}
|
|
564
|
+
* @memberof Order
|
|
565
|
+
*/
|
|
566
|
+
'paymentAttempts'?: Array<PaymentAttempt>;
|
|
536
567
|
}
|
|
537
568
|
/**
|
|
538
569
|
*
|
|
@@ -721,6 +752,56 @@ export declare const PaymentAccountMethodEnum: {
|
|
|
721
752
|
readonly Stripe: "stripe";
|
|
722
753
|
};
|
|
723
754
|
export type PaymentAccountMethodEnum = typeof PaymentAccountMethodEnum[keyof typeof PaymentAccountMethodEnum];
|
|
755
|
+
/**
|
|
756
|
+
* List of payment attempts for this order
|
|
757
|
+
* @export
|
|
758
|
+
* @interface PaymentAttempt
|
|
759
|
+
*/
|
|
760
|
+
export interface PaymentAttempt {
|
|
761
|
+
/**
|
|
762
|
+
*
|
|
763
|
+
* @type {string}
|
|
764
|
+
* @memberof PaymentAttempt
|
|
765
|
+
*/
|
|
766
|
+
'paymentProvider'?: PaymentAttemptPaymentProviderEnum;
|
|
767
|
+
/**
|
|
768
|
+
*
|
|
769
|
+
* @type {string}
|
|
770
|
+
* @memberof PaymentAttempt
|
|
771
|
+
*/
|
|
772
|
+
'status'?: PaymentAttemptStatusEnum;
|
|
773
|
+
/**
|
|
774
|
+
*
|
|
775
|
+
* @type {string}
|
|
776
|
+
* @memberof PaymentAttempt
|
|
777
|
+
*/
|
|
778
|
+
'transactionId'?: string | null;
|
|
779
|
+
/**
|
|
780
|
+
*
|
|
781
|
+
* @type {string}
|
|
782
|
+
* @memberof PaymentAttempt
|
|
783
|
+
*/
|
|
784
|
+
'message'?: string;
|
|
785
|
+
/**
|
|
786
|
+
* ISO 8601 Timestamp
|
|
787
|
+
* @type {string}
|
|
788
|
+
* @memberof PaymentAttempt
|
|
789
|
+
*/
|
|
790
|
+
'createdAt'?: string;
|
|
791
|
+
}
|
|
792
|
+
export declare const PaymentAttemptPaymentProviderEnum: {
|
|
793
|
+
readonly Stripe: "stripe";
|
|
794
|
+
readonly Paypal: "paypal";
|
|
795
|
+
readonly Wallet: "wallet";
|
|
796
|
+
};
|
|
797
|
+
export type PaymentAttemptPaymentProviderEnum = typeof PaymentAttemptPaymentProviderEnum[keyof typeof PaymentAttemptPaymentProviderEnum];
|
|
798
|
+
export declare const PaymentAttemptStatusEnum: {
|
|
799
|
+
readonly Success: "success";
|
|
800
|
+
readonly Failed: "failed";
|
|
801
|
+
readonly Pending: "pending";
|
|
802
|
+
readonly Cancelled: "cancelled";
|
|
803
|
+
};
|
|
804
|
+
export type PaymentAttemptStatusEnum = typeof PaymentAttemptStatusEnum[keyof typeof PaymentAttemptStatusEnum];
|
|
724
805
|
/**
|
|
725
806
|
*
|
|
726
807
|
* @export
|
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Platform API
|
|
5
5
|
* Manage Your podOS platform
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.18.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -41,6 +41,17 @@ export const OrderStatus = {
|
|
|
41
41
|
export const PaymentAccountMethodEnum = {
|
|
42
42
|
Stripe: 'stripe'
|
|
43
43
|
};
|
|
44
|
+
export const PaymentAttemptPaymentProviderEnum = {
|
|
45
|
+
Stripe: 'stripe',
|
|
46
|
+
Paypal: 'paypal',
|
|
47
|
+
Wallet: 'wallet'
|
|
48
|
+
};
|
|
49
|
+
export const PaymentAttemptStatusEnum = {
|
|
50
|
+
Success: 'success',
|
|
51
|
+
Failed: 'failed',
|
|
52
|
+
Pending: 'pending',
|
|
53
|
+
Cancelled: 'cancelled'
|
|
54
|
+
};
|
|
44
55
|
/**
|
|
45
56
|
* CustomersApi - axios parameter creator
|
|
46
57
|
* @export
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/Coupon.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Coupon
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | Unique object identifier | [default to undefined]
|
|
9
|
+
**code** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Coupon } from '@teemill/platform';
|
|
15
|
+
|
|
16
|
+
const instance: Coupon = {
|
|
17
|
+
id,
|
|
18
|
+
code,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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
|
@@ -19,10 +19,12 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**taxPrice** | [**Price**](Price.md) | | [optional] [default to undefined]
|
|
20
20
|
**subtotalPrice** | [**Price**](Price.md) | | [optional] [default to undefined]
|
|
21
21
|
**discountPrice** | [**Price**](Price.md) | | [optional] [default to undefined]
|
|
22
|
+
**coupon** | [**Coupon**](Coupon.md) | | [optional] [default to undefined]
|
|
22
23
|
**shippingPrice** | [**Price**](Price.md) | | [optional] [default to undefined]
|
|
23
24
|
**origin** | [**Origin**](Origin.md) | | [optional] [default to undefined]
|
|
24
25
|
**statusHistory** | [**Array<StatusHistoryItem>**](StatusHistoryItem.md) | | [optional] [default to undefined]
|
|
25
26
|
**project** | [**Project**](Project.md) | | [default to undefined]
|
|
27
|
+
**paymentAttempts** | [**Array<PaymentAttempt>**](PaymentAttempt.md) | | [optional] [default to undefined]
|
|
26
28
|
|
|
27
29
|
## Example
|
|
28
30
|
|
|
@@ -44,10 +46,12 @@ const instance: Order = {
|
|
|
44
46
|
taxPrice,
|
|
45
47
|
subtotalPrice,
|
|
46
48
|
discountPrice,
|
|
49
|
+
coupon,
|
|
47
50
|
shippingPrice,
|
|
48
51
|
origin,
|
|
49
52
|
statusHistory,
|
|
50
53
|
project,
|
|
54
|
+
paymentAttempts,
|
|
51
55
|
};
|
|
52
56
|
```
|
|
53
57
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# PaymentAttempt
|
|
2
|
+
|
|
3
|
+
List of payment attempts for this order
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**paymentProvider** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**transactionId** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**createdAt** | **string** | ISO 8601 Timestamp | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { PaymentAttempt } from '@teemill/platform';
|
|
19
|
+
|
|
20
|
+
const instance: PaymentAttempt = {
|
|
21
|
+
paymentProvider,
|
|
22
|
+
status,
|
|
23
|
+
transactionId,
|
|
24
|
+
message,
|
|
25
|
+
createdAt,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[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/index.ts
CHANGED