@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.
Files changed (47) hide show
  1. package/.turbo/turbo-build.log +2 -0
  2. package/dist/extensibility/functions/project/billing.d.ts +9 -1
  3. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  4. package/dist/extensibility/functions/project/billing.js +5 -0
  5. package/dist/generated/apis/default-api.d.ts +24 -12
  6. package/dist/generated/apis/default-api.d.ts.map +1 -1
  7. package/dist/generated/apis/default-api.js +75 -37
  8. package/dist/generated/models/create-note.d.ts +6 -0
  9. package/dist/generated/models/create-note.d.ts.map +1 -1
  10. package/dist/generated/models/create-note.js +2 -0
  11. package/dist/generated/models/create-subscription-plan.d.ts +4 -228
  12. package/dist/generated/models/create-subscription-plan.d.ts.map +1 -1
  13. package/dist/generated/models/create-subscription-plan.js +4 -80
  14. package/dist/generated/models/create-subscription.d.ts +4 -4
  15. package/dist/generated/models/create-subscription.d.ts.map +1 -1
  16. package/dist/generated/models/create-subscription.js +4 -12
  17. package/dist/generated/models/index.d.ts +2 -0
  18. package/dist/generated/models/index.d.ts.map +1 -1
  19. package/dist/generated/models/index.js +2 -0
  20. package/dist/generated/models/note.d.ts +6 -0
  21. package/dist/generated/models/note.d.ts.map +1 -1
  22. package/dist/generated/models/note.js +4 -0
  23. package/dist/generated/models/subscription-plan.d.ts +74 -105
  24. package/dist/generated/models/subscription-plan.d.ts.map +1 -1
  25. package/dist/generated/models/subscription-plan.js +127 -70
  26. package/dist/generated/models/update-note.d.ts +1 -19
  27. package/dist/generated/models/update-note.d.ts.map +1 -1
  28. package/dist/generated/models/update-note.js +3 -7
  29. package/dist/generated/models/update-subscription-charge.d.ts +293 -0
  30. package/dist/generated/models/update-subscription-charge.d.ts.map +1 -0
  31. package/dist/generated/models/update-subscription-charge.js +151 -0
  32. package/dist/generated/models/update-subscription.d.ts +70 -0
  33. package/dist/generated/models/update-subscription.d.ts.map +1 -0
  34. package/dist/generated/models/update-subscription.js +68 -0
  35. package/package.json +1 -1
  36. package/src/extensibility/functions/project/billing.ts +10 -1
  37. package/src/generated/.openapi-generator/FILES +2 -0
  38. package/src/generated/apis/default-api.ts +126 -65
  39. package/src/generated/models/create-note.ts +8 -0
  40. package/src/generated/models/create-subscription.ts +8 -12
  41. package/src/generated/models/index.ts +2 -0
  42. package/src/generated/models/note.ts +9 -0
  43. package/src/generated/models/update-note.ts +3 -26
  44. package/src/generated/models/{create-subscription-plan.ts → update-subscription-charge.ts} +85 -83
  45. package/src/generated/models/update-subscription.ts +124 -0
  46. package/package.deploy.json +0 -33
  47. package/src/generated/models/subscription-plan.ts +0 -438
@@ -18,6 +18,8 @@ exports.UpdateNoteToJSONTyped = exports.UpdateNoteToJSON = exports.UpdateNoteFro
18
18
  * Check if a given object implements the UpdateNote interface.
19
19
  */
20
20
  function instanceOfUpdateNote(value) {
21
+ if (!('text' in value) || value['text'] === undefined)
22
+ return false;
21
23
  return true;
22
24
  }
23
25
  exports.instanceOfUpdateNote = instanceOfUpdateNote;
@@ -30,10 +32,7 @@ function UpdateNoteFromJSONTyped(json, ignoreDiscriminator) {
30
32
  return json;
31
33
  }
