@teemill/platform 0.16.0 → 0.17.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 +61 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +57 -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 +57 -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/Order.md +2 -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.17.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.17.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -96,6 +96,7 @@ Class | Method | HTTP request | Description
|
|
|
96
96
|
- [OrdersResponse](docs/OrdersResponse.md)
|
|
97
97
|
- [Origin](docs/Origin.md)
|
|
98
98
|
- [PaymentAccount](docs/PaymentAccount.md)
|
|
99
|
+
- [PaymentAttempt](docs/PaymentAttempt.md)
|
|
99
100
|
- [Platform](docs/Platform.md)
|
|
100
101
|
- [PlatformLogo](docs/PlatformLogo.md)
|
|
101
102
|
- [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.17.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -545,6 +545,12 @@ export interface Order {
|
|
|
545
545
|
* @memberof Order
|
|
546
546
|
*/
|
|
547
547
|
'project': Project;
|
|
548
|
+
/**
|
|
549
|
+
*
|
|
550
|
+
* @type {Array<PaymentAttempt>}
|
|
551
|
+
* @memberof Order
|
|
552
|
+
*/
|
|
553
|
+
'paymentAttempts'?: Array<PaymentAttempt>;
|
|
548
554
|
}
|
|
549
555
|
|
|
550
556
|
|
|
@@ -740,6 +746,60 @@ export const PaymentAccountMethodEnum = {
|
|
|
740
746
|
|
|
741
747
|
export type PaymentAccountMethodEnum = typeof PaymentAccountMethodEnum[keyof typeof PaymentAccountMethodEnum];
|
|
742
748
|
|
|
749
|
+
/**
|
|
750
|
+
* List of payment attempts for this order
|
|
751
|
+
* @export
|
|
752
|
+
* @interface PaymentAttempt
|
|
753
|
+
*/
|
|
754
|
+
export interface PaymentAttempt {
|
|
755
|
+
/**
|
|
756
|
+
*
|
|
757
|
+
* @type {string}
|
|
758
|
+
* @memberof PaymentAttempt
|
|
759
|
+
*/
|
|
760
|
+
'paymentProvider'?: PaymentAttemptPaymentProviderEnum;
|
|
761
|
+
/**
|
|
762
|
+
*
|
|
763
|
+
* @type {string}
|
|
764
|
+
* @memberof PaymentAttempt
|
|
765
|
+
*/
|
|
766
|
+
'status'?: PaymentAttemptStatusEnum;
|
|
767
|
+
/**
|
|
768
|
+
*
|
|
769
|
+
* @type {string}
|
|
770
|
+
* @memberof PaymentAttempt
|
|
771
|
+
*/
|
|
772
|
+
'transactionId'?: string | null;
|
|
773
|
+
/**
|
|
774
|
+
*
|
|
775
|
+
* @type {string}
|
|
776
|
+
* @memberof PaymentAttempt
|
|
777
|
+
*/
|
|
778
|
+
'message'?: string;
|
|
779
|
+
/**
|
|
780
|
+
* ISO 8601 Timestamp
|
|
781
|
+
* @type {string}
|
|
782
|
+
* @memberof PaymentAttempt
|
|
783
|
+
*/
|
|
784
|
+
'createdAt'?: string;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
export const PaymentAttemptPaymentProviderEnum = {
|
|
788
|
+
Stripe: 'stripe',
|
|
789
|
+
Paypal: 'paypal',
|
|
790
|
+
Wallet: 'wallet'
|
|
791
|
+
} as const;
|
|
792
|
+
|
|
793
|
+
export type PaymentAttemptPaymentProviderEnum = typeof PaymentAttemptPaymentProviderEnum[keyof typeof PaymentAttemptPaymentProviderEnum];
|
|
794
|
+
export const PaymentAttemptStatusEnum = {
|
|
795
|
+
Success: 'success',
|
|
796
|
+
Failed: 'failed',
|
|
797
|
+
Pending: 'pending',
|
|
798
|
+
Cancelled: 'cancelled'
|
|
799
|
+
} as const;
|
|
800
|
+
|
|
801
|
+
export type PaymentAttemptStatusEnum = typeof PaymentAttemptStatusEnum[keyof typeof PaymentAttemptStatusEnum];
|
|
802
|
+
|
|
743
803
|
/**
|
|
744
804
|
*
|
|
745
805
|
* @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.17.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -533,6 +533,12 @@ export interface Order {
|
|
|
533
533
|
* @memberof Order
|
|
534
534
|
*/
|
|
535
535
|
'project': Project;
|
|
536
|
+
/**
|
|
537
|
+
*
|
|
538
|
+
* @type {Array<PaymentAttempt>}
|
|
539
|
+
* @memberof Order
|
|
540
|
+
*/
|
|
541
|
+
'paymentAttempts'?: Array<PaymentAttempt>;
|
|
536
542
|
}
|
|
537
543
|
/**
|
|
538
544
|
*
|
|
@@ -721,6 +727,56 @@ export declare const PaymentAccountMethodEnum: {
|
|
|
721
727
|
readonly Stripe: "stripe";
|
|
722
728
|
};
|
|
723
729
|
export type PaymentAccountMethodEnum = typeof PaymentAccountMethodEnum[keyof typeof PaymentAccountMethodEnum];
|
|
730
|
+
/**
|
|
731
|
+
* List of payment attempts for this order
|
|
732
|
+
* @export
|
|
733
|
+
* @interface PaymentAttempt
|
|
734
|
+
*/
|
|
735
|
+
export interface PaymentAttempt {
|
|
736
|
+
/**
|
|
737
|
+
*
|
|
738
|
+
* @type {string}
|
|
739
|
+
* @memberof PaymentAttempt
|
|
740
|
+
*/
|
|
741
|
+
'paymentProvider'?: PaymentAttemptPaymentProviderEnum;
|
|
742
|
+
/**
|
|
743
|
+
*
|
|
744
|
+
* @type {string}
|
|
745
|
+
* @memberof PaymentAttempt
|
|
746
|
+
*/
|
|
747
|
+
'status'?: PaymentAttemptStatusEnum;
|
|
748
|
+
/**
|
|
749
|
+
*
|
|
750
|
+
* @type {string}
|
|
751
|
+
* @memberof PaymentAttempt
|
|
752
|
+
*/
|
|
753
|
+
'transactionId'?: string | null;
|
|
754
|
+
/**
|
|
755
|
+
*
|
|
756
|
+
* @type {string}
|
|
757
|
+
* @memberof PaymentAttempt
|
|
758
|
+
*/
|
|
759
|
+
'message'?: string;
|
|
760
|
+
/**
|
|
761
|
+
* ISO 8601 Timestamp
|
|
762
|
+
* @type {string}
|
|
763
|
+
* @memberof PaymentAttempt
|
|
764
|
+
*/
|
|
765
|
+
'createdAt'?: string;
|
|
766
|
+
}
|
|
767
|
+
export declare const PaymentAttemptPaymentProviderEnum: {
|
|
768
|
+
readonly Stripe: "stripe";
|
|
769
|
+
readonly Paypal: "paypal";
|
|
770
|
+
readonly Wallet: "wallet";
|
|
771
|
+
};
|
|
772
|
+
export type PaymentAttemptPaymentProviderEnum = typeof PaymentAttemptPaymentProviderEnum[keyof typeof PaymentAttemptPaymentProviderEnum];
|
|
773
|
+
export declare const PaymentAttemptStatusEnum: {
|
|
774
|
+
readonly Success: "success";
|
|
775
|
+
readonly Failed: "failed";
|
|
776
|
+
readonly Pending: "pending";
|
|
777
|
+
readonly Cancelled: "cancelled";
|
|
778
|
+
};
|
|
779
|
+
export type PaymentAttemptStatusEnum = typeof PaymentAttemptStatusEnum[keyof typeof PaymentAttemptStatusEnum];
|
|
724
780
|
/**
|
|
725
781
|
*
|
|
726
782
|
* @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.17.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.17.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -533,6 +533,12 @@ export interface Order {
|
|
|
533
533
|
* @memberof Order
|
|
534
534
|
*/
|
|
535
535
|
'project': Project;
|
|
536
|
+
/**
|
|
537
|
+
*
|
|
538
|
+
* @type {Array<PaymentAttempt>}
|
|
539
|
+
* @memberof Order
|
|
540
|
+
*/
|
|
541
|
+
'paymentAttempts'?: Array<PaymentAttempt>;
|
|
536
542
|
}
|
|
537
543
|
/**
|
|
538
544
|
*
|
|
@@ -721,6 +727,56 @@ export declare const PaymentAccountMethodEnum: {
|
|
|
721
727
|
readonly Stripe: "stripe";
|
|
722
728
|
};
|
|
723
729
|
export type PaymentAccountMethodEnum = typeof PaymentAccountMethodEnum[keyof typeof PaymentAccountMethodEnum];
|
|
730
|
+
/**
|
|
731
|
+
* List of payment attempts for this order
|
|
732
|
+
* @export
|
|
733
|
+
* @interface PaymentAttempt
|
|
734
|
+
*/
|
|
735
|
+
export interface PaymentAttempt {
|
|
736
|
+
/**
|
|
737
|
+
*
|
|
738
|
+
* @type {string}
|
|
739
|
+
* @memberof PaymentAttempt
|
|
740
|
+
*/
|
|
741
|
+
'paymentProvider'?: PaymentAttemptPaymentProviderEnum;
|
|
742
|
+
/**
|
|
743
|
+
*
|
|
744
|
+
* @type {string}
|
|
745
|
+
* @memberof PaymentAttempt
|
|
746
|
+
*/
|
|
747
|
+
'status'?: PaymentAttemptStatusEnum;
|
|
748
|
+
/**
|
|
749
|
+
*
|
|
750
|
+
* @type {string}
|
|
751
|
+
* @memberof PaymentAttempt
|
|
752
|
+
*/
|
|
753
|
+
'transactionId'?: string | null;
|
|
754
|
+
/**
|
|
755
|
+
*
|
|
756
|
+
* @type {string}
|
|
757
|
+
* @memberof PaymentAttempt
|
|
758
|
+
*/
|
|
759
|
+
'message'?: string;
|
|
760
|
+
/**
|
|
761
|
+
* ISO 8601 Timestamp
|
|
762
|
+
* @type {string}
|
|
763
|
+
* @memberof PaymentAttempt
|
|
764
|
+
*/
|
|
765
|
+
'createdAt'?: string;
|
|
766
|
+
}
|
|
767
|
+
export declare const PaymentAttemptPaymentProviderEnum: {
|
|
768
|
+
readonly Stripe: "stripe";
|
|
769
|
+
readonly Paypal: "paypal";
|
|
770
|
+
readonly Wallet: "wallet";
|
|
771
|
+
};
|
|
772
|
+
export type PaymentAttemptPaymentProviderEnum = typeof PaymentAttemptPaymentProviderEnum[keyof typeof PaymentAttemptPaymentProviderEnum];
|
|
773
|
+
export declare const PaymentAttemptStatusEnum: {
|
|
774
|
+
readonly Success: "success";
|
|
775
|
+
readonly Failed: "failed";
|
|
776
|
+
readonly Pending: "pending";
|
|
777
|
+
readonly Cancelled: "cancelled";
|
|
778
|
+
};
|
|
779
|
+
export type PaymentAttemptStatusEnum = typeof PaymentAttemptStatusEnum[keyof typeof PaymentAttemptStatusEnum];
|
|
724
780
|
/**
|
|
725
781
|
*
|
|
726
782
|
* @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.17.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/Order.md
CHANGED
|
@@ -23,6 +23,7 @@ Name | Type | Description | Notes
|
|
|
23
23
|
**origin** | [**Origin**](Origin.md) | | [optional] [default to undefined]
|
|
24
24
|
**statusHistory** | [**Array<StatusHistoryItem>**](StatusHistoryItem.md) | | [optional] [default to undefined]
|
|
25
25
|
**project** | [**Project**](Project.md) | | [default to undefined]
|
|
26
|
+
**paymentAttempts** | [**Array<PaymentAttempt>**](PaymentAttempt.md) | | [optional] [default to undefined]
|
|
26
27
|
|
|
27
28
|
## Example
|
|
28
29
|
|
|
@@ -48,6 +49,7 @@ const instance: Order = {
|
|
|
48
49
|
origin,
|
|
49
50
|
statusHistory,
|
|
50
51
|
project,
|
|
52
|
+
paymentAttempts,
|
|
51
53
|
};
|
|
52
54
|
```
|
|
53
55
|
|
|
@@ -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