@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,52 @@
|
|
|
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
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CreatePaymentPreviewRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface CreatePaymentPreviewRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CreatePaymentPreviewRequest
|
|
24
|
+
*/
|
|
25
|
+
currency: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<PaymentLineItem>}
|
|
29
|
+
* @memberof CreatePaymentPreviewRequest
|
|
30
|
+
*/
|
|
31
|
+
lineItems: Array<PaymentLineItem>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {PaymentAddress}
|
|
35
|
+
* @memberof CreatePaymentPreviewRequest
|
|
36
|
+
*/
|
|
37
|
+
customerAddress?: PaymentAddress;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {PaymentAddress}
|
|
41
|
+
* @memberof CreatePaymentPreviewRequest
|
|
42
|
+
*/
|
|
43
|
+
shippingAddress?: PaymentAddress;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the CreatePaymentPreviewRequest interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfCreatePaymentPreviewRequest(value: object): value is CreatePaymentPreviewRequest;
|
|
49
|
+
export declare function CreatePaymentPreviewRequestFromJSON(json: any): CreatePaymentPreviewRequest;
|
|
50
|
+
export declare function CreatePaymentPreviewRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePaymentPreviewRequest;
|
|
51
|
+
export declare function CreatePaymentPreviewRequestToJSON(json: any): CreatePaymentPreviewRequest;
|
|
52
|
+
export declare function CreatePaymentPreviewRequestToJSONTyped(value?: CreatePaymentPreviewRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
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.instanceOfCreatePaymentPreviewRequest = instanceOfCreatePaymentPreviewRequest;
|
|
17
|
+
exports.CreatePaymentPreviewRequestFromJSON = CreatePaymentPreviewRequestFromJSON;
|
|
18
|
+
exports.CreatePaymentPreviewRequestFromJSONTyped = CreatePaymentPreviewRequestFromJSONTyped;
|
|
19
|
+
exports.CreatePaymentPreviewRequestToJSON = CreatePaymentPreviewRequestToJSON;
|
|
20
|
+
exports.CreatePaymentPreviewRequestToJSONTyped = CreatePaymentPreviewRequestToJSONTyped;
|
|
21
|
+
var PaymentAddress_1 = require("./PaymentAddress");
|
|
22
|
+
var PaymentLineItem_1 = require("./PaymentLineItem");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the CreatePaymentPreviewRequest interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfCreatePaymentPreviewRequest(value) {
|
|
27
|
+
if (!('currency' in value) || value['currency'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('lineItems' in value) || value['lineItems'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function CreatePaymentPreviewRequestFromJSON(json) {
|
|
34
|
+
return CreatePaymentPreviewRequestFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function CreatePaymentPreviewRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'currency': json['currency'],
|
|
42
|
+
'lineItems': (json['lineItems'].map(PaymentLineItem_1.PaymentLineItemFromJSON)),
|
|
43
|
+
'customerAddress': json['customerAddress'] == null ? undefined : (0, PaymentAddress_1.PaymentAddressFromJSON)(json['customerAddress']),
|
|
44
|
+
'shippingAddress': json['shippingAddress'] == null ? undefined : (0, PaymentAddress_1.PaymentAddressFromJSON)(json['shippingAddress']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function CreatePaymentPreviewRequestToJSON(json) {
|
|
48
|
+
return CreatePaymentPreviewRequestToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function CreatePaymentPreviewRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'currency': value['currency'],
|
|
57
|
+
'lineItems': (value['lineItems'].map(PaymentLineItem_1.PaymentLineItemToJSON)),
|
|
58
|
+
'customerAddress': (0, PaymentAddress_1.PaymentAddressToJSON)(value['customerAddress']),
|
|
59
|
+
'shippingAddress': (0, PaymentAddress_1.PaymentAddressToJSON)(value['shippingAddress']),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CreatePaymentPreviewResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface CreatePaymentPreviewResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof CreatePaymentPreviewResponse
|
|
24
|
+
*/
|
|
25
|
+
subtotalCents: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof CreatePaymentPreviewResponse
|
|
30
|
+
*/
|
|
31
|
+
taxCents?: number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof CreatePaymentPreviewResponse
|
|
36
|
+
*/
|
|
37
|
+
amountCents: number;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof CreatePaymentPreviewResponse
|
|
42
|
+
*/
|
|
43
|
+
currency: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<PaymentLineItem>}
|
|
47
|
+
* @memberof CreatePaymentPreviewResponse
|
|
48
|
+
*/
|
|
49
|
+
lineItems: Array<PaymentLineItem>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaymentAddress}
|
|
53
|
+
* @memberof CreatePaymentPreviewResponse
|
|
54
|
+
*/
|
|
55
|
+
customerAddress?: PaymentAddress;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof CreatePaymentPreviewResponse
|
|
60
|
+
*/
|
|
61
|
+
stripeTaxCalculationId?: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the CreatePaymentPreviewResponse interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfCreatePaymentPreviewResponse(value: object): value is CreatePaymentPreviewResponse;
|
|
67
|
+
export declare function CreatePaymentPreviewResponseFromJSON(json: any): CreatePaymentPreviewResponse;
|
|
68
|
+
export declare function CreatePaymentPreviewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePaymentPreviewResponse;
|
|
69
|
+
export declare function CreatePaymentPreviewResponseToJSON(json: any): CreatePaymentPreviewResponse;
|
|
70
|
+
export declare function CreatePaymentPreviewResponseToJSONTyped(value?: CreatePaymentPreviewResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.instanceOfCreatePaymentPreviewResponse = instanceOfCreatePaymentPreviewResponse;
|
|
17
|
+
exports.CreatePaymentPreviewResponseFromJSON = CreatePaymentPreviewResponseFromJSON;
|
|
18
|
+
exports.CreatePaymentPreviewResponseFromJSONTyped = CreatePaymentPreviewResponseFromJSONTyped;
|
|
19
|
+
exports.CreatePaymentPreviewResponseToJSON = CreatePaymentPreviewResponseToJSON;
|
|
20
|
+
exports.CreatePaymentPreviewResponseToJSONTyped = CreatePaymentPreviewResponseToJSONTyped;
|
|
21
|
+
var PaymentAddress_1 = require("./PaymentAddress");
|
|
22
|
+
var PaymentLineItem_1 = require("./PaymentLineItem");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the CreatePaymentPreviewResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfCreatePaymentPreviewResponse(value) {
|
|
27
|
+
if (!('subtotalCents' in value) || value['subtotalCents'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('amountCents' in value) || value['amountCents'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('currency' in value) || value['currency'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('lineItems' in value) || value['lineItems'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function CreatePaymentPreviewResponseFromJSON(json) {
|
|
38
|
+
return CreatePaymentPreviewResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function CreatePaymentPreviewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'subtotalCents': json['subtotalCents'],
|
|
46
|
+
'taxCents': json['taxCents'] == null ? undefined : json['taxCents'],
|
|
47
|
+
'amountCents': json['amountCents'],
|
|
48
|
+
'currency': json['currency'],
|
|
49
|
+
'lineItems': (json['lineItems'].map(PaymentLineItem_1.PaymentLineItemFromJSON)),
|
|
50
|
+
'customerAddress': json['customerAddress'] == null ? undefined : (0, PaymentAddress_1.PaymentAddressFromJSON)(json['customerAddress']),
|
|
51
|
+
'stripeTaxCalculationId': json['stripeTaxCalculationId'] == null ? undefined : json['stripeTaxCalculationId'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function CreatePaymentPreviewResponseToJSON(json) {
|
|
55
|
+
return CreatePaymentPreviewResponseToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function CreatePaymentPreviewResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
58
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'subtotalCents': value['subtotalCents'],
|
|
64
|
+
'taxCents': value['taxCents'],
|
|
65
|
+
'amountCents': value['amountCents'],
|
|
66
|
+
'currency': value['currency'],
|
|
67
|
+
'lineItems': (value['lineItems'].map(PaymentLineItem_1.PaymentLineItemToJSON)),
|
|
68
|
+
'customerAddress': (0, PaymentAddress_1.PaymentAddressToJSON)(value['customerAddress']),
|
|
69
|
+
'stripeTaxCalculationId': value['stripeTaxCalculationId'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CreatePaymentRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface CreatePaymentRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CreatePaymentRequest
|
|
24
|
+
*/
|
|
25
|
+
currency: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<PaymentLineItem>}
|
|
29
|
+
* @memberof CreatePaymentRequest
|
|
30
|
+
*/
|
|
31
|
+
lineItems: Array<PaymentLineItem>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CreatePaymentRequest
|
|
36
|
+
*/
|
|
37
|
+
description?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {{ [key: string]: string; }}
|
|
41
|
+
* @memberof CreatePaymentRequest
|
|
42
|
+
*/
|
|
43
|
+
metadata?: {
|
|
44
|
+
[key: string]: string;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {PaymentAddress}
|
|
49
|
+
* @memberof CreatePaymentRequest
|
|
50
|
+
*/
|
|
51
|
+
customerAddress?: PaymentAddress;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {PaymentAddress}
|
|
55
|
+
* @memberof CreatePaymentRequest
|
|
56
|
+
*/
|
|
57
|
+
shippingAddress?: PaymentAddress;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the CreatePaymentRequest interface.
|
|
61
|
+
*/
|
|
62
|
+
export declare function instanceOfCreatePaymentRequest(value: object): value is CreatePaymentRequest;
|
|
63
|
+
export declare function CreatePaymentRequestFromJSON(json: any): CreatePaymentRequest;
|
|
64
|
+
export declare function CreatePaymentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePaymentRequest;
|
|
65
|
+
export declare function CreatePaymentRequestToJSON(json: any): CreatePaymentRequest;
|
|
66
|
+
export declare function CreatePaymentRequestToJSONTyped(value?: CreatePaymentRequest | 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.instanceOfCreatePaymentRequest = instanceOfCreatePaymentRequest;
|
|
17
|
+
exports.CreatePaymentRequestFromJSON = CreatePaymentRequestFromJSON;
|
|
18
|
+
exports.CreatePaymentRequestFromJSONTyped = CreatePaymentRequestFromJSONTyped;
|
|
19
|
+
exports.CreatePaymentRequestToJSON = CreatePaymentRequestToJSON;
|
|
20
|
+
exports.CreatePaymentRequestToJSONTyped = CreatePaymentRequestToJSONTyped;
|
|
21
|
+
var PaymentAddress_1 = require("./PaymentAddress");
|
|
22
|
+
var PaymentLineItem_1 = require("./PaymentLineItem");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the CreatePaymentRequest interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfCreatePaymentRequest(value) {
|
|
27
|
+
if (!('currency' in value) || value['currency'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('lineItems' in value) || value['lineItems'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function CreatePaymentRequestFromJSON(json) {
|
|
34
|
+
return CreatePaymentRequestFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function CreatePaymentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'currency': json['currency'],
|
|
42
|
+
'lineItems': (json['lineItems'].map(PaymentLineItem_1.PaymentLineItemFromJSON)),
|
|
43
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
44
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
45
|
+
'customerAddress': json['customerAddress'] == null ? undefined : (0, PaymentAddress_1.PaymentAddressFromJSON)(json['customerAddress']),
|
|
46
|
+
'shippingAddress': json['shippingAddress'] == null ? undefined : (0, PaymentAddress_1.PaymentAddressFromJSON)(json['shippingAddress']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function CreatePaymentRequestToJSON(json) {
|
|
50
|
+
return CreatePaymentRequestToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function CreatePaymentRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'currency': value['currency'],
|
|
59
|
+
'lineItems': (value['lineItems'].map(PaymentLineItem_1.PaymentLineItemToJSON)),
|
|
60
|
+
'description': value['description'],
|
|
61
|
+
'metadata': value['metadata'],
|
|
62
|
+
'customerAddress': (0, PaymentAddress_1.PaymentAddressToJSON)(value['customerAddress']),
|
|
63
|
+
'shippingAddress': (0, PaymentAddress_1.PaymentAddressToJSON)(value['shippingAddress']),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 CreatePaymentResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface CreatePaymentResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {PaymentObject}
|
|
22
|
+
* @memberof CreatePaymentResponse
|
|
23
|
+
*/
|
|
24
|
+
payment: PaymentObject;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CreatePaymentResponse
|
|
29
|
+
*/
|
|
30
|
+
stripeClientSecret: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CreatePaymentResponse
|
|
35
|
+
*/
|
|
36
|
+
stripePublishableKey: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CreatePaymentResponse
|
|
41
|
+
*/
|
|
42
|
+
stripeConnectedAccountId: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the CreatePaymentResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfCreatePaymentResponse(value: object): value is CreatePaymentResponse;
|
|
48
|
+
export declare function CreatePaymentResponseFromJSON(json: any): CreatePaymentResponse;
|
|
49
|
+
export declare function CreatePaymentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePaymentResponse;
|
|
50
|
+
export declare function CreatePaymentResponseToJSON(json: any): CreatePaymentResponse;
|
|
51
|
+
export declare function CreatePaymentResponseToJSONTyped(value?: CreatePaymentResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.instanceOfCreatePaymentResponse = instanceOfCreatePaymentResponse;
|
|
17
|
+
exports.CreatePaymentResponseFromJSON = CreatePaymentResponseFromJSON;
|
|
18
|
+
exports.CreatePaymentResponseFromJSONTyped = CreatePaymentResponseFromJSONTyped;
|
|
19
|
+
exports.CreatePaymentResponseToJSON = CreatePaymentResponseToJSON;
|
|
20
|
+
exports.CreatePaymentResponseToJSONTyped = CreatePaymentResponseToJSONTyped;
|
|
21
|
+
var PaymentObject_1 = require("./PaymentObject");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CreatePaymentResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCreatePaymentResponse(value) {
|
|
26
|
+
if (!('payment' in value) || value['payment'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('stripeClientSecret' in value) || value['stripeClientSecret'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('stripePublishableKey' in value) || value['stripePublishableKey'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('stripeConnectedAccountId' in value) || value['stripeConnectedAccountId'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function CreatePaymentResponseFromJSON(json) {
|
|
37
|
+
return CreatePaymentResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function CreatePaymentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'payment': (0, PaymentObject_1.PaymentObjectFromJSON)(json['payment']),
|
|
45
|
+
'stripeClientSecret': json['stripeClientSecret'],
|
|
46
|
+
'stripePublishableKey': json['stripePublishableKey'],
|
|
47
|
+
'stripeConnectedAccountId': json['stripeConnectedAccountId'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function CreatePaymentResponseToJSON(json) {
|
|
51
|
+
return CreatePaymentResponseToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function CreatePaymentResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'payment': (0, PaymentObject_1.PaymentObjectToJSON)(value['payment']),
|
|
60
|
+
'stripeClientSecret': value['stripeClientSecret'],
|
|
61
|
+
'stripePublishableKey': value['stripePublishableKey'],
|
|
62
|
+
'stripeConnectedAccountId': value['stripeConnectedAccountId'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -106,9 +106,22 @@ export declare const ForteApiExceptionErrorCodeType: {
|
|
|
106
106
|
readonly COMPLIANCE_REGISTRATION_NOT_APPROVED: "COMPLIANCE_REGISTRATION_NOT_APPROVED";
|
|
107
107
|
readonly EMAIL_LOGIN_NOT_ENABLED: "EMAIL_LOGIN_NOT_ENABLED";
|
|
108
108
|
readonly PHONE_LOGIN_NOT_ENABLED: "PHONE_LOGIN_NOT_ENABLED";
|
|
109
|
+
readonly GOOGLE_OAUTH_CLIENT_ID_REQUIRED: "GOOGLE_OAUTH_CLIENT_ID_REQUIRED";
|
|
110
|
+
readonly SMS_REGISTRATION_NOT_APPROVED: "SMS_REGISTRATION_NOT_APPROVED";
|
|
111
|
+
readonly SES_TENANT_NOT_VERIFIED: "SES_TENANT_NOT_VERIFIED";
|
|
109
112
|
readonly MISSING_GITHUB_BRANCH: "MISSING_GITHUB_BRANCH";
|
|
110
113
|
readonly EXTERNAL_API_ERROR: "EXTERNAL_API_ERROR";
|
|
111
114
|
readonly PAYMENTS_PROVIDER_REJECTED: "PAYMENTS_PROVIDER_REJECTED";
|
|
115
|
+
readonly PAYMENTS_NOT_CONFIGURED_ON_PROJECT_OWNER: "PAYMENTS_NOT_CONFIGURED_ON_PROJECT_OWNER";
|
|
116
|
+
readonly PAYMENTS_REQUIRE_APPROVED_COMPLIANCE: "PAYMENTS_REQUIRE_APPROVED_COMPLIANCE";
|
|
117
|
+
readonly PAYMENT_LINE_ITEMS_REQUIRED: "PAYMENT_LINE_ITEMS_REQUIRED";
|
|
118
|
+
readonly PAYMENT_AMOUNT_INVALID: "PAYMENT_AMOUNT_INVALID";
|
|
119
|
+
readonly PAYMENT_CURRENCY_INVALID: "PAYMENT_CURRENCY_INVALID";
|
|
120
|
+
readonly PAYMENT_TAX_ADDRESS_INVALID: "PAYMENT_TAX_ADDRESS_INVALID";
|
|
121
|
+
readonly PAYMENT_TAX_CALCULATION_FAILED: "PAYMENT_TAX_CALCULATION_FAILED";
|
|
122
|
+
readonly PAYMENT_METADATA_FILTER_INVALID: "PAYMENT_METADATA_FILTER_INVALID";
|
|
123
|
+
readonly PAYMENT_TRIGGER_TARGET_SERVICE_NOT_FOUND: "PAYMENT_TRIGGER_TARGET_SERVICE_NOT_FOUND";
|
|
124
|
+
readonly PAYMENT_TRIGGER_NOT_FOUND: "PAYMENT_TRIGGER_NOT_FOUND";
|
|
112
125
|
readonly EMAIL_CONFIGURATION_INVALID: "EMAIL_CONFIGURATION_INVALID";
|
|
113
126
|
readonly SES_TENANT_NOT_PROVISIONED: "SES_TENANT_NOT_PROVISIONED";
|
|
114
127
|
readonly INVALID_MAIL_FROM_SUBDOMAIN: "INVALID_MAIL_FROM_SUBDOMAIN";
|
|
@@ -117,6 +130,8 @@ export declare const ForteApiExceptionErrorCodeType: {
|
|
|
117
130
|
readonly ENCRYPTION_PASSWORD_TOO_WEAK: "ENCRYPTION_PASSWORD_TOO_WEAK";
|
|
118
131
|
readonly ENCRYPTION_PASSWORD_MISMATCH: "ENCRYPTION_PASSWORD_MISMATCH";
|
|
119
132
|
readonly COMPLIANCE_DOCUMENT_ENCRYPTED: "COMPLIANCE_DOCUMENT_ENCRYPTED";
|
|
133
|
+
readonly NOTIFICATION_TEMPLATE_INVALID: "NOTIFICATION_TEMPLATE_INVALID";
|
|
134
|
+
readonly NOTIFICATION_TEMPLATE_MISSING_REQUIRED_VARIABLE: "NOTIFICATION_TEMPLATE_MISSING_REQUIRED_VARIABLE";
|
|
120
135
|
};
|
|
121
136
|
export type ForteApiExceptionErrorCodeType = typeof ForteApiExceptionErrorCodeType[keyof typeof ForteApiExceptionErrorCodeType];
|
|
122
137
|
/**
|
|
@@ -91,9 +91,22 @@ exports.ForteApiExceptionErrorCodeType = {
|
|
|
91
91
|
COMPLIANCE_REGISTRATION_NOT_APPROVED: 'COMPLIANCE_REGISTRATION_NOT_APPROVED',
|
|
92
92
|
EMAIL_LOGIN_NOT_ENABLED: 'EMAIL_LOGIN_NOT_ENABLED',
|
|
93
93
|
PHONE_LOGIN_NOT_ENABLED: 'PHONE_LOGIN_NOT_ENABLED',
|
|
94
|
+
GOOGLE_OAUTH_CLIENT_ID_REQUIRED: 'GOOGLE_OAUTH_CLIENT_ID_REQUIRED',
|
|
95
|
+
SMS_REGISTRATION_NOT_APPROVED: 'SMS_REGISTRATION_NOT_APPROVED',
|
|
96
|
+
SES_TENANT_NOT_VERIFIED: 'SES_TENANT_NOT_VERIFIED',
|
|
94
97
|
MISSING_GITHUB_BRANCH: 'MISSING_GITHUB_BRANCH',
|
|
95
98
|
EXTERNAL_API_ERROR: 'EXTERNAL_API_ERROR',
|
|
96
99
|
PAYMENTS_PROVIDER_REJECTED: 'PAYMENTS_PROVIDER_REJECTED',
|
|
100
|
+
PAYMENTS_NOT_CONFIGURED_ON_PROJECT_OWNER: 'PAYMENTS_NOT_CONFIGURED_ON_PROJECT_OWNER',
|
|
101
|
+
PAYMENTS_REQUIRE_APPROVED_COMPLIANCE: 'PAYMENTS_REQUIRE_APPROVED_COMPLIANCE',
|
|
102
|
+
PAYMENT_LINE_ITEMS_REQUIRED: 'PAYMENT_LINE_ITEMS_REQUIRED',
|
|
103
|
+
PAYMENT_AMOUNT_INVALID: 'PAYMENT_AMOUNT_INVALID',
|
|
104
|
+
PAYMENT_CURRENCY_INVALID: 'PAYMENT_CURRENCY_INVALID',
|
|
105
|
+
PAYMENT_TAX_ADDRESS_INVALID: 'PAYMENT_TAX_ADDRESS_INVALID',
|
|
106
|
+
PAYMENT_TAX_CALCULATION_FAILED: 'PAYMENT_TAX_CALCULATION_FAILED',
|
|
107
|
+
PAYMENT_METADATA_FILTER_INVALID: 'PAYMENT_METADATA_FILTER_INVALID',
|
|
108
|
+
PAYMENT_TRIGGER_TARGET_SERVICE_NOT_FOUND: 'PAYMENT_TRIGGER_TARGET_SERVICE_NOT_FOUND',
|
|
109
|
+
PAYMENT_TRIGGER_NOT_FOUND: 'PAYMENT_TRIGGER_NOT_FOUND',
|
|
97
110
|
EMAIL_CONFIGURATION_INVALID: 'EMAIL_CONFIGURATION_INVALID',
|
|
98
111
|
SES_TENANT_NOT_PROVISIONED: 'SES_TENANT_NOT_PROVISIONED',
|
|
99
112
|
INVALID_MAIL_FROM_SUBDOMAIN: 'INVALID_MAIL_FROM_SUBDOMAIN',
|
|
@@ -101,7 +114,9 @@ exports.ForteApiExceptionErrorCodeType = {
|
|
|
101
114
|
ENCRYPTION_PASSWORD_REQUIRED: 'ENCRYPTION_PASSWORD_REQUIRED',
|
|
102
115
|
ENCRYPTION_PASSWORD_TOO_WEAK: 'ENCRYPTION_PASSWORD_TOO_WEAK',
|
|
103
116
|
ENCRYPTION_PASSWORD_MISMATCH: 'ENCRYPTION_PASSWORD_MISMATCH',
|
|
104
|
-
COMPLIANCE_DOCUMENT_ENCRYPTED: 'COMPLIANCE_DOCUMENT_ENCRYPTED'
|
|
117
|
+
COMPLIANCE_DOCUMENT_ENCRYPTED: 'COMPLIANCE_DOCUMENT_ENCRYPTED',
|
|
118
|
+
NOTIFICATION_TEMPLATE_INVALID: 'NOTIFICATION_TEMPLATE_INVALID',
|
|
119
|
+
NOTIFICATION_TEMPLATE_MISSING_REQUIRED_VARIABLE: 'NOTIFICATION_TEMPLATE_MISSING_REQUIRED_VARIABLE'
|
|
105
120
|
};
|
|
106
121
|
/**
|
|
107
122
|
* Check if a given object implements the ForteApiException interface.
|
|
@@ -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;
|