@forteplatforms/sdk 1.0.125 → 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.
Files changed (37) hide show
  1. package/dist/generated/apis/ProjectsServerApi.d.ts +44 -1
  2. package/dist/generated/apis/ProjectsServerApi.js +202 -1
  3. package/dist/generated/models/CreatePaymentPreviewRequest.d.ts +52 -0
  4. package/dist/generated/models/CreatePaymentPreviewRequest.js +61 -0
  5. package/dist/generated/models/CreatePaymentPreviewResponse.d.ts +70 -0
  6. package/dist/generated/models/CreatePaymentPreviewResponse.js +71 -0
  7. package/dist/generated/models/CreatePaymentRequest.d.ts +66 -0
  8. package/dist/generated/models/CreatePaymentRequest.js +65 -0
  9. package/dist/generated/models/CreatePaymentResponse.d.ts +51 -0
  10. package/dist/generated/models/CreatePaymentResponse.js +64 -0
  11. package/dist/generated/models/ForteApiException.d.ts +11 -0
  12. package/dist/generated/models/ForteApiException.js +12 -1
  13. package/dist/generated/models/NotificationTemplatesConfig.d.ts +80 -0
  14. package/dist/generated/models/NotificationTemplatesConfig.js +65 -0
  15. package/dist/generated/models/NotificationTemplatesResponse.d.ts +39 -0
  16. package/dist/generated/models/NotificationTemplatesResponse.js +52 -0
  17. package/dist/generated/models/PaymentAddress.d.ts +62 -0
  18. package/dist/generated/models/PaymentAddress.js +67 -0
  19. package/dist/generated/models/PaymentLineItem.d.ts +56 -0
  20. package/dist/generated/models/PaymentLineItem.js +63 -0
  21. package/dist/generated/models/PaymentObject.d.ts +162 -0
  22. package/dist/generated/models/PaymentObject.js +123 -0
  23. package/dist/generated/models/ProjectObject.d.ts +13 -0
  24. package/dist/generated/models/ProjectObject.js +5 -0
  25. package/dist/generated/models/StateHistory.d.ts +55 -0
  26. package/dist/generated/models/StateHistory.js +68 -0
  27. package/dist/generated/models/UpdateNotificationTemplatesRequest.d.ts +80 -0
  28. package/dist/generated/models/UpdateNotificationTemplatesRequest.js +65 -0
  29. package/dist/generated/models/UpdateProjectRequest.d.ts +6 -0
  30. package/dist/generated/models/UpdateProjectRequest.js +2 -0
  31. package/dist/generated/models/UserActionLogObject.d.ts +2 -0
  32. package/dist/generated/models/UserActionLogObject.js +3 -1
  33. package/dist/generated/models/UserObject.d.ts +12 -0
  34. package/dist/generated/models/UserObject.js +4 -0
  35. package/dist/generated/models/index.d.ts +11 -0
  36. package/dist/generated/models/index.js +11 -0
  37. package/package.json +1 -1
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenAPI definition
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.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,19 @@ 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";
112
122
  readonly EMAIL_CONFIGURATION_INVALID: "EMAIL_CONFIGURATION_INVALID";
113
123
  readonly SES_TENANT_NOT_PROVISIONED: "SES_TENANT_NOT_PROVISIONED";
114
124
  readonly INVALID_MAIL_FROM_SUBDOMAIN: "INVALID_MAIL_FROM_SUBDOMAIN";
@@ -117,6 +127,7 @@ export declare const ForteApiExceptionErrorCodeType: {
117
127
  readonly ENCRYPTION_PASSWORD_TOO_WEAK: "ENCRYPTION_PASSWORD_TOO_WEAK";
118
128
  readonly ENCRYPTION_PASSWORD_MISMATCH: "ENCRYPTION_PASSWORD_MISMATCH";
119
129
  readonly COMPLIANCE_DOCUMENT_ENCRYPTED: "COMPLIANCE_DOCUMENT_ENCRYPTED";
130
+ readonly NOTIFICATION_TEMPLATE_INVALID: "NOTIFICATION_TEMPLATE_INVALID";
120
131
  };
121
132
  export type ForteApiExceptionErrorCodeType = typeof ForteApiExceptionErrorCodeType[keyof typeof ForteApiExceptionErrorCodeType];
122
133
  /**
@@ -91,9 +91,19 @@ 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',
97
107
  EMAIL_CONFIGURATION_INVALID: 'EMAIL_CONFIGURATION_INVALID',
98
108
  SES_TENANT_NOT_PROVISIONED: 'SES_TENANT_NOT_PROVISIONED',
99
109
  INVALID_MAIL_FROM_SUBDOMAIN: 'INVALID_MAIL_FROM_SUBDOMAIN',
@@ -101,7 +111,8 @@ exports.ForteApiExceptionErrorCodeType = {
101
111
  ENCRYPTION_PASSWORD_REQUIRED: 'ENCRYPTION_PASSWORD_REQUIRED',
102
112
  ENCRYPTION_PASSWORD_TOO_WEAK: 'ENCRYPTION_PASSWORD_TOO_WEAK',
103
113
  ENCRYPTION_PASSWORD_MISMATCH: 'ENCRYPTION_PASSWORD_MISMATCH',
104
- COMPLIANCE_DOCUMENT_ENCRYPTED: 'COMPLIANCE_DOCUMENT_ENCRYPTED'
114
+ COMPLIANCE_DOCUMENT_ENCRYPTED: 'COMPLIANCE_DOCUMENT_ENCRYPTED',
115
+ NOTIFICATION_TEMPLATE_INVALID: 'NOTIFICATION_TEMPLATE_INVALID'
105
116
  };
106
117
  /**
107
118
  * 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;
@@ -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;