@managespace/sdk 0.1.182 → 0.1.184-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-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/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 +12 -0
- package/dist/generated/models/template-field.d.ts.map +1 -1
- package/package.deploy.json +4 -8
- package/package.json +2 -3
- package/package.original.json +23 -0
- 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-update-contact.ts +24 -0
- package/src/generated/models/customer-payment-method.ts +4 -4
- 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 +12 -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
|
@@ -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;IAC5B,EAAE,MAAA,CAAI;;;;WAIC;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.184-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",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@managespace/sdk",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"lint:check": "eslint .",
|
|
6
|
+
"lint:fix": "eslint --fix .",
|
|
7
|
+
"upload": "tsc && npm publish",
|
|
8
|
+
"typecheck": "tsc --noEmit",
|
|
9
|
+
"circular": "bunx madge --circular --warning --ts-config tsconfig.json --extensions ts ."
|
|
10
|
+
},
|
|
11
|
+
"exports": {
|
|
12
|
+
".": "./src/index.ts"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"import-sync": "^2.2.2",
|
|
16
|
+
"tslib": "catalog:",
|
|
17
|
+
"zod": "catalog:"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@types/node": "catalog:",
|
|
21
|
+
"@repo/typescript-config": "workspace:*"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -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';
|
|
@@ -20,6 +20,12 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
* @interface PaymentMethod
|
|
21
21
|
*/
|
|
22
22
|
export interface PaymentMethod {
|
|
23
|
+
/**
|
|
24
|
+
* Customers payment gateway id
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof PaymentMethod
|
|
27
|
+
*/
|
|
28
|
+
customerPaymentGatewayId?: string;
|
|
23
29
|
/**
|
|
24
30
|
* Payment type
|
|
25
31
|
* @type {string}
|
|
@@ -27,41 +33,41 @@ export interface PaymentMethod {
|
|
|
27
33
|
*/
|
|
28
34
|
paymentType: string;
|
|
29
35
|
/**
|
|
30
|
-
*
|
|
36
|
+
* Type of card
|
|
31
37
|
* @type {string}
|
|
32
38
|
* @memberof PaymentMethod
|
|
33
39
|
*/
|
|
34
|
-
|
|
40
|
+
type?: string;
|
|
35
41
|
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {
|
|
42
|
+
* Credit card or bank account number
|
|
43
|
+
* @type {string}
|
|
38
44
|
* @memberof PaymentMethod
|
|
39
45
|
*/
|
|
40
|
-
|
|
46
|
+
accountNumber: string;
|
|
41
47
|
/**
|
|
42
|
-
*
|
|
48
|
+
* Routing number for bank accounts
|
|
43
49
|
* @type {string}
|
|
44
50
|
* @memberof PaymentMethod
|
|
45
51
|
*/
|
|
46
|
-
|
|
52
|
+
routingNumber?: string;
|
|
47
53
|
/**
|
|
48
|
-
*
|
|
54
|
+
* Name on card or account
|
|
49
55
|
* @type {string}
|
|
50
56
|
* @memberof PaymentMethod
|
|
51
57
|
*/
|
|
52
|
-
|
|
58
|
+
accountHolderName?: string;
|
|
53
59
|
/**
|
|
54
|
-
*
|
|
60
|
+
* Type of acccount owner
|
|
55
61
|
* @type {string}
|
|
56
62
|
* @memberof PaymentMethod
|
|
57
63
|
*/
|
|
58
|
-
|
|
64
|
+
accountHolderType?: string;
|
|
59
65
|
/**
|
|
60
|
-
*
|
|
66
|
+
* Country of the account holder
|
|
61
67
|
* @type {string}
|
|
62
68
|
* @memberof PaymentMethod
|
|
63
69
|
*/
|
|
64
|
-
|
|
70
|
+
country?: string;
|
|
65
71
|
/**
|
|
66
72
|
* Credit card expiration date
|
|
67
73
|
* @type {string}
|
|
@@ -74,6 +80,24 @@ export interface PaymentMethod {
|
|
|
74
80
|
* @memberof PaymentMethod
|
|
75
81
|
*/
|
|
76
82
|
status?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Enable defaule payment method
|
|
85
|
+
* @type {boolean}
|
|
86
|
+
* @memberof PaymentMethod
|
|
87
|
+
*/
|
|
88
|
+
_default?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* CVC, security code for payment method
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof PaymentMethod
|
|
93
|
+
*/
|
|
94
|
+
cvc?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Payment method ID
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof PaymentMethod
|
|
99
|
+
*/
|
|
100
|
+
paymentMethodId: string;
|
|
77
101
|
}
|
|
78
102
|
|
|
79
103
|
/**
|
|
@@ -81,10 +105,7 @@ export interface PaymentMethod {
|
|
|
81
105
|
*/
|
|
82
106
|
export function instanceOfPaymentMethod(value: object): value is PaymentMethod {
|
|
83
107
|
if (!('paymentType' in value) || value['paymentType'] === undefined) return false;
|
|
84
|
-
if (!('country' in value) || value['country'] === undefined) return false;
|
|
85
|
-
if (!('isDefault' in value) || value['isDefault'] === undefined) return false;
|
|
86
108
|
if (!('accountNumber' in value) || value['accountNumber'] === undefined) return false;
|
|
87
|
-
if (!('token' in value) || value['token'] === undefined) return false;
|
|
88
109
|
if (!('paymentMethodId' in value) || value['paymentMethodId'] === undefined) return false;
|
|
89
110
|
return true;
|
|
90
111
|
}
|
|
@@ -99,15 +120,19 @@ export function PaymentMethodFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
99
120
|
}
|
|
100
121
|
return {
|
|
101
122
|
|
|
123
|
+
'customerPaymentGatewayId': json['customerPaymentGatewayId'] == null ? undefined : json['customerPaymentGatewayId'],
|
|
102
124
|
'paymentType': json['paymentType'],
|
|
103
|
-
'country': json['country'],
|
|
104
|
-
'isDefault': json['isDefault'],
|
|
105
|
-
'accountNumber': json['accountNumber'],
|
|
106
|
-
'token': json['token'],
|
|
107
|
-
'paymentMethodId': json['paymentMethodId'],
|
|
108
125
|
'type': json['type'] == null ? undefined : json['type'],
|
|
126
|
+
'accountNumber': json['accountNumber'],
|
|
127
|
+
'routingNumber': json['routingNumber'] == null ? undefined : json['routingNumber'],
|
|
128
|
+
'accountHolderName': json['accountHolderName'] == null ? undefined : json['accountHolderName'],
|
|
129
|
+
'accountHolderType': json['accountHolderType'] == null ? undefined : json['accountHolderType'],
|
|
130
|
+
'country': json['country'] == null ? undefined : json['country'],
|
|
109
131
|
'expiry': json['expiry'] == null ? undefined : json['expiry'],
|
|
110
132
|
'status': json['status'] == null ? undefined : json['status'],
|
|
133
|
+
'_default': json['default'] == null ? undefined : json['default'],
|
|
134
|
+
'cvc': json['cvc'] == null ? undefined : json['cvc'],
|
|
135
|
+
'paymentMethodId': json['paymentMethodId'],
|
|
111
136
|
};
|
|
112
137
|
}
|
|
113
138
|
|
|
@@ -122,15 +147,19 @@ export function PaymentMethodToJSONTyped(value?: PaymentMethod | null, ignoreDis
|
|
|
122
147
|
|
|
123
148
|
return {
|
|
124
149
|
|
|
150
|
+
'customerPaymentGatewayId': value['customerPaymentGatewayId'],
|
|
125
151
|
'paymentType': value['paymentType'],
|
|
126
|
-
'country': value['country'],
|
|
127
|
-
'isDefault': value['isDefault'],
|
|
128
|
-
'accountNumber': value['accountNumber'],
|
|
129
|
-
'token': value['token'],
|
|
130
|
-
'paymentMethodId': value['paymentMethodId'],
|
|
131
152
|
'type': value['type'],
|
|
153
|
+
'accountNumber': value['accountNumber'],
|
|
154
|
+
'routingNumber': value['routingNumber'],
|
|
155
|
+
'accountHolderName': value['accountHolderName'],
|
|
156
|
+
'accountHolderType': value['accountHolderType'],
|
|
157
|
+
'country': value['country'],
|
|
132
158
|
'expiry': value['expiry'],
|
|
133
159
|
'status': value['status'],
|
|
160
|
+
'default': value['_default'],
|
|
161
|
+
'cvc': value['cvc'],
|
|
162
|
+
'paymentMethodId': value['paymentMethodId'],
|
|
134
163
|
};
|
|
135
164
|
}
|
|
136
165
|
|