@managespace/sdk 0.0.24 → 0.0.26
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/extensibility/functions/project/billing.d.ts +4 -11
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +16 -18
- package/dist/extensibility/functions/project/managespace.d.ts +2 -2
- package/dist/extensibility/functions/project/managespace.d.ts.map +1 -1
- package/dist/extensibility/functions/project/managespace.js +1 -0
- package/dist/generated/apis/default-api.d.ts +3 -13
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +1 -35
- package/dist/generated/models/custom-create-customer.d.ts +15 -21
- package/dist/generated/models/custom-create-customer.d.ts.map +1 -1
- package/dist/generated/models/custom-create-customer.js +5 -9
- package/dist/generated/models/custom-customer-response.d.ts +70 -44
- package/dist/generated/models/custom-customer-response.d.ts.map +1 -1
- package/dist/generated/models/custom-customer-response.js +74 -30
- package/dist/generated/models/customer-response.d.ts +0 -84
- package/dist/generated/models/customer-response.d.ts.map +1 -1
- package/dist/generated/models/customer-response.js +0 -56
- package/dist/generated/models/index.d.ts +1 -4
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +1 -4
- package/dist/generated/models/update-customer.d.ts +0 -12
- package/dist/generated/models/update-customer.d.ts.map +1 -1
- package/dist/generated/models/update-customer.js +0 -4
- package/package.json +1 -1
- package/src/extensibility/functions/project/billing.ts +22 -21
- package/src/extensibility/functions/project/managespace.ts +3 -2
- package/src/generated/.openapi-generator/FILES +1 -4
- package/src/generated/apis/default-api.ts +3 -63
- package/src/generated/models/custom-create-customer.ts +24 -33
- package/src/generated/models/custom-customer-response.ts +142 -79
- package/src/generated/models/customer-response.ts +0 -126
- package/src/generated/models/index.ts +1 -4
- package/src/generated/models/update-customer.ts +0 -16
|
@@ -13,6 +13,27 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { NoteResponse } from './note-response';
|
|
17
|
+
import {
|
|
18
|
+
NoteResponseFromJSON,
|
|
19
|
+
NoteResponseFromJSONTyped,
|
|
20
|
+
NoteResponseToJSON,
|
|
21
|
+
NoteResponseToJSONTyped,
|
|
22
|
+
} from './note-response';
|
|
23
|
+
import type { CommunicationResponse } from './communication-response';
|
|
24
|
+
import {
|
|
25
|
+
CommunicationResponseFromJSON,
|
|
26
|
+
CommunicationResponseFromJSONTyped,
|
|
27
|
+
CommunicationResponseToJSON,
|
|
28
|
+
CommunicationResponseToJSONTyped,
|
|
29
|
+
} from './communication-response';
|
|
30
|
+
import type { ContactResponse } from './contact-response';
|
|
31
|
+
import {
|
|
32
|
+
ContactResponseFromJSON,
|
|
33
|
+
ContactResponseFromJSONTyped,
|
|
34
|
+
ContactResponseToJSON,
|
|
35
|
+
ContactResponseToJSONTyped,
|
|
36
|
+
} from './contact-response';
|
|
16
37
|
import type { OrgResponse } from './org-response';
|
|
17
38
|
import {
|
|
18
39
|
OrgResponseFromJSON,
|
|
@@ -20,13 +41,6 @@ import {
|
|
|
20
41
|
OrgResponseToJSON,
|
|
21
42
|
OrgResponseToJSONTyped,
|
|
22
43
|
} from './org-response';
|
|
23
|
-
import type { CustomCreateContactWithCustomer } from './custom-create-contact-with-customer';
|
|
24
|
-
import {
|
|
25
|
-
CustomCreateContactWithCustomerFromJSON,
|
|
26
|
-
CustomCreateContactWithCustomerFromJSONTyped,
|
|
27
|
-
CustomCreateContactWithCustomerToJSON,
|
|
28
|
-
CustomCreateContactWithCustomerToJSONTyped,
|
|
29
|
-
} from './custom-create-contact-with-customer';
|
|
30
44
|
|
|
31
45
|
/**
|
|
32
46
|
*
|
|
@@ -34,6 +48,12 @@ import {
|
|
|
34
48
|
* @interface CustomCustomerResponse
|
|
35
49
|
*/
|
|
36
50
|
export interface CustomCustomerResponse {
|
|
51
|
+
/**
|
|
52
|
+
* Contact ID
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof CustomCustomerResponse
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
37
57
|
/**
|
|
38
58
|
* Full name
|
|
39
59
|
* @type {string}
|
|
@@ -45,145 +65,180 @@ export interface CustomCustomerResponse {
|
|
|
45
65
|
* @type {string}
|
|
46
66
|
* @memberof CustomCustomerResponse
|
|
47
67
|
*/
|
|
48
|
-
description
|
|
68
|
+
description: string | null;
|
|
49
69
|
/**
|
|
50
70
|
* Customer status
|
|
51
71
|
* @type {string}
|
|
52
72
|
* @memberof CustomCustomerResponse
|
|
53
73
|
*/
|
|
54
|
-
status
|
|
74
|
+
status: string;
|
|
75
|
+
/**
|
|
76
|
+
* When the record was created
|
|
77
|
+
* @type {Date}
|
|
78
|
+
* @memberof CustomCustomerResponse
|
|
79
|
+
*/
|
|
80
|
+
createdAt: Date;
|
|
81
|
+
/**
|
|
82
|
+
* When the record was last updated
|
|
83
|
+
* @type {Date}
|
|
84
|
+
* @memberof CustomCustomerResponse
|
|
85
|
+
*/
|
|
86
|
+
updatedAt: Date | null;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {OrgResponse}
|
|
90
|
+
* @memberof CustomCustomerResponse
|
|
91
|
+
*/
|
|
92
|
+
org?: OrgResponse;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof CustomCustomerResponse
|
|
97
|
+
*/
|
|
98
|
+
orgId: string;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {Array<ContactResponse>}
|
|
102
|
+
* @memberof CustomCustomerResponse
|
|
103
|
+
*/
|
|
104
|
+
contacts?: Array<ContactResponse>;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {Array<NoteResponse>}
|
|
108
|
+
* @memberof CustomCustomerResponse
|
|
109
|
+
*/
|
|
110
|
+
note?: Array<NoteResponse>;
|
|
111
|
+
/**
|
|
112
|
+
* External ID
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof CustomCustomerResponse
|
|
115
|
+
*/
|
|
116
|
+
externalId: string | null;
|
|
55
117
|
/**
|
|
56
118
|
* Balance
|
|
57
119
|
* @type {number}
|
|
58
120
|
* @memberof CustomCustomerResponse
|
|
59
121
|
*/
|
|
60
|
-
balance
|
|
122
|
+
balance: number;
|
|
61
123
|
/**
|
|
62
124
|
* autoPay
|
|
63
125
|
* @type {boolean}
|
|
64
126
|
* @memberof CustomCustomerResponse
|
|
65
127
|
*/
|
|
66
|
-
autoPay
|
|
128
|
+
autoPay: boolean;
|
|
67
129
|
/**
|
|
68
130
|
* Billing cycle day
|
|
69
131
|
* @type {number}
|
|
70
132
|
* @memberof CustomCustomerResponse
|
|
71
133
|
*/
|
|
72
|
-
billingCycleDay
|
|
134
|
+
billingCycleDay: number;
|
|
73
135
|
/**
|
|
74
136
|
* Currency
|
|
75
137
|
* @type {string}
|
|
76
138
|
* @memberof CustomCustomerResponse
|
|
77
139
|
*/
|
|
78
|
-
currency
|
|
140
|
+
currency: string;
|
|
79
141
|
/**
|
|
80
142
|
* Payment gateway
|
|
81
143
|
* @type {string}
|
|
82
144
|
* @memberof CustomCustomerResponse
|
|
83
145
|
*/
|
|
84
|
-
paymentGateway
|
|
146
|
+
paymentGateway: string;
|
|
85
147
|
/**
|
|
86
148
|
* Edit auto pay
|
|
87
149
|
* @type {boolean}
|
|
88
150
|
* @memberof CustomCustomerResponse
|
|
89
151
|
*/
|
|
90
|
-
editAutoPay
|
|
152
|
+
editAutoPay: boolean;
|
|
91
153
|
/**
|
|
92
154
|
* Payment terms
|
|
93
155
|
* @type {string}
|
|
94
156
|
* @memberof CustomCustomerResponse
|
|
95
157
|
*/
|
|
96
|
-
paymentTerms
|
|
158
|
+
paymentTerms: string;
|
|
97
159
|
/**
|
|
98
160
|
* Tax exempt
|
|
99
161
|
* @type {boolean}
|
|
100
162
|
* @memberof CustomCustomerResponse
|
|
101
163
|
*/
|
|
102
|
-
taxExempt
|
|
164
|
+
taxExempt: boolean;
|
|
103
165
|
/**
|
|
104
166
|
* ACH Enabled
|
|
105
167
|
* @type {boolean}
|
|
106
168
|
* @memberof CustomCustomerResponse
|
|
107
169
|
*/
|
|
108
|
-
achEnabled
|
|
170
|
+
achEnabled: boolean;
|
|
109
171
|
/**
|
|
110
172
|
* Email Preference
|
|
111
173
|
* @type {boolean}
|
|
112
174
|
* @memberof CustomCustomerResponse
|
|
113
175
|
*/
|
|
114
|
-
emailPreference
|
|
176
|
+
emailPreference: boolean;
|
|
115
177
|
/**
|
|
116
178
|
* Print Preference
|
|
117
179
|
* @type {boolean}
|
|
118
180
|
* @memberof CustomCustomerResponse
|
|
119
181
|
*/
|
|
120
|
-
printPreference
|
|
182
|
+
printPreference: boolean;
|
|
121
183
|
/**
|
|
122
184
|
* Credit Enabled
|
|
123
185
|
* @type {boolean}
|
|
124
186
|
* @memberof CustomCustomerResponse
|
|
125
187
|
*/
|
|
126
|
-
creditEnabled
|
|
188
|
+
creditEnabled: boolean;
|
|
127
189
|
/**
|
|
128
190
|
* billing contact ID
|
|
129
191
|
* @type {string}
|
|
130
192
|
* @memberof CustomCustomerResponse
|
|
131
193
|
*/
|
|
132
|
-
billingContactId
|
|
194
|
+
billingContactId: string | null;
|
|
133
195
|
/**
|
|
134
196
|
* shipping contact ID
|
|
135
197
|
* @type {string}
|
|
136
198
|
* @memberof CustomCustomerResponse
|
|
137
199
|
*/
|
|
138
|
-
shippingContactId
|
|
200
|
+
shippingContactId: string | null;
|
|
139
201
|
/**
|
|
140
|
-
*
|
|
141
|
-
* @type {Array<
|
|
202
|
+
*
|
|
203
|
+
* @type {Array<CommunicationResponse>}
|
|
142
204
|
* @memberof CustomCustomerResponse
|
|
143
205
|
*/
|
|
144
|
-
|
|
206
|
+
communications?: Array<CommunicationResponse>;
|
|
145
207
|
/**
|
|
146
208
|
* Tennant ID.
|
|
147
209
|
* @type {string}
|
|
148
210
|
* @memberof CustomCustomerResponse
|
|
149
211
|
*/
|
|
150
212
|
tenantId: string;
|
|
151
|
-
/**
|
|
152
|
-
* Product ID
|
|
153
|
-
* @type {string}
|
|
154
|
-
* @memberof CustomCustomerResponse
|
|
155
|
-
*/
|
|
156
|
-
id: string;
|
|
157
|
-
/**
|
|
158
|
-
* The product id stored in the external sytem
|
|
159
|
-
* @type {string}
|
|
160
|
-
* @memberof CustomCustomerResponse
|
|
161
|
-
*/
|
|
162
|
-
externalId: string | null;
|
|
163
|
-
/**
|
|
164
|
-
*
|
|
165
|
-
* @type {OrgResponse}
|
|
166
|
-
* @memberof CustomCustomerResponse
|
|
167
|
-
*/
|
|
168
|
-
org?: OrgResponse;
|
|
169
|
-
/**
|
|
170
|
-
*
|
|
171
|
-
* @type {string}
|
|
172
|
-
* @memberof CustomCustomerResponse
|
|
173
|
-
*/
|
|
174
|
-
orgId: string;
|
|
175
213
|
}
|
|
176
214
|
|
|
177
215
|
/**
|
|
178
216
|
* Check if a given object implements the CustomCustomerResponse interface.
|
|
179
217
|
*/
|
|
180
218
|
export function instanceOfCustomCustomerResponse(value: object): value is CustomCustomerResponse {
|
|
181
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
182
|
-
if (!('contacts' in value) || value['contacts'] === undefined) return false;
|
|
183
|
-
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
184
219
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
185
|
-
if (!('
|
|
220
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
221
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
222
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
223
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
224
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
186
225
|
if (!('orgId' in value) || value['orgId'] === undefined) return false;
|
|
226
|
+
if (!('externalId' in value) || value['externalId'] === undefined) return false;
|
|
227
|
+
if (!('balance' in value) || value['balance'] === undefined) return false;
|
|
228
|
+
if (!('autoPay' in value) || value['autoPay'] === undefined) return false;
|
|
229
|
+
if (!('billingCycleDay' in value) || value['billingCycleDay'] === undefined) return false;
|
|
230
|
+
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
231
|
+
if (!('paymentGateway' in value) || value['paymentGateway'] === undefined) return false;
|
|
232
|
+
if (!('editAutoPay' in value) || value['editAutoPay'] === undefined) return false;
|
|
233
|
+
if (!('paymentTerms' in value) || value['paymentTerms'] === undefined) return false;
|
|
234
|
+
if (!('taxExempt' in value) || value['taxExempt'] === undefined) return false;
|
|
235
|
+
if (!('achEnabled' in value) || value['achEnabled'] === undefined) return false;
|
|
236
|
+
if (!('emailPreference' in value) || value['emailPreference'] === undefined) return false;
|
|
237
|
+
if (!('printPreference' in value) || value['printPreference'] === undefined) return false;
|
|
238
|
+
if (!('creditEnabled' in value) || value['creditEnabled'] === undefined) return false;
|
|
239
|
+
if (!('billingContactId' in value) || value['billingContactId'] === undefined) return false;
|
|
240
|
+
if (!('shippingContactId' in value) || value['shippingContactId'] === undefined) return false;
|
|
241
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
187
242
|
return true;
|
|
188
243
|
}
|
|
189
244
|
|
|
@@ -197,29 +252,33 @@ export function CustomCustomerResponseFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
197
252
|
}
|
|
198
253
|
return {
|
|
199
254
|
|
|
200
|
-
'name': json['name'],
|
|
201
|
-
'description': json['description'] == null ? undefined : json['description'],
|
|
202
|
-
'status': json['status'] == null ? undefined : json['status'],
|
|
203
|
-
'balance': json['balance'] == null ? undefined : json['balance'],
|
|
204
|
-
'autoPay': json['autoPay'] == null ? undefined : json['autoPay'],
|
|
205
|
-
'billingCycleDay': json['billingCycleDay'] == null ? undefined : json['billingCycleDay'],
|
|
206
|
-
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
207
|
-
'paymentGateway': json['paymentGateway'] == null ? undefined : json['paymentGateway'],
|
|
208
|
-
'editAutoPay': json['editAutoPay'] == null ? undefined : json['editAutoPay'],
|
|
209
|
-
'paymentTerms': json['paymentTerms'] == null ? undefined : json['paymentTerms'],
|
|
210
|
-
'taxExempt': json['taxExempt'] == null ? undefined : json['taxExempt'],
|
|
211
|
-
'achEnabled': json['achEnabled'] == null ? undefined : json['achEnabled'],
|
|
212
|
-
'emailPreference': json['emailPreference'] == null ? undefined : json['emailPreference'],
|
|
213
|
-
'printPreference': json['printPreference'] == null ? undefined : json['printPreference'],
|
|
214
|
-
'creditEnabled': json['creditEnabled'] == null ? undefined : json['creditEnabled'],
|
|
215
|
-
'billingContactId': json['billingContactId'] == null ? undefined : json['billingContactId'],
|
|
216
|
-
'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
|
|
217
|
-
'contacts': ((json['contacts'] as Array<any>).map(CustomCreateContactWithCustomerFromJSON)),
|
|
218
|
-
'tenantId': json['tenantId'],
|
|
219
255
|
'id': json['id'],
|
|
220
|
-
'
|
|
256
|
+
'name': json['name'],
|
|
257
|
+
'description': json['description'],
|
|
258
|
+
'status': json['status'],
|
|
259
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
260
|
+
'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
|
|
221
261
|
'org': json['org'] == null ? undefined : OrgResponseFromJSON(json['org']),
|
|
222
262
|
'orgId': json['orgId'],
|
|
263
|
+
'contacts': json['contacts'] == null ? undefined : ((json['contacts'] as Array<any>).map(ContactResponseFromJSON)),
|
|
264
|
+
'note': json['note'] == null ? undefined : ((json['note'] as Array<any>).map(NoteResponseFromJSON)),
|
|
265
|
+
'externalId': json['externalId'],
|
|
266
|
+
'balance': json['balance'],
|
|
267
|
+
'autoPay': json['autoPay'],
|
|
268
|
+
'billingCycleDay': json['billingCycleDay'],
|
|
269
|
+
'currency': json['currency'],
|
|
270
|
+
'paymentGateway': json['paymentGateway'],
|
|
271
|
+
'editAutoPay': json['editAutoPay'],
|
|
272
|
+
'paymentTerms': json['paymentTerms'],
|
|
273
|
+
'taxExempt': json['taxExempt'],
|
|
274
|
+
'achEnabled': json['achEnabled'],
|
|
275
|
+
'emailPreference': json['emailPreference'],
|
|
276
|
+
'printPreference': json['printPreference'],
|
|
277
|
+
'creditEnabled': json['creditEnabled'],
|
|
278
|
+
'billingContactId': json['billingContactId'],
|
|
279
|
+
'shippingContactId': json['shippingContactId'],
|
|
280
|
+
'communications': json['communications'] == null ? undefined : ((json['communications'] as Array<any>).map(CommunicationResponseFromJSON)),
|
|
281
|
+
'tenantId': json['tenantId'],
|
|
223
282
|
};
|
|
224
283
|
}
|
|
225
284
|
|
|
@@ -234,9 +293,17 @@ export function CustomCustomerResponseToJSONTyped(value?: CustomCustomerResponse
|
|
|
234
293
|
|
|
235
294
|
return {
|
|
236
295
|
|
|
296
|
+
'id': value['id'],
|
|
237
297
|
'name': value['name'],
|
|
238
298
|
'description': value['description'],
|
|
239
299
|
'status': value['status'],
|
|
300
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
301
|
+
'updatedAt': (value['updatedAt'] == null ? null : (value['updatedAt'] as any).toISOString()),
|
|
302
|
+
'org': OrgResponseToJSON(value['org']),
|
|
303
|
+
'orgId': value['orgId'],
|
|
304
|
+
'contacts': value['contacts'] == null ? undefined : ((value['contacts'] as Array<any>).map(ContactResponseToJSON)),
|
|
305
|
+
'note': value['note'] == null ? undefined : ((value['note'] as Array<any>).map(NoteResponseToJSON)),
|
|
306
|
+
'externalId': value['externalId'],
|
|
240
307
|
'balance': value['balance'],
|
|
241
308
|
'autoPay': value['autoPay'],
|
|
242
309
|
'billingCycleDay': value['billingCycleDay'],
|
|
@@ -251,12 +318,8 @@ export function CustomCustomerResponseToJSONTyped(value?: CustomCustomerResponse
|
|
|
251
318
|
'creditEnabled': value['creditEnabled'],
|
|
252
319
|
'billingContactId': value['billingContactId'],
|
|
253
320
|
'shippingContactId': value['shippingContactId'],
|
|
254
|
-
'
|
|
321
|
+
'communications': value['communications'] == null ? undefined : ((value['communications'] as Array<any>).map(CommunicationResponseToJSON)),
|
|
255
322
|
'tenantId': value['tenantId'],
|
|
256
|
-
'id': value['id'],
|
|
257
|
-
'externalId': value['externalId'],
|
|
258
|
-
'org': OrgResponseToJSON(value['org']),
|
|
259
|
-
'orgId': value['orgId'],
|
|
260
323
|
};
|
|
261
324
|
}
|
|
262
325
|
|
|
@@ -66,12 +66,6 @@ export interface CustomerResponse {
|
|
|
66
66
|
* @memberof CustomerResponse
|
|
67
67
|
*/
|
|
68
68
|
description: string | null;
|
|
69
|
-
/**
|
|
70
|
-
* Customer status
|
|
71
|
-
* @type {string}
|
|
72
|
-
* @memberof CustomerResponse
|
|
73
|
-
*/
|
|
74
|
-
status: string;
|
|
75
69
|
/**
|
|
76
70
|
* When the record was created
|
|
77
71
|
* @type {Date}
|
|
@@ -120,84 +114,6 @@ export interface CustomerResponse {
|
|
|
120
114
|
* @memberof CustomerResponse
|
|
121
115
|
*/
|
|
122
116
|
balance: number;
|
|
123
|
-
/**
|
|
124
|
-
* autoPay
|
|
125
|
-
* @type {boolean}
|
|
126
|
-
* @memberof CustomerResponse
|
|
127
|
-
*/
|
|
128
|
-
autoPay: boolean;
|
|
129
|
-
/**
|
|
130
|
-
* Billing cycle day
|
|
131
|
-
* @type {number}
|
|
132
|
-
* @memberof CustomerResponse
|
|
133
|
-
*/
|
|
134
|
-
billingCycleDay: number;
|
|
135
|
-
/**
|
|
136
|
-
* Currency
|
|
137
|
-
* @type {string}
|
|
138
|
-
* @memberof CustomerResponse
|
|
139
|
-
*/
|
|
140
|
-
currency: string;
|
|
141
|
-
/**
|
|
142
|
-
* Payment gateway
|
|
143
|
-
* @type {string}
|
|
144
|
-
* @memberof CustomerResponse
|
|
145
|
-
*/
|
|
146
|
-
paymentGateway: string;
|
|
147
|
-
/**
|
|
148
|
-
* Edit auto pay
|
|
149
|
-
* @type {boolean}
|
|
150
|
-
* @memberof CustomerResponse
|
|
151
|
-
*/
|
|
152
|
-
editAutoPay: boolean;
|
|
153
|
-
/**
|
|
154
|
-
* Payment terms
|
|
155
|
-
* @type {string}
|
|
156
|
-
* @memberof CustomerResponse
|
|
157
|
-
*/
|
|
158
|
-
paymentTerms: string;
|
|
159
|
-
/**
|
|
160
|
-
* Tax exempt
|
|
161
|
-
* @type {boolean}
|
|
162
|
-
* @memberof CustomerResponse
|
|
163
|
-
*/
|
|
164
|
-
taxExempt: boolean;
|
|
165
|
-
/**
|
|
166
|
-
* ACH Enabled
|
|
167
|
-
* @type {boolean}
|
|
168
|
-
* @memberof CustomerResponse
|
|
169
|
-
*/
|
|
170
|
-
achEnabled: boolean;
|
|
171
|
-
/**
|
|
172
|
-
* Email Preference
|
|
173
|
-
* @type {boolean}
|
|
174
|
-
* @memberof CustomerResponse
|
|
175
|
-
*/
|
|
176
|
-
emailPreference: boolean;
|
|
177
|
-
/**
|
|
178
|
-
* Print Preference
|
|
179
|
-
* @type {boolean}
|
|
180
|
-
* @memberof CustomerResponse
|
|
181
|
-
*/
|
|
182
|
-
printPreference: boolean;
|
|
183
|
-
/**
|
|
184
|
-
* Credit Enabled
|
|
185
|
-
* @type {boolean}
|
|
186
|
-
* @memberof CustomerResponse
|
|
187
|
-
*/
|
|
188
|
-
creditEnabled: boolean;
|
|
189
|
-
/**
|
|
190
|
-
* billing contact ID
|
|
191
|
-
* @type {string}
|
|
192
|
-
* @memberof CustomerResponse
|
|
193
|
-
*/
|
|
194
|
-
billingContactId: string | null;
|
|
195
|
-
/**
|
|
196
|
-
* shipping contact ID
|
|
197
|
-
* @type {string}
|
|
198
|
-
* @memberof CustomerResponse
|
|
199
|
-
*/
|
|
200
|
-
shippingContactId: string | null;
|
|
201
117
|
/**
|
|
202
118
|
*
|
|
203
119
|
* @type {Array<CommunicationResponse>}
|
|
@@ -213,25 +129,11 @@ export function instanceOfCustomerResponse(value: object): value is CustomerResp
|
|
|
213
129
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
214
130
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
215
131
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
216
|
-
if (!('status' in value) || value['status'] === undefined) return false;
|
|
217
132
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
218
133
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
219
134
|
if (!('orgId' in value) || value['orgId'] === undefined) return false;
|
|
220
135
|
if (!('externalId' in value) || value['externalId'] === undefined) return false;
|
|
221
136
|
if (!('balance' in value) || value['balance'] === undefined) return false;
|
|
222
|
-
if (!('autoPay' in value) || value['autoPay'] === undefined) return false;
|
|
223
|
-
if (!('billingCycleDay' in value) || value['billingCycleDay'] === undefined) return false;
|
|
224
|
-
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
225
|
-
if (!('paymentGateway' in value) || value['paymentGateway'] === undefined) return false;
|
|
226
|
-
if (!('editAutoPay' in value) || value['editAutoPay'] === undefined) return false;
|
|
227
|
-
if (!('paymentTerms' in value) || value['paymentTerms'] === undefined) return false;
|
|
228
|
-
if (!('taxExempt' in value) || value['taxExempt'] === undefined) return false;
|
|
229
|
-
if (!('achEnabled' in value) || value['achEnabled'] === undefined) return false;
|
|
230
|
-
if (!('emailPreference' in value) || value['emailPreference'] === undefined) return false;
|
|
231
|
-
if (!('printPreference' in value) || value['printPreference'] === undefined) return false;
|
|
232
|
-
if (!('creditEnabled' in value) || value['creditEnabled'] === undefined) return false;
|
|
233
|
-
if (!('billingContactId' in value) || value['billingContactId'] === undefined) return false;
|
|
234
|
-
if (!('shippingContactId' in value) || value['shippingContactId'] === undefined) return false;
|
|
235
137
|
return true;
|
|
236
138
|
}
|
|
237
139
|
|
|
@@ -248,7 +150,6 @@ export function CustomerResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
248
150
|
'id': json['id'],
|
|
249
151
|
'name': json['name'],
|
|
250
152
|
'description': json['description'],
|
|
251
|
-
'status': json['status'],
|
|
252
153
|
'createdAt': (new Date(json['createdAt'])),
|
|
253
154
|
'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
|
|
254
155
|
'org': json['org'] == null ? undefined : OrgResponseFromJSON(json['org']),
|
|
@@ -257,19 +158,6 @@ export function CustomerResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
257
158
|
'note': json['note'] == null ? undefined : ((json['note'] as Array<any>).map(NoteResponseFromJSON)),
|
|
258
159
|
'externalId': json['externalId'],
|
|
259
160
|
'balance': json['balance'],
|
|
260
|
-
'autoPay': json['autoPay'],
|
|
261
|
-
'billingCycleDay': json['billingCycleDay'],
|
|
262
|
-
'currency': json['currency'],
|
|
263
|
-
'paymentGateway': json['paymentGateway'],
|
|
264
|
-
'editAutoPay': json['editAutoPay'],
|
|
265
|
-
'paymentTerms': json['paymentTerms'],
|
|
266
|
-
'taxExempt': json['taxExempt'],
|
|
267
|
-
'achEnabled': json['achEnabled'],
|
|
268
|
-
'emailPreference': json['emailPreference'],
|
|
269
|
-
'printPreference': json['printPreference'],
|
|
270
|
-
'creditEnabled': json['creditEnabled'],
|
|
271
|
-
'billingContactId': json['billingContactId'],
|
|
272
|
-
'shippingContactId': json['shippingContactId'],
|
|
273
161
|
'communications': json['communications'] == null ? undefined : ((json['communications'] as Array<any>).map(CommunicationResponseFromJSON)),
|
|
274
162
|
};
|
|
275
163
|
}
|
|
@@ -288,7 +176,6 @@ export function CustomerResponseToJSONTyped(value?: CustomerResponse | null, ign
|
|
|
288
176
|
'id': value['id'],
|
|
289
177
|
'name': value['name'],
|
|
290
178
|
'description': value['description'],
|
|
291
|
-
'status': value['status'],
|
|
292
179
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
293
180
|
'updatedAt': (value['updatedAt'] == null ? null : (value['updatedAt'] as any).toISOString()),
|
|
294
181
|
'org': OrgResponseToJSON(value['org']),
|
|
@@ -297,19 +184,6 @@ export function CustomerResponseToJSONTyped(value?: CustomerResponse | null, ign
|
|
|
297
184
|
'note': value['note'] == null ? undefined : ((value['note'] as Array<any>).map(NoteResponseToJSON)),
|
|
298
185
|
'externalId': value['externalId'],
|
|
299
186
|
'balance': value['balance'],
|
|
300
|
-
'autoPay': value['autoPay'],
|
|
301
|
-
'billingCycleDay': value['billingCycleDay'],
|
|
302
|
-
'currency': value['currency'],
|
|
303
|
-
'paymentGateway': value['paymentGateway'],
|
|
304
|
-
'editAutoPay': value['editAutoPay'],
|
|
305
|
-
'paymentTerms': value['paymentTerms'],
|
|
306
|
-
'taxExempt': value['taxExempt'],
|
|
307
|
-
'achEnabled': value['achEnabled'],
|
|
308
|
-
'emailPreference': value['emailPreference'],
|
|
309
|
-
'printPreference': value['printPreference'],
|
|
310
|
-
'creditEnabled': value['creditEnabled'],
|
|
311
|
-
'billingContactId': value['billingContactId'],
|
|
312
|
-
'shippingContactId': value['shippingContactId'],
|
|
313
187
|
'communications': value['communications'] == null ? undefined : ((value['communications'] as Array<any>).map(CommunicationResponseToJSON)),
|
|
314
188
|
};
|
|
315
189
|
}
|
|
@@ -30,7 +30,6 @@ export * from './create-billing-run';
|
|
|
30
30
|
export * from './create-calendar';
|
|
31
31
|
export * from './create-checklist';
|
|
32
32
|
export * from './create-communication';
|
|
33
|
-
export * from './create-contact';
|
|
34
33
|
export * from './create-document';
|
|
35
34
|
export * from './create-instances';
|
|
36
35
|
export * from './create-lease-status';
|
|
@@ -54,13 +53,11 @@ export * from './create-subscription-plan';
|
|
|
54
53
|
export * from './create-task';
|
|
55
54
|
export * from './create-task-template';
|
|
56
55
|
export * from './create-template';
|
|
57
|
-
export * from './custom-add-customer-contact';
|
|
58
56
|
export * from './custom-chart-of-account';
|
|
59
57
|
export * from './custom-chart-of-accounts';
|
|
60
|
-
export * from './custom-create-contact
|
|
58
|
+
export * from './custom-create-contact';
|
|
61
59
|
export * from './custom-create-customer';
|
|
62
60
|
export * from './custom-create-user';
|
|
63
|
-
export * from './custom-customer-response';
|
|
64
61
|
export * from './custom-update-task-template';
|
|
65
62
|
export * from './customer-response';
|
|
66
63
|
export * from './document-signed';
|
|
@@ -31,18 +31,6 @@ export interface UpdateCustomer {
|
|
|
31
31
|
* @memberof UpdateCustomer
|
|
32
32
|
*/
|
|
33
33
|
description?: string | null;
|
|
34
|
-
/**
|
|
35
|
-
* billing contact ID
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof UpdateCustomer
|
|
38
|
-
*/
|
|
39
|
-
billingContactId?: string | null;
|
|
40
|
-
/**
|
|
41
|
-
* shipping contact ID
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof UpdateCustomer
|
|
44
|
-
*/
|
|
45
|
-
shippingContactId?: string | null;
|
|
46
34
|
}
|
|
47
35
|
|
|
48
36
|
/**
|
|
@@ -64,8 +52,6 @@ export function UpdateCustomerFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
64
52
|
|
|
65
53
|
'name': json['name'] == null ? undefined : json['name'],
|
|
66
54
|
'description': json['description'] == null ? undefined : json['description'],
|
|
67
|
-
'billingContactId': json['billingContactId'] == null ? undefined : json['billingContactId'],
|
|
68
|
-
'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
|
|
69
55
|
};
|
|
70
56
|
}
|
|
71
57
|
|
|
@@ -82,8 +68,6 @@ export function UpdateCustomerToJSONTyped(value?: UpdateCustomer | null, ignoreD
|
|
|
82
68
|
|
|
83
69
|
'name': value['name'],
|
|
84
70
|
'description': value['description'],
|
|
85
|
-
'billingContactId': value['billingContactId'],
|
|
86
|
-
'shippingContactId': value['shippingContactId'],
|
|
87
71
|
};
|
|
88
72
|
}
|
|
89
73
|
|