@managespace/sdk 0.0.121 → 0.0.122
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/apis/default-api.d.ts +12 -1
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +37 -0
- package/dist/generated/models/create-subscription.d.ts +162 -0
- package/dist/generated/models/create-subscription.d.ts.map +1 -1
- package/dist/generated/models/create-subscription.js +54 -0
- package/dist/generated/models/index.d.ts +0 -1
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +0 -1
- package/dist/generated/models/subscription.d.ts +121 -79
- package/dist/generated/models/subscription.d.ts.map +1 -1
- package/dist/generated/models/subscription.js +57 -91
- package/dist/generated/models/update-subscription-charge.d.ts +6 -6
- package/dist/generated/models/update-subscription-charge.d.ts.map +1 -1
- package/dist/generated/models/update-subscription-charge.js +2 -4
- package/dist/generated/models/update-subscription.d.ts +160 -4
- package/dist/generated/models/update-subscription.d.ts.map +1 -1
- package/dist/generated/models/update-subscription.js +54 -4
- package/package.json +1 -1
- package/src/generated/.openapi-generator/FILES +0 -1
- package/src/generated/apis/default-api.ts +65 -0
- package/src/generated/models/create-subscription.ts +216 -0
- package/src/generated/models/index.ts +0 -1
- package/src/generated/models/subscription.ts +181 -149
- package/src/generated/models/update-subscription-charge.ts +8 -9
- package/src/generated/models/update-subscription.ts +214 -7
|
@@ -162,7 +162,6 @@ export * from './statement';
|
|
|
162
162
|
export * from './step-data';
|
|
163
163
|
export * from './sub-total';
|
|
164
164
|
export * from './subscription';
|
|
165
|
-
export * from './subscription-charge';
|
|
166
165
|
export * from './success';
|
|
167
166
|
export * from './task';
|
|
168
167
|
export * from './task-completion-status';
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { CreateSubscriptionCharge } from './create-subscription-charge';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './subscription-charge';
|
|
18
|
+
CreateSubscriptionChargeFromJSON,
|
|
19
|
+
CreateSubscriptionChargeFromJSONTyped,
|
|
20
|
+
CreateSubscriptionChargeToJSON,
|
|
21
|
+
CreateSubscriptionChargeToJSONTyped,
|
|
22
|
+
} from './create-subscription-charge';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -28,221 +28,263 @@ import {
|
|
|
28
28
|
*/
|
|
29
29
|
export interface Subscription {
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Status of subscription contract
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof Subscription
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
status?: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Billing start date for subscription contract
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof Subscription
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
billingStartDate?: string;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Service start date for subscription contract
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof Subscription
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
serviceStartDate?: string;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Date order was placed
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof Subscription
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
orderPlacedAt?: string;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Date subscription contract was signed and activated
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof Subscription
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
contractEffectiveDate?: string;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Date subscription contract was terminated
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof Subscription
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
cancellationDate?: string;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
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
|
-
|
|
77
|
+
autoRenew?: boolean;
|
|
72
78
|
/**
|
|
73
|
-
*
|
|
79
|
+
* currency
|
|
74
80
|
* @type {string}
|
|
75
81
|
* @memberof Subscription
|
|
76
82
|
*/
|
|
77
|
-
|
|
83
|
+
currency?: string;
|
|
78
84
|
/**
|
|
79
|
-
*
|
|
85
|
+
* Calculate due date of invoice
|
|
80
86
|
* @type {string}
|
|
81
87
|
* @memberof Subscription
|
|
82
88
|
*/
|
|
83
|
-
|
|
89
|
+
paymentTerms?: string;
|
|
84
90
|
/**
|
|
85
|
-
*
|
|
91
|
+
* Contracted MRR per charge
|
|
86
92
|
* @type {string}
|
|
87
93
|
* @memberof Subscription
|
|
88
94
|
*/
|
|
89
|
-
|
|
95
|
+
cmrr?: string;
|
|
90
96
|
/**
|
|
91
|
-
*
|
|
97
|
+
* MRR calculated based on % discount
|
|
92
98
|
* @type {string}
|
|
93
99
|
* @memberof Subscription
|
|
94
100
|
*/
|
|
95
|
-
|
|
101
|
+
discountedCmrr?: string;
|
|
96
102
|
/**
|
|
97
|
-
*
|
|
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
|
-
|
|
113
|
+
notes?: string;
|
|
102
114
|
/**
|
|
103
|
-
*
|
|
115
|
+
* Coupon Code
|
|
104
116
|
* @type {string}
|
|
105
117
|
* @memberof Subscription
|
|
106
118
|
*/
|
|
107
|
-
|
|
119
|
+
couponCode?: string;
|
|
108
120
|
/**
|
|
109
|
-
*
|
|
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
|
-
|
|
131
|
+
versionType?: string;
|
|
114
132
|
/**
|
|
115
|
-
*
|
|
116
|
-
* @type {
|
|
133
|
+
* Term of contract in months
|
|
134
|
+
* @type {string}
|
|
117
135
|
* @memberof Subscription
|
|
118
136
|
*/
|
|
119
|
-
|
|
137
|
+
contractTerm?: string;
|
|
120
138
|
/**
|
|
121
|
-
*
|
|
122
|
-
* @type {
|
|
139
|
+
* Length of time Subscription Contract will be renewed for
|
|
140
|
+
* @type {string}
|
|
123
141
|
* @memberof Subscription
|
|
124
142
|
*/
|
|
125
|
-
|
|
143
|
+
renewalTerm?: string;
|
|
126
144
|
/**
|
|
127
|
-
*
|
|
145
|
+
* Date Subscription Contract will start
|
|
128
146
|
* @type {string}
|
|
129
147
|
* @memberof Subscription
|
|
130
148
|
*/
|
|
131
|
-
|
|
149
|
+
currentTermStartDate?: string;
|
|
132
150
|
/**
|
|
133
|
-
*
|
|
151
|
+
* Date subscription contract will end
|
|
134
152
|
* @type {string}
|
|
135
153
|
* @memberof Subscription
|
|
136
154
|
*/
|
|
137
|
-
|
|
155
|
+
currentTermEndDate?: string;
|
|
138
156
|
/**
|
|
139
|
-
*
|
|
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
|
-
|
|
167
|
+
assetId?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Charges associated the subscription
|
|
170
|
+
* @type {Array<CreateSubscriptionCharge>}
|
|
171
|
+
* @memberof Subscription
|
|
172
|
+
*/
|
|
173
|
+
charges: Array<CreateSubscriptionCharge>;
|
|
144
174
|
/**
|
|
145
|
-
*
|
|
175
|
+
* Id of billing contact
|
|
146
176
|
* @type {string}
|
|
147
177
|
* @memberof Subscription
|
|
148
178
|
*/
|
|
149
|
-
|
|
179
|
+
billContactId?: string;
|
|
150
180
|
/**
|
|
151
|
-
*
|
|
152
|
-
* @type {
|
|
181
|
+
* Id of shipping contact
|
|
182
|
+
* @type {string}
|
|
153
183
|
* @memberof Subscription
|
|
154
184
|
*/
|
|
155
|
-
|
|
185
|
+
shippingContactId?: string;
|
|
156
186
|
/**
|
|
157
|
-
*
|
|
187
|
+
* Date record was created
|
|
158
188
|
* @type {string}
|
|
159
189
|
* @memberof Subscription
|
|
160
190
|
*/
|
|
161
|
-
|
|
191
|
+
updatedAt?: string;
|
|
162
192
|
/**
|
|
163
|
-
*
|
|
164
|
-
* @type {
|
|
193
|
+
* Date record was created
|
|
194
|
+
* @type {string}
|
|
165
195
|
* @memberof Subscription
|
|
166
196
|
*/
|
|
167
|
-
|
|
197
|
+
createdAt?: string;
|
|
168
198
|
/**
|
|
169
|
-
*
|
|
199
|
+
* Email of user who created record
|
|
170
200
|
* @type {string}
|
|
171
201
|
* @memberof Subscription
|
|
172
202
|
*/
|
|
173
|
-
|
|
203
|
+
createdBy?: string;
|
|
174
204
|
/**
|
|
175
|
-
*
|
|
205
|
+
* Email of user who last modifed record
|
|
176
206
|
* @type {string}
|
|
177
207
|
* @memberof Subscription
|
|
178
208
|
*/
|
|
179
|
-
|
|
209
|
+
updatedBy?: string;
|
|
180
210
|
/**
|
|
181
|
-
*
|
|
182
|
-
* @type {
|
|
211
|
+
* Custom fields on the invoice
|
|
212
|
+
* @type {object}
|
|
183
213
|
* @memberof Subscription
|
|
184
214
|
*/
|
|
185
|
-
|
|
215
|
+
customFields?: object;
|
|
186
216
|
/**
|
|
187
217
|
* Total contract value of the subsctiption contract
|
|
188
218
|
* @type {number}
|
|
189
219
|
* @memberof Subscription
|
|
190
220
|
*/
|
|
191
|
-
tcv
|
|
221
|
+
tcv?: number;
|
|
192
222
|
/**
|
|
193
|
-
*
|
|
194
|
-
* @type {
|
|
223
|
+
* Set to defer start date
|
|
224
|
+
* @type {boolean}
|
|
195
225
|
* @memberof Subscription
|
|
196
226
|
*/
|
|
197
|
-
|
|
227
|
+
deferStartDate?: boolean;
|
|
198
228
|
/**
|
|
199
|
-
*
|
|
229
|
+
* Subscription ID
|
|
200
230
|
* @type {string}
|
|
201
231
|
* @memberof Subscription
|
|
202
232
|
*/
|
|
203
|
-
|
|
233
|
+
id: string;
|
|
204
234
|
/**
|
|
205
|
-
*
|
|
235
|
+
* Customer ID
|
|
206
236
|
* @type {string}
|
|
207
237
|
* @memberof Subscription
|
|
208
238
|
*/
|
|
209
|
-
|
|
239
|
+
externalCustomerId: string;
|
|
210
240
|
/**
|
|
211
|
-
*
|
|
241
|
+
* Customer name
|
|
212
242
|
* @type {string}
|
|
213
243
|
* @memberof Subscription
|
|
214
244
|
*/
|
|
215
|
-
|
|
245
|
+
customerName: string;
|
|
216
246
|
/**
|
|
217
|
-
*
|
|
247
|
+
* Id of billing contact
|
|
218
248
|
* @type {string}
|
|
219
249
|
* @memberof Subscription
|
|
220
250
|
*/
|
|
221
|
-
|
|
251
|
+
externalBillContactId: string;
|
|
222
252
|
/**
|
|
223
|
-
* Id of
|
|
253
|
+
* Id of shipping contact
|
|
224
254
|
* @type {string}
|
|
225
255
|
* @memberof Subscription
|
|
226
256
|
*/
|
|
227
|
-
|
|
257
|
+
externalShippingContactId: string;
|
|
228
258
|
/**
|
|
229
|
-
*
|
|
259
|
+
* Date subscription contract to pause
|
|
230
260
|
* @type {string}
|
|
231
261
|
* @memberof Subscription
|
|
232
262
|
*/
|
|
233
|
-
|
|
263
|
+
pauseEffectiveDate: string;
|
|
234
264
|
/**
|
|
235
|
-
*
|
|
236
|
-
* @type {
|
|
265
|
+
* Date subscription contract to resume
|
|
266
|
+
* @type {string}
|
|
237
267
|
* @memberof Subscription
|
|
238
268
|
*/
|
|
239
|
-
|
|
269
|
+
resumeEffectiveDate: string;
|
|
240
270
|
/**
|
|
241
|
-
*
|
|
271
|
+
* Set to extend contract on resume
|
|
272
|
+
* @type {boolean}
|
|
273
|
+
* @memberof Subscription
|
|
274
|
+
*/
|
|
275
|
+
extendOnResume: boolean;
|
|
276
|
+
/**
|
|
277
|
+
* Id of billing contact sf
|
|
242
278
|
* @type {string}
|
|
243
279
|
* @memberof Subscription
|
|
244
280
|
*/
|
|
245
|
-
|
|
281
|
+
billContactSfId: string;
|
|
282
|
+
/**
|
|
283
|
+
* Id of shipping contact sf
|
|
284
|
+
* @type {string}
|
|
285
|
+
* @memberof Subscription
|
|
286
|
+
*/
|
|
287
|
+
shippingContactSfId: string;
|
|
246
288
|
/**
|
|
247
289
|
* Site ID
|
|
248
290
|
* @type {string}
|
|
@@ -261,41 +303,17 @@ export interface Subscription {
|
|
|
261
303
|
* Check if a given object implements the Subscription interface.
|
|
262
304
|
*/
|
|
263
305
|
export function instanceOfSubscription(value: object): value is Subscription {
|
|
306
|
+
if (!('charges' in value) || value['charges'] === undefined) return false;
|
|
264
307
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
265
308
|
if (!('externalCustomerId' in value) || value['externalCustomerId'] === undefined) return false;
|
|
266
309
|
if (!('customerName' in value) || value['customerName'] === undefined) return false;
|
|
267
310
|
if (!('externalBillContactId' in value) || value['externalBillContactId'] === undefined) return false;
|
|
268
311
|
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
312
|
if (!('pauseEffectiveDate' in value) || value['pauseEffectiveDate'] === undefined) return false;
|
|
277
313
|
if (!('resumeEffectiveDate' in value) || value['resumeEffectiveDate'] === undefined) return false;
|
|
278
314
|
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
315
|
if (!('billContactSfId' in value) || value['billContactSfId'] === undefined) return false;
|
|
297
316
|
if (!('shippingContactSfId' in value) || value['shippingContactSfId'] === undefined) return false;
|
|
298
|
-
if (!('customFields' in value) || value['customFields'] === undefined) return false;
|
|
299
317
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
300
318
|
if (!('externalId' in value) || value['externalId'] === undefined) return false;
|
|
301
319
|
return true;
|
|
@@ -311,42 +329,49 @@ 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
|
+
'charges': ((json['charges'] as Array<any>).map(CreateSubscriptionChargeFromJSON)),
|
|
356
|
+
'billContactId': json['billContactId'] == null ? undefined : json['billContactId'],
|
|
357
|
+
'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
|
|
358
|
+
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
359
|
+
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
360
|
+
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
361
|
+
'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
|
|
362
|
+
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
363
|
+
'tcv': json['tcv'] == null ? undefined : json['tcv'],
|
|
364
|
+
'deferStartDate': json['deferStartDate'] == null ? undefined : json['deferStartDate'],
|
|
314
365
|
'id': json['id'],
|
|
315
366
|
'externalCustomerId': json['externalCustomerId'],
|
|
316
367
|
'customerName': json['customerName'],
|
|
317
368
|
'externalBillContactId': json['externalBillContactId'],
|
|
318
369
|
'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
370
|
'pauseEffectiveDate': json['pauseEffectiveDate'],
|
|
327
371
|
'resumeEffectiveDate': json['resumeEffectiveDate'],
|
|
328
372
|
'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
373
|
'billContactSfId': json['billContactSfId'],
|
|
347
374
|
'shippingContactSfId': json['shippingContactSfId'],
|
|
348
|
-
'customFields': json['customFields'],
|
|
349
|
-
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
350
375
|
'siteId': json['siteId'],
|
|
351
376
|
'externalId': json['externalId'],
|
|
352
377
|
};
|
|
@@ -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
|
-
'
|
|
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,20 +402,35 @@ 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
|
-
'
|
|
393
|
-
'charges': ((value['charges'] as Array<any>).map(
|
|
394
|
-
'
|
|
413
|
+
'assetId': value['assetId'],
|
|
414
|
+
'charges': ((value['charges'] as Array<any>).map(CreateSubscriptionChargeToJSON)),
|
|
415
|
+
'billContactId': value['billContactId'],
|
|
416
|
+
'shippingContactId': value['shippingContactId'],
|
|
395
417
|
'updatedAt': value['updatedAt'],
|
|
418
|
+
'createdAt': value['createdAt'],
|
|
396
419
|
'createdBy': value['createdBy'],
|
|
397
420
|
'updatedBy': value['updatedBy'],
|
|
421
|
+
'customFields': value['customFields'],
|
|
422
|
+
'tcv': value['tcv'],
|
|
423
|
+
'deferStartDate': value['deferStartDate'],
|
|
424
|
+
'id': value['id'],
|
|
425
|
+
'externalCustomerId': value['externalCustomerId'],
|
|
426
|
+
'customerName': value['customerName'],
|
|
427
|
+
'externalBillContactId': value['externalBillContactId'],
|
|
428
|
+
'externalShippingContactId': value['externalShippingContactId'],
|
|
429
|
+
'pauseEffectiveDate': value['pauseEffectiveDate'],
|
|
430
|
+
'resumeEffectiveDate': value['resumeEffectiveDate'],
|
|
431
|
+
'extendOnResume': value['extendOnResume'],
|
|
398
432
|
'billContactSfId': value['billContactSfId'],
|
|
399
433
|
'shippingContactSfId': value['shippingContactSfId'],
|
|
400
|
-
'customFields': value['customFields'],
|
|
401
|
-
'assetId': value['assetId'],
|
|
402
434
|
'siteId': value['siteId'],
|
|
403
435
|
'externalId': value['externalId'],
|
|
404
436
|
};
|
|
@@ -268,12 +268,6 @@ export interface UpdateSubscriptionCharge {
|
|
|
268
268
|
* @memberof UpdateSubscriptionCharge
|
|
269
269
|
*/
|
|
270
270
|
transactionPostingEntries?: Array<TransactionPostingEntries>;
|
|
271
|
-
/**
|
|
272
|
-
* Asset ID
|
|
273
|
-
* @type {string}
|
|
274
|
-
* @memberof UpdateSubscriptionCharge
|
|
275
|
-
*/
|
|
276
|
-
assetId: string;
|
|
277
271
|
/**
|
|
278
272
|
* Charge ID
|
|
279
273
|
* @type {string}
|
|
@@ -298,6 +292,12 @@ export interface UpdateSubscriptionCharge {
|
|
|
298
292
|
* @memberof UpdateSubscriptionCharge
|
|
299
293
|
*/
|
|
300
294
|
listPrice: string;
|
|
295
|
+
/**
|
|
296
|
+
* Asset ID
|
|
297
|
+
* @type {string}
|
|
298
|
+
* @memberof UpdateSubscriptionCharge
|
|
299
|
+
*/
|
|
300
|
+
assetId?: string;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
/**
|
|
@@ -307,7 +307,6 @@ export function instanceOfUpdateSubscriptionCharge(value: object): value is Upda
|
|
|
307
307
|
if (!('productId' in value) || value['productId'] === undefined) return false;
|
|
308
308
|
if (!('planId' in value) || value['planId'] === undefined) return false;
|
|
309
309
|
if (!('chargeName' in value) || value['chargeName'] === undefined) return false;
|
|
310
|
-
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
311
310
|
if (!('chargeType' in value) || value['chargeType'] === undefined) return false;
|
|
312
311
|
if (!('billingPeriod' in value) || value['billingPeriod'] === undefined) return false;
|
|
313
312
|
if (!('listPrice' in value) || value['listPrice'] === undefined) return false;
|
|
@@ -363,11 +362,11 @@ export function UpdateSubscriptionChargeFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
363
362
|
'customRecognitionStartDate': json['customRecognitionStartDate'] == null ? undefined : json['customRecognitionStartDate'],
|
|
364
363
|
'customRecognitionEndDate': json['customRecognitionEndDate'] == null ? undefined : json['customRecognitionEndDate'],
|
|
365
364
|
'transactionPostingEntries': json['transactionPostingEntries'] == null ? undefined : ((json['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesFromJSON)),
|
|
366
|
-
'assetId': json['assetId'],
|
|
367
365
|
'chargeId': json['chargeId'] == null ? undefined : json['chargeId'],
|
|
368
366
|
'chargeType': json['chargeType'],
|
|
369
367
|
'billingPeriod': json['billingPeriod'],
|
|
370
368
|
'listPrice': json['listPrice'],
|
|
369
|
+
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
371
370
|
};
|
|
372
371
|
}
|
|
373
372
|
|
|
@@ -421,11 +420,11 @@ export function UpdateSubscriptionChargeToJSONTyped(value?: UpdateSubscriptionCh
|
|
|
421
420
|
'customRecognitionStartDate': value['customRecognitionStartDate'],
|
|
422
421
|
'customRecognitionEndDate': value['customRecognitionEndDate'],
|
|
423
422
|
'transactionPostingEntries': value['transactionPostingEntries'] == null ? undefined : ((value['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesToJSON)),
|
|
424
|
-
'assetId': value['assetId'],
|
|
425
423
|
'chargeId': value['chargeId'],
|
|
426
424
|
'chargeType': value['chargeType'],
|
|
427
425
|
'billingPeriod': value['billingPeriod'],
|
|
428
426
|
'listPrice': value['listPrice'],
|
|
427
|
+
'assetId': value['assetId'],
|
|
429
428
|
};
|
|
430
429
|
}
|
|
431
430
|
|