@managespace/sdk 0.0.118 → 0.0.119
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 +2 -0
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/generated/apis/default-api.d.ts +2 -0
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +6 -0
- package/dist/generated/models/create-product-custom.d.ts +6 -6
- package/dist/generated/models/create-product-custom.d.ts.map +1 -1
- package/dist/generated/models/create-product-custom.js +2 -2
- package/dist/generated/models/create-subscription-charge.d.ts +293 -0
- package/dist/generated/models/create-subscription-charge.d.ts.map +1 -0
- package/dist/generated/models/create-subscription-charge.js +147 -0
- package/dist/generated/models/create-subscription-plan.d.ts +228 -4
- package/dist/generated/models/create-subscription-plan.d.ts.map +1 -1
- package/dist/generated/models/create-subscription-plan.js +80 -4
- package/dist/generated/models/create-subscription.d.ts +3 -3
- package/dist/generated/models/create-subscription.d.ts.map +1 -1
- package/dist/generated/models/create-subscription.js +4 -4
- package/dist/generated/models/custom-create-plan.d.ts +6 -0
- package/dist/generated/models/custom-create-plan.d.ts.map +1 -1
- package/dist/generated/models/custom-create-plan.js +2 -0
- package/dist/generated/models/index.d.ts +2 -2
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +2 -2
- package/dist/generated/models/plan-custom.d.ts +6 -0
- package/dist/generated/models/plan-custom.d.ts.map +1 -1
- package/dist/generated/models/plan-custom.js +2 -0
- package/dist/generated/models/product-custom.d.ts +6 -6
- package/dist/generated/models/product-custom.d.ts.map +1 -1
- package/dist/generated/models/product-custom.js +2 -2
- package/dist/generated/models/subscription-charge.d.ts +299 -0
- package/dist/generated/models/subscription-charge.d.ts.map +1 -0
- package/dist/generated/models/subscription-charge.js +151 -0
- package/dist/generated/models/subscription-plan.d.ts +105 -74
- package/dist/generated/models/subscription-plan.d.ts.map +1 -1
- package/dist/generated/models/subscription-plan.js +70 -127
- package/dist/generated/models/subscription.d.ts +4 -4
- package/dist/generated/models/subscription.d.ts.map +1 -1
- package/dist/generated/models/subscription.js +4 -4
- package/package.deploy.json +33 -0
- package/package.json +2 -2
- package/src/extensibility/functions/project/billing.ts +10 -2
- package/src/generated/.openapi-generator/FILES +2 -2
- package/src/generated/apis/default-api.ts +10 -0
- package/src/generated/models/create-product-custom.ts +8 -8
- package/src/generated/models/create-subscription-charge.ts +429 -0
- package/src/generated/models/create-subscription-plan.ts +318 -7
- package/src/generated/models/create-subscription.ts +11 -11
- package/src/generated/models/custom-create-plan.ts +8 -0
- package/src/generated/models/index.ts +2 -2
- package/src/generated/models/plan-custom.ts +8 -0
- package/src/generated/models/product-custom.ts +8 -8
- package/src/generated/models/subscription-charge.ts +438 -0
- package/src/generated/models/subscription-plan.ts +180 -167
- package/src/generated/models/subscription.ts +12 -12
- package/.turbo/turbo-build.log +0 -2
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
TransactionPostingEntriesToJSON,
|
|
21
21
|
TransactionPostingEntriesToJSONTyped,
|
|
22
22
|
} from './transaction-posting-entries';
|
|
23
|
+
import type { ChargeTier } from './charge-tier';
|
|
24
|
+
import {
|
|
25
|
+
ChargeTierFromJSON,
|
|
26
|
+
ChargeTierFromJSONTyped,
|
|
27
|
+
ChargeTierToJSON,
|
|
28
|
+
ChargeTierToJSONTyped,
|
|
29
|
+
} from './charge-tier';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -32,37 +39,31 @@ export interface SubscriptionPlan {
|
|
|
32
39
|
* @type {string}
|
|
33
40
|
* @memberof SubscriptionPlan
|
|
34
41
|
*/
|
|
35
|
-
|
|
42
|
+
productId: string;
|
|
36
43
|
/**
|
|
37
44
|
* Name of product
|
|
38
45
|
* @type {string}
|
|
39
46
|
* @memberof SubscriptionPlan
|
|
40
47
|
*/
|
|
41
|
-
productName
|
|
48
|
+
productName?: string;
|
|
42
49
|
/**
|
|
43
50
|
* Plan ID
|
|
44
51
|
* @type {string}
|
|
45
52
|
* @memberof SubscriptionPlan
|
|
46
53
|
*/
|
|
47
|
-
|
|
54
|
+
planId: string;
|
|
48
55
|
/**
|
|
49
56
|
* Name of plan
|
|
50
57
|
* @type {string}
|
|
51
58
|
* @memberof SubscriptionPlan
|
|
52
59
|
*/
|
|
53
|
-
planName
|
|
54
|
-
/**
|
|
55
|
-
* Unique subscription line id
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof SubscriptionPlan
|
|
58
|
-
*/
|
|
59
|
-
subscriptionLineId: string;
|
|
60
|
+
planName?: string;
|
|
60
61
|
/**
|
|
61
62
|
* Charge ID
|
|
62
63
|
* @type {string}
|
|
63
64
|
* @memberof SubscriptionPlan
|
|
64
65
|
*/
|
|
65
|
-
|
|
66
|
+
chargeId: string;
|
|
66
67
|
/**
|
|
67
68
|
* Name of charge
|
|
68
69
|
* @type {string}
|
|
@@ -74,245 +75,247 @@ export interface SubscriptionPlan {
|
|
|
74
75
|
* @type {string}
|
|
75
76
|
* @memberof SubscriptionPlan
|
|
76
77
|
*/
|
|
77
|
-
pricingModel
|
|
78
|
+
pricingModel?: string;
|
|
78
79
|
/**
|
|
79
80
|
* Original unit price of Charge
|
|
80
81
|
* @type {string}
|
|
81
82
|
* @memberof SubscriptionPlan
|
|
82
83
|
*/
|
|
83
|
-
listPrice
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {string}
|
|
87
|
-
* @memberof SubscriptionPlan
|
|
88
|
-
*/
|
|
89
|
-
listPriceBase: string;
|
|
84
|
+
listPrice?: string;
|
|
90
85
|
/**
|
|
91
86
|
* How charge will be priced
|
|
92
87
|
* @type {string}
|
|
93
88
|
* @memberof SubscriptionPlan
|
|
94
89
|
*/
|
|
95
|
-
priceBase
|
|
90
|
+
priceBase?: string;
|
|
96
91
|
/**
|
|
97
92
|
* Quantity of item included
|
|
98
93
|
* @type {number}
|
|
99
94
|
* @memberof SubscriptionPlan
|
|
100
95
|
*/
|
|
101
|
-
quantity
|
|
96
|
+
quantity?: number;
|
|
102
97
|
/**
|
|
103
98
|
* Number of units included in plan
|
|
104
99
|
* @type {number}
|
|
105
100
|
* @memberof SubscriptionPlan
|
|
106
101
|
*/
|
|
107
|
-
includedUnits
|
|
102
|
+
includedUnits?: number;
|
|
108
103
|
/**
|
|
109
104
|
* Discount applied to product
|
|
110
105
|
* @type {number}
|
|
111
106
|
* @memberof SubscriptionPlan
|
|
112
107
|
*/
|
|
113
|
-
discount
|
|
108
|
+
discount?: number;
|
|
114
109
|
/**
|
|
115
110
|
* Effective price of product
|
|
116
111
|
* @type {string}
|
|
117
112
|
* @memberof SubscriptionPlan
|
|
118
113
|
*/
|
|
119
|
-
effectivePrice
|
|
114
|
+
effectivePrice?: string;
|
|
120
115
|
/**
|
|
121
116
|
* Type of charge
|
|
122
117
|
* @type {string}
|
|
123
118
|
* @memberof SubscriptionPlan
|
|
124
119
|
*/
|
|
125
|
-
chargeType
|
|
120
|
+
chargeType?: string;
|
|
126
121
|
/**
|
|
127
122
|
* Billing period for recurring and usage based Charges
|
|
128
123
|
* @type {string}
|
|
129
124
|
* @memberof SubscriptionPlan
|
|
130
125
|
*/
|
|
131
|
-
billingPeriod
|
|
126
|
+
billingPeriod?: string;
|
|
132
127
|
/**
|
|
133
|
-
*
|
|
128
|
+
* For recurrign charges, when the charge is billed
|
|
134
129
|
* @type {string}
|
|
135
130
|
* @memberof SubscriptionPlan
|
|
136
131
|
*/
|
|
137
|
-
|
|
132
|
+
chargeTiming?: string;
|
|
138
133
|
/**
|
|
139
|
-
*
|
|
134
|
+
* Determine boundary of Charge period
|
|
140
135
|
* @type {string}
|
|
141
136
|
* @memberof SubscriptionPlan
|
|
142
137
|
*/
|
|
143
|
-
|
|
138
|
+
billingPeriodStartAlignment?: string;
|
|
144
139
|
/**
|
|
145
|
-
*
|
|
140
|
+
* Which day of the month or week Charge is invoiced
|
|
146
141
|
* @type {string}
|
|
147
142
|
* @memberof SubscriptionPlan
|
|
148
143
|
*/
|
|
149
|
-
|
|
144
|
+
billingDay?: string;
|
|
150
145
|
/**
|
|
151
|
-
*
|
|
146
|
+
* Charge for partial periods
|
|
147
|
+
* @type {boolean}
|
|
148
|
+
* @memberof SubscriptionPlan
|
|
149
|
+
*/
|
|
150
|
+
proratePartialPeriods?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Number of periods/units to charge
|
|
153
|
+
* @type {number}
|
|
154
|
+
* @memberof SubscriptionPlan
|
|
155
|
+
*/
|
|
156
|
+
prepaymentPeriods?: number;
|
|
157
|
+
/**
|
|
158
|
+
* For usage charges, number of prepayment units
|
|
159
|
+
* @type {number}
|
|
160
|
+
* @memberof SubscriptionPlan
|
|
161
|
+
*/
|
|
162
|
+
prepaymentAmount?: number;
|
|
163
|
+
/**
|
|
164
|
+
* For one time charges, when billing will happen
|
|
152
165
|
* @type {string}
|
|
153
166
|
* @memberof SubscriptionPlan
|
|
154
167
|
*/
|
|
155
|
-
|
|
168
|
+
chargeBillingDate?: string;
|
|
156
169
|
/**
|
|
157
|
-
*
|
|
170
|
+
* For one time charges, display completion date if chosen as charge effective date
|
|
158
171
|
* @type {string}
|
|
159
172
|
* @memberof SubscriptionPlan
|
|
160
173
|
*/
|
|
161
|
-
|
|
174
|
+
completionDate?: string;
|
|
162
175
|
/**
|
|
163
|
-
*
|
|
176
|
+
* Unique subscription line id
|
|
164
177
|
* @type {string}
|
|
165
178
|
* @memberof SubscriptionPlan
|
|
166
179
|
*/
|
|
167
|
-
|
|
180
|
+
subscriptionLineId?: string;
|
|
168
181
|
/**
|
|
169
|
-
*
|
|
182
|
+
* start date of current period
|
|
170
183
|
* @type {string}
|
|
171
184
|
* @memberof SubscriptionPlan
|
|
172
185
|
*/
|
|
173
|
-
|
|
186
|
+
currentPeriodStartDate?: string;
|
|
174
187
|
/**
|
|
175
|
-
*
|
|
188
|
+
* end date of current period
|
|
176
189
|
* @type {string}
|
|
177
190
|
* @memberof SubscriptionPlan
|
|
178
191
|
*/
|
|
179
|
-
|
|
192
|
+
currentPeriodEndDate?: string;
|
|
180
193
|
/**
|
|
181
|
-
*
|
|
182
|
-
* @type {
|
|
194
|
+
* Unique billing schedule id
|
|
195
|
+
* @type {string}
|
|
183
196
|
* @memberof SubscriptionPlan
|
|
184
197
|
*/
|
|
185
|
-
|
|
198
|
+
billingScheduleId?: string;
|
|
186
199
|
/**
|
|
187
|
-
*
|
|
188
|
-
* @type {
|
|
200
|
+
* Charge end date
|
|
201
|
+
* @type {string}
|
|
189
202
|
* @memberof SubscriptionPlan
|
|
190
203
|
*/
|
|
191
|
-
|
|
204
|
+
chargeEndDate?: string;
|
|
192
205
|
/**
|
|
193
|
-
*
|
|
206
|
+
* Date subscription contract will start
|
|
194
207
|
* @type {number}
|
|
195
208
|
* @memberof SubscriptionPlan
|
|
196
209
|
*/
|
|
197
|
-
|
|
210
|
+
renewalIncrementPercent?: number;
|
|
198
211
|
/**
|
|
199
|
-
*
|
|
200
|
-
* @type {
|
|
212
|
+
* Override automatic renewal increment percent
|
|
213
|
+
* @type {boolean}
|
|
201
214
|
* @memberof SubscriptionPlan
|
|
202
215
|
*/
|
|
203
|
-
|
|
216
|
+
overrideRenewalIncrementPercent?: boolean;
|
|
204
217
|
/**
|
|
205
|
-
*
|
|
218
|
+
* Charge start date
|
|
206
219
|
* @type {string}
|
|
207
220
|
* @memberof SubscriptionPlan
|
|
208
221
|
*/
|
|
209
|
-
|
|
222
|
+
chargeStartDate?: string;
|
|
210
223
|
/**
|
|
211
|
-
*
|
|
224
|
+
* Unit of measure
|
|
212
225
|
* @type {string}
|
|
213
226
|
* @memberof SubscriptionPlan
|
|
214
227
|
*/
|
|
215
|
-
|
|
228
|
+
unitOfMeasure?: string;
|
|
216
229
|
/**
|
|
217
|
-
*
|
|
230
|
+
* Unique revenue schedule id
|
|
218
231
|
* @type {string}
|
|
219
232
|
* @memberof SubscriptionPlan
|
|
220
233
|
*/
|
|
221
|
-
|
|
234
|
+
revenueScheduleId?: string;
|
|
222
235
|
/**
|
|
223
|
-
*
|
|
224
|
-
* @type {
|
|
236
|
+
* Determines proration logic
|
|
237
|
+
* @type {boolean}
|
|
225
238
|
* @memberof SubscriptionPlan
|
|
226
239
|
*/
|
|
227
|
-
|
|
240
|
+
backchargeCurrentPeriod?: boolean;
|
|
228
241
|
/**
|
|
229
|
-
*
|
|
230
|
-
* @type {
|
|
242
|
+
* For tiered/volume pricing, each tier will represent price of specific units in given range
|
|
243
|
+
* @type {Array<ChargeTier>}
|
|
231
244
|
* @memberof SubscriptionPlan
|
|
232
245
|
*/
|
|
233
|
-
|
|
246
|
+
tiers?: Array<ChargeTier>;
|
|
247
|
+
/**
|
|
248
|
+
* Last charge date
|
|
249
|
+
* @type {string}
|
|
250
|
+
* @memberof SubscriptionPlan
|
|
251
|
+
*/
|
|
252
|
+
lastChargeDate?: string;
|
|
234
253
|
/**
|
|
235
254
|
* Accounting information can be overridden
|
|
236
255
|
* @type {boolean}
|
|
237
256
|
* @memberof SubscriptionPlan
|
|
238
257
|
*/
|
|
239
|
-
defaultFromPlan
|
|
258
|
+
defaultFromPlan?: boolean;
|
|
259
|
+
/**
|
|
260
|
+
* Contracted MRR per charge
|
|
261
|
+
* @type {string}
|
|
262
|
+
* @memberof SubscriptionPlan
|
|
263
|
+
*/
|
|
264
|
+
cmrr?: string;
|
|
240
265
|
/**
|
|
241
266
|
* Revenue rule ID
|
|
242
267
|
* @type {string}
|
|
243
268
|
* @memberof SubscriptionPlan
|
|
244
269
|
*/
|
|
245
|
-
revenueRuleId
|
|
270
|
+
revenueRuleId?: string;
|
|
246
271
|
/**
|
|
247
272
|
* Date when revenue recognition will begin
|
|
248
273
|
* @type {string}
|
|
249
274
|
* @memberof SubscriptionPlan
|
|
250
275
|
*/
|
|
251
|
-
recognitionStartDate
|
|
276
|
+
recognitionStartDate?: string;
|
|
252
277
|
/**
|
|
253
|
-
* Date
|
|
278
|
+
* Date to customize revenue recognition Start
|
|
279
|
+
* @type {string}
|
|
280
|
+
* @memberof SubscriptionPlan
|
|
281
|
+
*/
|
|
282
|
+
customRecognitionStartDate?: string;
|
|
283
|
+
/**
|
|
284
|
+
* For one-time charge, date to customize revenue recognition End
|
|
254
285
|
* @type {string}
|
|
255
286
|
* @memberof SubscriptionPlan
|
|
256
287
|
*/
|
|
257
|
-
|
|
288
|
+
customRecognitionEndDate?: string;
|
|
258
289
|
/**
|
|
259
290
|
* Transaction type
|
|
260
291
|
* @type {Array<TransactionPostingEntries>}
|
|
261
292
|
* @memberof SubscriptionPlan
|
|
262
293
|
*/
|
|
263
|
-
transactionPostingEntries
|
|
294
|
+
transactionPostingEntries?: Array<TransactionPostingEntries>;
|
|
264
295
|
/**
|
|
265
|
-
*
|
|
266
|
-
* @type {
|
|
296
|
+
* Asset ID
|
|
297
|
+
* @type {string}
|
|
267
298
|
* @memberof SubscriptionPlan
|
|
268
299
|
*/
|
|
269
|
-
|
|
300
|
+
assetId: string;
|
|
301
|
+
/**
|
|
302
|
+
* MRR calculated based on % discount
|
|
303
|
+
* @type {string}
|
|
304
|
+
* @memberof SubscriptionPlan
|
|
305
|
+
*/
|
|
306
|
+
discountedCmrr: string;
|
|
270
307
|
}
|
|
271
308
|
|
|
272
309
|
/**
|
|
273
310
|
* Check if a given object implements the SubscriptionPlan interface.
|
|
274
311
|
*/
|
|
275
312
|
export function instanceOfSubscriptionPlan(value: object): value is SubscriptionPlan {
|
|
276
|
-
if (!('
|
|
277
|
-
if (!('
|
|
278
|
-
if (!('
|
|
279
|
-
if (!('planName' in value) || value['planName'] === undefined) return false;
|
|
280
|
-
if (!('subscriptionLineId' in value) || value['subscriptionLineId'] === undefined) return false;
|
|
281
|
-
if (!('externalChargeId' in value) || value['externalChargeId'] === undefined) return false;
|
|
313
|
+
if (!('productId' in value) || value['productId'] === undefined) return false;
|
|
314
|
+
if (!('planId' in value) || value['planId'] === undefined) return false;
|
|
315
|
+
if (!('chargeId' in value) || value['chargeId'] === undefined) return false;
|
|
282
316
|
if (!('chargeName' in value) || value['chargeName'] === undefined) return false;
|
|
283
|
-
if (!('
|
|
284
|
-
if (!('listPrice' in value) || value['listPrice'] === undefined) return false;
|
|
285
|
-
if (!('listPriceBase' in value) || value['listPriceBase'] === undefined) return false;
|
|
286
|
-
if (!('priceBase' in value) || value['priceBase'] === undefined) return false;
|
|
287
|
-
if (!('quantity' in value) || value['quantity'] === undefined) return false;
|
|
288
|
-
if (!('includedUnits' in value) || value['includedUnits'] === undefined) return false;
|
|
289
|
-
if (!('discount' in value) || value['discount'] === undefined) return false;
|
|
290
|
-
if (!('effectivePrice' in value) || value['effectivePrice'] === undefined) return false;
|
|
291
|
-
if (!('chargeType' in value) || value['chargeType'] === undefined) return false;
|
|
292
|
-
if (!('billingPeriod' in value) || value['billingPeriod'] === undefined) return false;
|
|
293
|
-
if (!('unitOfMeasure' in value) || value['unitOfMeasure'] === undefined) return false;
|
|
294
|
-
if (!('currentPeriodStartDate' in value) || value['currentPeriodStartDate'] === undefined) return false;
|
|
295
|
-
if (!('currentPeriodEndDate' in value) || value['currentPeriodEndDate'] === undefined) return false;
|
|
296
|
-
if (!('billingScheduleId' in value) || value['billingScheduleId'] === undefined) return false;
|
|
297
|
-
if (!('revenueScheduleId' in value) || value['revenueScheduleId'] === undefined) return false;
|
|
298
|
-
if (!('chargeTiming' in value) || value['chargeTiming'] === undefined) return false;
|
|
299
|
-
if (!('billingPeriodStartAlignment' in value) || value['billingPeriodStartAlignment'] === undefined) return false;
|
|
300
|
-
if (!('billingDay' in value) || value['billingDay'] === undefined) return false;
|
|
301
|
-
if (!('proratePartialPeriods' in value) || value['proratePartialPeriods'] === undefined) return false;
|
|
302
|
-
if (!('backchargeCurrentPeriod' in value) || value['backchargeCurrentPeriod'] === undefined) return false;
|
|
303
|
-
if (!('prepaymentPeriods' in value) || value['prepaymentPeriods'] === undefined) return false;
|
|
304
|
-
if (!('cmrr' in value) || value['cmrr'] === undefined) return false;
|
|
317
|
+
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
305
318
|
if (!('discountedCmrr' in value) || value['discountedCmrr'] === undefined) return false;
|
|
306
|
-
if (!('chargeStartDate' in value) || value['chargeStartDate'] === undefined) return false;
|
|
307
|
-
if (!('chargeEndDate' in value) || value['chargeEndDate'] === undefined) return false;
|
|
308
|
-
if (!('renewalIncrementPercent' in value) || value['renewalIncrementPercent'] === undefined) return false;
|
|
309
|
-
if (!('overrideRenewalIncrementPercent' in value) || value['overrideRenewalIncrementPercent'] === undefined) return false;
|
|
310
|
-
if (!('defaultFromPlan' in value) || value['defaultFromPlan'] === undefined) return false;
|
|
311
|
-
if (!('revenueRuleId' in value) || value['revenueRuleId'] === undefined) return false;
|
|
312
|
-
if (!('recognitionStartDate' in value) || value['recognitionStartDate'] === undefined) return false;
|
|
313
|
-
if (!('recognitionEndDate' in value) || value['recognitionEndDate'] === undefined) return false;
|
|
314
|
-
if (!('transactionPostingEntries' in value) || value['transactionPostingEntries'] === undefined) return false;
|
|
315
|
-
if (!('customFields' in value) || value['customFields'] === undefined) return false;
|
|
316
319
|
return true;
|
|
317
320
|
}
|
|
318
321
|
|
|
@@ -326,46 +329,51 @@ export function SubscriptionPlanFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
326
329
|
}
|
|
327
330
|
return {
|
|
328
331
|
|
|
329
|
-
'
|
|
330
|
-
'productName': json['productName'],
|
|
331
|
-
'
|
|
332
|
-
'planName': json['planName'],
|
|
333
|
-
'
|
|
334
|
-
'externalChargeId': json['externalChargeId'],
|
|
332
|
+
'productId': json['productId'],
|
|
333
|
+
'productName': json['productName'] == null ? undefined : json['productName'],
|
|
334
|
+
'planId': json['planId'],
|
|
335
|
+
'planName': json['planName'] == null ? undefined : json['planName'],
|
|
336
|
+
'chargeId': json['chargeId'],
|
|
335
337
|
'chargeName': json['chargeName'],
|
|
336
|
-
'pricingModel': json['pricingModel'],
|
|
337
|
-
'listPrice': json['listPrice'],
|
|
338
|
-
'
|
|
339
|
-
'
|
|
340
|
-
'
|
|
341
|
-
'
|
|
342
|
-
'
|
|
343
|
-
'
|
|
344
|
-
'
|
|
345
|
-
'
|
|
346
|
-
'
|
|
347
|
-
'
|
|
348
|
-
'
|
|
349
|
-
'
|
|
350
|
-
'
|
|
351
|
-
'
|
|
352
|
-
'
|
|
353
|
-
'
|
|
354
|
-
'
|
|
355
|
-
'
|
|
356
|
-
'
|
|
357
|
-
'
|
|
338
|
+
'pricingModel': json['pricingModel'] == null ? undefined : json['pricingModel'],
|
|
339
|
+
'listPrice': json['listPrice'] == null ? undefined : json['listPrice'],
|
|
340
|
+
'priceBase': json['priceBase'] == null ? undefined : json['priceBase'],
|
|
341
|
+
'quantity': json['quantity'] == null ? undefined : json['quantity'],
|
|
342
|
+
'includedUnits': json['includedUnits'] == null ? undefined : json['includedUnits'],
|
|
343
|
+
'discount': json['discount'] == null ? undefined : json['discount'],
|
|
344
|
+
'effectivePrice': json['effectivePrice'] == null ? undefined : json['effectivePrice'],
|
|
345
|
+
'chargeType': json['chargeType'] == null ? undefined : json['chargeType'],
|
|
346
|
+
'billingPeriod': json['billingPeriod'] == null ? undefined : json['billingPeriod'],
|
|
347
|
+
'chargeTiming': json['chargeTiming'] == null ? undefined : json['chargeTiming'],
|
|
348
|
+
'billingPeriodStartAlignment': json['billingPeriodStartAlignment'] == null ? undefined : json['billingPeriodStartAlignment'],
|
|
349
|
+
'billingDay': json['billingDay'] == null ? undefined : json['billingDay'],
|
|
350
|
+
'proratePartialPeriods': json['proratePartialPeriods'] == null ? undefined : json['proratePartialPeriods'],
|
|
351
|
+
'prepaymentPeriods': json['prepaymentPeriods'] == null ? undefined : json['prepaymentPeriods'],
|
|
352
|
+
'prepaymentAmount': json['prepaymentAmount'] == null ? undefined : json['prepaymentAmount'],
|
|
353
|
+
'chargeBillingDate': json['chargeBillingDate'] == null ? undefined : json['chargeBillingDate'],
|
|
354
|
+
'completionDate': json['completionDate'] == null ? undefined : json['completionDate'],
|
|
355
|
+
'subscriptionLineId': json['subscriptionLineId'] == null ? undefined : json['subscriptionLineId'],
|
|
356
|
+
'currentPeriodStartDate': json['currentPeriodStartDate'] == null ? undefined : json['currentPeriodStartDate'],
|
|
357
|
+
'currentPeriodEndDate': json['currentPeriodEndDate'] == null ? undefined : json['currentPeriodEndDate'],
|
|
358
|
+
'billingScheduleId': json['billingScheduleId'] == null ? undefined : json['billingScheduleId'],
|
|
359
|
+
'chargeEndDate': json['chargeEndDate'] == null ? undefined : json['chargeEndDate'],
|
|
360
|
+
'renewalIncrementPercent': json['renewalIncrementPercent'] == null ? undefined : json['renewalIncrementPercent'],
|
|
361
|
+
'overrideRenewalIncrementPercent': json['overrideRenewalIncrementPercent'] == null ? undefined : json['overrideRenewalIncrementPercent'],
|
|
362
|
+
'chargeStartDate': json['chargeStartDate'] == null ? undefined : json['chargeStartDate'],
|
|
363
|
+
'unitOfMeasure': json['unitOfMeasure'] == null ? undefined : json['unitOfMeasure'],
|
|
364
|
+
'revenueScheduleId': json['revenueScheduleId'] == null ? undefined : json['revenueScheduleId'],
|
|
365
|
+
'backchargeCurrentPeriod': json['backchargeCurrentPeriod'] == null ? undefined : json['backchargeCurrentPeriod'],
|
|
366
|
+
'tiers': json['tiers'] == null ? undefined : ((json['tiers'] as Array<any>).map(ChargeTierFromJSON)),
|
|
367
|
+
'lastChargeDate': json['lastChargeDate'] == null ? undefined : json['lastChargeDate'],
|
|
368
|
+
'defaultFromPlan': json['defaultFromPlan'] == null ? undefined : json['defaultFromPlan'],
|
|
369
|
+
'cmrr': json['cmrr'] == null ? undefined : json['cmrr'],
|
|
370
|
+
'revenueRuleId': json['revenueRuleId'] == null ? undefined : json['revenueRuleId'],
|
|
371
|
+
'recognitionStartDate': json['recognitionStartDate'] == null ? undefined : json['recognitionStartDate'],
|
|
372
|
+
'customRecognitionStartDate': json['customRecognitionStartDate'] == null ? undefined : json['customRecognitionStartDate'],
|
|
373
|
+
'customRecognitionEndDate': json['customRecognitionEndDate'] == null ? undefined : json['customRecognitionEndDate'],
|
|
374
|
+
'transactionPostingEntries': json['transactionPostingEntries'] == null ? undefined : ((json['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesFromJSON)),
|
|
375
|
+
'assetId': json['assetId'],
|
|
358
376
|
'discountedCmrr': json['discountedCmrr'],
|
|
359
|
-
'chargeStartDate': json['chargeStartDate'],
|
|
360
|
-
'chargeEndDate': json['chargeEndDate'],
|
|
361
|
-
'renewalIncrementPercent': json['renewalIncrementPercent'],
|
|
362
|
-
'overrideRenewalIncrementPercent': json['overrideRenewalIncrementPercent'],
|
|
363
|
-
'defaultFromPlan': json['defaultFromPlan'],
|
|
364
|
-
'revenueRuleId': json['revenueRuleId'],
|
|
365
|
-
'recognitionStartDate': json['recognitionStartDate'],
|
|
366
|
-
'recognitionEndDate': json['recognitionEndDate'],
|
|
367
|
-
'transactionPostingEntries': ((json['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesFromJSON)),
|
|
368
|
-
'customFields': json['customFields'],
|
|
369
377
|
};
|
|
370
378
|
}
|
|
371
379
|
|
|
@@ -380,16 +388,14 @@ export function SubscriptionPlanToJSONTyped(value?: SubscriptionPlan | null, ign
|
|
|
380
388
|
|
|
381
389
|
return {
|
|
382
390
|
|
|
383
|
-
'
|
|
391
|
+
'productId': value['productId'],
|
|
384
392
|
'productName': value['productName'],
|
|
385
|
-
'
|
|
393
|
+
'planId': value['planId'],
|
|
386
394
|
'planName': value['planName'],
|
|
387
|
-
'
|
|
388
|
-
'externalChargeId': value['externalChargeId'],
|
|
395
|
+
'chargeId': value['chargeId'],
|
|
389
396
|
'chargeName': value['chargeName'],
|
|
390
397
|
'pricingModel': value['pricingModel'],
|
|
391
398
|
'listPrice': value['listPrice'],
|
|
392
|
-
'listPriceBase': value['listPriceBase'],
|
|
393
399
|
'priceBase': value['priceBase'],
|
|
394
400
|
'quantity': value['quantity'],
|
|
395
401
|
'includedUnits': value['includedUnits'],
|
|
@@ -397,29 +403,36 @@ export function SubscriptionPlanToJSONTyped(value?: SubscriptionPlan | null, ign
|
|
|
397
403
|
'effectivePrice': value['effectivePrice'],
|
|
398
404
|
'chargeType': value['chargeType'],
|
|
399
405
|
'billingPeriod': value['billingPeriod'],
|
|
400
|
-
'unitOfMeasure': value['unitOfMeasure'],
|
|
401
|
-
'currentPeriodStartDate': value['currentPeriodStartDate'],
|
|
402
|
-
'currentPeriodEndDate': value['currentPeriodEndDate'],
|
|
403
|
-
'billingScheduleId': value['billingScheduleId'],
|
|
404
|
-
'revenueScheduleId': value['revenueScheduleId'],
|
|
405
406
|
'chargeTiming': value['chargeTiming'],
|
|
406
407
|
'billingPeriodStartAlignment': value['billingPeriodStartAlignment'],
|
|
407
408
|
'billingDay': value['billingDay'],
|
|
408
409
|
'proratePartialPeriods': value['proratePartialPeriods'],
|
|
409
|
-
'backchargeCurrentPeriod': value['backchargeCurrentPeriod'],
|
|
410
410
|
'prepaymentPeriods': value['prepaymentPeriods'],
|
|
411
|
-
'
|
|
412
|
-
'
|
|
413
|
-
'
|
|
411
|
+
'prepaymentAmount': value['prepaymentAmount'],
|
|
412
|
+
'chargeBillingDate': value['chargeBillingDate'],
|
|
413
|
+
'completionDate': value['completionDate'],
|
|
414
|
+
'subscriptionLineId': value['subscriptionLineId'],
|
|
415
|
+
'currentPeriodStartDate': value['currentPeriodStartDate'],
|
|
416
|
+
'currentPeriodEndDate': value['currentPeriodEndDate'],
|
|
417
|
+
'billingScheduleId': value['billingScheduleId'],
|
|
414
418
|
'chargeEndDate': value['chargeEndDate'],
|
|
415
419
|
'renewalIncrementPercent': value['renewalIncrementPercent'],
|
|
416
420
|
'overrideRenewalIncrementPercent': value['overrideRenewalIncrementPercent'],
|
|
421
|
+
'chargeStartDate': value['chargeStartDate'],
|
|
422
|
+
'unitOfMeasure': value['unitOfMeasure'],
|
|
423
|
+
'revenueScheduleId': value['revenueScheduleId'],
|
|
424
|
+
'backchargeCurrentPeriod': value['backchargeCurrentPeriod'],
|
|
425
|
+
'tiers': value['tiers'] == null ? undefined : ((value['tiers'] as Array<any>).map(ChargeTierToJSON)),
|
|
426
|
+
'lastChargeDate': value['lastChargeDate'],
|
|
417
427
|
'defaultFromPlan': value['defaultFromPlan'],
|
|
428
|
+
'cmrr': value['cmrr'],
|
|
418
429
|
'revenueRuleId': value['revenueRuleId'],
|
|
419
430
|
'recognitionStartDate': value['recognitionStartDate'],
|
|
420
|
-
'
|
|
421
|
-
'
|
|
422
|
-
'
|
|
431
|
+
'customRecognitionStartDate': value['customRecognitionStartDate'],
|
|
432
|
+
'customRecognitionEndDate': value['customRecognitionEndDate'],
|
|
433
|
+
'transactionPostingEntries': value['transactionPostingEntries'] == null ? undefined : ((value['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesToJSON)),
|
|
434
|
+
'assetId': value['assetId'],
|
|
435
|
+
'discountedCmrr': value['discountedCmrr'],
|
|
423
436
|
};
|
|
424
437
|
}
|
|
425
438
|
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { SubscriptionCharge } from './subscription-charge';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './subscription-
|
|
18
|
+
SubscriptionChargeFromJSON,
|
|
19
|
+
SubscriptionChargeFromJSONTyped,
|
|
20
|
+
SubscriptionChargeToJSON,
|
|
21
|
+
SubscriptionChargeToJSONTyped,
|
|
22
|
+
} from './subscription-charge';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -190,11 +190,11 @@ export interface Subscription {
|
|
|
190
190
|
*/
|
|
191
191
|
tcv: number;
|
|
192
192
|
/**
|
|
193
|
-
* Subscription
|
|
194
|
-
* @type {Array<
|
|
193
|
+
* Subscription charge details
|
|
194
|
+
* @type {Array<SubscriptionCharge>}
|
|
195
195
|
* @memberof Subscription
|
|
196
196
|
*/
|
|
197
|
-
|
|
197
|
+
charges: Array<SubscriptionCharge>;
|
|
198
198
|
/**
|
|
199
199
|
* Date record was created
|
|
200
200
|
* @type {string}
|
|
@@ -288,7 +288,7 @@ export function instanceOfSubscription(value: object): value is Subscription {
|
|
|
288
288
|
if (!('contractTerm' in value) || value['contractTerm'] === undefined) return false;
|
|
289
289
|
if (!('renewalIncrementPercent' in value) || value['renewalIncrementPercent'] === undefined) return false;
|
|
290
290
|
if (!('tcv' in value) || value['tcv'] === undefined) return false;
|
|
291
|
-
if (!('
|
|
291
|
+
if (!('charges' in value) || value['charges'] === undefined) return false;
|
|
292
292
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
293
293
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
294
294
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
|
@@ -338,7 +338,7 @@ export function SubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
338
338
|
'contractTerm': json['contractTerm'],
|
|
339
339
|
'renewalIncrementPercent': json['renewalIncrementPercent'],
|
|
340
340
|
'tcv': json['tcv'],
|
|
341
|
-
'
|
|
341
|
+
'charges': ((json['charges'] as Array<any>).map(SubscriptionChargeFromJSON)),
|
|
342
342
|
'createdAt': json['createdAt'],
|
|
343
343
|
'updatedAt': json['updatedAt'],
|
|
344
344
|
'createdBy': json['createdBy'],
|
|
@@ -390,7 +390,7 @@ export function SubscriptionToJSONTyped(value?: Subscription | null, ignoreDiscr
|
|
|
390
390
|
'contractTerm': value['contractTerm'],
|
|
391
391
|
'renewalIncrementPercent': value['renewalIncrementPercent'],
|
|
392
392
|
'tcv': value['tcv'],
|
|
393
|
-
'
|
|
393
|
+
'charges': ((value['charges'] as Array<any>).map(SubscriptionChargeToJSON)),
|
|
394
394
|
'createdAt': value['createdAt'],
|
|
395
395
|
'updatedAt': value['updatedAt'],
|
|
396
396
|
'createdBy': value['createdBy'],
|
package/.turbo/turbo-build.log
DELETED