@managespace/sdk 0.0.119 → 0.0.121
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/.turbo/turbo-build.log +2 -0
- package/dist/extensibility/functions/project/billing.d.ts +9 -1
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +5 -0
- package/dist/generated/apis/default-api.d.ts +24 -12
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +75 -37
- package/dist/generated/models/create-note.d.ts +6 -0
- package/dist/generated/models/create-note.d.ts.map +1 -1
- package/dist/generated/models/create-note.js +2 -0
- package/dist/generated/models/create-subscription-plan.d.ts +4 -228
- package/dist/generated/models/create-subscription-plan.d.ts.map +1 -1
- package/dist/generated/models/create-subscription-plan.js +4 -80
- package/dist/generated/models/create-subscription.d.ts +4 -4
- package/dist/generated/models/create-subscription.d.ts.map +1 -1
- package/dist/generated/models/create-subscription.js +4 -12
- package/dist/generated/models/index.d.ts +2 -0
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +2 -0
- package/dist/generated/models/note.d.ts +6 -0
- package/dist/generated/models/note.d.ts.map +1 -1
- package/dist/generated/models/note.js +4 -0
- package/dist/generated/models/subscription-plan.d.ts +74 -105
- package/dist/generated/models/subscription-plan.d.ts.map +1 -1
- package/dist/generated/models/subscription-plan.js +127 -70
- package/dist/generated/models/update-note.d.ts +1 -19
- package/dist/generated/models/update-note.d.ts.map +1 -1
- package/dist/generated/models/update-note.js +3 -7
- package/dist/generated/models/update-subscription-charge.d.ts +293 -0
- package/dist/generated/models/update-subscription-charge.d.ts.map +1 -0
- package/dist/generated/models/update-subscription-charge.js +151 -0
- package/dist/generated/models/update-subscription.d.ts +70 -0
- package/dist/generated/models/update-subscription.d.ts.map +1 -0
- package/dist/generated/models/update-subscription.js +68 -0
- package/package.json +1 -1
- package/src/extensibility/functions/project/billing.ts +10 -1
- package/src/generated/.openapi-generator/FILES +2 -0
- package/src/generated/apis/default-api.ts +126 -65
- package/src/generated/models/create-note.ts +8 -0
- package/src/generated/models/create-subscription.ts +8 -12
- package/src/generated/models/index.ts +2 -0
- package/src/generated/models/note.ts +9 -0
- package/src/generated/models/update-note.ts +3 -26
- package/src/generated/models/{create-subscription-plan.ts → update-subscription-charge.ts} +85 -83
- package/src/generated/models/update-subscription.ts +124 -0
- package/package.deploy.json +0 -33
- package/src/generated/models/subscription-plan.ts +0 -438
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { TransactionPostingEntries } from './transaction-posting-entries';
|
|
13
|
-
import type { ChargeTier } from './charge-tier';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
16
15
|
* @export
|
|
@@ -22,31 +21,37 @@ export interface SubscriptionPlan {
|
|
|
22
21
|
* @type {string}
|
|
23
22
|
* @memberof SubscriptionPlan
|
|
24
23
|
*/
|
|
25
|
-
|
|
24
|
+
externalProductId: string;
|
|
26
25
|
/**
|
|
27
26
|
* Name of product
|
|
28
27
|
* @type {string}
|
|
29
28
|
* @memberof SubscriptionPlan
|
|
30
29
|
*/
|
|
31
|
-
productName
|
|
30
|
+
productName: string;
|
|
32
31
|
/**
|
|
33
32
|
* Plan ID
|
|
34
33
|
* @type {string}
|
|
35
34
|
* @memberof SubscriptionPlan
|
|
36
35
|
*/
|
|
37
|
-
|
|
36
|
+
externalPlanId: string;
|
|
38
37
|
/**
|
|
39
38
|
* Name of plan
|
|
40
39
|
* @type {string}
|
|
41
40
|
* @memberof SubscriptionPlan
|
|
42
41
|
*/
|
|
43
|
-
planName
|
|
42
|
+
planName: string;
|
|
43
|
+
/**
|
|
44
|
+
* Unique subscription line id
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof SubscriptionPlan
|
|
47
|
+
*/
|
|
48
|
+
subscriptionLineId: string;
|
|
44
49
|
/**
|
|
45
50
|
* Charge ID
|
|
46
51
|
* @type {string}
|
|
47
52
|
* @memberof SubscriptionPlan
|
|
48
53
|
*/
|
|
49
|
-
|
|
54
|
+
externalChargeId: string;
|
|
50
55
|
/**
|
|
51
56
|
* Name of charge
|
|
52
57
|
* @type {string}
|
|
@@ -58,235 +63,199 @@ export interface SubscriptionPlan {
|
|
|
58
63
|
* @type {string}
|
|
59
64
|
* @memberof SubscriptionPlan
|
|
60
65
|
*/
|
|
61
|
-
pricingModel
|
|
66
|
+
pricingModel: string;
|
|
62
67
|
/**
|
|
63
68
|
* Original unit price of Charge
|
|
64
69
|
* @type {string}
|
|
65
70
|
* @memberof SubscriptionPlan
|
|
66
71
|
*/
|
|
67
|
-
listPrice
|
|
72
|
+
listPrice: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof SubscriptionPlan
|
|
77
|
+
*/
|
|
78
|
+
listPriceBase: string;
|
|
68
79
|
/**
|
|
69
80
|
* How charge will be priced
|
|
70
81
|
* @type {string}
|
|
71
82
|
* @memberof SubscriptionPlan
|
|
72
83
|
*/
|
|
73
|
-
priceBase
|
|
84
|
+
priceBase: string;
|
|
74
85
|
/**
|
|
75
86
|
* Quantity of item included
|
|
76
87
|
* @type {number}
|
|
77
88
|
* @memberof SubscriptionPlan
|
|
78
89
|
*/
|
|
79
|
-
quantity
|
|
90
|
+
quantity: number;
|
|
80
91
|
/**
|
|
81
92
|
* Number of units included in plan
|
|
82
93
|
* @type {number}
|
|
83
94
|
* @memberof SubscriptionPlan
|
|
84
95
|
*/
|
|
85
|
-
includedUnits
|
|
96
|
+
includedUnits: number;
|
|
86
97
|
/**
|
|
87
98
|
* Discount applied to product
|
|
88
99
|
* @type {number}
|
|
89
100
|
* @memberof SubscriptionPlan
|
|
90
101
|
*/
|
|
91
|
-
discount
|
|
102
|
+
discount: number;
|
|
92
103
|
/**
|
|
93
104
|
* Effective price of product
|
|
94
105
|
* @type {string}
|
|
95
106
|
* @memberof SubscriptionPlan
|
|
96
107
|
*/
|
|
97
|
-
effectivePrice
|
|
108
|
+
effectivePrice: string;
|
|
98
109
|
/**
|
|
99
110
|
* Type of charge
|
|
100
111
|
* @type {string}
|
|
101
112
|
* @memberof SubscriptionPlan
|
|
102
113
|
*/
|
|
103
|
-
chargeType
|
|
114
|
+
chargeType: string;
|
|
104
115
|
/**
|
|
105
116
|
* Billing period for recurring and usage based Charges
|
|
106
117
|
* @type {string}
|
|
107
118
|
* @memberof SubscriptionPlan
|
|
108
119
|
*/
|
|
109
|
-
billingPeriod
|
|
120
|
+
billingPeriod: string;
|
|
110
121
|
/**
|
|
111
|
-
*
|
|
122
|
+
* Unit of measure
|
|
112
123
|
* @type {string}
|
|
113
124
|
* @memberof SubscriptionPlan
|
|
114
125
|
*/
|
|
115
|
-
|
|
126
|
+
unitOfMeasure: string;
|
|
116
127
|
/**
|
|
117
|
-
*
|
|
128
|
+
* start date of current period
|
|
118
129
|
* @type {string}
|
|
119
130
|
* @memberof SubscriptionPlan
|
|
120
131
|
*/
|
|
121
|
-
|
|
132
|
+
currentPeriodStartDate: string;
|
|
122
133
|
/**
|
|
123
|
-
*
|
|
134
|
+
* end date of current period
|
|
124
135
|
* @type {string}
|
|
125
136
|
* @memberof SubscriptionPlan
|
|
126
137
|
*/
|
|
127
|
-
|
|
138
|
+
currentPeriodEndDate: string;
|
|
128
139
|
/**
|
|
129
|
-
*
|
|
130
|
-
* @type {boolean}
|
|
131
|
-
* @memberof SubscriptionPlan
|
|
132
|
-
*/
|
|
133
|
-
proratePartialPeriods?: boolean;
|
|
134
|
-
/**
|
|
135
|
-
* Number of periods/units to charge
|
|
136
|
-
* @type {number}
|
|
137
|
-
* @memberof SubscriptionPlan
|
|
138
|
-
*/
|
|
139
|
-
prepaymentPeriods?: number;
|
|
140
|
-
/**
|
|
141
|
-
* For usage charges, number of prepayment units
|
|
142
|
-
* @type {number}
|
|
143
|
-
* @memberof SubscriptionPlan
|
|
144
|
-
*/
|
|
145
|
-
prepaymentAmount?: number;
|
|
146
|
-
/**
|
|
147
|
-
* For one time charges, when billing will happen
|
|
140
|
+
* Unique billing schedule id
|
|
148
141
|
* @type {string}
|
|
149
142
|
* @memberof SubscriptionPlan
|
|
150
143
|
*/
|
|
151
|
-
|
|
144
|
+
billingScheduleId: string;
|
|
152
145
|
/**
|
|
153
|
-
*
|
|
146
|
+
* Unique revenue schedule id
|
|
154
147
|
* @type {string}
|
|
155
148
|
* @memberof SubscriptionPlan
|
|
156
149
|
*/
|
|
157
|
-
|
|
150
|
+
revenueScheduleId: string;
|
|
158
151
|
/**
|
|
159
|
-
*
|
|
152
|
+
* For recurrign charges, when the charge is billed
|
|
160
153
|
* @type {string}
|
|
161
154
|
* @memberof SubscriptionPlan
|
|
162
155
|
*/
|
|
163
|
-
|
|
156
|
+
chargeTiming: string;
|
|
164
157
|
/**
|
|
165
|
-
*
|
|
158
|
+
* Determine boundary of Charge period
|
|
166
159
|
* @type {string}
|
|
167
160
|
* @memberof SubscriptionPlan
|
|
168
161
|
*/
|
|
169
|
-
|
|
162
|
+
billingPeriodStartAlignment: string;
|
|
170
163
|
/**
|
|
171
|
-
*
|
|
164
|
+
* Which day of the month or week Charge is invoiced
|
|
172
165
|
* @type {string}
|
|
173
166
|
* @memberof SubscriptionPlan
|
|
174
167
|
*/
|
|
175
|
-
|
|
168
|
+
billingDay: string;
|
|
176
169
|
/**
|
|
177
|
-
*
|
|
178
|
-
* @type {
|
|
170
|
+
* Charge for partial periods
|
|
171
|
+
* @type {boolean}
|
|
179
172
|
* @memberof SubscriptionPlan
|
|
180
173
|
*/
|
|
181
|
-
|
|
174
|
+
proratePartialPeriods: boolean;
|
|
182
175
|
/**
|
|
183
|
-
*
|
|
184
|
-
* @type {
|
|
176
|
+
* Determines proration logic
|
|
177
|
+
* @type {boolean}
|
|
185
178
|
* @memberof SubscriptionPlan
|
|
186
179
|
*/
|
|
187
|
-
|
|
180
|
+
backchargeCurrentPeriod: boolean;
|
|
188
181
|
/**
|
|
189
|
-
*
|
|
182
|
+
* Number of periods/units to charge
|
|
190
183
|
* @type {number}
|
|
191
184
|
* @memberof SubscriptionPlan
|
|
192
185
|
*/
|
|
193
|
-
|
|
186
|
+
prepaymentPeriods: number;
|
|
194
187
|
/**
|
|
195
|
-
*
|
|
196
|
-
* @type {boolean}
|
|
197
|
-
* @memberof SubscriptionPlan
|
|
198
|
-
*/
|
|
199
|
-
overrideRenewalIncrementPercent?: boolean;
|
|
200
|
-
/**
|
|
201
|
-
* Charge start date
|
|
188
|
+
* Contracted MRR per charge
|
|
202
189
|
* @type {string}
|
|
203
190
|
* @memberof SubscriptionPlan
|
|
204
191
|
*/
|
|
205
|
-
|
|
192
|
+
cmrr: string;
|
|
206
193
|
/**
|
|
207
|
-
*
|
|
194
|
+
* MRR calculated based on % discount
|
|
208
195
|
* @type {string}
|
|
209
196
|
* @memberof SubscriptionPlan
|
|
210
197
|
*/
|
|
211
|
-
|
|
198
|
+
discountedCmrr: string;
|
|
212
199
|
/**
|
|
213
|
-
*
|
|
200
|
+
* Charge start date
|
|
214
201
|
* @type {string}
|
|
215
202
|
* @memberof SubscriptionPlan
|
|
216
203
|
*/
|
|
217
|
-
|
|
204
|
+
chargeStartDate: string;
|
|
218
205
|
/**
|
|
219
|
-
*
|
|
220
|
-
* @type {
|
|
206
|
+
* Charge end date
|
|
207
|
+
* @type {string}
|
|
221
208
|
* @memberof SubscriptionPlan
|
|
222
209
|
*/
|
|
223
|
-
|
|
210
|
+
chargeEndDate: string;
|
|
224
211
|
/**
|
|
225
|
-
*
|
|
226
|
-
* @type {
|
|
212
|
+
* Date subscription contract will start
|
|
213
|
+
* @type {number}
|
|
227
214
|
* @memberof SubscriptionPlan
|
|
228
215
|
*/
|
|
229
|
-
|
|
216
|
+
renewalIncrementPercent: number;
|
|
230
217
|
/**
|
|
231
|
-
*
|
|
232
|
-
* @type {
|
|
218
|
+
* Override automatic renewal increment percent
|
|
219
|
+
* @type {boolean}
|
|
233
220
|
* @memberof SubscriptionPlan
|
|
234
221
|
*/
|
|
235
|
-
|
|
222
|
+
overrideRenewalIncrementPercent: boolean;
|
|
236
223
|
/**
|
|
237
224
|
* Accounting information can be overridden
|
|
238
225
|
* @type {boolean}
|
|
239
226
|
* @memberof SubscriptionPlan
|
|
240
227
|
*/
|
|
241
|
-
defaultFromPlan
|
|
242
|
-
/**
|
|
243
|
-
* Contracted MRR per charge
|
|
244
|
-
* @type {string}
|
|
245
|
-
* @memberof SubscriptionPlan
|
|
246
|
-
*/
|
|
247
|
-
cmrr?: string;
|
|
228
|
+
defaultFromPlan: boolean;
|
|
248
229
|
/**
|
|
249
230
|
* Revenue rule ID
|
|
250
231
|
* @type {string}
|
|
251
232
|
* @memberof SubscriptionPlan
|
|
252
233
|
*/
|
|
253
|
-
revenueRuleId
|
|
234
|
+
revenueRuleId: string;
|
|
254
235
|
/**
|
|
255
236
|
* Date when revenue recognition will begin
|
|
256
237
|
* @type {string}
|
|
257
238
|
* @memberof SubscriptionPlan
|
|
258
239
|
*/
|
|
259
|
-
recognitionStartDate
|
|
240
|
+
recognitionStartDate: string;
|
|
260
241
|
/**
|
|
261
|
-
* Date
|
|
262
|
-
* @type {string}
|
|
263
|
-
* @memberof SubscriptionPlan
|
|
264
|
-
*/
|
|
265
|
-
customRecognitionStartDate?: string;
|
|
266
|
-
/**
|
|
267
|
-
* For one-time charge, date to customize revenue recognition End
|
|
242
|
+
* Date when revenue recognition will begin
|
|
268
243
|
* @type {string}
|
|
269
244
|
* @memberof SubscriptionPlan
|
|
270
245
|
*/
|
|
271
|
-
|
|
246
|
+
recognitionEndDate: string;
|
|
272
247
|
/**
|
|
273
248
|
* Transaction type
|
|
274
249
|
* @type {Array<TransactionPostingEntries>}
|
|
275
250
|
* @memberof SubscriptionPlan
|
|
276
251
|
*/
|
|
277
|
-
transactionPostingEntries
|
|
278
|
-
/**
|
|
279
|
-
* Asset ID
|
|
280
|
-
* @type {string}
|
|
281
|
-
* @memberof SubscriptionPlan
|
|
282
|
-
*/
|
|
283
|
-
assetId: string;
|
|
252
|
+
transactionPostingEntries: Array<TransactionPostingEntries>;
|
|
284
253
|
/**
|
|
285
|
-
*
|
|
286
|
-
* @type {
|
|
254
|
+
* Custom fields on the invoice
|
|
255
|
+
* @type {object}
|
|
287
256
|
* @memberof SubscriptionPlan
|
|
288
257
|
*/
|
|
289
|
-
|
|
258
|
+
customFields: object;
|
|
290
259
|
}
|
|
291
260
|
/**
|
|
292
261
|
* Check if a given object implements the SubscriptionPlan interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-plan.d.ts","sourceRoot":"","sources":["../../../src/generated/models/subscription-plan.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"subscription-plan.d.ts","sourceRoot":"","sources":["../../../src/generated/models/subscription-plan.ts"],"names":[],"mappings":"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"}
|
|
@@ -15,23 +15,90 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.SubscriptionPlanToJSONTyped = exports.SubscriptionPlanToJSON = exports.SubscriptionPlanFromJSONTyped = exports.SubscriptionPlanFromJSON = exports.instanceOfSubscriptionPlan = void 0;
|
|
17
17
|
const transaction_posting_entries_1 = require("./transaction-posting-entries");
|
|
18
|
-
const charge_tier_1 = require("./charge-tier");
|
|
19
18
|
/**
|
|
20
19
|
* Check if a given object implements the SubscriptionPlan interface.
|
|
21
20
|
*/
|
|
22
21
|
function instanceOfSubscriptionPlan(value) {
|
|
23
|
-
if (!('
|
|
22
|
+
if (!('externalProductId' in value) || value['externalProductId'] === undefined)
|
|
24
23
|
return false;
|
|
25
|
-
if (!('
|
|
24
|
+
if (!('productName' in value) || value['productName'] === undefined)
|
|
26
25
|
return false;
|
|
27
|
-
if (!('
|
|
26
|
+
if (!('externalPlanId' in value) || value['externalPlanId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('planName' in value) || value['planName'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('subscriptionLineId' in value) || value['subscriptionLineId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('externalChargeId' in value) || value['externalChargeId'] === undefined)
|
|
28
33
|
return false;
|
|
29
34
|
if (!('chargeName' in value) || value['chargeName'] === undefined)
|
|
30
35
|
return false;
|
|
31
|
-
if (!('
|
|
36
|
+
if (!('pricingModel' in value) || value['pricingModel'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('listPrice' in value) || value['listPrice'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('listPriceBase' in value) || value['listPriceBase'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('priceBase' in value) || value['priceBase'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('includedUnits' in value) || value['includedUnits'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('discount' in value) || value['discount'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('effectivePrice' in value) || value['effectivePrice'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('chargeType' in value) || value['chargeType'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('billingPeriod' in value) || value['billingPeriod'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('unitOfMeasure' in value) || value['unitOfMeasure'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('currentPeriodStartDate' in value) || value['currentPeriodStartDate'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('currentPeriodEndDate' in value) || value['currentPeriodEndDate'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('billingScheduleId' in value) || value['billingScheduleId'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('revenueScheduleId' in value) || value['revenueScheduleId'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
if (!('chargeTiming' in value) || value['chargeTiming'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
if (!('billingPeriodStartAlignment' in value) || value['billingPeriodStartAlignment'] === undefined)
|
|
69
|
+
return false;
|
|
70
|
+
if (!('billingDay' in value) || value['billingDay'] === undefined)
|
|
71
|
+
return false;
|
|
72
|
+
if (!('proratePartialPeriods' in value) || value['proratePartialPeriods'] === undefined)
|
|
73
|
+
return false;
|
|
74
|
+
if (!('backchargeCurrentPeriod' in value) || value['backchargeCurrentPeriod'] === undefined)
|
|
75
|
+
return false;
|
|
76
|
+
if (!('prepaymentPeriods' in value) || value['prepaymentPeriods'] === undefined)
|
|
77
|
+
return false;
|
|
78
|
+
if (!('cmrr' in value) || value['cmrr'] === undefined)
|
|
32
79
|
return false;
|
|
33
80
|
if (!('discountedCmrr' in value) || value['discountedCmrr'] === undefined)
|
|
34
81
|
return false;
|
|
82
|
+
if (!('chargeStartDate' in value) || value['chargeStartDate'] === undefined)
|
|
83
|
+
return false;
|
|
84
|
+
if (!('chargeEndDate' in value) || value['chargeEndDate'] === undefined)
|
|
85
|
+
return false;
|
|
86
|
+
if (!('renewalIncrementPercent' in value) || value['renewalIncrementPercent'] === undefined)
|
|
87
|
+
return false;
|
|
88
|
+
if (!('overrideRenewalIncrementPercent' in value) || value['overrideRenewalIncrementPercent'] === undefined)
|
|
89
|
+
return false;
|
|
90
|
+
if (!('defaultFromPlan' in value) || value['defaultFromPlan'] === undefined)
|
|
91
|
+
return false;
|
|
92
|
+
if (!('revenueRuleId' in value) || value['revenueRuleId'] === undefined)
|
|
93
|
+
return false;
|
|
94
|
+
if (!('recognitionStartDate' in value) || value['recognitionStartDate'] === undefined)
|
|
95
|
+
return false;
|
|
96
|
+
if (!('recognitionEndDate' in value) || value['recognitionEndDate'] === undefined)
|
|
97
|
+
return false;
|
|
98
|
+
if (!('transactionPostingEntries' in value) || value['transactionPostingEntries'] === undefined)
|
|
99
|
+
return false;
|
|
100
|
+
if (!('customFields' in value) || value['customFields'] === undefined)
|
|
101
|
+
return false;
|
|
35
102
|
return true;
|
|
36
103
|
}
|
|
37
104
|
exports.instanceOfSubscriptionPlan = instanceOfSubscriptionPlan;
|
|
@@ -44,51 +111,46 @@ function SubscriptionPlanFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
111
|
return json;
|
|
45
112
|
}
|
|
46
113
|
return {
|
|
47
|
-
'
|
|
48
|
-
'productName': json['productName']
|
|
49
|
-
'
|
|
50
|
-
'planName': json['planName']
|
|
51
|
-
'
|
|
114
|
+
'externalProductId': json['externalProductId'],
|
|
115
|
+
'productName': json['productName'],
|
|
116
|
+
'externalPlanId': json['externalPlanId'],
|
|
117
|
+
'planName': json['planName'],
|
|
118
|
+
'subscriptionLineId': json['subscriptionLineId'],
|
|
119
|
+
'externalChargeId': json['externalChargeId'],
|
|
52
120
|
'chargeName': json['chargeName'],
|
|
53
|
-
'pricingModel': json['pricingModel']
|
|
54
|
-
'listPrice': json['listPrice']
|
|
55
|
-
'
|
|
56
|
-
'
|
|
57
|
-
'
|
|
58
|
-
'
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
'
|
|
65
|
-
'
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'
|
|
71
|
-
'
|
|
72
|
-
'
|
|
73
|
-
'
|
|
74
|
-
'
|
|
75
|
-
'renewalIncrementPercent': json['renewalIncrementPercent'] == null ? undefined : json['renewalIncrementPercent'],
|
|
76
|
-
'overrideRenewalIncrementPercent': json['overrideRenewalIncrementPercent'] == null ? undefined : json['overrideRenewalIncrementPercent'],
|
|
77
|
-
'chargeStartDate': json['chargeStartDate'] == null ? undefined : json['chargeStartDate'],
|
|
78
|
-
'unitOfMeasure': json['unitOfMeasure'] == null ? undefined : json['unitOfMeasure'],
|
|
79
|
-
'revenueScheduleId': json['revenueScheduleId'] == null ? undefined : json['revenueScheduleId'],
|
|
80
|
-
'backchargeCurrentPeriod': json['backchargeCurrentPeriod'] == null ? undefined : json['backchargeCurrentPeriod'],
|
|
81
|
-
'tiers': json['tiers'] == null ? undefined : (json['tiers'].map(charge_tier_1.ChargeTierFromJSON)),
|
|
82
|
-
'lastChargeDate': json['lastChargeDate'] == null ? undefined : json['lastChargeDate'],
|
|
83
|
-
'defaultFromPlan': json['defaultFromPlan'] == null ? undefined : json['defaultFromPlan'],
|
|
84
|
-
'cmrr': json['cmrr'] == null ? undefined : json['cmrr'],
|
|
85
|
-
'revenueRuleId': json['revenueRuleId'] == null ? undefined : json['revenueRuleId'],
|
|
86
|
-
'recognitionStartDate': json['recognitionStartDate'] == null ? undefined : json['recognitionStartDate'],
|
|
87
|
-
'customRecognitionStartDate': json['customRecognitionStartDate'] == null ? undefined : json['customRecognitionStartDate'],
|
|
88
|
-
'customRecognitionEndDate': json['customRecognitionEndDate'] == null ? undefined : json['customRecognitionEndDate'],
|
|
89
|
-
'transactionPostingEntries': json['transactionPostingEntries'] == null ? undefined : (json['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesFromJSON)),
|
|
90
|
-
'assetId': json['assetId'],
|
|
121
|
+
'pricingModel': json['pricingModel'],
|
|
122
|
+
'listPrice': json['listPrice'],
|
|
123
|
+
'listPriceBase': json['listPriceBase'],
|
|
124
|
+
'priceBase': json['priceBase'],
|
|
125
|
+
'quantity': json['quantity'],
|
|
126
|
+
'includedUnits': json['includedUnits'],
|
|
127
|
+
'discount': json['discount'],
|
|
128
|
+
'effectivePrice': json['effectivePrice'],
|
|
129
|
+
'chargeType': json['chargeType'],
|
|
130
|
+
'billingPeriod': json['billingPeriod'],
|
|
131
|
+
'unitOfMeasure': json['unitOfMeasure'],
|
|
132
|
+
'currentPeriodStartDate': json['currentPeriodStartDate'],
|
|
133
|
+
'currentPeriodEndDate': json['currentPeriodEndDate'],
|
|
134
|
+
'billingScheduleId': json['billingScheduleId'],
|
|
135
|
+
'revenueScheduleId': json['revenueScheduleId'],
|
|
136
|
+
'chargeTiming': json['chargeTiming'],
|
|
137
|
+
'billingPeriodStartAlignment': json['billingPeriodStartAlignment'],
|
|
138
|
+
'billingDay': json['billingDay'],
|
|
139
|
+
'proratePartialPeriods': json['proratePartialPeriods'],
|
|
140
|
+
'backchargeCurrentPeriod': json['backchargeCurrentPeriod'],
|
|
141
|
+
'prepaymentPeriods': json['prepaymentPeriods'],
|
|
142
|
+
'cmrr': json['cmrr'],
|
|
91
143
|
'discountedCmrr': json['discountedCmrr'],
|
|
144
|
+
'chargeStartDate': json['chargeStartDate'],
|
|
145
|
+
'chargeEndDate': json['chargeEndDate'],
|
|
146
|
+
'renewalIncrementPercent': json['renewalIncrementPercent'],
|
|
147
|
+
'overrideRenewalIncrementPercent': json['overrideRenewalIncrementPercent'],
|
|
148
|
+
'defaultFromPlan': json['defaultFromPlan'],
|
|
149
|
+
'revenueRuleId': json['revenueRuleId'],
|
|
150
|
+
'recognitionStartDate': json['recognitionStartDate'],
|
|
151
|
+
'recognitionEndDate': json['recognitionEndDate'],
|
|
152
|
+
'transactionPostingEntries': (json['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesFromJSON)),
|
|
153
|
+
'customFields': json['customFields'],
|
|
92
154
|
};
|
|
93
155
|
}
|
|
94
156
|
exports.SubscriptionPlanFromJSONTyped = SubscriptionPlanFromJSONTyped;
|
|
@@ -101,14 +163,16 @@ function SubscriptionPlanToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
101
163
|
return value;
|
|
102
164
|
}
|
|
103
165
|
return {
|
|
104
|
-
'
|
|
166
|
+
'externalProductId': value['externalProductId'],
|
|
105
167
|
'productName': value['productName'],
|
|
106
|
-
'
|
|
168
|
+
'externalPlanId': value['externalPlanId'],
|
|
107
169
|
'planName': value['planName'],
|
|
108
|
-
'
|
|
170
|
+
'subscriptionLineId': value['subscriptionLineId'],
|
|
171
|
+
'externalChargeId': value['externalChargeId'],
|
|
109
172
|
'chargeName': value['chargeName'],
|
|
110
173
|
'pricingModel': value['pricingModel'],
|
|
111
174
|
'listPrice': value['listPrice'],
|
|
175
|
+
'listPriceBase': value['listPriceBase'],
|
|
112
176
|
'priceBase': value['priceBase'],
|
|
113
177
|
'quantity': value['quantity'],
|
|
114
178
|
'includedUnits': value['includedUnits'],
|
|
@@ -116,36 +180,29 @@ function SubscriptionPlanToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
116
180
|
'effectivePrice': value['effectivePrice'],
|
|
117
181
|
'chargeType': value['chargeType'],
|
|
118
182
|
'billingPeriod': value['billingPeriod'],
|
|
183
|
+
'unitOfMeasure': value['unitOfMeasure'],
|
|
184
|
+
'currentPeriodStartDate': value['currentPeriodStartDate'],
|
|
185
|
+
'currentPeriodEndDate': value['currentPeriodEndDate'],
|
|
186
|
+
'billingScheduleId': value['billingScheduleId'],
|
|
187
|
+
'revenueScheduleId': value['revenueScheduleId'],
|
|
119
188
|
'chargeTiming': value['chargeTiming'],
|
|
120
189
|
'billingPeriodStartAlignment': value['billingPeriodStartAlignment'],
|
|
121
190
|
'billingDay': value['billingDay'],
|
|
122
191
|
'proratePartialPeriods': value['proratePartialPeriods'],
|
|
192
|
+
'backchargeCurrentPeriod': value['backchargeCurrentPeriod'],
|
|
123
193
|
'prepaymentPeriods': value['prepaymentPeriods'],
|
|
124
|
-
'
|
|
125
|
-
'
|
|
126
|
-
'
|
|
127
|
-
'subscriptionLineId': value['subscriptionLineId'],
|
|
128
|
-
'currentPeriodStartDate': value['currentPeriodStartDate'],
|
|
129
|
-
'currentPeriodEndDate': value['currentPeriodEndDate'],
|
|
130
|
-
'billingScheduleId': value['billingScheduleId'],
|
|
194
|
+
'cmrr': value['cmrr'],
|
|
195
|
+
'discountedCmrr': value['discountedCmrr'],
|
|
196
|
+
'chargeStartDate': value['chargeStartDate'],
|
|
131
197
|
'chargeEndDate': value['chargeEndDate'],
|
|
132
198
|
'renewalIncrementPercent': value['renewalIncrementPercent'],
|
|
133
199
|
'overrideRenewalIncrementPercent': value['overrideRenewalIncrementPercent'],
|
|
134
|
-
'chargeStartDate': value['chargeStartDate'],
|
|
135
|
-
'unitOfMeasure': value['unitOfMeasure'],
|
|
136
|
-
'revenueScheduleId': value['revenueScheduleId'],
|
|
137
|
-
'backchargeCurrentPeriod': value['backchargeCurrentPeriod'],
|
|
138
|
-
'tiers': value['tiers'] == null ? undefined : (value['tiers'].map(charge_tier_1.ChargeTierToJSON)),
|
|
139
|
-
'lastChargeDate': value['lastChargeDate'],
|
|
140
200
|
'defaultFromPlan': value['defaultFromPlan'],
|
|
141
|
-
'cmrr': value['cmrr'],
|
|
142
201
|
'revenueRuleId': value['revenueRuleId'],
|
|
143
202
|
'recognitionStartDate': value['recognitionStartDate'],
|
|
144
|
-
'
|
|
145
|
-
'
|
|
146
|
-
'
|
|
147
|
-
'assetId': value['assetId'],
|
|
148
|
-
'discountedCmrr': value['discountedCmrr'],
|
|
203
|
+
'recognitionEndDate': value['recognitionEndDate'],
|
|
204
|
+
'transactionPostingEntries': (value['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesToJSON)),
|
|
205
|
+
'customFields': value['customFields'],
|
|
149
206
|
};
|
|
150
207
|
}
|
|
151
208
|
exports.SubscriptionPlanToJSONTyped = SubscriptionPlanToJSONTyped;
|
|
@@ -20,25 +20,7 @@ export interface UpdateNote {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UpdateNote
|
|
22
22
|
*/
|
|
23
|
-
text
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof UpdateNote
|
|
28
|
-
*/
|
|
29
|
-
customerId?: string | null;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof UpdateNote
|
|
34
|
-
*/
|
|
35
|
-
assetId?: string | null;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof UpdateNote
|
|
40
|
-
*/
|
|
41
|
-
userId?: string | null;
|
|
23
|
+
text: string;
|
|
42
24
|
}
|
|
43
25
|
/**
|
|
44
26
|
* Check if a given object implements the UpdateNote interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-note.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-note.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,IAAI,
|
|
1
|
+
{"version":3,"file":"update-note.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-note.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAGvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAQ3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS1G"}
|