@managespace/sdk 0.0.136 → 0.0.138

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