@forteplatforms/sdk 1.0.125 → 1.0.139
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/dist/generated/apis/ProjectsServerApi.d.ts +113 -1
- package/dist/generated/apis/ProjectsServerApi.js +475 -2
- package/dist/generated/apis/UsersServerApi.d.ts +15 -1
- package/dist/generated/apis/UsersServerApi.js +59 -0
- package/dist/generated/models/CreatePaymentPreviewRequest.d.ts +52 -0
- package/dist/generated/models/CreatePaymentPreviewRequest.js +61 -0
- package/dist/generated/models/CreatePaymentPreviewResponse.d.ts +70 -0
- package/dist/generated/models/CreatePaymentPreviewResponse.js +71 -0
- package/dist/generated/models/CreatePaymentRequest.d.ts +66 -0
- package/dist/generated/models/CreatePaymentRequest.js +65 -0
- package/dist/generated/models/CreatePaymentResponse.d.ts +51 -0
- package/dist/generated/models/CreatePaymentResponse.js +64 -0
- package/dist/generated/models/ForteApiException.d.ts +15 -0
- package/dist/generated/models/ForteApiException.js +16 -1
- package/dist/generated/models/NotificationTemplatesConfig.d.ts +80 -0
- package/dist/generated/models/NotificationTemplatesConfig.js +65 -0
- package/dist/generated/models/NotificationTemplatesResponse.d.ts +39 -0
- package/dist/generated/models/NotificationTemplatesResponse.js +52 -0
- package/dist/generated/models/PaginatedResponsePaymentObject.d.ts +45 -0
- package/dist/generated/models/PaginatedResponsePaymentObject.js +58 -0
- package/dist/generated/models/PaymentAddress.d.ts +62 -0
- package/dist/generated/models/PaymentAddress.js +67 -0
- package/dist/generated/models/PaymentLineItem.d.ts +56 -0
- package/dist/generated/models/PaymentLineItem.js +63 -0
- package/dist/generated/models/PaymentObject.d.ts +163 -0
- package/dist/generated/models/PaymentObject.js +124 -0
- package/dist/generated/models/PaymentTriggerConfig.d.ts +76 -0
- package/dist/generated/models/PaymentTriggerConfig.js +81 -0
- package/dist/generated/models/ProjectObject.d.ts +20 -0
- package/dist/generated/models/ProjectObject.js +8 -0
- package/dist/generated/models/StateHistory.d.ts +56 -0
- package/dist/generated/models/StateHistory.js +69 -0
- package/dist/generated/models/UpdateNotificationTemplatesRequest.d.ts +80 -0
- package/dist/generated/models/UpdateNotificationTemplatesRequest.js +65 -0
- package/dist/generated/models/UpdateProjectRequest.d.ts +6 -0
- package/dist/generated/models/UpdateProjectRequest.js +2 -0
- package/dist/generated/models/UpsertPaymentTriggerRequest.d.ts +64 -0
- package/dist/generated/models/UpsertPaymentTriggerRequest.js +73 -0
- package/dist/generated/models/UserActionLogObject.d.ts +2 -0
- package/dist/generated/models/UserActionLogObject.js +3 -1
- package/dist/generated/models/UserObject.d.ts +12 -0
- package/dist/generated/models/UserObject.js +4 -0
- package/dist/generated/models/index.d.ts +14 -0
- package/dist/generated/models/index.js +14 -0
- package/package.json +1 -1
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfNotificationTemplatesConfig = instanceOfNotificationTemplatesConfig;
|
|
17
|
+
exports.NotificationTemplatesConfigFromJSON = NotificationTemplatesConfigFromJSON;
|
|
18
|
+
exports.NotificationTemplatesConfigFromJSONTyped = NotificationTemplatesConfigFromJSONTyped;
|
|
19
|
+
exports.NotificationTemplatesConfigToJSON = NotificationTemplatesConfigToJSON;
|
|
20
|
+
exports.NotificationTemplatesConfigToJSONTyped = NotificationTemplatesConfigToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the NotificationTemplatesConfig interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfNotificationTemplatesConfig(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function NotificationTemplatesConfigFromJSON(json) {
|
|
28
|
+
return NotificationTemplatesConfigFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function NotificationTemplatesConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'emailVerificationSubject': json['emailVerificationSubject'] == null ? undefined : json['emailVerificationSubject'],
|
|
36
|
+
'emailVerificationHtmlBody': json['emailVerificationHtmlBody'] == null ? undefined : json['emailVerificationHtmlBody'],
|
|
37
|
+
'smsVerificationBody': json['smsVerificationBody'] == null ? undefined : json['smsVerificationBody'],
|
|
38
|
+
'welcomeOnGoogleEnabled': json['welcomeOnGoogleEnabled'] == null ? undefined : json['welcomeOnGoogleEnabled'],
|
|
39
|
+
'welcomeOnEmailEnabled': json['welcomeOnEmailEnabled'] == null ? undefined : json['welcomeOnEmailEnabled'],
|
|
40
|
+
'welcomeOnSmsEnabled': json['welcomeOnSmsEnabled'] == null ? undefined : json['welcomeOnSmsEnabled'],
|
|
41
|
+
'welcomeEmailSubject': json['welcomeEmailSubject'] == null ? undefined : json['welcomeEmailSubject'],
|
|
42
|
+
'welcomeEmailHtmlBody': json['welcomeEmailHtmlBody'] == null ? undefined : json['welcomeEmailHtmlBody'],
|
|
43
|
+
'welcomeSmsBody': json['welcomeSmsBody'] == null ? undefined : json['welcomeSmsBody'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function NotificationTemplatesConfigToJSON(json) {
|
|
47
|
+
return NotificationTemplatesConfigToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function NotificationTemplatesConfigToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'emailVerificationSubject': value['emailVerificationSubject'],
|
|
56
|
+
'emailVerificationHtmlBody': value['emailVerificationHtmlBody'],
|
|
57
|
+
'smsVerificationBody': value['smsVerificationBody'],
|
|
58
|
+
'welcomeOnGoogleEnabled': value['welcomeOnGoogleEnabled'],
|
|
59
|
+
'welcomeOnEmailEnabled': value['welcomeOnEmailEnabled'],
|
|
60
|
+
'welcomeOnSmsEnabled': value['welcomeOnSmsEnabled'],
|
|
61
|
+
'welcomeEmailSubject': value['welcomeEmailSubject'],
|
|
62
|
+
'welcomeEmailHtmlBody': value['welcomeEmailHtmlBody'],
|
|
63
|
+
'welcomeSmsBody': value['welcomeSmsBody'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { NotificationTemplatesConfig } from './NotificationTemplatesConfig';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface NotificationTemplatesResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface NotificationTemplatesResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {NotificationTemplatesConfig}
|
|
22
|
+
* @memberof NotificationTemplatesResponse
|
|
23
|
+
*/
|
|
24
|
+
current?: NotificationTemplatesConfig;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {NotificationTemplatesConfig}
|
|
28
|
+
* @memberof NotificationTemplatesResponse
|
|
29
|
+
*/
|
|
30
|
+
defaults?: NotificationTemplatesConfig;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the NotificationTemplatesResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfNotificationTemplatesResponse(value: object): value is NotificationTemplatesResponse;
|
|
36
|
+
export declare function NotificationTemplatesResponseFromJSON(json: any): NotificationTemplatesResponse;
|
|
37
|
+
export declare function NotificationTemplatesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationTemplatesResponse;
|
|
38
|
+
export declare function NotificationTemplatesResponseToJSON(json: any): NotificationTemplatesResponse;
|
|
39
|
+
export declare function NotificationTemplatesResponseToJSONTyped(value?: NotificationTemplatesResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfNotificationTemplatesResponse = instanceOfNotificationTemplatesResponse;
|
|
17
|
+
exports.NotificationTemplatesResponseFromJSON = NotificationTemplatesResponseFromJSON;
|
|
18
|
+
exports.NotificationTemplatesResponseFromJSONTyped = NotificationTemplatesResponseFromJSONTyped;
|
|
19
|
+
exports.NotificationTemplatesResponseToJSON = NotificationTemplatesResponseToJSON;
|
|
20
|
+
exports.NotificationTemplatesResponseToJSONTyped = NotificationTemplatesResponseToJSONTyped;
|
|
21
|
+
var NotificationTemplatesConfig_1 = require("./NotificationTemplatesConfig");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the NotificationTemplatesResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfNotificationTemplatesResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function NotificationTemplatesResponseFromJSON(json) {
|
|
29
|
+
return NotificationTemplatesResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function NotificationTemplatesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'current': json['current'] == null ? undefined : (0, NotificationTemplatesConfig_1.NotificationTemplatesConfigFromJSON)(json['current']),
|
|
37
|
+
'defaults': json['defaults'] == null ? undefined : (0, NotificationTemplatesConfig_1.NotificationTemplatesConfigFromJSON)(json['defaults']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function NotificationTemplatesResponseToJSON(json) {
|
|
41
|
+
return NotificationTemplatesResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function NotificationTemplatesResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'current': (0, NotificationTemplatesConfig_1.NotificationTemplatesConfigToJSON)(value['current']),
|
|
50
|
+
'defaults': (0, NotificationTemplatesConfig_1.NotificationTemplatesConfigToJSON)(value['defaults']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PaymentObject } from './PaymentObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedResponsePaymentObject
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedResponsePaymentObject {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<PaymentObject>}
|
|
22
|
+
* @memberof PaginatedResponsePaymentObject
|
|
23
|
+
*/
|
|
24
|
+
items: Array<PaymentObject>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof PaginatedResponsePaymentObject
|
|
29
|
+
*/
|
|
30
|
+
hasNextPage: boolean;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PaginatedResponsePaymentObject
|
|
35
|
+
*/
|
|
36
|
+
nextPageToken?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the PaginatedResponsePaymentObject interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfPaginatedResponsePaymentObject(value: object): value is PaginatedResponsePaymentObject;
|
|
42
|
+
export declare function PaginatedResponsePaymentObjectFromJSON(json: any): PaginatedResponsePaymentObject;
|
|
43
|
+
export declare function PaginatedResponsePaymentObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponsePaymentObject;
|
|
44
|
+
export declare function PaginatedResponsePaymentObjectToJSON(json: any): PaginatedResponsePaymentObject;
|
|
45
|
+
export declare function PaginatedResponsePaymentObjectToJSONTyped(value?: PaginatedResponsePaymentObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPaginatedResponsePaymentObject = instanceOfPaginatedResponsePaymentObject;
|
|
17
|
+
exports.PaginatedResponsePaymentObjectFromJSON = PaginatedResponsePaymentObjectFromJSON;
|
|
18
|
+
exports.PaginatedResponsePaymentObjectFromJSONTyped = PaginatedResponsePaymentObjectFromJSONTyped;
|
|
19
|
+
exports.PaginatedResponsePaymentObjectToJSON = PaginatedResponsePaymentObjectToJSON;
|
|
20
|
+
exports.PaginatedResponsePaymentObjectToJSONTyped = PaginatedResponsePaymentObjectToJSONTyped;
|
|
21
|
+
var PaymentObject_1 = require("./PaymentObject");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PaginatedResponsePaymentObject interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPaginatedResponsePaymentObject(value) {
|
|
26
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('hasNextPage' in value) || value['hasNextPage'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function PaginatedResponsePaymentObjectFromJSON(json) {
|
|
33
|
+
return PaginatedResponsePaymentObjectFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function PaginatedResponsePaymentObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'items': (json['items'].map(PaymentObject_1.PaymentObjectFromJSON)),
|
|
41
|
+
'hasNextPage': json['hasNextPage'],
|
|
42
|
+
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedResponsePaymentObjectToJSON(json) {
|
|
46
|
+
return PaginatedResponsePaymentObjectToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedResponsePaymentObjectToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'items': (value['items'].map(PaymentObject_1.PaymentObjectToJSON)),
|
|
55
|
+
'hasNextPage': value['hasNextPage'],
|
|
56
|
+
'nextPageToken': value['nextPageToken'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PaymentAddress
|
|
16
|
+
*/
|
|
17
|
+
export interface PaymentAddress {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PaymentAddress
|
|
22
|
+
*/
|
|
23
|
+
line1: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PaymentAddress
|
|
28
|
+
*/
|
|
29
|
+
line2?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PaymentAddress
|
|
34
|
+
*/
|
|
35
|
+
city: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PaymentAddress
|
|
40
|
+
*/
|
|
41
|
+
state?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PaymentAddress
|
|
46
|
+
*/
|
|
47
|
+
postalCode: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof PaymentAddress
|
|
52
|
+
*/
|
|
53
|
+
country: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the PaymentAddress interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfPaymentAddress(value: object): value is PaymentAddress;
|
|
59
|
+
export declare function PaymentAddressFromJSON(json: any): PaymentAddress;
|
|
60
|
+
export declare function PaymentAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentAddress;
|
|
61
|
+
export declare function PaymentAddressToJSON(json: any): PaymentAddress;
|
|
62
|
+
export declare function PaymentAddressToJSONTyped(value?: PaymentAddress | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPaymentAddress = instanceOfPaymentAddress;
|
|
17
|
+
exports.PaymentAddressFromJSON = PaymentAddressFromJSON;
|
|
18
|
+
exports.PaymentAddressFromJSONTyped = PaymentAddressFromJSONTyped;
|
|
19
|
+
exports.PaymentAddressToJSON = PaymentAddressToJSON;
|
|
20
|
+
exports.PaymentAddressToJSONTyped = PaymentAddressToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PaymentAddress interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPaymentAddress(value) {
|
|
25
|
+
if (!('line1' in value) || value['line1'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('city' in value) || value['city'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('postalCode' in value) || value['postalCode'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('country' in value) || value['country'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function PaymentAddressFromJSON(json) {
|
|
36
|
+
return PaymentAddressFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function PaymentAddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'line1': json['line1'],
|
|
44
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
45
|
+
'city': json['city'],
|
|
46
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
47
|
+
'postalCode': json['postalCode'],
|
|
48
|
+
'country': json['country'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function PaymentAddressToJSON(json) {
|
|
52
|
+
return PaymentAddressToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function PaymentAddressToJSONTyped(value, ignoreDiscriminator) {
|
|
55
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'line1': value['line1'],
|
|
61
|
+
'line2': value['line2'],
|
|
62
|
+
'city': value['city'],
|
|
63
|
+
'state': value['state'],
|
|
64
|
+
'postalCode': value['postalCode'],
|
|
65
|
+
'country': value['country'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PaymentLineItem
|
|
16
|
+
*/
|
|
17
|
+
export interface PaymentLineItem {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PaymentLineItem
|
|
22
|
+
*/
|
|
23
|
+
description: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PaymentLineItem
|
|
28
|
+
*/
|
|
29
|
+
unitAmountCents: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PaymentLineItem
|
|
34
|
+
*/
|
|
35
|
+
quantity: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PaymentLineItem
|
|
40
|
+
*/
|
|
41
|
+
taxCode?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PaymentLineItem
|
|
46
|
+
*/
|
|
47
|
+
taxAmountCents?: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the PaymentLineItem interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfPaymentLineItem(value: object): value is PaymentLineItem;
|
|
53
|
+
export declare function PaymentLineItemFromJSON(json: any): PaymentLineItem;
|
|
54
|
+
export declare function PaymentLineItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentLineItem;
|
|
55
|
+
export declare function PaymentLineItemToJSON(json: any): PaymentLineItem;
|
|
56
|
+
export declare function PaymentLineItemToJSONTyped(value?: PaymentLineItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPaymentLineItem = instanceOfPaymentLineItem;
|
|
17
|
+
exports.PaymentLineItemFromJSON = PaymentLineItemFromJSON;
|
|
18
|
+
exports.PaymentLineItemFromJSONTyped = PaymentLineItemFromJSONTyped;
|
|
19
|
+
exports.PaymentLineItemToJSON = PaymentLineItemToJSON;
|
|
20
|
+
exports.PaymentLineItemToJSONTyped = PaymentLineItemToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PaymentLineItem interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPaymentLineItem(value) {
|
|
25
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('unitAmountCents' in value) || value['unitAmountCents'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaymentLineItemFromJSON(json) {
|
|
34
|
+
return PaymentLineItemFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaymentLineItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'description': json['description'],
|
|
42
|
+
'unitAmountCents': json['unitAmountCents'],
|
|
43
|
+
'quantity': json['quantity'],
|
|
44
|
+
'taxCode': json['taxCode'] == null ? undefined : json['taxCode'],
|
|
45
|
+
'taxAmountCents': json['taxAmountCents'] == null ? undefined : json['taxAmountCents'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function PaymentLineItemToJSON(json) {
|
|
49
|
+
return PaymentLineItemToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function PaymentLineItemToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'description': value['description'],
|
|
58
|
+
'unitAmountCents': value['unitAmountCents'],
|
|
59
|
+
'quantity': value['quantity'],
|
|
60
|
+
'taxCode': value['taxCode'],
|
|
61
|
+
'taxAmountCents': value['taxAmountCents'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PaymentAddress } from './PaymentAddress';
|
|
13
|
+
import type { PaymentLineItem } from './PaymentLineItem';
|
|
14
|
+
import type { StateHistory } from './StateHistory';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface PaymentObject
|
|
19
|
+
*/
|
|
20
|
+
export interface PaymentObject {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof PaymentObject
|
|
25
|
+
*/
|
|
26
|
+
id?: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof PaymentObject
|
|
31
|
+
*/
|
|
32
|
+
projectId: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof PaymentObject
|
|
37
|
+
*/
|
|
38
|
+
userId: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof PaymentObject
|
|
43
|
+
*/
|
|
44
|
+
state: PaymentObjectStateType;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof PaymentObject
|
|
49
|
+
*/
|
|
50
|
+
subtotalCents: number;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof PaymentObject
|
|
55
|
+
*/
|
|
56
|
+
taxCents?: number;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof PaymentObject
|
|
61
|
+
*/
|
|
62
|
+
amountCents: number;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof PaymentObject
|
|
67
|
+
*/
|
|
68
|
+
currency: string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof PaymentObject
|
|
73
|
+
*/
|
|
74
|
+
description?: string;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {Array<PaymentLineItem>}
|
|
78
|
+
* @memberof PaymentObject
|
|
79
|
+
*/
|
|
80
|
+
lineItems: Array<PaymentLineItem>;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {{ [key: string]: string; }}
|
|
84
|
+
* @memberof PaymentObject
|
|
85
|
+
*/
|
|
86
|
+
metadata: {
|
|
87
|
+
[key: string]: string;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {PaymentAddress}
|
|
92
|
+
* @memberof PaymentObject
|
|
93
|
+
*/
|
|
94
|
+
customerAddress?: PaymentAddress;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {PaymentAddress}
|
|
98
|
+
* @memberof PaymentObject
|
|
99
|
+
*/
|
|
100
|
+
shippingAddress?: PaymentAddress;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof PaymentObject
|
|
105
|
+
*/
|
|
106
|
+
stripePaymentIntentId: string;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof PaymentObject
|
|
111
|
+
*/
|
|
112
|
+
stripeStatus?: string;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof PaymentObject
|
|
117
|
+
*/
|
|
118
|
+
stripeTaxCalculationId?: string;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof PaymentObject
|
|
123
|
+
*/
|
|
124
|
+
stripeTaxTransactionId?: string;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {Array<StateHistory>}
|
|
128
|
+
* @memberof PaymentObject
|
|
129
|
+
*/
|
|
130
|
+
stateHistory: Array<StateHistory>;
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @type {Date}
|
|
134
|
+
* @memberof PaymentObject
|
|
135
|
+
*/
|
|
136
|
+
createdAt: Date;
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @type {Date}
|
|
140
|
+
* @memberof PaymentObject
|
|
141
|
+
*/
|
|
142
|
+
updatedAt?: Date;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* @export
|
|
146
|
+
*/
|
|
147
|
+
export declare const PaymentObjectStateType: {
|
|
148
|
+
readonly DRAFT: "DRAFT";
|
|
149
|
+
readonly PROCESSING: "PROCESSING";
|
|
150
|
+
readonly COMPLETED: "COMPLETED";
|
|
151
|
+
readonly CANCELLED: "CANCELLED";
|
|
152
|
+
readonly FAILED: "FAILED";
|
|
153
|
+
readonly REFUNDED: "REFUNDED";
|
|
154
|
+
};
|
|
155
|
+
export type PaymentObjectStateType = typeof PaymentObjectStateType[keyof typeof PaymentObjectStateType];
|
|
156
|
+
/**
|
|
157
|
+
* Check if a given object implements the PaymentObject interface.
|
|
158
|
+
*/
|
|
159
|
+
export declare function instanceOfPaymentObject(value: object): value is PaymentObject;
|
|
160
|
+
export declare function PaymentObjectFromJSON(json: any): PaymentObject;
|
|
161
|
+
export declare function PaymentObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentObject;
|
|
162
|
+
export declare function PaymentObjectToJSON(json: any): PaymentObject;
|
|
163
|
+
export declare function PaymentObjectToJSONTyped(value?: PaymentObject | null, ignoreDiscriminator?: boolean): any;
|