32
34
  return {
33
- 'text': json['text'] == null ? undefined : json['text'],
34
- 'customerId': json['customerId'] == null ? undefined : json['customerId'],
35
- 'assetId': json['assetId'] == null ? undefined : json['assetId'],
36
- 'userId': json['userId'] == null ? undefined : json['userId'],
35
+ 'text': json['text'],
37
36
  };
38
37
  }
39
38
  exports.UpdateNoteFromJSONTyped = UpdateNoteFromJSONTyped;
@@ -47,9 +46,6 @@ function UpdateNoteToJSONTyped(value, ignoreDiscriminator = false) {
47
46
  }
48
47
  return {
49
48
  'text': value['text'],
50
- 'customerId': value['customerId'],
51
- 'assetId': value['assetId'],
52
- 'userId': value['userId'],
53
49
  };
54
50
  }
55
51
  exports.UpdateNoteToJSONTyped = UpdateNoteToJSONTyped;
@@ -0,0 +1,293 @@
1
+ /**
2
+ * ManageSpace API
3
+ * ManageSpace API Documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { TransactionPostingEntries } from './transaction-posting-entries';
13
+ import type { ChargeTier } from './charge-tier';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface UpdateSubscriptionCharge
18
+ */
19
+ export interface UpdateSubscriptionCharge {
20
+ /**
21
+ * Product ID
22
+ * @type {string}
23
+ * @memberof UpdateSubscriptionCharge
24
+ */
25
+ productId: string;
26
+ /**
27
+ * Name of product
28
+ * @type {string}
29
+ * @memberof UpdateSubscriptionCharge
30
+ */
31
+ productName?: string;
32
+ /**
33
+ * Plan ID
34
+ * @type {string}
35
+ * @memberof UpdateSubscriptionCharge
36
+ */
37
+ planId: string;
38
+ /**
39
+ * Name of plan
40
+ * @type {string}
41
+ * @memberof UpdateSubscriptionCharge
42
+ */
43
+ planName?: string;
44
+ /**
45
+ * Name of charge
46
+ * @type {string}
47
+ * @memberof UpdateSubscriptionCharge
48
+ */
49
+ chargeName: string;
50
+ /**
51
+ * How charge will be priced
52
+ * @type {string}
53
+ * @memberof UpdateSubscriptionCharge
54
+ */
55
+ pricingModel?: string;
56
+ /**
57
+ * How charge will be priced
58
+ * @type {string}
59
+ * @memberof UpdateSubscriptionCharge
60
+ */
61
+ priceBase?: string;
62
+ /**
63
+ * Quantity of item included
64
+ * @type {number}
65
+ * @memberof UpdateSubscriptionCharge
66
+ */
67
+ quantity?: number;
68
+ /**
69
+ * Number of units included in plan
70
+ * @type {number}
71
+ * @memberof UpdateSubscriptionCharge
72
+ */
73
+ includedUnits?: number;
74
+ /**
75
+ * Discount applied to product
76
+ * @type {number}
77
+ * @memberof UpdateSubscriptionCharge
78
+ */
79
+ discount?: number;
80
+ /**
81
+ * Effective price of product
82
+ * @type {string}
83
+ * @memberof UpdateSubscriptionCharge
84
+ */
85
+ effectivePrice?: string;
86
+ /**
87
+ * For recurrign charges, when the charge is billed
88
+ * @type {string}
89
+ * @memberof UpdateSubscriptionCharge
90
+ */
91
+ chargeTiming?: string;
92
+ /**
93
+ * Determine boundary of Charge period
94
+ * @type {string}
95
+ * @memberof UpdateSubscriptionCharge
96
+ */
97
+ billingPeriodStartAlignment?: string;
98
+ /**
99
+ * Which day of the month or week Charge is invoiced
100
+ * @type {string}
101
+ * @memberof UpdateSubscriptionCharge
102
+ */
103
+ billingDay?: string;
104
+ /**
105
+ * Charge for partial periods
106
+ * @type {boolean}
107
+ * @memberof UpdateSubscriptionCharge
108
+ */
109
+ proratePartialPeriods?: boolean;
110
+ /**
111
+ * Number of periods/units to charge
112
+ * @type {number}
113
+ * @memberof UpdateSubscriptionCharge
114
+ */
115
+ prepaymentPeriods?: number;
116
+ /**
117
+ * For usage charges, number of prepayment units
118
+ * @type {number}
119
+ * @memberof UpdateSubscriptionCharge
120
+ */
121
+ prepaymentAmount?: number;
122
+ /**
123
+ * For one time charges, when billing will happen
124
+ * @type {string}
125
+ * @memberof UpdateSubscriptionCharge
126
+ */
127
+ chargeBillingDate?: string;
128
+ /**
129
+ * For one time charges, display completion date if chosen as charge effective date
130
+ * @type {string}
131
+ * @memberof UpdateSubscriptionCharge
132
+ */
133
+ completionDate?: string;
134
+ /**
135
+ * Unique subscription line id
136
+ * @type {string}
137
+ * @memberof UpdateSubscriptionCharge
138
+ */
139
+ subscriptionLineId?: string;
140
+ /**
141
+ * start date of current period
142
+ * @type {string}
143
+ * @memberof UpdateSubscriptionCharge
144
+ */
145
+ currentPeriodStartDate?: string;
146
+ /**
147
+ * end date of current period
148
+ * @type {string}
149
+ * @memberof UpdateSubscriptionCharge
150
+ */
151
+ currentPeriodEndDate?: string;
152
+ /**
153
+ * Unique billing schedule id
154
+ * @type {string}
155
+ * @memberof UpdateSubscriptionCharge
156
+ */
157
+ billingScheduleId?: string;
158
+ /**
159
+ * Charge end date
160
+ * @type {string}
161
+ * @memberof UpdateSubscriptionCharge
162
+ */
163
+ chargeEndDate?: string;
164
+ /**
165
+ * Date subscription contract will start
166
+ * @type {number}
167
+ * @memberof UpdateSubscriptionCharge
168
+ */
169
+ renewalIncrementPercent?: number;
170
+ /**
171
+ * Override automatic renewal increment percent
172
+ * @type {boolean}
173
+ * @memberof UpdateSubscriptionCharge
174
+ */
175
+ overrideRenewalIncrementPercent?: boolean;
176
+ /**
177
+ * Charge start date
178
+ * @type {string}
179
+ * @memberof UpdateSubscriptionCharge
180
+ */
181
+ chargeStartDate?: string;
182
+ /**
183
+ * Unit of measure
184
+ * @type {string}
185
+ * @memberof UpdateSubscriptionCharge
186
+ */
187
+ unitOfMeasure?: string;
188
+ /**
189
+ * Unique revenue schedule id
190
+ * @type {string}
191
+ * @memberof UpdateSubscriptionCharge
192
+ */
193
+ revenueScheduleId?: string;
194
+ /**
195
+ * Determines proration logic
196
+ * @type {boolean}
197
+ * @memberof UpdateSubscriptionCharge
198
+ */
199
+ backchargeCurrentPeriod?: boolean;
200
+ /**
201
+ * For tiered/volume pricing, each tier will represent price of specific units in given range
202
+ * @type {Array<ChargeTier>}
203
+ * @memberof UpdateSubscriptionCharge
204
+ */
205
+ tiers?: Array<ChargeTier>;
206
+ /**
207
+ * Last charge date
208
+ * @type {string}
209
+ * @memberof UpdateSubscriptionCharge
210
+ */
211
+ lastChargeDate?: string;
212
+ /**
213
+ * Accounting information can be overridden
214
+ * @type {boolean}
215
+ * @memberof UpdateSubscriptionCharge
216
+ */
217
+ defaultFromPlan?: boolean;
218
+ /**
219
+ * Contracted MRR per charge
220
+ * @type {string}
221
+ * @memberof UpdateSubscriptionCharge
222
+ */
223
+ cmrr?: string;
224
+ /**
225
+ * Revenue rule ID
226
+ * @type {string}
227
+ * @memberof UpdateSubscriptionCharge
228
+ */
229
+ revenueRuleId?: string;
230
+ /**
231
+ * Date when revenue recognition will begin
232
+ * @type {string}
233
+ * @memberof UpdateSubscriptionCharge
234
+ */
235
+ recognitionStartDate?: string;
236
+ /**
237
+ * Date to customize revenue recognition Start
238
+ * @type {string}
239
+ * @memberof UpdateSubscriptionCharge
240
+ */
241
+ customRecognitionStartDate?: string;
242
+ /**
243
+ * For one-time charge, date to customize revenue recognition End
244
+ * @type {string}
245
+ * @memberof UpdateSubscriptionCharge
246
+ */
247
+ customRecognitionEndDate?: string;
248
+ /**
249
+ * Transaction type
250
+ * @type {Array<TransactionPostingEntries>}
251
+ * @memberof UpdateSubscriptionCharge
252
+ */
253
+ transactionPostingEntries?: Array<TransactionPostingEntries>;
254
+ /**
255
+ * Asset ID
256
+ * @type {string}
257
+ * @memberof UpdateSubscriptionCharge
258
+ */
259
+ assetId: string;
260
+ /**
261
+ * Charge ID
262
+ * @type {string}
263
+ * @memberof UpdateSubscriptionCharge
264
+ */
265
+ chargeId?: string;
266
+ /**
267
+ * Type of charge
268
+ * @type {string}
269
+ * @memberof UpdateSubscriptionCharge
270
+ */
271
+ chargeType: string;
272
+ /**
273
+ * Billing period for recurring and usage based Charges
274
+ * @type {string}
275
+ * @memberof UpdateSubscriptionCharge
276
+ */
277
+ billingPeriod: string;
278
+ /**
279
+ * List price of product
280
+ * @type {string}
281
+ * @memberof UpdateSubscriptionCharge
282
+ */
283
+ listPrice: string;
284
+ }
285
+ /**
286
+ * Check if a given object implements the UpdateSubscriptionCharge interface.
287
+ */
288
+ export declare function instanceOfUpdateSubscriptionCharge(value: object): value is UpdateSubscriptionCharge;
289
+ export declare function UpdateSubscriptionChargeFromJSON(json: any): UpdateSubscriptionCharge;
290
+ export declare function UpdateSubscriptionChargeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSubscriptionCharge;
291
+ export declare function UpdateSubscriptionChargeToJSON(json: any): UpdateSubscriptionCharge;
292
+ export declare function UpdateSubscriptionChargeToJSONTyped(value?: UpdateSubscriptionCharge | null, ignoreDiscriminator?: boolean): any;
293
+ //# sourceMappingURL=update-subscription-charge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-subscription-charge.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-subscription-charge.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * ManageSpace API
6
+ * ManageSpace API Documentation
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UpdateSubscriptionChargeToJSONTyped = exports.UpdateSubscriptionChargeToJSON = exports.UpdateSubscriptionChargeFromJSONTyped = exports.UpdateSubscriptionChargeFromJSON = exports.instanceOfUpdateSubscriptionCharge = void 0;
17
+ const transaction_posting_entries_1 = require("./transaction-posting-entries");
18
+ const charge_tier_1 = require("./charge-tier");
19
+ /**
20
+ * Check if a given object implements the UpdateSubscriptionCharge interface.
21
+ */
22
+ function instanceOfUpdateSubscriptionCharge(value) {
23
+ if (!('productId' in value) || value['productId'] === undefined)
24
+ return false;
25
+ if (!('planId' in value) || value['planId'] === undefined)
26
+ return false;
27
+ if (!('chargeName' in value) || value['chargeName'] === undefined)
28
+ return false;
29
+ if (!('assetId' in value) || value['assetId'] === undefined)
30
+ return false;
31
+ if (!('chargeType' in value) || value['chargeType'] === undefined)
32
+ return false;
33
+ if (!('billingPeriod' in value) || value['billingPeriod'] === undefined)
34
+ return false;
35
+ if (!('listPrice' in value) || value['listPrice'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ exports.instanceOfUpdateSubscriptionCharge = instanceOfUpdateSubscriptionCharge;
40
+ function UpdateSubscriptionChargeFromJSON(json) {
41
+ return UpdateSubscriptionChargeFromJSONTyped(json, false);
42
+ }
43
+ exports.UpdateSubscriptionChargeFromJSON = UpdateSubscriptionChargeFromJSON;
44
+ function UpdateSubscriptionChargeFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'productId': json['productId'],
50
+ 'productName': json['productName'] == null ? undefined : json['productName'],
51
+ 'planId': json['planId'],
52
+ 'planName': json['planName'] == null ? undefined : json['planName'],
53
+ 'chargeName': json['chargeName'],
54
+ 'pricingModel': json['pricingModel'] == null ? undefined : json['pricingModel'],
55
+ 'priceBase': json['priceBase'] == null ? undefined : json['priceBase'],
56
+ 'quantity': json['quantity'] == null ? undefined : json['quantity'],
57
+ 'includedUnits': json['includedUnits'] == null ? undefined : json['includedUnits'],
58
+ 'discount': json['discount'] == null ? undefined : json['discount'],
59
+ 'effectivePrice': json['effectivePrice'] == null ? undefined : json['effectivePrice'],
60
+ 'chargeTiming': json['chargeTiming'] == null ? undefined : json['chargeTiming'],
61
+ 'billingPeriodStartAlignment': json['billingPeriodStartAlignment'] == null ? undefined : json['billingPeriodStartAlignment'],
62
+ 'billingDay': json['billingDay'] == null ? undefined : json['billingDay'],
63
+ 'proratePartialPeriods': json['proratePartialPeriods'] == null ? undefined : json['proratePartialPeriods'],
64
+ 'prepaymentPeriods': json['prepaymentPeriods'] == null ? undefined : json['prepaymentPeriods'],
65
+ 'prepaymentAmount': json['prepaymentAmount'] == null ? undefined : json['prepaymentAmount'],
66
+ 'chargeBillingDate': json['chargeBillingDate'] == null ? undefined : json['chargeBillingDate'],
67
+ 'completionDate': json['completionDate'] == null ? undefined : json['completionDate'],
68
+ 'subscriptionLineId': json['subscriptionLineId'] == null ? undefined : json['subscriptionLineId'],
69
+ 'currentPeriodStartDate': json['currentPeriodStartDate'] == null ? undefined : json['currentPeriodStartDate'],
70
+ 'currentPeriodEndDate': json['currentPeriodEndDate'] == null ? undefined : json['currentPeriodEndDate'],
71
+ 'billingScheduleId': json['billingScheduleId'] == null ? undefined : json['billingScheduleId'],
72
+ 'chargeEndDate': json['chargeEndDate'] == null ? undefined : json['chargeEndDate'],
73
+ 'renewalIncrementPercent': json['renewalIncrementPercent'] == null ? undefined : json['renewalIncrementPercent'],
74
+ 'overrideRenewalIncrementPercent': json['overrideRenewalIncrementPercent'] == null ? undefined : json['overrideRenewalIncrementPercent'],
75
+ 'chargeStartDate': json['chargeStartDate'] == null ? undefined : json['chargeStartDate'],
76
+ 'unitOfMeasure': json['unitOfMeasure'] == null ? undefined : json['unitOfMeasure'],
77
+ 'revenueScheduleId': json['revenueScheduleId'] == null ? undefined : json['revenueScheduleId'],
78
+ 'backchargeCurrentPeriod': json['backchargeCurrentPeriod'] == null ? undefined : json['backchargeCurrentPeriod'],
79
+ 'tiers': json['tiers'] == null ? undefined : (json['tiers'].map(charge_tier_1.ChargeTierFromJSON)),
80
+ 'lastChargeDate': json['lastChargeDate'] == null ? undefined : json['lastChargeDate'],
81
+ 'defaultFromPlan': json['defaultFromPlan'] == null ? undefined : json['defaultFromPlan'],
82
+ 'cmrr': json['cmrr'] == null ? undefined : json['cmrr'],
83
+ 'revenueRuleId': json['revenueRuleId'] == null ? undefined : json['revenueRuleId'],
84
+ 'recognitionStartDate': json['recognitionStartDate'] == null ? undefined : json['recognitionStartDate'],
85
+ 'customRecognitionStartDate': json['customRecognitionStartDate'] == null ? undefined : json['customRecognitionStartDate'],
86
+ 'customRecognitionEndDate': json['customRecognitionEndDate'] == null ? undefined : json['customRecognitionEndDate'],
87
+ 'transactionPostingEntries': json['transactionPostingEntries'] == null ? undefined : (json['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesFromJSON)),
88
+ 'assetId': json['assetId'],
89
+ 'chargeId': json['chargeId'] == null ? undefined : json['chargeId'],
90
+ 'chargeType': json['chargeType'],
91
+ 'billingPeriod': json['billingPeriod'],
92
+ 'listPrice': json['listPrice'],
93
+ };
94
+ }
95
+ exports.UpdateSubscriptionChargeFromJSONTyped = UpdateSubscriptionChargeFromJSONTyped;
96
+ function UpdateSubscriptionChargeToJSON(json) {
97
+ return UpdateSubscriptionChargeToJSONTyped(json, false);
98
+ }
99
+ exports.UpdateSubscriptionChargeToJSON = UpdateSubscriptionChargeToJSON;
100
+ function UpdateSubscriptionChargeToJSONTyped(value, ignoreDiscriminator = false) {
101
+ if (value == null) {
102
+ return value;
103
+ }
104
+ return {
105
+ 'productId': value['productId'],
106
+ 'productName': value['productName'],
107
+ 'planId': value['planId'],
108
+ 'planName': value['planName'],
109
+ 'chargeName': value['chargeName'],
110
+ 'pricingModel': value['pricingModel'],
111
+ 'priceBase': value['priceBase'],
112
+ 'quantity': value['quantity'],
113
+ 'includedUnits': value['includedUnits'],
114
+ 'discount': value['discount'],
115
+ 'effectivePrice': value['effectivePrice'],
116
+ 'chargeTiming': value['chargeTiming'],
117
+ 'billingPeriodStartAlignment': value['billingPeriodStartAlignment'],
118
+ 'billingDay': value['billingDay'],
119
+ 'proratePartialPeriods': value['proratePartialPeriods'],
120
+ 'prepaymentPeriods': value['prepaymentPeriods'],
121
+ 'prepaymentAmount': value['prepaymentAmount'],
122
+ 'chargeBillingDate': value['chargeBillingDate'],
123
+ 'completionDate': value['completionDate'],
124
+ 'subscriptionLineId': value['subscriptionLineId'],
125
+ 'currentPeriodStartDate': value['currentPeriodStartDate'],
126
+ 'currentPeriodEndDate': value['currentPeriodEndDate'],
127
+ 'billingScheduleId': value['billingScheduleId'],
128
+ 'chargeEndDate': value['chargeEndDate'],
129
+ 'renewalIncrementPercent': value['renewalIncrementPercent'],
130
+ 'overrideRenewalIncrementPercent': value['overrideRenewalIncrementPercent'],
131
+ 'chargeStartDate': value['chargeStartDate'],
132
+ 'unitOfMeasure': value['unitOfMeasure'],
133
+ 'revenueScheduleId': value['revenueScheduleId'],
134
+ 'backchargeCurrentPeriod': value['backchargeCurrentPeriod'],
135
+ 'tiers': value['tiers'] == null ? undefined : (value['tiers'].map(charge_tier_1.ChargeTierToJSON)),
136
+ 'lastChargeDate': value['lastChargeDate'],
137
+ 'defaultFromPlan': value['defaultFromPlan'],
138
+ 'cmrr': value['cmrr'],
139
+ 'revenueRuleId': value['revenueRuleId'],
140
+ 'recognitionStartDate': value['recognitionStartDate'],
141
+ 'customRecognitionStartDate': value['customRecognitionStartDate'],
142
+ 'customRecognitionEndDate': value['customRecognitionEndDate'],
143
+ 'transactionPostingEntries': value['transactionPostingEntries'] == null ? undefined : (value['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesToJSON)),
144
+ 'assetId': value['assetId'],
145
+ 'chargeId': value['chargeId'],
146
+ 'chargeType': value['chargeType'],
147
+ 'billingPeriod': value['billingPeriod'],
148
+ 'listPrice': value['listPrice'],
149
+ };
150
+ }
151
+ exports.UpdateSubscriptionChargeToJSONTyped = UpdateSubscriptionChargeToJSONTyped;
@@ -0,0 +1,70 @@
1
+ /**
2
+ * ManageSpace API
3
+ * ManageSpace API Documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { UpdateSubscriptionCharge } from './update-subscription-charge';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UpdateSubscription
17
+ */
18
+ export interface UpdateSubscription {
19
+ /**
20
+ * Status of subscription contract
21
+ * @type {string}
22
+ * @memberof UpdateSubscription
23
+ */
24
+ status?: string;
25
+ /**
26
+ * Billing start date for subscription contract
27
+ * @type {string}
28
+ * @memberof UpdateSubscription
29
+ */
30
+ billingStartDate?: string;
31
+ /**
32
+ * Service start date for subscription contract
33
+ * @type {string}
34
+ * @memberof UpdateSubscription
35
+ */
36
+ serviceStartDate?: string;
37
+ /**
38
+ * Asset ID
39
+ * @type {string}
40
+ * @memberof UpdateSubscription
41
+ */
42
+ assetId?: string;
43
+ /**
44
+ * Date subscription contract was signed and activated
45
+ * @type {string}
46
+ * @memberof UpdateSubscription
47
+ */
48
+ contractEffectiveDate: string;
49
+ /**
50
+ * Subscription contract term
51
+ * @type {string}
52
+ * @memberof UpdateSubscription
53
+ */
54
+ contractTerm: string;
55
+ /**
56
+ * Charges associated the subscription
57
+ * @type {Array<UpdateSubscriptionCharge>}
58
+ * @memberof UpdateSubscription
59
+ */
60
+ charges: Array<UpdateSubscriptionCharge>;
61
+ }
62
+ /**
63
+ * Check if a given object implements the UpdateSubscription interface.
64
+ */
65
+ export declare function instanceOfUpdateSubscription(value: object): value is UpdateSubscription;
66
+ export declare function UpdateSubscriptionFromJSON(json: any): UpdateSubscription;
67
+ export declare function UpdateSubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSubscription;
68
+ export declare function UpdateSubscriptionToJSON(json: any): UpdateSubscription;
69
+ export declare function UpdateSubscriptionToJSONTyped(value?: UpdateSubscription | null, ignoreDiscriminator?: boolean): any;
70
+ //# sourceMappingURL=update-subscription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-subscription.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-subscription.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAQ7E;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC;CAC5C;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAKvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAc3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAe1H"}
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * ManageSpace API
6
+ * ManageSpace API Documentation
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UpdateSubscriptionToJSONTyped = exports.UpdateSubscriptionToJSON = exports.UpdateSubscriptionFromJSONTyped = exports.UpdateSubscriptionFromJSON = exports.instanceOfUpdateSubscription = void 0;
17
+ const update_subscription_charge_1 = require("./update-subscription-charge");
18
+ /**
19
+ * Check if a given object implements the UpdateSubscription interface.
20
+ */
21
+ function instanceOfUpdateSubscription(value) {
22
+ if (!('contractEffectiveDate' in value) || value['contractEffectiveDate'] === undefined)
23
+ return false;
24
+ if (!('contractTerm' in value) || value['contractTerm'] === undefined)
25
+ return false;
26
+ if (!('charges' in value) || value['charges'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ exports.instanceOfUpdateSubscription = instanceOfUpdateSubscription;
31
+ function UpdateSubscriptionFromJSON(json) {
32
+ return UpdateSubscriptionFromJSONTyped(json, false);
33
+ }
34
+ exports.UpdateSubscriptionFromJSON = UpdateSubscriptionFromJSON;
35
+ function UpdateSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'status': json['status'] == null ? undefined : json['status'],
41
+ 'billingStartDate': json['billingStartDate'] == null ? undefined : json['billingStartDate'],
42
+ 'serviceStartDate': json['serviceStartDate'] == null ? undefined : json['serviceStartDate'],
43
+ 'assetId': json['assetId'] == null ? undefined : json['assetId'],
44
+ 'contractEffectiveDate': json['contractEffectiveDate'],
45
+ 'contractTerm': json['contractTerm'],
46
+ 'charges': (json['charges'].map(update_subscription_charge_1.UpdateSubscriptionChargeFromJSON)),
47
+ };
48
+ }
49
+ exports.UpdateSubscriptionFromJSONTyped = UpdateSubscriptionFromJSONTyped;
50
+ function UpdateSubscriptionToJSON(json) {
51
+ return UpdateSubscriptionToJSONTyped(json, false);
52
+ }
53
+ exports.UpdateSubscriptionToJSON = UpdateSubscriptionToJSON;
54
+ function UpdateSubscriptionToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'status': value['status'],
60
+ 'billingStartDate': value['billingStartDate'],
61
+ 'serviceStartDate': value['serviceStartDate'],
62
+ 'assetId': value['assetId'],
63
+ 'contractEffectiveDate': value['contractEffectiveDate'],
64
+ 'contractTerm': value['contractTerm'],
65
+ 'charges': (value['charges'].map(update_subscription_charge_1.UpdateSubscriptionChargeToJSON)),
66
+ };
67
+ }
68
+ exports.UpdateSubscriptionToJSONTyped = UpdateSubscriptionToJSONTyped;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managespace/sdk",
3
- "version": "0.0.119",
3
+ "version": "0.0.121",
4
4
  "scripts": {
5
5
  "dev": "tsc -w --preserveWatchOutput",
6
6
  "build": "tsc",
@@ -27,6 +27,7 @@ import {
27
27
  CreateOrder as _CreateOrder,
28
28
  PlanCustom,
29
29
  CreateSubscription as _CreateSubscription,
30
+ UpdateSubscription as _UpdateSubscription,
30
31
  } from '../../../generated';
31
32
  import { CustomCreateContact } from '../../../generated/models/custom-create-contact';
32
33
  import { CustomUpdateCustomer } from '../../../generated/models/custom-update-customer';
@@ -260,7 +261,7 @@ export namespace Billing {
260
261
  export class CancelSubscription implements ExtPlugin {
261
262
  responseType!: Subscription;
262
263
  payload!: {
263
- // siteId: string;
264
+ siteId: string;
264
265
  subscriptionId: string;
265
266
  cancelSubscriptionPayload: _CancelSubscription;
266
267
  };
@@ -290,4 +291,12 @@ export namespace Billing {
290
291
  responseType!: Order[];
291
292
  payload!: BasePaginationQuery & { status?: string };
292
293
  }
294
+
295
+ export class UpdateSubscription implements ExtPlugin {
296
+ responseType!: Subscription;
297
+ payload!: {
298
+ siteId: string;
299
+ subscriptionId: string;
300
+ } & _UpdateSubscription;
301
+ }
293
302
  }
@@ -184,6 +184,8 @@ models/update-map-feature.ts
184
184
  models/update-note.ts
185
185
  models/update-org.ts
186
186
  models/update-smart-bar-prompt.ts
187
+ models/update-subscription-charge.ts
188
+ models/update-subscription.ts
187
189
  models/update-user-properties.ts
188
190
  models/user-id.ts
189
191
  models/user.ts