@forteplatforms/sdk 1.0.344 → 1.0.346
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 +118 -0
- package/dist/generated/apis/ProjectsServerApi.js +505 -0
- package/dist/generated/models/CreateCustomEmailTemplateRequest.d.ts +50 -0
- package/dist/generated/models/CreateCustomEmailTemplateRequest.js +59 -0
- package/dist/generated/models/CustomEmailTemplateObject.d.ts +74 -0
- package/dist/generated/models/CustomEmailTemplateObject.js +71 -0
- package/dist/generated/models/ForteApiException.d.ts +3 -0
- package/dist/generated/models/ForteApiException.js +3 -0
- package/dist/generated/models/PaymentFilter.d.ts +94 -0
- package/dist/generated/models/PaymentFilter.js +86 -0
- package/dist/generated/models/PaymentSearchRequest.d.ts +52 -0
- package/dist/generated/models/PaymentSearchRequest.js +57 -0
- package/dist/generated/models/PaymentSort.d.ts +54 -0
- package/dist/generated/models/PaymentSort.js +66 -0
- package/dist/generated/models/SendUserEmailFromTemplateRequest.d.ts +40 -0
- package/dist/generated/models/SendUserEmailFromTemplateRequest.js +53 -0
- package/dist/generated/models/UpdateCustomEmailTemplateRequest.d.ts +44 -0
- package/dist/generated/models/UpdateCustomEmailTemplateRequest.js +55 -0
- package/dist/generated/models/index.d.ts +7 -0
- package/dist/generated/models/index.js +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfCreateCustomEmailTemplateRequest = instanceOfCreateCustomEmailTemplateRequest;
|
|
17
|
+
exports.CreateCustomEmailTemplateRequestFromJSON = CreateCustomEmailTemplateRequestFromJSON;
|
|
18
|
+
exports.CreateCustomEmailTemplateRequestFromJSONTyped = CreateCustomEmailTemplateRequestFromJSONTyped;
|
|
19
|
+
exports.CreateCustomEmailTemplateRequestToJSON = CreateCustomEmailTemplateRequestToJSON;
|
|
20
|
+
exports.CreateCustomEmailTemplateRequestToJSONTyped = CreateCustomEmailTemplateRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateCustomEmailTemplateRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateCustomEmailTemplateRequest(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('subject' in value) || value['subject'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function CreateCustomEmailTemplateRequestFromJSON(json) {
|
|
32
|
+
return CreateCustomEmailTemplateRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function CreateCustomEmailTemplateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'subject': json['subject'],
|
|
41
|
+
'htmlBody': json['htmlBody'] == null ? undefined : json['htmlBody'],
|
|
42
|
+
'textBody': json['textBody'] == null ? undefined : json['textBody'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function CreateCustomEmailTemplateRequestToJSON(json) {
|
|
46
|
+
return CreateCustomEmailTemplateRequestToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function CreateCustomEmailTemplateRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'name': value['name'],
|
|
55
|
+
'subject': value['subject'],
|
|
56
|
+
'htmlBody': value['htmlBody'],
|
|
57
|
+
'textBody': value['textBody'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 CustomEmailTemplateObject
|
|
16
|
+
*/
|
|
17
|
+
export interface CustomEmailTemplateObject {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CustomEmailTemplateObject
|
|
22
|
+
*/
|
|
23
|
+
customEmailTemplateId?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CustomEmailTemplateObject
|
|
28
|
+
*/
|
|
29
|
+
projectId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CustomEmailTemplateObject
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CustomEmailTemplateObject
|
|
40
|
+
*/
|
|
41
|
+
subject: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CustomEmailTemplateObject
|
|
46
|
+
*/
|
|
47
|
+
htmlBody?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CustomEmailTemplateObject
|
|
52
|
+
*/
|
|
53
|
+
textBody?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof CustomEmailTemplateObject
|
|
58
|
+
*/
|
|
59
|
+
createdTimestamp: Date;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof CustomEmailTemplateObject
|
|
64
|
+
*/
|
|
65
|
+
lastModifiedTimestamp?: Date;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the CustomEmailTemplateObject interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfCustomEmailTemplateObject(value: object): value is CustomEmailTemplateObject;
|
|
71
|
+
export declare function CustomEmailTemplateObjectFromJSON(json: any): CustomEmailTemplateObject;
|
|
72
|
+
export declare function CustomEmailTemplateObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomEmailTemplateObject;
|
|
73
|
+
export declare function CustomEmailTemplateObjectToJSON(json: any): CustomEmailTemplateObject;
|
|
74
|
+
export declare function CustomEmailTemplateObjectToJSONTyped(value?: CustomEmailTemplateObject | 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.instanceOfCustomEmailTemplateObject = instanceOfCustomEmailTemplateObject;
|
|
17
|
+
exports.CustomEmailTemplateObjectFromJSON = CustomEmailTemplateObjectFromJSON;
|
|
18
|
+
exports.CustomEmailTemplateObjectFromJSONTyped = CustomEmailTemplateObjectFromJSONTyped;
|
|
19
|
+
exports.CustomEmailTemplateObjectToJSON = CustomEmailTemplateObjectToJSON;
|
|
20
|
+
exports.CustomEmailTemplateObjectToJSONTyped = CustomEmailTemplateObjectToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CustomEmailTemplateObject interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCustomEmailTemplateObject(value) {
|
|
25
|
+
if (!('projectId' in value) || value['projectId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('subject' in value) || value['subject'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('createdTimestamp' in value) || value['createdTimestamp'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function CustomEmailTemplateObjectFromJSON(json) {
|
|
36
|
+
return CustomEmailTemplateObjectFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function CustomEmailTemplateObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'customEmailTemplateId': json['customEmailTemplateId'] == null ? undefined : json['customEmailTemplateId'],
|
|
44
|
+
'projectId': json['projectId'],
|
|
45
|
+
'name': json['name'],
|
|
46
|
+
'subject': json['subject'],
|
|
47
|
+
'htmlBody': json['htmlBody'] == null ? undefined : json['htmlBody'],
|
|
48
|
+
'textBody': json['textBody'] == null ? undefined : json['textBody'],
|
|
49
|
+
'createdTimestamp': (new Date(json['createdTimestamp'])),
|
|
50
|
+
'lastModifiedTimestamp': json['lastModifiedTimestamp'] == null ? undefined : (new Date(json['lastModifiedTimestamp'])),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function CustomEmailTemplateObjectToJSON(json) {
|
|
54
|
+
return CustomEmailTemplateObjectToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function CustomEmailTemplateObjectToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'customEmailTemplateId': value['customEmailTemplateId'],
|
|
63
|
+
'projectId': value['projectId'],
|
|
64
|
+
'name': value['name'],
|
|
65
|
+
'subject': value['subject'],
|
|
66
|
+
'htmlBody': value['htmlBody'],
|
|
67
|
+
'textBody': value['textBody'],
|
|
68
|
+
'createdTimestamp': value['createdTimestamp'].toISOString(),
|
|
69
|
+
'lastModifiedTimestamp': value['lastModifiedTimestamp'] == null ? value['lastModifiedTimestamp'] : value['lastModifiedTimestamp'].toISOString(),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -226,6 +226,9 @@ export declare const ForteApiExceptionErrorCodeType: {
|
|
|
226
226
|
readonly COMPLIANCE_DOCUMENT_ENCRYPTED: "COMPLIANCE_DOCUMENT_ENCRYPTED";
|
|
227
227
|
readonly NOTIFICATION_TEMPLATE_INVALID: "NOTIFICATION_TEMPLATE_INVALID";
|
|
228
228
|
readonly NOTIFICATION_TEMPLATE_MISSING_REQUIRED_VARIABLE: "NOTIFICATION_TEMPLATE_MISSING_REQUIRED_VARIABLE";
|
|
229
|
+
readonly CUSTOM_EMAIL_TEMPLATE_NOT_FOUND: "CUSTOM_EMAIL_TEMPLATE_NOT_FOUND";
|
|
230
|
+
readonly CUSTOM_EMAIL_TEMPLATE_NAME_TAKEN_IN_PROJECT: "CUSTOM_EMAIL_TEMPLATE_NAME_TAKEN_IN_PROJECT";
|
|
231
|
+
readonly CUSTOM_EMAIL_TEMPLATE_INVALID: "CUSTOM_EMAIL_TEMPLATE_INVALID";
|
|
229
232
|
readonly CUSTOM_ATTRIBUTE_RESERVED_KEY: "CUSTOM_ATTRIBUTE_RESERVED_KEY";
|
|
230
233
|
readonly CONTENT_NOT_FOUND: "CONTENT_NOT_FOUND";
|
|
231
234
|
readonly CONTENT_NOT_IN_PENDING_STATE: "CONTENT_NOT_IN_PENDING_STATE";
|
|
@@ -211,6 +211,9 @@ exports.ForteApiExceptionErrorCodeType = {
|
|
|
211
211
|
COMPLIANCE_DOCUMENT_ENCRYPTED: 'COMPLIANCE_DOCUMENT_ENCRYPTED',
|
|
212
212
|
NOTIFICATION_TEMPLATE_INVALID: 'NOTIFICATION_TEMPLATE_INVALID',
|
|
213
213
|
NOTIFICATION_TEMPLATE_MISSING_REQUIRED_VARIABLE: 'NOTIFICATION_TEMPLATE_MISSING_REQUIRED_VARIABLE',
|
|
214
|
+
CUSTOM_EMAIL_TEMPLATE_NOT_FOUND: 'CUSTOM_EMAIL_TEMPLATE_NOT_FOUND',
|
|
215
|
+
CUSTOM_EMAIL_TEMPLATE_NAME_TAKEN_IN_PROJECT: 'CUSTOM_EMAIL_TEMPLATE_NAME_TAKEN_IN_PROJECT',
|
|
216
|
+
CUSTOM_EMAIL_TEMPLATE_INVALID: 'CUSTOM_EMAIL_TEMPLATE_INVALID',
|
|
214
217
|
CUSTOM_ATTRIBUTE_RESERVED_KEY: 'CUSTOM_ATTRIBUTE_RESERVED_KEY',
|
|
215
218
|
CONTENT_NOT_FOUND: 'CONTENT_NOT_FOUND',
|
|
216
219
|
CONTENT_NOT_IN_PENDING_STATE: 'CONTENT_NOT_IN_PENDING_STATE',
|
|
@@ -0,0 +1,94 @@
|
|
|
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 PaymentFilter
|
|
16
|
+
*/
|
|
17
|
+
export interface PaymentFilter {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof PaymentFilter
|
|
22
|
+
*/
|
|
23
|
+
minTime?: Date;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof PaymentFilter
|
|
28
|
+
*/
|
|
29
|
+
maxTime?: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<PaymentFilterStatesType>}
|
|
33
|
+
* @memberof PaymentFilter
|
|
34
|
+
*/
|
|
35
|
+
states?: Array<PaymentFilterStatesType>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<PaymentFilterNotStatesType>}
|
|
39
|
+
* @memberof PaymentFilter
|
|
40
|
+
*/
|
|
41
|
+
notStates?: Array<PaymentFilterNotStatesType>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PaymentFilter
|
|
46
|
+
*/
|
|
47
|
+
userId?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof PaymentFilter
|
|
52
|
+
*/
|
|
53
|
+
ids?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof PaymentFilter
|
|
58
|
+
*/
|
|
59
|
+
notIds?: Array<string>;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const PaymentFilterStatesType: {
|
|
65
|
+
readonly DRAFT: "DRAFT";
|
|
66
|
+
readonly PROCESSING: "PROCESSING";
|
|
67
|
+
readonly COMPLETED: "COMPLETED";
|
|
68
|
+
readonly CANCELLED: "CANCELLED";
|
|
69
|
+
readonly FAILED: "FAILED";
|
|
70
|
+
readonly PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
|
|
71
|
+
readonly REFUNDED: "REFUNDED";
|
|
72
|
+
};
|
|
73
|
+
export type PaymentFilterStatesType = typeof PaymentFilterStatesType[keyof typeof PaymentFilterStatesType];
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export declare const PaymentFilterNotStatesType: {
|
|
78
|
+
readonly DRAFT: "DRAFT";
|
|
79
|
+
readonly PROCESSING: "PROCESSING";
|
|
80
|
+
readonly COMPLETED: "COMPLETED";
|
|
81
|
+
readonly CANCELLED: "CANCELLED";
|
|
82
|
+
readonly FAILED: "FAILED";
|
|
83
|
+
readonly PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
|
|
84
|
+
readonly REFUNDED: "REFUNDED";
|
|
85
|
+
};
|
|
86
|
+
export type PaymentFilterNotStatesType = typeof PaymentFilterNotStatesType[keyof typeof PaymentFilterNotStatesType];
|
|
87
|
+
/**
|
|
88
|
+
* Check if a given object implements the PaymentFilter interface.
|
|
89
|
+
*/
|
|
90
|
+
export declare function instanceOfPaymentFilter(value: object): value is PaymentFilter;
|
|
91
|
+
export declare function PaymentFilterFromJSON(json: any): PaymentFilter;
|
|
92
|
+
export declare function PaymentFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentFilter;
|
|
93
|
+
export declare function PaymentFilterToJSON(json: any): PaymentFilter;
|
|
94
|
+
export declare function PaymentFilterToJSONTyped(value?: PaymentFilter | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,86 @@
|
|
|
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.PaymentFilterNotStatesType = exports.PaymentFilterStatesType = void 0;
|
|
17
|
+
exports.instanceOfPaymentFilter = instanceOfPaymentFilter;
|
|
18
|
+
exports.PaymentFilterFromJSON = PaymentFilterFromJSON;
|
|
19
|
+
exports.PaymentFilterFromJSONTyped = PaymentFilterFromJSONTyped;
|
|
20
|
+
exports.PaymentFilterToJSON = PaymentFilterToJSON;
|
|
21
|
+
exports.PaymentFilterToJSONTyped = PaymentFilterToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PaymentFilterStatesType = {
|
|
26
|
+
DRAFT: 'DRAFT',
|
|
27
|
+
PROCESSING: 'PROCESSING',
|
|
28
|
+
COMPLETED: 'COMPLETED',
|
|
29
|
+
CANCELLED: 'CANCELLED',
|
|
30
|
+
FAILED: 'FAILED',
|
|
31
|
+
PARTIALLY_REFUNDED: 'PARTIALLY_REFUNDED',
|
|
32
|
+
REFUNDED: 'REFUNDED'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
exports.PaymentFilterNotStatesType = {
|
|
38
|
+
DRAFT: 'DRAFT',
|
|
39
|
+
PROCESSING: 'PROCESSING',
|
|
40
|
+
COMPLETED: 'COMPLETED',
|
|
41
|
+
CANCELLED: 'CANCELLED',
|
|
42
|
+
FAILED: 'FAILED',
|
|
43
|
+
PARTIALLY_REFUNDED: 'PARTIALLY_REFUNDED',
|
|
44
|
+
REFUNDED: 'REFUNDED'
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the PaymentFilter interface.
|
|
48
|
+
*/
|
|
49
|
+
function instanceOfPaymentFilter(value) {
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
function PaymentFilterFromJSON(json) {
|
|
53
|
+
return PaymentFilterFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function PaymentFilterFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'minTime': json['minTime'] == null ? undefined : (new Date(json['minTime'])),
|
|
61
|
+
'maxTime': json['maxTime'] == null ? undefined : (new Date(json['maxTime'])),
|
|
62
|
+
'states': json['states'] == null ? undefined : json['states'],
|
|
63
|
+
'notStates': json['notStates'] == null ? undefined : json['notStates'],
|
|
64
|
+
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
65
|
+
'ids': json['ids'] == null ? undefined : json['ids'],
|
|
66
|
+
'notIds': json['notIds'] == null ? undefined : json['notIds'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function PaymentFilterToJSON(json) {
|
|
70
|
+
return PaymentFilterToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
function PaymentFilterToJSONTyped(value, ignoreDiscriminator) {
|
|
73
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'minTime': value['minTime'] == null ? value['minTime'] : value['minTime'].toISOString(),
|
|
79
|
+
'maxTime': value['maxTime'] == null ? value['maxTime'] : value['maxTime'].toISOString(),
|
|
80
|
+
'states': value['states'],
|
|
81
|
+
'notStates': value['notStates'],
|
|
82
|
+
'userId': value['userId'],
|
|
83
|
+
'ids': value['ids'],
|
|
84
|
+
'notIds': value['notIds'],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -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 { PaymentSort } from './PaymentSort';
|
|
13
|
+
import type { PaymentFilter } from './PaymentFilter';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaymentSearchRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface PaymentSearchRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {PaymentFilter}
|
|
23
|
+
* @memberof PaymentSearchRequest
|
|
24
|
+
*/
|
|
25
|
+
filter?: PaymentFilter;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PaymentSort}
|
|
29
|
+
* @memberof PaymentSearchRequest
|
|
30
|
+
*/
|
|
31
|
+
sort?: PaymentSort;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof PaymentSearchRequest
|
|
36
|
+
*/
|
|
37
|
+
nextToken?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof PaymentSearchRequest
|
|
42
|
+
*/
|
|
43
|
+
pageSize?: number;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the PaymentSearchRequest interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfPaymentSearchRequest(value: object): value is PaymentSearchRequest;
|
|
49
|
+
export declare function PaymentSearchRequestFromJSON(json: any): PaymentSearchRequest;
|
|
50
|
+
export declare function PaymentSearchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentSearchRequest;
|
|
51
|
+
export declare function PaymentSearchRequestToJSON(json: any): PaymentSearchRequest;
|
|
52
|
+
export declare function PaymentSearchRequestToJSONTyped(value?: PaymentSearchRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfPaymentSearchRequest = instanceOfPaymentSearchRequest;
|
|
17
|
+
exports.PaymentSearchRequestFromJSON = PaymentSearchRequestFromJSON;
|
|
18
|
+
exports.PaymentSearchRequestFromJSONTyped = PaymentSearchRequestFromJSONTyped;
|
|
19
|
+
exports.PaymentSearchRequestToJSON = PaymentSearchRequestToJSON;
|
|
20
|
+
exports.PaymentSearchRequestToJSONTyped = PaymentSearchRequestToJSONTyped;
|
|
21
|
+
var PaymentSort_1 = require("./PaymentSort");
|
|
22
|
+
var PaymentFilter_1 = require("./PaymentFilter");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaymentSearchRequest interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaymentSearchRequest(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PaymentSearchRequestFromJSON(json) {
|
|
30
|
+
return PaymentSearchRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PaymentSearchRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'filter': json['filter'] == null ? undefined : (0, PaymentFilter_1.PaymentFilterFromJSON)(json['filter']),
|
|
38
|
+
'sort': json['sort'] == null ? undefined : (0, PaymentSort_1.PaymentSortFromJSON)(json['sort']),
|
|
39
|
+
'nextToken': json['nextToken'] == null ? undefined : json['nextToken'],
|
|
40
|
+
'pageSize': json['pageSize'] == null ? undefined : json['pageSize'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PaymentSearchRequestToJSON(json) {
|
|
44
|
+
return PaymentSearchRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PaymentSearchRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'filter': (0, PaymentFilter_1.PaymentFilterToJSON)(value['filter']),
|
|
53
|
+
'sort': (0, PaymentSort_1.PaymentSortToJSON)(value['sort']),
|
|
54
|
+
'nextToken': value['nextToken'],
|
|
55
|
+
'pageSize': value['pageSize'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 PaymentSort
|
|
16
|
+
*/
|
|
17
|
+
export interface PaymentSort {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {PaymentSortSortByType}
|
|
21
|
+
* @memberof PaymentSort
|
|
22
|
+
*/
|
|
23
|
+
sortBy?: PaymentSortSortByType;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {PaymentSortSortDirType}
|
|
27
|
+
* @memberof PaymentSort
|
|
28
|
+
*/
|
|
29
|
+
sortDir?: PaymentSortSortDirType;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const PaymentSortSortByType: {
|
|
35
|
+
readonly CREATED_AT: "CREATED_AT";
|
|
36
|
+
readonly AMOUNT_CENTS: "AMOUNT_CENTS";
|
|
37
|
+
};
|
|
38
|
+
export type PaymentSortSortByType = typeof PaymentSortSortByType[keyof typeof PaymentSortSortByType];
|
|
39
|
+
/**
|
|
40
|
+
* @export
|
|
41
|
+
*/
|
|
42
|
+
export declare const PaymentSortSortDirType: {
|
|
43
|
+
readonly ASC: "ASC";
|
|
44
|
+
readonly DESC: "DESC";
|
|
45
|
+
};
|
|
46
|
+
export type PaymentSortSortDirType = typeof PaymentSortSortDirType[keyof typeof PaymentSortSortDirType];
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the PaymentSort interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfPaymentSort(value: object): value is PaymentSort;
|
|
51
|
+
export declare function PaymentSortFromJSON(json: any): PaymentSort;
|
|
52
|
+
export declare function PaymentSortFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentSort;
|
|
53
|
+
export declare function PaymentSortToJSON(json: any): PaymentSort;
|
|
54
|
+
export declare function PaymentSortToJSONTyped(value?: PaymentSort | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.PaymentSortSortDirType = exports.PaymentSortSortByType = void 0;
|
|
17
|
+
exports.instanceOfPaymentSort = instanceOfPaymentSort;
|
|
18
|
+
exports.PaymentSortFromJSON = PaymentSortFromJSON;
|
|
19
|
+
exports.PaymentSortFromJSONTyped = PaymentSortFromJSONTyped;
|
|
20
|
+
exports.PaymentSortToJSON = PaymentSortToJSON;
|
|
21
|
+
exports.PaymentSortToJSONTyped = PaymentSortToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PaymentSortSortByType = {
|
|
26
|
+
CREATED_AT: 'CREATED_AT',
|
|
27
|
+
AMOUNT_CENTS: 'AMOUNT_CENTS'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.PaymentSortSortDirType = {
|
|
33
|
+
ASC: 'ASC',
|
|
34
|
+
DESC: 'DESC'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PaymentSort interface.
|
|
38
|
+
*/
|
|
39
|
+
function instanceOfPaymentSort(value) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function PaymentSortFromJSON(json) {
|
|
43
|
+
return PaymentSortFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function PaymentSortFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
51
|
+
'sortDir': json['sortDir'] == null ? undefined : json['sortDir'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function PaymentSortToJSON(json) {
|
|
55
|
+
return PaymentSortToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function PaymentSortToJSONTyped(value, ignoreDiscriminator) {
|
|
58
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'sortBy': value['sortBy'],
|
|
64
|
+
'sortDir': value['sortDir'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 SendUserEmailFromTemplateRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface SendUserEmailFromTemplateRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SendUserEmailFromTemplateRequest
|
|
22
|
+
*/
|
|
23
|
+
templateName: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {{ [key: string]: string; }}
|
|
27
|
+
* @memberof SendUserEmailFromTemplateRequest
|
|
28
|
+
*/
|
|
29
|
+
templateParams?: {
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the SendUserEmailFromTemplateRequest interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfSendUserEmailFromTemplateRequest(value: object): value is SendUserEmailFromTemplateRequest;
|
|
37
|
+
export declare function SendUserEmailFromTemplateRequestFromJSON(json: any): SendUserEmailFromTemplateRequest;
|
|
38
|
+
export declare function SendUserEmailFromTemplateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendUserEmailFromTemplateRequest;
|
|
39
|
+
export declare function SendUserEmailFromTemplateRequestToJSON(json: any): SendUserEmailFromTemplateRequest;
|
|
40
|
+
export declare function SendUserEmailFromTemplateRequestToJSONTyped(value?: SendUserEmailFromTemplateRequest | null, ignoreDiscriminator?: boolean): any;
|