@managespace/sdk 0.1.183 → 0.1.185-mpj.dev
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/default-api.d.ts +11 -1
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +32 -0
- package/dist/generated/models/contact.d.ts +18 -0
- package/dist/generated/models/contact.d.ts.map +1 -1
- package/dist/generated/models/contact.js +12 -0
- package/dist/generated/models/create-payment-method.d.ts +50 -8
- package/dist/generated/models/create-payment-method.d.ts.map +1 -1
- package/dist/generated/models/create-payment-method.js +20 -12
- package/dist/generated/models/custom-create-contact.d.ts +18 -0
- package/dist/generated/models/custom-create-contact.d.ts.map +1 -1
- package/dist/generated/models/custom-create-contact.js +6 -0
- package/dist/generated/models/custom-create-customer.d.ts +0 -6
- package/dist/generated/models/custom-create-customer.d.ts.map +1 -1
- package/dist/generated/models/custom-create-customer.js +0 -2
- package/dist/generated/models/custom-update-contact.d.ts +18 -0
- package/dist/generated/models/custom-update-contact.d.ts.map +1 -1
- package/dist/generated/models/custom-update-contact.js +6 -0
- package/dist/generated/models/customer-payment-method.d.ts +1 -1
- package/dist/generated/models/customer-payment-method.d.ts.map +1 -1
- package/dist/generated/models/customer-payment-method.js +3 -3
- package/dist/generated/models/field-type.d.ts +4 -0
- package/dist/generated/models/field-type.d.ts.map +1 -1
- package/dist/generated/models/field-type.js +4 -0
- package/dist/generated/models/index.d.ts +1 -0
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +1 -0
- package/dist/generated/models/payment-method.d.ts +37 -13
- package/dist/generated/models/payment-method.d.ts.map +1 -1
- package/dist/generated/models/payment-method.js +18 -16
- package/dist/generated/models/reveal-ssn-response.d.ts +33 -0
- package/dist/generated/models/reveal-ssn-response.d.ts.map +1 -0
- package/dist/generated/models/reveal-ssn-response.js +51 -0
- package/dist/generated/models/template-field.d.ts +18 -0
- package/dist/generated/models/template-field.d.ts.map +1 -1
- package/package.deploy.json +4 -8
- package/package.json +2 -3
- package/src/generated/.openapi-generator/FILES +1 -0
- package/src/generated/apis/default-api.ts +54 -0
- package/src/generated/models/contact.ts +27 -0
- package/src/generated/models/create-payment-method.ts +70 -17
- package/src/generated/models/custom-create-contact.ts +24 -0
- package/src/generated/models/custom-create-customer.ts +0 -8
- package/src/generated/models/custom-update-contact.ts +24 -0
- package/src/generated/models/customer-payment-method.ts +4 -4
- package/src/generated/models/field-type.ts +4 -0
- package/src/generated/models/index.ts +1 -0
- package/src/generated/models/payment-method.ts +55 -26
- package/src/generated/models/reveal-ssn-response.ts +67 -0
- package/src/generated/models/template-field.ts +18 -0
- package/dist/extensions/host-bridge.d.ts +0 -166
- package/dist/extensions/host-bridge.d.ts.map +0 -1
- package/dist/extensions/host-bridge.js +0 -259
- package/dist/extensions/index.d.ts +0 -40
- package/dist/extensions/index.d.ts.map +0 -1
- package/dist/extensions/index.js +0 -55
- package/dist/extensions/types.d.ts +0 -111
- package/dist/extensions/types.d.ts.map +0 -1
- package/dist/extensions/types.js +0 -2
- package/dist/generated/apis/extensions-api.d.ts +0 -98
- package/dist/generated/apis/extensions-api.d.ts.map +0 -1
- package/dist/generated/apis/extensions-api.js +0 -295
- package/dist/generated/models/extension-org.d.ts +0 -64
- package/dist/generated/models/extension-org.d.ts.map +0 -1
- package/dist/generated/models/extension-org.js +0 -70
- package/dist/generated/models/extension.d.ts +0 -106
- package/dist/generated/models/extension.d.ts.map +0 -1
- package/dist/generated/models/extension.js +0 -98
- package/dist/generated/models/update-document-type.d.ts +0 -43
- package/dist/generated/models/update-document-type.d.ts.map +0 -1
- package/dist/generated/models/update-document-type.js +0 -61
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reveal-ssn-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/reveal-ssn-response.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAGrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAQzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASxH"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* ManageSpace API
|
|
7
|
+
* ManageSpace API Documentation
|
|
8
|
+
*
|
|
9
|
+
* The version of the OpenAPI document: 1.0.0
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
+
* https://openapi-generator.tech
|
|
14
|
+
* Do not edit the class manually.
|
|
15
|
+
*/
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.instanceOfRevealSsnResponse = instanceOfRevealSsnResponse;
|
|
18
|
+
exports.RevealSsnResponseFromJSON = RevealSsnResponseFromJSON;
|
|
19
|
+
exports.RevealSsnResponseFromJSONTyped = RevealSsnResponseFromJSONTyped;
|
|
20
|
+
exports.RevealSsnResponseToJSON = RevealSsnResponseToJSON;
|
|
21
|
+
exports.RevealSsnResponseToJSONTyped = RevealSsnResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the RevealSsnResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfRevealSsnResponse(value) {
|
|
26
|
+
if (!('ssn' in value) || value['ssn'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function RevealSsnResponseFromJSON(json) {
|
|
31
|
+
return RevealSsnResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function RevealSsnResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'ssn': json['ssn'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function RevealSsnResponseToJSON(json) {
|
|
42
|
+
return RevealSsnResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function RevealSsnResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'ssn': value['ssn'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -42,6 +42,24 @@ export interface TemplateField {
|
|
|
42
42
|
* @memberof TemplateField
|
|
43
43
|
*/
|
|
44
44
|
areas: Array<FieldArea>;
|
|
45
|
+
/**
|
|
46
|
+
* Condition to show/hide field based on another field value
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof TemplateField
|
|
49
|
+
*/
|
|
50
|
+
condition?: string;
|
|
51
|
+
/**
|
|
52
|
+
* The option value for radio or multiple select fields
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof TemplateField
|
|
55
|
+
*/
|
|
56
|
+
option?: string;
|
|
57
|
+
/**
|
|
58
|
+
* The options for select fields
|
|
59
|
+
* @type {Array<string>}
|
|
60
|
+
* @memberof TemplateField
|
|
61
|
+
*/
|
|
62
|
+
options?: Array<string>;
|
|
45
63
|
/**
|
|
46
64
|
* The preferences of the field
|
|
47
65
|
* @type {FieldPreferences}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-field.d.ts","sourceRoot":"","sources":["../../../src/generated/models/template-field.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAO9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAO5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQ9C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACxB;;;;OAIG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;CAClC;AAID;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAM7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAYjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAahH"}
|
|
1
|
+
{"version":3,"file":"template-field.d.ts","sourceRoot":"","sources":["../../../src/generated/models/template-field.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAO9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAO5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQ9C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB;;;;OAIG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;CAClC;AAID;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAM7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAYjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAahH"}
|
package/package.deploy.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@managespace/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.51",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "tsc -w --preserveWatchOutput",
|
|
6
6
|
"build": "tsc",
|
|
7
7
|
"lint:check": "eslint .",
|
|
8
8
|
"lint:fix": "eslint --fix .",
|
|
9
9
|
"lint:fix:cache": "eslint --fix .",
|
|
10
|
-
"upload": "tsc && npm publish"
|
|
11
|
-
"upload:beta": "tsc && npm publish --tag documents"
|
|
10
|
+
"upload": "tsc && npm publish"
|
|
12
11
|
},
|
|
13
12
|
"main": "./dist/index.js",
|
|
14
13
|
"types": "./dist/index.d.ts",
|
|
@@ -30,8 +29,5 @@
|
|
|
30
29
|
"typescript": "~5.4.2",
|
|
31
30
|
"@repo/eslint-config": "*",
|
|
32
31
|
"@repo/typescript-config": "*"
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
"beta"
|
|
36
|
-
]
|
|
37
|
-
}
|
|
32
|
+
}
|
|
33
|
+
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@managespace/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.185-mpj.dev",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "tsc -w --preserveWatchOutput",
|
|
6
6
|
"build": "tsc",
|
|
7
7
|
"lint:check": "eslint .",
|
|
8
8
|
"lint:fix": "eslint --fix .",
|
|
9
9
|
"lint:fix:cache": "eslint --fix .",
|
|
10
|
-
"upload": "tsc && npm publish"
|
|
11
|
-
"upload:beta": "tsc && npm publish --tag documents"
|
|
10
|
+
"upload": "tsc && npm publish"
|
|
12
11
|
},
|
|
13
12
|
"main": "./dist/index.js",
|
|
14
13
|
"types": "./dist/index.d.ts",
|
|
@@ -228,6 +228,7 @@ models/refund-payment.ts
|
|
|
228
228
|
models/refund-summary-report-filters.ts
|
|
229
229
|
models/refund.ts
|
|
230
230
|
models/rent-roll-report-filters.ts
|
|
231
|
+
models/reveal-ssn-response.ts
|
|
231
232
|
models/revenue-rule.ts
|
|
232
233
|
models/roles.ts
|
|
233
234
|
models/security-deposits-report-filters.ts
|
|
@@ -181,6 +181,7 @@ import type {
|
|
|
181
181
|
RefundPayment,
|
|
182
182
|
RefundSummaryReportFilters,
|
|
183
183
|
RentRollReportFilters,
|
|
184
|
+
RevealSsnResponse,
|
|
184
185
|
RevenueRule,
|
|
185
186
|
Roles,
|
|
186
187
|
SecurityDepositsReportFilters,
|
|
@@ -561,6 +562,8 @@ import {
|
|
|
561
562
|
RefundSummaryReportFiltersToJSON,
|
|
562
563
|
RentRollReportFiltersFromJSON,
|
|
563
564
|
RentRollReportFiltersToJSON,
|
|
565
|
+
RevealSsnResponseFromJSON,
|
|
566
|
+
RevealSsnResponseToJSON,
|
|
564
567
|
RevenueRuleFromJSON,
|
|
565
568
|
RevenueRuleToJSON,
|
|
566
569
|
RolesFromJSON,
|
|
@@ -1561,6 +1564,11 @@ export interface RefundPaymentRequest {
|
|
|
1561
1564
|
refundPayment: RefundPayment;
|
|
1562
1565
|
}
|
|
1563
1566
|
|
|
1567
|
+
export interface RevealSsnRequest {
|
|
1568
|
+
customerId: string;
|
|
1569
|
+
contactId: string;
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1564
1572
|
export interface SendEmailRequest {
|
|
1565
1573
|
sendEmail: SendEmail;
|
|
1566
1574
|
siteId?: string;
|
|
@@ -10369,6 +10377,52 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
10369
10377
|
return await response.value();
|
|
10370
10378
|
}
|
|
10371
10379
|
|
|
10380
|
+
/**
|
|
10381
|
+
*/
|
|
10382
|
+
async revealSsnRaw(requestParameters: RevealSsnRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RevealSsnResponse>> {
|
|
10383
|
+
if (requestParameters['customerId'] == null) {
|
|
10384
|
+
throw new runtime.RequiredError(
|
|
10385
|
+
'customerId',
|
|
10386
|
+
'Required parameter "customerId" was null or undefined when calling revealSsn().'
|
|
10387
|
+
);
|
|
10388
|
+
}
|
|
10389
|
+
|
|
10390
|
+
if (requestParameters['contactId'] == null) {
|
|
10391
|
+
throw new runtime.RequiredError(
|
|
10392
|
+
'contactId',
|
|
10393
|
+
'Required parameter "contactId" was null or undefined when calling revealSsn().'
|
|
10394
|
+
);
|
|
10395
|
+
}
|
|
10396
|
+
|
|
10397
|
+
const queryParameters: any = {};
|
|
10398
|
+
|
|
10399
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
10400
|
+
|
|
10401
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
10402
|
+
const token = this.configuration.accessToken;
|
|
10403
|
+
const tokenString = await token("bearer", []);
|
|
10404
|
+
|
|
10405
|
+
if (tokenString) {
|
|
10406
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
10407
|
+
}
|
|
10408
|
+
}
|
|
10409
|
+
const response = await this.request({
|
|
10410
|
+
path: `/api/crm/customers/{customerId}/contacts/{contactId}/ssn`.replace(`{${"customerId"}}`, encodeURIComponent(String(requestParameters['customerId']))).replace(`{${"contactId"}}`, encodeURIComponent(String(requestParameters['contactId']))),
|
|
10411
|
+
method: 'GET',
|
|
10412
|
+
headers: headerParameters,
|
|
10413
|
+
query: queryParameters,
|
|
10414
|
+
}, initOverrides);
|
|
10415
|
+
|
|
10416
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RevealSsnResponseFromJSON(jsonValue));
|
|
10417
|
+
}
|
|
10418
|
+
|
|
10419
|
+
/**
|
|
10420
|
+
*/
|
|
10421
|
+
async revealSsn(requestParameters: RevealSsnRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RevealSsnResponse> {
|
|
10422
|
+
const response = await this.revealSsnRaw(requestParameters, initOverrides);
|
|
10423
|
+
return await response.value();
|
|
10424
|
+
}
|
|
10425
|
+
|
|
10372
10426
|
/**
|
|
10373
10427
|
*/
|
|
10374
10428
|
async sendEmailRaw(requestParameters: SendEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Communication>> {
|
|
@@ -110,6 +110,24 @@ export interface Contact {
|
|
|
110
110
|
* @memberof Contact
|
|
111
111
|
*/
|
|
112
112
|
mobileNumber: string;
|
|
113
|
+
/**
|
|
114
|
+
* Whether this contact is the billing contact
|
|
115
|
+
* @type {boolean}
|
|
116
|
+
* @memberof Contact
|
|
117
|
+
*/
|
|
118
|
+
isBillingContact: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Whether the contact is military
|
|
121
|
+
* @type {boolean}
|
|
122
|
+
* @memberof Contact
|
|
123
|
+
*/
|
|
124
|
+
isMilitary: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Last four digits of SSN
|
|
127
|
+
* @type {string}
|
|
128
|
+
* @memberof Contact
|
|
129
|
+
*/
|
|
130
|
+
ssnLastFour: string | null;
|
|
113
131
|
/**
|
|
114
132
|
* When the record was created
|
|
115
133
|
* @type {Date}
|
|
@@ -185,6 +203,9 @@ export function instanceOfContact(value: object): value is Contact {
|
|
|
185
203
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
186
204
|
if (!('phoneNumber' in value) || value['phoneNumber'] === undefined) return false;
|
|
187
205
|
if (!('mobileNumber' in value) || value['mobileNumber'] === undefined) return false;
|
|
206
|
+
if (!('isBillingContact' in value) || value['isBillingContact'] === undefined) return false;
|
|
207
|
+
if (!('isMilitary' in value) || value['isMilitary'] === undefined) return false;
|
|
208
|
+
if (!('ssnLastFour' in value) || value['ssnLastFour'] === undefined) return false;
|
|
188
209
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
189
210
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
190
211
|
if (!('orgId' in value) || value['orgId'] === undefined) return false;
|
|
@@ -212,6 +233,9 @@ export function ContactFromJSONTyped(json: any, ignoreDiscriminator: boolean): C
|
|
|
212
233
|
'email': json['email'],
|
|
213
234
|
'phoneNumber': json['phoneNumber'],
|
|
214
235
|
'mobileNumber': json['mobileNumber'],
|
|
236
|
+
'isBillingContact': json['isBillingContact'],
|
|
237
|
+
'isMilitary': json['isMilitary'],
|
|
238
|
+
'ssnLastFour': json['ssnLastFour'],
|
|
215
239
|
'createdAt': (new Date(json['createdAt'])),
|
|
216
240
|
'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
|
|
217
241
|
'org': json['org'] == null ? undefined : OrgFromJSON(json['org']),
|
|
@@ -245,6 +269,9 @@ export function ContactToJSONTyped(value?: Contact | null, ignoreDiscriminator:
|
|
|
245
269
|
'email': value['email'],
|
|
246
270
|
'phoneNumber': value['phoneNumber'],
|
|
247
271
|
'mobileNumber': value['mobileNumber'],
|
|
272
|
+
'isBillingContact': value['isBillingContact'],
|
|
273
|
+
'isMilitary': value['isMilitary'],
|
|
274
|
+
'ssnLastFour': value['ssnLastFour'],
|
|
248
275
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
249
276
|
'updatedAt': (value['updatedAt'] == null ? null : (value['updatedAt'] as any).toISOString()),
|
|
250
277
|
'org': OrgToJSON(value['org']),
|
|
@@ -20,36 +20,78 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
* @interface CreatePaymentMethod
|
|
21
21
|
*/
|
|
22
22
|
export interface CreatePaymentMethod {
|
|
23
|
+
/**
|
|
24
|
+
* Customers payment gateway id
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CreatePaymentMethod
|
|
27
|
+
*/
|
|
28
|
+
customerPaymentGatewayId?: string;
|
|
23
29
|
/**
|
|
24
30
|
* Payment type
|
|
25
31
|
* @type {string}
|
|
26
32
|
* @memberof CreatePaymentMethod
|
|
27
33
|
*/
|
|
28
34
|
paymentType: string;
|
|
35
|
+
/**
|
|
36
|
+
* Type of card
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreatePaymentMethod
|
|
39
|
+
*/
|
|
40
|
+
type?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Credit card or bank account number
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CreatePaymentMethod
|
|
45
|
+
*/
|
|
46
|
+
accountNumber: string;
|
|
47
|
+
/**
|
|
48
|
+
* Routing number for bank accounts
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CreatePaymentMethod
|
|
51
|
+
*/
|
|
52
|
+
routingNumber?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Name on card or account
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof CreatePaymentMethod
|
|
57
|
+
*/
|
|
58
|
+
accountHolderName?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Type of acccount owner
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof CreatePaymentMethod
|
|
63
|
+
*/
|
|
64
|
+
accountHolderType?: string;
|
|
29
65
|
/**
|
|
30
66
|
* Country of the account holder
|
|
31
67
|
* @type {string}
|
|
32
68
|
* @memberof CreatePaymentMethod
|
|
33
69
|
*/
|
|
34
|
-
country
|
|
70
|
+
country?: string;
|
|
35
71
|
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {
|
|
72
|
+
* Credit card expiration date
|
|
73
|
+
* @type {string}
|
|
38
74
|
* @memberof CreatePaymentMethod
|
|
39
75
|
*/
|
|
40
|
-
|
|
76
|
+
expiry?: string;
|
|
41
77
|
/**
|
|
42
|
-
*
|
|
78
|
+
* Account status for bank accounts
|
|
43
79
|
* @type {string}
|
|
44
80
|
* @memberof CreatePaymentMethod
|
|
45
81
|
*/
|
|
46
|
-
|
|
82
|
+
status?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Enable defaule payment method
|
|
85
|
+
* @type {boolean}
|
|
86
|
+
* @memberof CreatePaymentMethod
|
|
87
|
+
*/
|
|
88
|
+
_default?: boolean;
|
|
47
89
|
/**
|
|
48
|
-
*
|
|
90
|
+
* CVC, security code for payment method
|
|
49
91
|
* @type {string}
|
|
50
92
|
* @memberof CreatePaymentMethod
|
|
51
93
|
*/
|
|
52
|
-
|
|
94
|
+
cvc?: string;
|
|
53
95
|
}
|
|
54
96
|
|
|
55
97
|
/**
|
|
@@ -57,10 +99,7 @@ export interface CreatePaymentMethod {
|
|
|
57
99
|
*/
|
|
58
100
|
export function instanceOfCreatePaymentMethod(value: object): value is CreatePaymentMethod {
|
|
59
101
|
if (!('paymentType' in value) || value['paymentType'] === undefined) return false;
|
|
60
|
-
if (!('country' in value) || value['country'] === undefined) return false;
|
|
61
|
-
if (!('isDefault' in value) || value['isDefault'] === undefined) return false;
|
|
62
102
|
if (!('accountNumber' in value) || value['accountNumber'] === undefined) return false;
|
|
63
|
-
if (!('token' in value) || value['token'] === undefined) return false;
|
|
64
103
|
return true;
|
|
65
104
|
}
|
|
66
105
|
|
|
@@ -74,11 +113,18 @@ export function CreatePaymentMethodFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
74
113
|
}
|
|
75
114
|
return {
|
|
76
115
|
|
|
116
|
+
'customerPaymentGatewayId': json['customerPaymentGatewayId'] == null ? undefined : json['customerPaymentGatewayId'],
|
|
77
117
|
'paymentType': json['paymentType'],
|
|
78
|
-
'
|
|
79
|
-
'isDefault': json['isDefault'],
|
|
118
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
80
119
|
'accountNumber': json['accountNumber'],
|
|
81
|
-
'
|
|
120
|
+
'routingNumber': json['routingNumber'] == null ? undefined : json['routingNumber'],
|
|
121
|
+
'accountHolderName': json['accountHolderName'] == null ? undefined : json['accountHolderName'],
|
|
122
|
+
'accountHolderType': json['accountHolderType'] == null ? undefined : json['accountHolderType'],
|
|
123
|
+
'country': json['country'] == null ? undefined : json['country'],
|
|
124
|
+
'expiry': json['expiry'] == null ? undefined : json['expiry'],
|
|
125
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
126
|
+
'_default': json['default'] == null ? undefined : json['default'],
|
|
127
|
+
'cvc': json['cvc'] == null ? undefined : json['cvc'],
|
|
82
128
|
};
|
|
83
129
|
}
|
|
84
130
|
|
|
@@ -93,11 +139,18 @@ export function CreatePaymentMethodToJSONTyped(value?: CreatePaymentMethod | nul
|
|
|
93
139
|
|
|
94
140
|
return {
|
|
95
141
|
|
|
142
|
+
'customerPaymentGatewayId': value['customerPaymentGatewayId'],
|
|
96
143
|
'paymentType': value['paymentType'],
|
|
97
|
-
'
|
|
98
|
-
'isDefault': value['isDefault'],
|
|
144
|
+
'type': value['type'],
|
|
99
145
|
'accountNumber': value['accountNumber'],
|
|
100
|
-
'
|
|
146
|
+
'routingNumber': value['routingNumber'],
|
|
147
|
+
'accountHolderName': value['accountHolderName'],
|
|
148
|
+
'accountHolderType': value['accountHolderType'],
|
|
149
|
+
'country': value['country'],
|
|
150
|
+
'expiry': value['expiry'],
|
|
151
|
+
'status': value['status'],
|
|
152
|
+
'default': value['_default'],
|
|
153
|
+
'cvc': value['cvc'],
|
|
101
154
|
};
|
|
102
155
|
}
|
|
103
156
|
|
|
@@ -70,12 +70,30 @@ export interface CustomCreateContact {
|
|
|
70
70
|
* @memberof CustomCreateContact
|
|
71
71
|
*/
|
|
72
72
|
mobileNumber: string;
|
|
73
|
+
/**
|
|
74
|
+
* Whether this contact is the billing contact
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @memberof CustomCreateContact
|
|
77
|
+
*/
|
|
78
|
+
isBillingContact?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Whether the contact is military
|
|
81
|
+
* @type {boolean}
|
|
82
|
+
* @memberof CustomCreateContact
|
|
83
|
+
*/
|
|
84
|
+
isMilitary?: boolean;
|
|
73
85
|
/**
|
|
74
86
|
* Contact address.
|
|
75
87
|
* @type {CreateAddress}
|
|
76
88
|
* @memberof CustomCreateContact
|
|
77
89
|
*/
|
|
78
90
|
address: CreateAddress;
|
|
91
|
+
/**
|
|
92
|
+
* Full SSN (9 digits, no dashes)
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof CustomCreateContact
|
|
95
|
+
*/
|
|
96
|
+
ssn?: string | null;
|
|
79
97
|
}
|
|
80
98
|
|
|
81
99
|
/**
|
|
@@ -108,7 +126,10 @@ export function CustomCreateContactFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
108
126
|
'email': json['email'],
|
|
109
127
|
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
|
110
128
|
'mobileNumber': json['mobileNumber'],
|
|
129
|
+
'isBillingContact': json['isBillingContact'] == null ? undefined : json['isBillingContact'],
|
|
130
|
+
'isMilitary': json['isMilitary'] == null ? undefined : json['isMilitary'],
|
|
111
131
|
'address': CreateAddressFromJSON(json['address']),
|
|
132
|
+
'ssn': json['ssn'] == null ? undefined : json['ssn'],
|
|
112
133
|
};
|
|
113
134
|
}
|
|
114
135
|
|
|
@@ -130,7 +151,10 @@ export function CustomCreateContactToJSONTyped(value?: CustomCreateContact | nul
|
|
|
130
151
|
'email': value['email'],
|
|
131
152
|
'phoneNumber': value['phoneNumber'],
|
|
132
153
|
'mobileNumber': value['mobileNumber'],
|
|
154
|
+
'isBillingContact': value['isBillingContact'],
|
|
155
|
+
'isMilitary': value['isMilitary'],
|
|
133
156
|
'address': CreateAddressToJSON(value['address']),
|
|
157
|
+
'ssn': value['ssn'],
|
|
134
158
|
};
|
|
135
159
|
}
|
|
136
160
|
|
|
@@ -166,12 +166,6 @@ export interface CustomCreateCustomer {
|
|
|
166
166
|
* @memberof CustomCreateCustomer
|
|
167
167
|
*/
|
|
168
168
|
shippingContactId?: string;
|
|
169
|
-
/**
|
|
170
|
-
* Payment gateway customer ID to link existing vaulted payment methods
|
|
171
|
-
* @type {string}
|
|
172
|
-
* @memberof CustomCreateCustomer
|
|
173
|
-
*/
|
|
174
|
-
paymentGatewayId?: string;
|
|
175
169
|
}
|
|
176
170
|
|
|
177
171
|
/**
|
|
@@ -218,7 +212,6 @@ export function CustomCreateCustomerFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
218
212
|
'creditEnabled': json['creditEnabled'] == null ? undefined : json['creditEnabled'],
|
|
219
213
|
'billingContactId': json['billingContactId'] == null ? undefined : json['billingContactId'],
|
|
220
214
|
'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
|
|
221
|
-
'paymentGatewayId': json['paymentGatewayId'] == null ? undefined : json['paymentGatewayId'],
|
|
222
215
|
};
|
|
223
216
|
}
|
|
224
217
|
|
|
@@ -256,7 +249,6 @@ export function CustomCreateCustomerToJSONTyped(value?: CustomCreateCustomer | n
|
|
|
256
249
|
'creditEnabled': value['creditEnabled'],
|
|
257
250
|
'billingContactId': value['billingContactId'],
|
|
258
251
|
'shippingContactId': value['shippingContactId'],
|
|
259
|
-
'paymentGatewayId': value['paymentGatewayId'],
|
|
260
252
|
};
|
|
261
253
|
}
|
|
262
254
|
|
|
@@ -70,12 +70,30 @@ export interface CustomUpdateContact {
|
|
|
70
70
|
* @memberof CustomUpdateContact
|
|
71
71
|
*/
|
|
72
72
|
mobileNumber?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Whether this contact is the billing contact
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @memberof CustomUpdateContact
|
|
77
|
+
*/
|
|
78
|
+
isBillingContact?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Whether the contact is military
|
|
81
|
+
* @type {boolean}
|
|
82
|
+
* @memberof CustomUpdateContact
|
|
83
|
+
*/
|
|
84
|
+
isMilitary?: boolean;
|
|
73
85
|
/**
|
|
74
86
|
* Contact address.
|
|
75
87
|
* @type {UpdateAddress}
|
|
76
88
|
* @memberof CustomUpdateContact
|
|
77
89
|
*/
|
|
78
90
|
address?: UpdateAddress;
|
|
91
|
+
/**
|
|
92
|
+
* Full SSN (9 digits, no dashes)
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof CustomUpdateContact
|
|
95
|
+
*/
|
|
96
|
+
ssn?: string | null;
|
|
79
97
|
}
|
|
80
98
|
|
|
81
99
|
/**
|
|
@@ -102,7 +120,10 @@ export function CustomUpdateContactFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
102
120
|
'email': json['email'] == null ? undefined : json['email'],
|
|
103
121
|
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
|
104
122
|
'mobileNumber': json['mobileNumber'] == null ? undefined : json['mobileNumber'],
|
|
123
|
+
'isBillingContact': json['isBillingContact'] == null ? undefined : json['isBillingContact'],
|
|
124
|
+
'isMilitary': json['isMilitary'] == null ? undefined : json['isMilitary'],
|
|
105
125
|
'address': json['address'] == null ? undefined : UpdateAddressFromJSON(json['address']),
|
|
126
|
+
'ssn': json['ssn'] == null ? undefined : json['ssn'],
|
|
106
127
|
};
|
|
107
128
|
}
|
|
108
129
|
|
|
@@ -124,7 +145,10 @@ export function CustomUpdateContactToJSONTyped(value?: CustomUpdateContact | nul
|
|
|
124
145
|
'email': value['email'],
|
|
125
146
|
'phoneNumber': value['phoneNumber'],
|
|
126
147
|
'mobileNumber': value['mobileNumber'],
|
|
148
|
+
'isBillingContact': value['isBillingContact'],
|
|
149
|
+
'isMilitary': value['isMilitary'],
|
|
127
150
|
'address': UpdateAddressToJSON(value['address']),
|
|
151
|
+
'ssn': value['ssn'],
|
|
128
152
|
};
|
|
129
153
|
}
|
|
130
154
|
|
|
@@ -55,7 +55,7 @@ export interface CustomerPaymentMethod {
|
|
|
55
55
|
* @type {boolean}
|
|
56
56
|
* @memberof CustomerPaymentMethod
|
|
57
57
|
*/
|
|
58
|
-
|
|
58
|
+
_default: boolean;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
@@ -67,7 +67,7 @@ export function instanceOfCustomerPaymentMethod(value: object): value is Custome
|
|
|
67
67
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
68
68
|
if (!('accountNumber' in value) || value['accountNumber'] === undefined) return false;
|
|
69
69
|
if (!('expiry' in value) || value['expiry'] === undefined) return false;
|
|
70
|
-
if (!('
|
|
70
|
+
if (!('_default' in value) || value['_default'] === undefined) return false;
|
|
71
71
|
return true;
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -86,7 +86,7 @@ export function CustomerPaymentMethodFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
86
86
|
'type': json['type'],
|
|
87
87
|
'accountNumber': json['accountNumber'],
|
|
88
88
|
'expiry': json['expiry'],
|
|
89
|
-
'
|
|
89
|
+
'_default': json['default'],
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
|
|
@@ -106,7 +106,7 @@ export function CustomerPaymentMethodToJSONTyped(value?: CustomerPaymentMethod |
|
|
|
106
106
|
'type': value['type'],
|
|
107
107
|
'accountNumber': value['accountNumber'],
|
|
108
108
|
'expiry': value['expiry'],
|
|
109
|
-
'
|
|
109
|
+
'default': value['_default'],
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
|
|
@@ -23,6 +23,10 @@ export const FieldType = {
|
|
|
23
23
|
signature: 'signature',
|
|
24
24
|
initials: 'initials',
|
|
25
25
|
date: 'date',
|
|
26
|
+
image: 'image',
|
|
27
|
+
file: 'file',
|
|
28
|
+
checkbox: 'checkbox',
|
|
29
|
+
radio: 'radio',
|
|
26
30
|
phone: 'phone'
|
|
27
31
|
} as const;
|
|
28
32
|
export type FieldType = typeof FieldType[keyof typeof FieldType];
|
|
@@ -227,6 +227,7 @@ export * from './refund-invoice';
|
|
|
227
227
|
export * from './refund-payment';
|
|
228
228
|
export * from './refund-summary-report-filters';
|
|
229
229
|
export * from './rent-roll-report-filters';
|
|
230
|
+
export * from './reveal-ssn-response';
|
|
230
231
|
export * from './revenue-rule';
|
|
231
232
|
export * from './roles';
|
|
232
233
|
export * from './security-deposits-report-filters';
|