@forteplatforms/sdk 1.0.116 → 1.0.131
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 +69 -1
- package/dist/generated/apis/ProjectsServerApi.js +310 -1
- package/dist/generated/models/AdminOverrideContactMethodRequest.d.ts +44 -0
- package/dist/generated/models/AdminOverrideContactMethodRequest.js +53 -0
- package/dist/generated/models/CreateForteServiceRequest.d.ts +6 -0
- package/dist/generated/models/CreateForteServiceRequest.js +2 -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 +22 -2
- package/dist/generated/models/ForteApiException.js +23 -3
- 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/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 +162 -0
- package/dist/generated/models/PaymentObject.js +123 -0
- package/dist/generated/models/ProjectObject.d.ts +19 -0
- package/dist/generated/models/ProjectObject.js +7 -0
- package/dist/generated/models/ServiceObject.d.ts +1 -1
- package/dist/generated/models/ServiceObject.js +1 -3
- package/dist/generated/models/StateHistory.d.ts +55 -0
- package/dist/generated/models/StateHistory.js +68 -0
- package/dist/generated/models/UpdateForteServiceRequest.d.ts +6 -0
- package/dist/generated/models/UpdateForteServiceRequest.js +2 -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/UserActionLogObject.d.ts +4 -0
- package/dist/generated/models/UserActionLogObject.js +5 -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 +12 -0
- package/dist/generated/models/index.js +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,80 @@
|
|
|
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 NotificationTemplatesConfig
|
|
16
|
+
*/
|
|
17
|
+
export interface NotificationTemplatesConfig {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof NotificationTemplatesConfig
|
|
22
|
+
*/
|
|
23
|
+
emailVerificationSubject?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof NotificationTemplatesConfig
|
|
28
|
+
*/
|
|
29
|
+
emailVerificationHtmlBody?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof NotificationTemplatesConfig
|
|
34
|
+
*/
|
|
35
|
+
smsVerificationBody?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof NotificationTemplatesConfig
|
|
40
|
+
*/
|
|
41
|
+
welcomeOnGoogleEnabled?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof NotificationTemplatesConfig
|
|
46
|
+
*/
|
|
47
|
+
welcomeOnEmailEnabled?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof NotificationTemplatesConfig
|
|
52
|
+
*/
|
|
53
|
+
welcomeOnSmsEnabled?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof NotificationTemplatesConfig
|
|
58
|
+
*/
|
|
59
|
+
welcomeEmailSubject?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof NotificationTemplatesConfig
|
|
64
|
+
*/
|
|
65
|
+
welcomeEmailHtmlBody?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof NotificationTemplatesConfig
|
|
70
|
+
*/
|
|
71
|
+
welcomeSmsBody?: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the NotificationTemplatesConfig interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfNotificationTemplatesConfig(value: object): value is NotificationTemplatesConfig;
|
|
77
|
+
export declare function NotificationTemplatesConfigFromJSON(json: any): NotificationTemplatesConfig;
|
|
78
|
+
export declare function NotificationTemplatesConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationTemplatesConfig;
|
|
79
|
+
export declare function NotificationTemplatesConfigToJSON(json: any): NotificationTemplatesConfig;
|
|
80
|
+
export declare function NotificationTemplatesConfigToJSONTyped(value?: NotificationTemplatesConfig | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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,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,162 @@
|
|
|
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
|
+
};
|
|
154
|
+
export type PaymentObjectStateType = typeof PaymentObjectStateType[keyof typeof PaymentObjectStateType];
|
|
155
|
+
/**
|
|
156
|
+
* Check if a given object implements the PaymentObject interface.
|
|
157
|
+
*/
|
|
158
|
+
export declare function instanceOfPaymentObject(value: object): value is PaymentObject;
|
|
159
|
+
export declare function PaymentObjectFromJSON(json: any): PaymentObject;
|
|
160
|
+
export declare function PaymentObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentObject;
|
|
161
|
+
export declare function PaymentObjectToJSON(json: any): PaymentObject;
|
|
162
|
+
export declare function PaymentObjectToJSONTyped(value?: PaymentObject | null, ignoreDiscriminator?: boolean): any;
|