@managespace/sdk 0.0.135 → 0.0.136
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.map +1 -1
- package/package.json +1 -1
- package/src/extensibility/functions/project/billing.ts +5 -3
- package/src/extensibility/functions/project/document.ts +9 -0
- package/src/generated/.openapi-generator/FILES +8 -0
- package/src/generated/apis/default-api.ts +316 -52
- package/src/generated/models/document-signed.ts +9 -0
- package/src/generated/models/document-url.ts +75 -0
- package/src/generated/models/document.ts +75 -0
- package/src/generated/models/get-documents200-response.ts +89 -0
- package/src/generated/models/index.ts +8 -0
- package/src/generated/models/subscription-invoice-line.ts +192 -0
- package/src/generated/models/subscription-invoice.ts +110 -0
- package/src/generated/models/subscription-preview.ts +440 -0
- package/src/generated/models/upload-document.ts +82 -0
- package/src/generated/models/uploaded-document.ts +66 -0
- package/src/generated/models/uploaded-documents.ts +84 -0
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace API
|
|
5
|
+
* ManageSpace API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { SubscriptionCharge } from './subscription-charge';
|
|
17
|
+
import {
|
|
18
|
+
SubscriptionChargeFromJSON,
|
|
19
|
+
SubscriptionChargeFromJSONTyped,
|
|
20
|
+
SubscriptionChargeToJSON,
|
|
21
|
+
SubscriptionChargeToJSONTyped,
|
|
22
|
+
} from './subscription-charge';
|
|
23
|
+
import type { SubscriptionInvoice } from './subscription-invoice';
|
|
24
|
+
import {
|
|
25
|
+
SubscriptionInvoiceFromJSON,
|
|
26
|
+
SubscriptionInvoiceFromJSONTyped,
|
|
27
|
+
SubscriptionInvoiceToJSON,
|
|
28
|
+
SubscriptionInvoiceToJSONTyped,
|
|
29
|
+
} from './subscription-invoice';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface SubscriptionPreview
|
|
35
|
+
*/
|
|
36
|
+
export interface SubscriptionPreview {
|
|
37
|
+
/**
|
|
38
|
+
* Subscription ID
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof SubscriptionPreview
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Customer ID
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof SubscriptionPreview
|
|
47
|
+
*/
|
|
48
|
+
externalCustomerId: string;
|
|
49
|
+
/**
|
|
50
|
+
* Customer name
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof SubscriptionPreview
|
|
53
|
+
*/
|
|
54
|
+
customerName: string;
|
|
55
|
+
/**
|
|
56
|
+
* Id of billing contact
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof SubscriptionPreview
|
|
59
|
+
*/
|
|
60
|
+
externalBillContactId: string;
|
|
61
|
+
/**
|
|
62
|
+
* Id of shipping contact
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof SubscriptionPreview
|
|
65
|
+
*/
|
|
66
|
+
externalShippingContactId: string;
|
|
67
|
+
/**
|
|
68
|
+
* Status of subscription contract
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof SubscriptionPreview
|
|
71
|
+
*/
|
|
72
|
+
status: string;
|
|
73
|
+
/**
|
|
74
|
+
* Set to defer start date
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @memberof SubscriptionPreview
|
|
77
|
+
*/
|
|
78
|
+
deferStartDate: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Billing start date for subscription contract
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof SubscriptionPreview
|
|
83
|
+
*/
|
|
84
|
+
billingStartDate: string;
|
|
85
|
+
/**
|
|
86
|
+
* Service start date for subscription contract
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof SubscriptionPreview
|
|
89
|
+
*/
|
|
90
|
+
serviceStartDate: string;
|
|
91
|
+
/**
|
|
92
|
+
* Date order was placed
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof SubscriptionPreview
|
|
95
|
+
*/
|
|
96
|
+
orderPlacedAt: string;
|
|
97
|
+
/**
|
|
98
|
+
* Date subscription contract was signed and activated
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof SubscriptionPreview
|
|
101
|
+
*/
|
|
102
|
+
contractEffectiveDate: string;
|
|
103
|
+
/**
|
|
104
|
+
* Date subscription contract was terminated
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof SubscriptionPreview
|
|
107
|
+
*/
|
|
108
|
+
cancellationDate: string;
|
|
109
|
+
/**
|
|
110
|
+
* Date subscription contract to pause
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof SubscriptionPreview
|
|
113
|
+
*/
|
|
114
|
+
pauseEffectiveDate: string;
|
|
115
|
+
/**
|
|
116
|
+
* Date subscription contract to resume
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof SubscriptionPreview
|
|
119
|
+
*/
|
|
120
|
+
resumeEffectiveDate: string;
|
|
121
|
+
/**
|
|
122
|
+
* Set to extend contract on resume
|
|
123
|
+
* @type {boolean}
|
|
124
|
+
* @memberof SubscriptionPreview
|
|
125
|
+
*/
|
|
126
|
+
extendOnResume: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* auto-renew subscription contract
|
|
129
|
+
* @type {boolean}
|
|
130
|
+
* @memberof SubscriptionPreview
|
|
131
|
+
*/
|
|
132
|
+
autoRenew: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* currency
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @memberof SubscriptionPreview
|
|
137
|
+
*/
|
|
138
|
+
currency: string;
|
|
139
|
+
/**
|
|
140
|
+
* Calculate due date of invoice
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof SubscriptionPreview
|
|
143
|
+
*/
|
|
144
|
+
paymentTerms: string;
|
|
145
|
+
/**
|
|
146
|
+
* Contracted MRR per charge
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof SubscriptionPreview
|
|
149
|
+
*/
|
|
150
|
+
cmrr: string;
|
|
151
|
+
/**
|
|
152
|
+
* MRR calculated based on % discount
|
|
153
|
+
* @type {string}
|
|
154
|
+
* @memberof SubscriptionPreview
|
|
155
|
+
*/
|
|
156
|
+
discountedCmrr: string;
|
|
157
|
+
/**
|
|
158
|
+
* separate invoice generated
|
|
159
|
+
* @type {boolean}
|
|
160
|
+
* @memberof SubscriptionPreview
|
|
161
|
+
*/
|
|
162
|
+
separateInvoice: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Miscellaneous notes
|
|
165
|
+
* @type {string}
|
|
166
|
+
* @memberof SubscriptionPreview
|
|
167
|
+
*/
|
|
168
|
+
notes: string;
|
|
169
|
+
/**
|
|
170
|
+
* Version of subscription contract
|
|
171
|
+
* @type {number}
|
|
172
|
+
* @memberof SubscriptionPreview
|
|
173
|
+
*/
|
|
174
|
+
version: number;
|
|
175
|
+
/**
|
|
176
|
+
* Subscription contract version type
|
|
177
|
+
* @type {string}
|
|
178
|
+
* @memberof SubscriptionPreview
|
|
179
|
+
*/
|
|
180
|
+
versionType: string;
|
|
181
|
+
/**
|
|
182
|
+
* Term of contract in months
|
|
183
|
+
* @type {string}
|
|
184
|
+
* @memberof SubscriptionPreview
|
|
185
|
+
*/
|
|
186
|
+
contractTerm: string;
|
|
187
|
+
/**
|
|
188
|
+
* Date subscription contract will start
|
|
189
|
+
* @type {number}
|
|
190
|
+
* @memberof SubscriptionPreview
|
|
191
|
+
*/
|
|
192
|
+
renewalIncrementPercent: number;
|
|
193
|
+
/**
|
|
194
|
+
* Total contract value of the subsctiption contract
|
|
195
|
+
* @type {number}
|
|
196
|
+
* @memberof SubscriptionPreview
|
|
197
|
+
*/
|
|
198
|
+
tcv: number;
|
|
199
|
+
/**
|
|
200
|
+
* Subscription charge details
|
|
201
|
+
* @type {Array<SubscriptionCharge>}
|
|
202
|
+
* @memberof SubscriptionPreview
|
|
203
|
+
*/
|
|
204
|
+
charges: Array<SubscriptionCharge>;
|
|
205
|
+
/**
|
|
206
|
+
* Date record was created
|
|
207
|
+
* @type {string}
|
|
208
|
+
* @memberof SubscriptionPreview
|
|
209
|
+
*/
|
|
210
|
+
createdAt: string;
|
|
211
|
+
/**
|
|
212
|
+
* Date record was created
|
|
213
|
+
* @type {string}
|
|
214
|
+
* @memberof SubscriptionPreview
|
|
215
|
+
*/
|
|
216
|
+
updatedAt: string;
|
|
217
|
+
/**
|
|
218
|
+
* Email of user who created record
|
|
219
|
+
* @type {string}
|
|
220
|
+
* @memberof SubscriptionPreview
|
|
221
|
+
*/
|
|
222
|
+
createdBy: string;
|
|
223
|
+
/**
|
|
224
|
+
* Email of user who last modifed record
|
|
225
|
+
* @type {string}
|
|
226
|
+
* @memberof SubscriptionPreview
|
|
227
|
+
*/
|
|
228
|
+
updatedBy: string;
|
|
229
|
+
/**
|
|
230
|
+
* Id of billing contact sf
|
|
231
|
+
* @type {string}
|
|
232
|
+
* @memberof SubscriptionPreview
|
|
233
|
+
*/
|
|
234
|
+
billContactSfId: string;
|
|
235
|
+
/**
|
|
236
|
+
* Id of shipping contact sf
|
|
237
|
+
* @type {string}
|
|
238
|
+
* @memberof SubscriptionPreview
|
|
239
|
+
*/
|
|
240
|
+
shippingContactSfId: string;
|
|
241
|
+
/**
|
|
242
|
+
* Custom fields on the invoice
|
|
243
|
+
* @type {object}
|
|
244
|
+
* @memberof SubscriptionPreview
|
|
245
|
+
*/
|
|
246
|
+
customFields: object;
|
|
247
|
+
/**
|
|
248
|
+
* Asset ID
|
|
249
|
+
* @type {string}
|
|
250
|
+
* @memberof SubscriptionPreview
|
|
251
|
+
*/
|
|
252
|
+
assetId?: string;
|
|
253
|
+
/**
|
|
254
|
+
* Site ID
|
|
255
|
+
* @type {string}
|
|
256
|
+
* @memberof SubscriptionPreview
|
|
257
|
+
*/
|
|
258
|
+
siteId: string;
|
|
259
|
+
/**
|
|
260
|
+
* External id associated with subscription
|
|
261
|
+
* @type {string}
|
|
262
|
+
* @memberof SubscriptionPreview
|
|
263
|
+
*/
|
|
264
|
+
externalId: string;
|
|
265
|
+
/**
|
|
266
|
+
* Subscription Current Invoice line items
|
|
267
|
+
* @type {SubscriptionInvoice}
|
|
268
|
+
* @memberof SubscriptionPreview
|
|
269
|
+
*/
|
|
270
|
+
currentInvoice: SubscriptionInvoice;
|
|
271
|
+
/**
|
|
272
|
+
* Subscription Next Invoice line items
|
|
273
|
+
* @type {SubscriptionInvoice}
|
|
274
|
+
* @memberof SubscriptionPreview
|
|
275
|
+
*/
|
|
276
|
+
nextInvoice: SubscriptionInvoice;
|
|
277
|
+
/**
|
|
278
|
+
* Estimated tax amount
|
|
279
|
+
* @type {string}
|
|
280
|
+
* @memberof SubscriptionPreview
|
|
281
|
+
*/
|
|
282
|
+
estimatedTax: string;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Check if a given object implements the SubscriptionPreview interface.
|
|
287
|
+
*/
|
|
288
|
+
export function instanceOfSubscriptionPreview(value: object): value is SubscriptionPreview {
|
|
289
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
290
|
+
if (!('externalCustomerId' in value) || value['externalCustomerId'] === undefined) return false;
|
|
291
|
+
if (!('customerName' in value) || value['customerName'] === undefined) return false;
|
|
292
|
+
if (!('externalBillContactId' in value) || value['externalBillContactId'] === undefined) return false;
|
|
293
|
+
if (!('externalShippingContactId' in value) || value['externalShippingContactId'] === undefined) return false;
|
|
294
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
295
|
+
if (!('deferStartDate' in value) || value['deferStartDate'] === undefined) return false;
|
|
296
|
+
if (!('billingStartDate' in value) || value['billingStartDate'] === undefined) return false;
|
|
297
|
+
if (!('serviceStartDate' in value) || value['serviceStartDate'] === undefined) return false;
|
|
298
|
+
if (!('orderPlacedAt' in value) || value['orderPlacedAt'] === undefined) return false;
|
|
299
|
+
if (!('contractEffectiveDate' in value) || value['contractEffectiveDate'] === undefined) return false;
|
|
300
|
+
if (!('cancellationDate' in value) || value['cancellationDate'] === undefined) return false;
|
|
301
|
+
if (!('pauseEffectiveDate' in value) || value['pauseEffectiveDate'] === undefined) return false;
|
|
302
|
+
if (!('resumeEffectiveDate' in value) || value['resumeEffectiveDate'] === undefined) return false;
|
|
303
|
+
if (!('extendOnResume' in value) || value['extendOnResume'] === undefined) return false;
|
|
304
|
+
if (!('autoRenew' in value) || value['autoRenew'] === undefined) return false;
|
|
305
|
+
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
306
|
+
if (!('paymentTerms' in value) || value['paymentTerms'] === undefined) return false;
|
|
307
|
+
if (!('cmrr' in value) || value['cmrr'] === undefined) return false;
|
|
308
|
+
if (!('discountedCmrr' in value) || value['discountedCmrr'] === undefined) return false;
|
|
309
|
+
if (!('separateInvoice' in value) || value['separateInvoice'] === undefined) return false;
|
|
310
|
+
if (!('notes' in value) || value['notes'] === undefined) return false;
|
|
311
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
312
|
+
if (!('versionType' in value) || value['versionType'] === undefined) return false;
|
|
313
|
+
if (!('contractTerm' in value) || value['contractTerm'] === undefined) return false;
|
|
314
|
+
if (!('renewalIncrementPercent' in value) || value['renewalIncrementPercent'] === undefined) return false;
|
|
315
|
+
if (!('tcv' in value) || value['tcv'] === undefined) return false;
|
|
316
|
+
if (!('charges' in value) || value['charges'] === undefined) return false;
|
|
317
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
318
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
319
|
+
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
|
320
|
+
if (!('updatedBy' in value) || value['updatedBy'] === undefined) return false;
|
|
321
|
+
if (!('billContactSfId' in value) || value['billContactSfId'] === undefined) return false;
|
|
322
|
+
if (!('shippingContactSfId' in value) || value['shippingContactSfId'] === undefined) return false;
|
|
323
|
+
if (!('customFields' in value) || value['customFields'] === undefined) return false;
|
|
324
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
325
|
+
if (!('externalId' in value) || value['externalId'] === undefined) return false;
|
|
326
|
+
if (!('currentInvoice' in value) || value['currentInvoice'] === undefined) return false;
|
|
327
|
+
if (!('nextInvoice' in value) || value['nextInvoice'] === undefined) return false;
|
|
328
|
+
if (!('estimatedTax' in value) || value['estimatedTax'] === undefined) return false;
|
|
329
|
+
return true;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export function SubscriptionPreviewFromJSON(json: any): SubscriptionPreview {
|
|
333
|
+
return SubscriptionPreviewFromJSONTyped(json, false);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
export function SubscriptionPreviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionPreview {
|
|
337
|
+
if (json == null) {
|
|
338
|
+
return json;
|
|
339
|
+
}
|
|
340
|
+
return {
|
|
341
|
+
|
|
342
|
+
'id': json['id'],
|
|
343
|
+
'externalCustomerId': json['externalCustomerId'],
|
|
344
|
+
'customerName': json['customerName'],
|
|
345
|
+
'externalBillContactId': json['externalBillContactId'],
|
|
346
|
+
'externalShippingContactId': json['externalShippingContactId'],
|
|
347
|
+
'status': json['status'],
|
|
348
|
+
'deferStartDate': json['deferStartDate'],
|
|
349
|
+
'billingStartDate': json['billingStartDate'],
|
|
350
|
+
'serviceStartDate': json['serviceStartDate'],
|
|
351
|
+
'orderPlacedAt': json['orderPlacedAt'],
|
|
352
|
+
'contractEffectiveDate': json['contractEffectiveDate'],
|
|
353
|
+
'cancellationDate': json['cancellationDate'],
|
|
354
|
+
'pauseEffectiveDate': json['pauseEffectiveDate'],
|
|
355
|
+
'resumeEffectiveDate': json['resumeEffectiveDate'],
|
|
356
|
+
'extendOnResume': json['extendOnResume'],
|
|
357
|
+
'autoRenew': json['autoRenew'],
|
|
358
|
+
'currency': json['currency'],
|
|
359
|
+
'paymentTerms': json['paymentTerms'],
|
|
360
|
+
'cmrr': json['cmrr'],
|
|
361
|
+
'discountedCmrr': json['discountedCmrr'],
|
|
362
|
+
'separateInvoice': json['separateInvoice'],
|
|
363
|
+
'notes': json['notes'],
|
|
364
|
+
'version': json['version'],
|
|
365
|
+
'versionType': json['versionType'],
|
|
366
|
+
'contractTerm': json['contractTerm'],
|
|
367
|
+
'renewalIncrementPercent': json['renewalIncrementPercent'],
|
|
368
|
+
'tcv': json['tcv'],
|
|
369
|
+
'charges': ((json['charges'] as Array<any>).map(SubscriptionChargeFromJSON)),
|
|
370
|
+
'createdAt': json['createdAt'],
|
|
371
|
+
'updatedAt': json['updatedAt'],
|
|
372
|
+
'createdBy': json['createdBy'],
|
|
373
|
+
'updatedBy': json['updatedBy'],
|
|
374
|
+
'billContactSfId': json['billContactSfId'],
|
|
375
|
+
'shippingContactSfId': json['shippingContactSfId'],
|
|
376
|
+
'customFields': json['customFields'],
|
|
377
|
+
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
378
|
+
'siteId': json['siteId'],
|
|
379
|
+
'externalId': json['externalId'],
|
|
380
|
+
'currentInvoice': SubscriptionInvoiceFromJSON(json['currentInvoice']),
|
|
381
|
+
'nextInvoice': SubscriptionInvoiceFromJSON(json['nextInvoice']),
|
|
382
|
+
'estimatedTax': json['estimatedTax'],
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
export function SubscriptionPreviewToJSON(json: any): SubscriptionPreview {
|
|
387
|
+
return SubscriptionPreviewToJSONTyped(json, false);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export function SubscriptionPreviewToJSONTyped(value?: SubscriptionPreview | null, ignoreDiscriminator: boolean = false): any {
|
|
391
|
+
if (value == null) {
|
|
392
|
+
return value;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
return {
|
|
396
|
+
|
|
397
|
+
'id': value['id'],
|
|
398
|
+
'externalCustomerId': value['externalCustomerId'],
|
|
399
|
+
'customerName': value['customerName'],
|
|
400
|
+
'externalBillContactId': value['externalBillContactId'],
|
|
401
|
+
'externalShippingContactId': value['externalShippingContactId'],
|
|
402
|
+
'status': value['status'],
|
|
403
|
+
'deferStartDate': value['deferStartDate'],
|
|
404
|
+
'billingStartDate': value['billingStartDate'],
|
|
405
|
+
'serviceStartDate': value['serviceStartDate'],
|
|
406
|
+
'orderPlacedAt': value['orderPlacedAt'],
|
|
407
|
+
'contractEffectiveDate': value['contractEffectiveDate'],
|
|
408
|
+
'cancellationDate': value['cancellationDate'],
|
|
409
|
+
'pauseEffectiveDate': value['pauseEffectiveDate'],
|
|
410
|
+
'resumeEffectiveDate': value['resumeEffectiveDate'],
|
|
411
|
+
'extendOnResume': value['extendOnResume'],
|
|
412
|
+
'autoRenew': value['autoRenew'],
|
|
413
|
+
'currency': value['currency'],
|
|
414
|
+
'paymentTerms': value['paymentTerms'],
|
|
415
|
+
'cmrr': value['cmrr'],
|
|
416
|
+
'discountedCmrr': value['discountedCmrr'],
|
|
417
|
+
'separateInvoice': value['separateInvoice'],
|
|
418
|
+
'notes': value['notes'],
|
|
419
|
+
'version': value['version'],
|
|
420
|
+
'versionType': value['versionType'],
|
|
421
|
+
'contractTerm': value['contractTerm'],
|
|
422
|
+
'renewalIncrementPercent': value['renewalIncrementPercent'],
|
|
423
|
+
'tcv': value['tcv'],
|
|
424
|
+
'charges': ((value['charges'] as Array<any>).map(SubscriptionChargeToJSON)),
|
|
425
|
+
'createdAt': value['createdAt'],
|
|
426
|
+
'updatedAt': value['updatedAt'],
|
|
427
|
+
'createdBy': value['createdBy'],
|
|
428
|
+
'updatedBy': value['updatedBy'],
|
|
429
|
+
'billContactSfId': value['billContactSfId'],
|
|
430
|
+
'shippingContactSfId': value['shippingContactSfId'],
|
|
431
|
+
'customFields': value['customFields'],
|
|
432
|
+
'assetId': value['assetId'],
|
|
433
|
+
'siteId': value['siteId'],
|
|
434
|
+
'externalId': value['externalId'],
|
|
435
|
+
'currentInvoice': SubscriptionInvoiceToJSON(value['currentInvoice']),
|
|
436
|
+
'nextInvoice': SubscriptionInvoiceToJSON(value['nextInvoice']),
|
|
437
|
+
'estimatedTax': value['estimatedTax'],
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace API
|
|
5
|
+
* ManageSpace API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UploadDocument
|
|
20
|
+
*/
|
|
21
|
+
export interface UploadDocument {
|
|
22
|
+
/**
|
|
23
|
+
* Base64 encoded document
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UploadDocument
|
|
26
|
+
*/
|
|
27
|
+
file: string;
|
|
28
|
+
/**
|
|
29
|
+
* The Site Id
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UploadDocument
|
|
32
|
+
*/
|
|
33
|
+
siteId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The name or id of the document
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UploadDocument
|
|
38
|
+
*/
|
|
39
|
+
name?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the UploadDocument interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfUploadDocument(value: object): value is UploadDocument {
|
|
46
|
+
if (!('file' in value) || value['file'] === undefined) return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function UploadDocumentFromJSON(json: any): UploadDocument {
|
|
51
|
+
return UploadDocumentFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function UploadDocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadDocument {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'file': json['file'],
|
|
61
|
+
'siteId': json['siteId'] == null ? undefined : json['siteId'],
|
|
62
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function UploadDocumentToJSON(json: any): UploadDocument {
|
|
67
|
+
return UploadDocumentToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function UploadDocumentToJSONTyped(value?: UploadDocument | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'file': value['file'],
|
|
78
|
+
'siteId': value['siteId'],
|
|
79
|
+
'name': value['name'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace API
|
|
5
|
+
* ManageSpace API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UploadedDocument
|
|
20
|
+
*/
|
|
21
|
+
export interface UploadedDocument {
|
|
22
|
+
/**
|
|
23
|
+
* Base64 encoded document
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UploadedDocument
|
|
26
|
+
*/
|
|
27
|
+
file: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the UploadedDocument interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfUploadedDocument(value: object): value is UploadedDocument {
|
|
34
|
+
if (!('file' in value) || value['file'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function UploadedDocumentFromJSON(json: any): UploadedDocument {
|
|
39
|
+
return UploadedDocumentFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function UploadedDocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadedDocument {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'file': json['file'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function UploadedDocumentToJSON(json: any): UploadedDocument {
|
|
53
|
+
return UploadedDocumentToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function UploadedDocumentToJSONTyped(value?: UploadedDocument | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'file': value['file'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace API
|
|
5
|
+
* ManageSpace API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UploadedDocuments
|
|
20
|
+
*/
|
|
21
|
+
export interface UploadedDocuments {
|
|
22
|
+
/**
|
|
23
|
+
* List of file names/IDs
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof UploadedDocuments
|
|
26
|
+
*/
|
|
27
|
+
files: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
* List of folder names
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof UploadedDocuments
|
|
32
|
+
*/
|
|
33
|
+
folders: Array<string>;
|
|
34
|
+
/**
|
|
35
|
+
* The current folder
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UploadedDocuments
|
|
38
|
+
*/
|
|
39
|
+
currentFolder: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the UploadedDocuments interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfUploadedDocuments(value: object): value is UploadedDocuments {
|
|
46
|
+
if (!('files' in value) || value['files'] === undefined) return false;
|
|
47
|
+
if (!('folders' in value) || value['folders'] === undefined) return false;
|
|
48
|
+
if (!('currentFolder' in value) || value['currentFolder'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function UploadedDocumentsFromJSON(json: any): UploadedDocuments {
|
|
53
|
+
return UploadedDocumentsFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function UploadedDocumentsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadedDocuments {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'files': json['files'],
|
|
63
|
+
'folders': json['folders'],
|
|
64
|
+
'currentFolder': json['currentFolder'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function UploadedDocumentsToJSON(json: any): UploadedDocuments {
|
|
69
|
+
return UploadedDocumentsToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function UploadedDocumentsToJSONTyped(value?: UploadedDocuments | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'files': value['files'],
|
|
80
|
+
'folders': value['folders'],
|
|
81
|
+
'currentFolder': value['currentFolder'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|