@managespace/sdk 0.0.30 → 0.0.32
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 +25 -27
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +10 -8
- package/dist/extensibility/functions/project/index.d.ts +1 -2
- package/dist/extensibility/functions/project/index.d.ts.map +1 -1
- package/dist/extensibility/functions/project/index.js +1 -2
- 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 +0 -1
- package/dist/generated/apis/default-api.d.ts +65 -13
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +213 -39
- package/dist/generated/models/create-contact.d.ts +15 -4
- package/dist/generated/models/create-contact.d.ts.map +1 -1
- package/dist/generated/models/create-contact.js +9 -4
- package/dist/generated/models/create-payment.d.ts +155 -0
- package/dist/generated/models/create-payment.d.ts.map +1 -0
- package/dist/generated/models/create-payment.js +123 -0
- package/dist/generated/models/custom-create-contact-with-customer.d.ts +6 -0
- package/dist/generated/models/custom-create-contact-with-customer.d.ts.map +1 -1
- package/dist/generated/models/custom-create-contact-with-customer.js +2 -0
- package/dist/generated/models/custom-create-contact.d.ts +12 -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 +18 -12
- package/dist/generated/models/custom-create-customer.d.ts.map +1 -1
- package/dist/generated/models/custom-create-customer.js +7 -5
- package/dist/generated/models/custom-update-customer.d.ts +10 -75
- package/dist/generated/models/custom-update-customer.d.ts.map +1 -1
- package/dist/generated/models/custom-update-customer.js +5 -26
- package/dist/generated/models/customer-response.d.ts +84 -0
- package/dist/generated/models/customer-response.d.ts.map +1 -1
- package/dist/generated/models/customer-response.js +56 -0
- package/dist/generated/models/index.d.ts +10 -1
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +10 -1
- package/dist/generated/models/payment-response.d.ts +2 -2
- package/dist/generated/models/update-customer.d.ts +18 -0
- package/dist/generated/models/update-customer.d.ts.map +1 -1
- package/dist/generated/models/update-customer.js +6 -0
- package/package.json +1 -1
- package/src/extensibility/functions/project/billing.ts +29 -38
- package/src/extensibility/functions/project/index.ts +1 -2
- package/src/extensibility/functions/project/managespace.ts +2 -3
- package/src/generated/.openapi-generator/FILES +10 -1
- package/src/generated/apis/default-api.ts +354 -59
- package/src/generated/models/create-contact.ts +23 -14
- package/src/generated/models/create-payment.ts +256 -0
- package/src/generated/models/custom-create-contact-with-customer.ts +8 -0
- package/src/generated/models/custom-create-contact.ts +17 -0
- package/src/generated/models/custom-create-customer.ts +29 -21
- package/src/generated/models/custom-update-customer.ts +21 -101
- package/src/generated/models/customer-response.ts +126 -0
- package/src/generated/models/index.ts +10 -1
- package/src/generated/models/payment-response.ts +2 -2
- package/src/generated/models/update-customer.ts +24 -0
- package/dist/extensibility/functions/project/communication.d.ts +0 -12
- package/dist/extensibility/functions/project/communication.d.ts.map +0 -1
- package/dist/extensibility/functions/project/communication.js +0 -18
- package/dist/generated/models/custom-customer-response.d.ts +0 -193
- package/dist/generated/models/custom-customer-response.d.ts.map +0 -1
- package/dist/generated/models/custom-customer-response.js +0 -151
- package/src/extensibility/functions/project/communication.ts +0 -16
- package/src/generated/models/custom-customer-response.ts +0 -325
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { CustomCreateContactWithCustomer } from './custom-create-contact-with-customer';
|
|
17
|
+
import {
|
|
18
|
+
CustomCreateContactWithCustomerFromJSON,
|
|
19
|
+
CustomCreateContactWithCustomerFromJSONTyped,
|
|
20
|
+
CustomCreateContactWithCustomerToJSON,
|
|
21
|
+
CustomCreateContactWithCustomerToJSONTyped,
|
|
22
|
+
} from './custom-create-contact-with-customer';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -32,95 +40,29 @@ export interface CustomUpdateCustomer {
|
|
|
32
40
|
*/
|
|
33
41
|
description?: string | null;
|
|
34
42
|
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof CustomUpdateCustomer
|
|
38
|
-
*/
|
|
39
|
-
balance?: number;
|
|
40
|
-
/**
|
|
41
|
-
* Tennant ID.
|
|
43
|
+
* External ID
|
|
42
44
|
* @type {string}
|
|
43
45
|
* @memberof CustomUpdateCustomer
|
|
44
46
|
*/
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* autoPay
|
|
48
|
-
* @type {boolean}
|
|
49
|
-
* @memberof CustomUpdateCustomer
|
|
50
|
-
*/
|
|
51
|
-
autoPay?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Billing cycle day
|
|
54
|
-
* @type {number}
|
|
55
|
-
* @memberof CustomUpdateCustomer
|
|
56
|
-
*/
|
|
57
|
-
billingCycleDay?: number;
|
|
58
|
-
/**
|
|
59
|
-
* Currency
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof CustomUpdateCustomer
|
|
62
|
-
*/
|
|
63
|
-
currency?: string;
|
|
64
|
-
/**
|
|
65
|
-
* Payment gateway
|
|
66
|
-
* @type {string}
|
|
67
|
-
* @memberof CustomUpdateCustomer
|
|
68
|
-
*/
|
|
69
|
-
paymentGateway?: string;
|
|
70
|
-
/**
|
|
71
|
-
* Edit auto pay
|
|
72
|
-
* @type {boolean}
|
|
73
|
-
* @memberof CustomUpdateCustomer
|
|
74
|
-
*/
|
|
75
|
-
editAutoPay?: boolean;
|
|
47
|
+
externalId?: string | null;
|
|
76
48
|
/**
|
|
77
|
-
*
|
|
49
|
+
* billing contact ID
|
|
78
50
|
* @type {string}
|
|
79
51
|
* @memberof CustomUpdateCustomer
|
|
80
52
|
*/
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Tax exempt
|
|
84
|
-
* @type {boolean}
|
|
85
|
-
* @memberof CustomUpdateCustomer
|
|
86
|
-
*/
|
|
87
|
-
taxExempt?: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* ACH Enabled
|
|
90
|
-
* @type {boolean}
|
|
91
|
-
* @memberof CustomUpdateCustomer
|
|
92
|
-
*/
|
|
93
|
-
achEnabled?: boolean;
|
|
94
|
-
/**
|
|
95
|
-
* Email Preference
|
|
96
|
-
* @type {boolean}
|
|
97
|
-
* @memberof CustomUpdateCustomer
|
|
98
|
-
*/
|
|
99
|
-
emailPreference?: boolean;
|
|
53
|
+
billingContactId?: string | null;
|
|
100
54
|
/**
|
|
101
|
-
*
|
|
102
|
-
* @type {boolean}
|
|
103
|
-
* @memberof CustomUpdateCustomer
|
|
104
|
-
*/
|
|
105
|
-
printPreference?: boolean;
|
|
106
|
-
/**
|
|
107
|
-
* Credit Enabled
|
|
108
|
-
* @type {boolean}
|
|
109
|
-
* @memberof CustomUpdateCustomer
|
|
110
|
-
*/
|
|
111
|
-
creditEnabled?: boolean;
|
|
112
|
-
/**
|
|
113
|
-
* billing contact ID
|
|
55
|
+
* shipping contact ID
|
|
114
56
|
* @type {string}
|
|
115
57
|
* @memberof CustomUpdateCustomer
|
|
116
58
|
*/
|
|
117
|
-
|
|
59
|
+
shippingContactId?: string | null;
|
|
118
60
|
/**
|
|
119
|
-
*
|
|
120
|
-
* @type {
|
|
61
|
+
* Contact information.
|
|
62
|
+
* @type {Array<CustomCreateContactWithCustomer>}
|
|
121
63
|
* @memberof CustomUpdateCustomer
|
|
122
64
|
*/
|
|
123
|
-
|
|
65
|
+
contacts?: Array<CustomCreateContactWithCustomer>;
|
|
124
66
|
}
|
|
125
67
|
|
|
126
68
|
/**
|
|
@@ -142,21 +84,10 @@ export function CustomUpdateCustomerFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
142
84
|
|
|
143
85
|
'name': json['name'] == null ? undefined : json['name'],
|
|
144
86
|
'description': json['description'] == null ? undefined : json['description'],
|
|
145
|
-
'
|
|
146
|
-
'tenantId': json['tenantId'] == null ? undefined : json['tenantId'],
|
|
147
|
-
'autoPay': json['autoPay'] == null ? undefined : json['autoPay'],
|
|
148
|
-
'billingCycleDay': json['billingCycleDay'] == null ? undefined : json['billingCycleDay'],
|
|
149
|
-
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
150
|
-
'paymentGateway': json['paymentGateway'] == null ? undefined : json['paymentGateway'],
|
|
151
|
-
'editAutoPay': json['editAutoPay'] == null ? undefined : json['editAutoPay'],
|
|
152
|
-
'paymentTerms': json['paymentTerms'] == null ? undefined : json['paymentTerms'],
|
|
153
|
-
'taxExempt': json['taxExempt'] == null ? undefined : json['taxExempt'],
|
|
154
|
-
'achEnabled': json['achEnabled'] == null ? undefined : json['achEnabled'],
|
|
155
|
-
'emailPreference': json['emailPreference'] == null ? undefined : json['emailPreference'],
|
|
156
|
-
'printPreference': json['printPreference'] == null ? undefined : json['printPreference'],
|
|
157
|
-
'creditEnabled': json['creditEnabled'] == null ? undefined : json['creditEnabled'],
|
|
87
|
+
'externalId': json['externalId'] == null ? undefined : json['externalId'],
|
|
158
88
|
'billingContactId': json['billingContactId'] == null ? undefined : json['billingContactId'],
|
|
159
89
|
'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
|
|
90
|
+
'contacts': json['contacts'] == null ? undefined : ((json['contacts'] as Array<any>).map(CustomCreateContactWithCustomerFromJSON)),
|
|
160
91
|
};
|
|
161
92
|
}
|
|
162
93
|
|
|
@@ -173,21 +104,10 @@ export function CustomUpdateCustomerToJSONTyped(value?: CustomUpdateCustomer | n
|
|
|
173
104
|
|
|
174
105
|
'name': value['name'],
|
|
175
106
|
'description': value['description'],
|
|
176
|
-
'
|
|
177
|
-
'tenantId': value['tenantId'],
|
|
178
|
-
'autoPay': value['autoPay'],
|
|
179
|
-
'billingCycleDay': value['billingCycleDay'],
|
|
180
|
-
'currency': value['currency'],
|
|
181
|
-
'paymentGateway': value['paymentGateway'],
|
|
182
|
-
'editAutoPay': value['editAutoPay'],
|
|
183
|
-
'paymentTerms': value['paymentTerms'],
|
|
184
|
-
'taxExempt': value['taxExempt'],
|
|
185
|
-
'achEnabled': value['achEnabled'],
|
|
186
|
-
'emailPreference': value['emailPreference'],
|
|
187
|
-
'printPreference': value['printPreference'],
|
|
188
|
-
'creditEnabled': value['creditEnabled'],
|
|
107
|
+
'externalId': value['externalId'],
|
|
189
108
|
'billingContactId': value['billingContactId'],
|
|
190
109
|
'shippingContactId': value['shippingContactId'],
|
|
110
|
+
'contacts': value['contacts'] == null ? undefined : ((value['contacts'] as Array<any>).map(CustomCreateContactWithCustomerToJSON)),
|
|
191
111
|
};
|
|
192
112
|
}
|
|
193
113
|
|
|
@@ -66,6 +66,12 @@ 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;
|
|
69
75
|
/**
|
|
70
76
|
* When the record was created
|
|
71
77
|
* @type {Date}
|
|
@@ -114,6 +120,84 @@ export interface CustomerResponse {
|
|
|
114
120
|
* @memberof CustomerResponse
|
|
115
121
|
*/
|
|
116
122
|
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;
|
|
117
201
|
/**
|
|
118
202
|
*
|
|
119
203
|
* @type {Array<CommunicationResponse>}
|
|
@@ -129,11 +213,25 @@ export function instanceOfCustomerResponse(value: object): value is CustomerResp
|
|
|
129
213
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
130
214
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
131
215
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
216
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
132
217
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
133
218
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
134
219
|
if (!('orgId' in value) || value['orgId'] === undefined) return false;
|
|
135
220
|
if (!('externalId' in value) || value['externalId'] === undefined) return false;
|
|
136
221
|
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;
|
|
137
235
|
return true;
|
|
138
236
|
}
|
|
139
237
|
|
|
@@ -150,6 +248,7 @@ export function CustomerResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
150
248
|
'id': json['id'],
|
|
151
249
|
'name': json['name'],
|
|
152
250
|
'description': json['description'],
|
|
251
|
+
'status': json['status'],
|
|
153
252
|
'createdAt': (new Date(json['createdAt'])),
|
|
154
253
|
'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
|
|
155
254
|
'org': json['org'] == null ? undefined : OrgResponseFromJSON(json['org']),
|
|
@@ -158,6 +257,19 @@ export function CustomerResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
158
257
|
'note': json['note'] == null ? undefined : ((json['note'] as Array<any>).map(NoteResponseFromJSON)),
|
|
159
258
|
'externalId': json['externalId'],
|
|
160
259
|
'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'],
|
|
161
273
|
'communications': json['communications'] == null ? undefined : ((json['communications'] as Array<any>).map(CommunicationResponseFromJSON)),
|
|
162
274
|
};
|
|
163
275
|
}
|
|
@@ -176,6 +288,7 @@ export function CustomerResponseToJSONTyped(value?: CustomerResponse | null, ign
|
|
|
176
288
|
'id': value['id'],
|
|
177
289
|
'name': value['name'],
|
|
178
290
|
'description': value['description'],
|
|
291
|
+
'status': value['status'],
|
|
179
292
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
180
293
|
'updatedAt': (value['updatedAt'] == null ? null : (value['updatedAt'] as any).toISOString()),
|
|
181
294
|
'org': OrgResponseToJSON(value['org']),
|
|
@@ -184,6 +297,19 @@ export function CustomerResponseToJSONTyped(value?: CustomerResponse | null, ign
|
|
|
184
297
|
'note': value['note'] == null ? undefined : ((value['note'] as Array<any>).map(NoteResponseToJSON)),
|
|
185
298
|
'externalId': value['externalId'],
|
|
186
299
|
'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'],
|
|
187
313
|
'communications': value['communications'] == null ? undefined : ((value['communications'] as Array<any>).map(CommunicationResponseToJSON)),
|
|
188
314
|
};
|
|
189
315
|
}
|
|
@@ -30,6 +30,7 @@ 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';
|
|
33
34
|
export * from './create-document';
|
|
34
35
|
export * from './create-instances';
|
|
35
36
|
export * from './create-lease-status';
|
|
@@ -37,7 +38,7 @@ export * from './create-map-feature';
|
|
|
37
38
|
export * from './create-note';
|
|
38
39
|
export * from './create-notification';
|
|
39
40
|
export * from './create-org';
|
|
40
|
-
export * from './create-payment
|
|
41
|
+
export * from './create-payment';
|
|
41
42
|
export * from './create-payment-invoice';
|
|
42
43
|
export * from './create-payment-refund';
|
|
43
44
|
export * from './create-payment-run';
|
|
@@ -53,13 +54,18 @@ export * from './create-subscription-plan';
|
|
|
53
54
|
export * from './create-task';
|
|
54
55
|
export * from './create-task-template';
|
|
55
56
|
export * from './create-template';
|
|
57
|
+
export * from './custom-add-customer-contact';
|
|
56
58
|
export * from './custom-chart-of-account';
|
|
57
59
|
export * from './custom-chart-of-accounts';
|
|
58
60
|
export * from './custom-create-contact';
|
|
61
|
+
export * from './custom-create-contact-with-customer';
|
|
59
62
|
export * from './custom-create-customer';
|
|
60
63
|
export * from './custom-create-user';
|
|
61
64
|
export * from './custom-update-customer';
|
|
62
65
|
export * from './custom-update-task-template';
|
|
66
|
+
export * from './customer-delivery-preferences';
|
|
67
|
+
export * from './customer-id';
|
|
68
|
+
export * from './customer-payment-options';
|
|
63
69
|
export * from './customer-response';
|
|
64
70
|
export * from './document-signed';
|
|
65
71
|
export * from './document-urls-response';
|
|
@@ -82,7 +88,9 @@ export * from './get-chart-of-accounts200-response';
|
|
|
82
88
|
export * from './get-communications200-response';
|
|
83
89
|
export * from './get-contact-response';
|
|
84
90
|
export * from './get-contacts200-response';
|
|
91
|
+
export * from './get-customer-response';
|
|
85
92
|
export * from './get-customers200-response';
|
|
93
|
+
export * from './get-customers-billing200-response';
|
|
86
94
|
export * from './get-intent';
|
|
87
95
|
export * from './get-invoices200-response';
|
|
88
96
|
export * from './get-notes200-response';
|
|
@@ -167,6 +175,7 @@ export * from './update-asset';
|
|
|
167
175
|
export * from './update-asset-category';
|
|
168
176
|
export * from './update-asset-feature';
|
|
169
177
|
export * from './update-checklist-task-template';
|
|
178
|
+
export * from './update-customer';
|
|
170
179
|
export * from './update-extensibility-repo';
|
|
171
180
|
export * from './update-map-feature';
|
|
172
181
|
export * from './update-note';
|
|
@@ -167,10 +167,10 @@ export interface PaymentResponse {
|
|
|
167
167
|
updatedAt: string;
|
|
168
168
|
/**
|
|
169
169
|
* Number of times attempts failed
|
|
170
|
-
* @type {
|
|
170
|
+
* @type {number}
|
|
171
171
|
* @memberof PaymentResponse
|
|
172
172
|
*/
|
|
173
|
-
failedAttempts:
|
|
173
|
+
failedAttempts: number;
|
|
174
174
|
/**
|
|
175
175
|
* Reason for failed attempt
|
|
176
176
|
* @type {string}
|
|
@@ -31,6 +31,24 @@ export interface UpdateCustomer {
|
|
|
31
31
|
* @memberof UpdateCustomer
|
|
32
32
|
*/
|
|
33
33
|
description?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* External ID
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UpdateCustomer
|
|
38
|
+
*/
|
|
39
|
+
externalId?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* billing contact ID
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof UpdateCustomer
|
|
44
|
+
*/
|
|
45
|
+
billingContactId?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* shipping contact ID
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof UpdateCustomer
|
|
50
|
+
*/
|
|
51
|
+
shippingContactId?: string | null;
|
|
34
52
|
}
|
|
35
53
|
|
|
36
54
|
/**
|
|
@@ -52,6 +70,9 @@ export function UpdateCustomerFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
52
70
|
|
|
53
71
|
'name': json['name'] == null ? undefined : json['name'],
|
|
54
72
|
'description': json['description'] == null ? undefined : json['description'],
|
|
73
|
+
'externalId': json['externalId'] == null ? undefined : json['externalId'],
|
|
74
|
+
'billingContactId': json['billingContactId'] == null ? undefined : json['billingContactId'],
|
|
75
|
+
'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
|
|
55
76
|
};
|
|
56
77
|
}
|
|
57
78
|
|
|
@@ -68,6 +89,9 @@ export function UpdateCustomerToJSONTyped(value?: UpdateCustomer | null, ignoreD
|
|
|
68
89
|
|
|
69
90
|
'name': value['name'],
|
|
70
91
|
'description': value['description'],
|
|
92
|
+
'externalId': value['externalId'],
|
|
93
|
+
'billingContactId': value['billingContactId'],
|
|
94
|
+
'shippingContactId': value['shippingContactId'],
|
|
71
95
|
};
|
|
72
96
|
}
|
|
73
97
|
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ExtPlugin } from '../../types';
|
|
2
|
-
export declare namespace Communication {
|
|
3
|
-
class SendEmail implements ExtPlugin {
|
|
4
|
-
responseType: any;
|
|
5
|
-
payload: any;
|
|
6
|
-
}
|
|
7
|
-
class SendSms implements ExtPlugin {
|
|
8
|
-
responseType: any;
|
|
9
|
-
payload: any;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=communication.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"communication.d.ts","sourceRoot":"","sources":["../../../../src/extensibility/functions/project/communication.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,yBAAiB,aAAa,CAAC;IAC3B,MAAa,SAAU,YAAW,SAAS;QAEvC,YAAY,EAAG,GAAG,CAAC;QAEnB,OAAO,EAAG,GAAG,CAAC;KACjB;IAED,MAAa,OAAQ,YAAW,SAAS;QACrC,YAAY,EAAG,GAAG,CAAC;QACnB,OAAO,EAAG,GAAG,CAAC;KACjB;CACJ"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Communication = void 0;
|
|
4
|
-
var Communication;
|
|
5
|
-
(function (Communication) {
|
|
6
|
-
class SendEmail {
|
|
7
|
-
// responseType!: EmailResponse;
|
|
8
|
-
responseType;
|
|
9
|
-
// payload!: SendEmailPayload & { userId: string };
|
|
10
|
-
payload;
|
|
11
|
-
}
|
|
12
|
-
Communication.SendEmail = SendEmail;
|
|
13
|
-
class SendSms {
|
|
14
|
-
responseType;
|
|
15
|
-
payload;
|
|
16
|
-
}
|
|
17
|
-
Communication.SendSms = SendSms;
|
|
18
|
-
})(Communication = exports.Communication || (exports.Communication = {}));
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ManageSpace V2 Auth API
|
|
3
|
-
* ManageSpace Auth API Documentation
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { NoteResponse } from './note-response';
|
|
13
|
-
import type { CommunicationResponse } from './communication-response';
|
|
14
|
-
import type { ContactResponse } from './contact-response';
|
|
15
|
-
import type { OrgResponse } from './org-response';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface CustomCustomerResponse
|
|
20
|
-
*/
|
|
21
|
-
export interface CustomCustomerResponse {
|
|
22
|
-
/**
|
|
23
|
-
* Contact ID
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof CustomCustomerResponse
|
|
26
|
-
*/
|
|
27
|
-
id: string;
|
|
28
|
-
/**
|
|
29
|
-
* Full name
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof CustomCustomerResponse
|
|
32
|
-
*/
|
|
33
|
-
name: string;
|
|
34
|
-
/**
|
|
35
|
-
* description of business or individual
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof CustomCustomerResponse
|
|
38
|
-
*/
|
|
39
|
-
description: string | null;
|
|
40
|
-
/**
|
|
41
|
-
* Customer status
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof CustomCustomerResponse
|
|
44
|
-
*/
|
|
45
|
-
status: string;
|
|
46
|
-
/**
|
|
47
|
-
* When the record was created
|
|
48
|
-
* @type {Date}
|
|
49
|
-
* @memberof CustomCustomerResponse
|
|
50
|
-
*/
|
|
51
|
-
createdAt: Date;
|
|
52
|
-
/**
|
|
53
|
-
* When the record was last updated
|
|
54
|
-
* @type {Date}
|
|
55
|
-
* @memberof CustomCustomerResponse
|
|
56
|
-
*/
|
|
57
|
-
updatedAt: Date | null;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {OrgResponse}
|
|
61
|
-
* @memberof CustomCustomerResponse
|
|
62
|
-
*/
|
|
63
|
-
org?: OrgResponse;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {string}
|
|
67
|
-
* @memberof CustomCustomerResponse
|
|
68
|
-
*/
|
|
69
|
-
orgId: string;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {Array<ContactResponse>}
|
|
73
|
-
* @memberof CustomCustomerResponse
|
|
74
|
-
*/
|
|
75
|
-
contacts?: Array<ContactResponse>;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {Array<NoteResponse>}
|
|
79
|
-
* @memberof CustomCustomerResponse
|
|
80
|
-
*/
|
|
81
|
-
note?: Array<NoteResponse>;
|
|
82
|
-
/**
|
|
83
|
-
* External ID
|
|
84
|
-
* @type {string}
|
|
85
|
-
* @memberof CustomCustomerResponse
|
|
86
|
-
*/
|
|
87
|
-
externalId: string | null;
|
|
88
|
-
/**
|
|
89
|
-
* Balance
|
|
90
|
-
* @type {number}
|
|
91
|
-
* @memberof CustomCustomerResponse
|
|
92
|
-
*/
|
|
93
|
-
balance: number;
|
|
94
|
-
/**
|
|
95
|
-
* autoPay
|
|
96
|
-
* @type {boolean}
|
|
97
|
-
* @memberof CustomCustomerResponse
|
|
98
|
-
*/
|
|
99
|
-
autoPay: boolean;
|
|
100
|
-
/**
|
|
101
|
-
* Billing cycle day
|
|
102
|
-
* @type {number}
|
|
103
|
-
* @memberof CustomCustomerResponse
|
|
104
|
-
*/
|
|
105
|
-
billingCycleDay: number;
|
|
106
|
-
/**
|
|
107
|
-
* Currency
|
|
108
|
-
* @type {string}
|
|
109
|
-
* @memberof CustomCustomerResponse
|
|
110
|
-
*/
|
|
111
|
-
currency: string;
|
|
112
|
-
/**
|
|
113
|
-
* Payment gateway
|
|
114
|
-
* @type {string}
|
|
115
|
-
* @memberof CustomCustomerResponse
|
|
116
|
-
*/
|
|
117
|
-
paymentGateway: string;
|
|
118
|
-
/**
|
|
119
|
-
* Edit auto pay
|
|
120
|
-
* @type {boolean}
|
|
121
|
-
* @memberof CustomCustomerResponse
|
|
122
|
-
*/
|
|
123
|
-
editAutoPay: boolean;
|
|
124
|
-
/**
|
|
125
|
-
* Payment terms
|
|
126
|
-
* @type {string}
|
|
127
|
-
* @memberof CustomCustomerResponse
|
|
128
|
-
*/
|
|
129
|
-
paymentTerms: string;
|
|
130
|
-
/**
|
|
131
|
-
* Tax exempt
|
|
132
|
-
* @type {boolean}
|
|
133
|
-
* @memberof CustomCustomerResponse
|
|
134
|
-
*/
|
|
135
|
-
taxExempt: boolean;
|
|
136
|
-
/**
|
|
137
|
-
* ACH Enabled
|
|
138
|
-
* @type {boolean}
|
|
139
|
-
* @memberof CustomCustomerResponse
|
|
140
|
-
*/
|
|
141
|
-
achEnabled: boolean;
|
|
142
|
-
/**
|
|
143
|
-
* Email Preference
|
|
144
|
-
* @type {boolean}
|
|
145
|
-
* @memberof CustomCustomerResponse
|
|
146
|
-
*/
|
|
147
|
-
emailPreference: boolean;
|
|
148
|
-
/**
|
|
149
|
-
* Print Preference
|
|
150
|
-
* @type {boolean}
|
|
151
|
-
* @memberof CustomCustomerResponse
|
|
152
|
-
*/
|
|
153
|
-
printPreference: boolean;
|
|
154
|
-
/**
|
|
155
|
-
* Credit Enabled
|
|
156
|
-
* @type {boolean}
|
|
157
|
-
* @memberof CustomCustomerResponse
|
|
158
|
-
*/
|
|
159
|
-
creditEnabled: boolean;
|
|
160
|
-
/**
|
|
161
|
-
* billing contact ID
|
|
162
|
-
* @type {string}
|
|
163
|
-
* @memberof CustomCustomerResponse
|
|
164
|
-
*/
|
|
165
|
-
billingContactId: string | null;
|
|
166
|
-
/**
|
|
167
|
-
* shipping contact ID
|
|
168
|
-
* @type {string}
|
|
169
|
-
* @memberof CustomCustomerResponse
|
|
170
|
-
*/
|
|
171
|
-
shippingContactId: string | null;
|
|
172
|
-
/**
|
|
173
|
-
*
|
|
174
|
-
* @type {Array<CommunicationResponse>}
|
|
175
|
-
* @memberof CustomCustomerResponse
|
|
176
|
-
*/
|
|
177
|
-
communications?: Array<CommunicationResponse>;
|
|
178
|
-
/**
|
|
179
|
-
* Tennant ID.
|
|
180
|
-
* @type {string}
|
|
181
|
-
* @memberof CustomCustomerResponse
|
|
182
|
-
*/
|
|
183
|
-
tenantId: string;
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Check if a given object implements the CustomCustomerResponse interface.
|
|
187
|
-
*/
|
|
188
|
-
export declare function instanceOfCustomCustomerResponse(value: object): value is CustomCustomerResponse;
|
|
189
|
-
export declare function CustomCustomerResponseFromJSON(json: any): CustomCustomerResponse;
|
|
190
|
-
export declare function CustomCustomerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomCustomerResponse;
|
|
191
|
-
export declare function CustomCustomerResponseToJSON(json: any): CustomCustomerResponse;
|
|
192
|
-
export declare function CustomCustomerResponseToJSONTyped(value?: CustomCustomerResponse | null, ignoreDiscriminator?: boolean): any;
|
|
193
|
-
//# sourceMappingURL=custom-customer-response.d.ts.map
|