@managespace/sdk 0.1.113 → 0.1.115
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/extensibility-function.d.ts +4 -19
- package/dist/extensibility/functions/extensibility-function.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.d.ts +7 -1
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +5 -0
- package/dist/extensibility/types/extensibility-function-api.d.ts +10 -0
- package/dist/extensibility/types/extensibility-function-api.d.ts.map +1 -0
- package/dist/extensibility/types/extensibility-function-api.js +2 -0
- package/dist/extensibility/types/extensibility-function-signature.d.ts +4 -0
- package/dist/extensibility/types/extensibility-function-signature.d.ts.map +1 -0
- package/dist/extensibility/types/extensibility-function-signature.js +2 -0
- package/dist/extensibility/types/step-function-api.d.ts +7 -0
- package/dist/extensibility/types/step-function-api.d.ts.map +1 -0
- package/dist/extensibility/types/step-function-api.js +2 -0
- package/dist/extensibility/types/step-function-signature.d.ts +2 -6
- package/dist/extensibility/types/step-function-signature.d.ts.map +1 -1
- package/dist/generated/apis/default-api.d.ts +10 -1
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +29 -0
- package/dist/generated/models/billing-schedule.d.ts +149 -0
- package/dist/generated/models/billing-schedule.d.ts.map +1 -0
- package/dist/generated/models/billing-schedule.js +129 -0
- package/dist/generated/models/index.d.ts +3 -0
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +3 -0
- package/dist/generated/models/key-metrics.d.ts +51 -0
- package/dist/generated/models/key-metrics.d.ts.map +1 -0
- package/dist/generated/models/key-metrics.js +63 -0
- package/dist/generated/models/schedule-line.d.ts +147 -0
- package/dist/generated/models/schedule-line.d.ts.map +1 -0
- package/dist/generated/models/schedule-line.js +127 -0
- package/dist/generated/models/subscription-preview.d.ts +0 -6
- package/dist/generated/models/subscription-preview.d.ts.map +1 -1
- package/dist/generated/models/subscription-preview.js +0 -2
- package/dist/generated/models/subscription.d.ts +0 -6
- package/dist/generated/models/subscription.d.ts.map +1 -1
- package/dist/generated/models/subscription.js +0 -2
- package/package.deploy.json +2 -2
- package/package.json +2 -2
- package/src/extensibility/functions/extensibility-function.ts +3 -18
- package/src/extensibility/functions/project/billing.ts +6 -1
- package/src/extensibility/types/extensibility-function-api.ts +10 -0
- package/src/extensibility/types/extensibility-function-signature.ts +7 -0
- package/src/extensibility/types/step-function-api.ts +7 -0
- package/src/extensibility/types/step-function-signature.ts +2 -6
- package/src/generated/.openapi-generator/FILES +3 -0
- package/src/generated/apis/default-api.ts +46 -0
- package/src/generated/models/billing-schedule.ts +252 -0
- package/src/generated/models/index.ts +3 -0
- package/src/generated/models/key-metrics.ts +93 -0
- package/src/generated/models/schedule-line.ts +237 -0
- package/src/generated/models/subscription-preview.ts +0 -8
- package/src/generated/models/subscription.ts +0 -8
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace API
|
|
5
|
+
* ManageSpace API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { KeyMetrics } from './key-metrics';
|
|
17
|
+
import {
|
|
18
|
+
KeyMetricsFromJSON,
|
|
19
|
+
KeyMetricsFromJSONTyped,
|
|
20
|
+
KeyMetricsToJSON,
|
|
21
|
+
KeyMetricsToJSONTyped,
|
|
22
|
+
} from './key-metrics';
|
|
23
|
+
import type { ScheduleLine } from './schedule-line';
|
|
24
|
+
import {
|
|
25
|
+
ScheduleLineFromJSON,
|
|
26
|
+
ScheduleLineFromJSONTyped,
|
|
27
|
+
ScheduleLineToJSON,
|
|
28
|
+
ScheduleLineToJSONTyped,
|
|
29
|
+
} from './schedule-line';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface BillingSchedule
|
|
35
|
+
*/
|
|
36
|
+
export interface BillingSchedule {
|
|
37
|
+
/**
|
|
38
|
+
* Billing Schedule ID
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof BillingSchedule
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Billing Schedule UUID
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof BillingSchedule
|
|
47
|
+
*/
|
|
48
|
+
uuid: string;
|
|
49
|
+
/**
|
|
50
|
+
* Customer ID
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof BillingSchedule
|
|
53
|
+
*/
|
|
54
|
+
customerId: string;
|
|
55
|
+
/**
|
|
56
|
+
* Customer Name
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof BillingSchedule
|
|
59
|
+
*/
|
|
60
|
+
customerName: string;
|
|
61
|
+
/**
|
|
62
|
+
* Subscription ID
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof BillingSchedule
|
|
65
|
+
*/
|
|
66
|
+
subscriptionId: string;
|
|
67
|
+
/**
|
|
68
|
+
* Product ID
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof BillingSchedule
|
|
71
|
+
*/
|
|
72
|
+
productId: string;
|
|
73
|
+
/**
|
|
74
|
+
* Product Name
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof BillingSchedule
|
|
77
|
+
*/
|
|
78
|
+
productName: string;
|
|
79
|
+
/**
|
|
80
|
+
* Charge ID
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof BillingSchedule
|
|
83
|
+
*/
|
|
84
|
+
chargeId: string;
|
|
85
|
+
/**
|
|
86
|
+
* Charge Name
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof BillingSchedule
|
|
89
|
+
*/
|
|
90
|
+
chargeName: string;
|
|
91
|
+
/**
|
|
92
|
+
* Charge Type
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof BillingSchedule
|
|
95
|
+
*/
|
|
96
|
+
chargeType: string;
|
|
97
|
+
/**
|
|
98
|
+
* Charge Timing
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof BillingSchedule
|
|
101
|
+
*/
|
|
102
|
+
chargeTiming: string;
|
|
103
|
+
/**
|
|
104
|
+
* The first billing date for this charge
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof BillingSchedule
|
|
107
|
+
*/
|
|
108
|
+
startDate: string;
|
|
109
|
+
/**
|
|
110
|
+
* The last billing date for this charge
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof BillingSchedule
|
|
113
|
+
*/
|
|
114
|
+
endDate: string;
|
|
115
|
+
/**
|
|
116
|
+
* Key metrics for the billing schedule
|
|
117
|
+
* @type {KeyMetrics}
|
|
118
|
+
* @memberof BillingSchedule
|
|
119
|
+
*/
|
|
120
|
+
keyMetrics: KeyMetrics;
|
|
121
|
+
/**
|
|
122
|
+
* The currency for the billing schedule
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof BillingSchedule
|
|
125
|
+
*/
|
|
126
|
+
currency: string;
|
|
127
|
+
/**
|
|
128
|
+
* When the billing schedule was created
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof BillingSchedule
|
|
131
|
+
*/
|
|
132
|
+
createdAt: string;
|
|
133
|
+
/**
|
|
134
|
+
* When the billing schedule was last updated
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @memberof BillingSchedule
|
|
137
|
+
*/
|
|
138
|
+
updatedAt: string;
|
|
139
|
+
/**
|
|
140
|
+
* The email of the user who created the billing schedule
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof BillingSchedule
|
|
143
|
+
*/
|
|
144
|
+
createdBy: string;
|
|
145
|
+
/**
|
|
146
|
+
* The email of the user who last updated the billing schedule
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof BillingSchedule
|
|
149
|
+
*/
|
|
150
|
+
updatedBy: string;
|
|
151
|
+
/**
|
|
152
|
+
* The schedule lines for the billing schedule
|
|
153
|
+
* @type {Array<ScheduleLine>}
|
|
154
|
+
* @memberof BillingSchedule
|
|
155
|
+
*/
|
|
156
|
+
scheduleLines: Array<ScheduleLine>;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Check if a given object implements the BillingSchedule interface.
|
|
161
|
+
*/
|
|
162
|
+
export function instanceOfBillingSchedule(value: object): value is BillingSchedule {
|
|
163
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
164
|
+
if (!('uuid' in value) || value['uuid'] === undefined) return false;
|
|
165
|
+
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
166
|
+
if (!('customerName' in value) || value['customerName'] === undefined) return false;
|
|
167
|
+
if (!('subscriptionId' in value) || value['subscriptionId'] === undefined) return false;
|
|
168
|
+
if (!('productId' in value) || value['productId'] === undefined) return false;
|
|
169
|
+
if (!('productName' in value) || value['productName'] === undefined) return false;
|
|
170
|
+
if (!('chargeId' in value) || value['chargeId'] === undefined) return false;
|
|
171
|
+
if (!('chargeName' in value) || value['chargeName'] === undefined) return false;
|
|
172
|
+
if (!('chargeType' in value) || value['chargeType'] === undefined) return false;
|
|
173
|
+
if (!('chargeTiming' in value) || value['chargeTiming'] === undefined) return false;
|
|
174
|
+
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
175
|
+
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
176
|
+
if (!('keyMetrics' in value) || value['keyMetrics'] === undefined) return false;
|
|
177
|
+
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
178
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
179
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
180
|
+
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
|
181
|
+
if (!('updatedBy' in value) || value['updatedBy'] === undefined) return false;
|
|
182
|
+
if (!('scheduleLines' in value) || value['scheduleLines'] === undefined) return false;
|
|
183
|
+
return true;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export function BillingScheduleFromJSON(json: any): BillingSchedule {
|
|
187
|
+
return BillingScheduleFromJSONTyped(json, false);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export function BillingScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingSchedule {
|
|
191
|
+
if (json == null) {
|
|
192
|
+
return json;
|
|
193
|
+
}
|
|
194
|
+
return {
|
|
195
|
+
|
|
196
|
+
'id': json['id'],
|
|
197
|
+
'uuid': json['uuid'],
|
|
198
|
+
'customerId': json['customerId'],
|
|
199
|
+
'customerName': json['customerName'],
|
|
200
|
+
'subscriptionId': json['subscriptionId'],
|
|
201
|
+
'productId': json['productId'],
|
|
202
|
+
'productName': json['productName'],
|
|
203
|
+
'chargeId': json['chargeId'],
|
|
204
|
+
'chargeName': json['chargeName'],
|
|
205
|
+
'chargeType': json['chargeType'],
|
|
206
|
+
'chargeTiming': json['chargeTiming'],
|
|
207
|
+
'startDate': json['startDate'],
|
|
208
|
+
'endDate': json['endDate'],
|
|
209
|
+
'keyMetrics': KeyMetricsFromJSON(json['keyMetrics']),
|
|
210
|
+
'currency': json['currency'],
|
|
211
|
+
'createdAt': json['createdAt'],
|
|
212
|
+
'updatedAt': json['updatedAt'],
|
|
213
|
+
'createdBy': json['createdBy'],
|
|
214
|
+
'updatedBy': json['updatedBy'],
|
|
215
|
+
'scheduleLines': ((json['scheduleLines'] as Array<any>).map(ScheduleLineFromJSON)),
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export function BillingScheduleToJSON(json: any): BillingSchedule {
|
|
220
|
+
return BillingScheduleToJSONTyped(json, false);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export function BillingScheduleToJSONTyped(value?: BillingSchedule | null, ignoreDiscriminator: boolean = false): any {
|
|
224
|
+
if (value == null) {
|
|
225
|
+
return value;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
return {
|
|
229
|
+
|
|
230
|
+
'id': value['id'],
|
|
231
|
+
'uuid': value['uuid'],
|
|
232
|
+
'customerId': value['customerId'],
|
|
233
|
+
'customerName': value['customerName'],
|
|
234
|
+
'subscriptionId': value['subscriptionId'],
|
|
235
|
+
'productId': value['productId'],
|
|
236
|
+
'productName': value['productName'],
|
|
237
|
+
'chargeId': value['chargeId'],
|
|
238
|
+
'chargeName': value['chargeName'],
|
|
239
|
+
'chargeType': value['chargeType'],
|
|
240
|
+
'chargeTiming': value['chargeTiming'],
|
|
241
|
+
'startDate': value['startDate'],
|
|
242
|
+
'endDate': value['endDate'],
|
|
243
|
+
'keyMetrics': KeyMetricsToJSON(value['keyMetrics']),
|
|
244
|
+
'currency': value['currency'],
|
|
245
|
+
'createdAt': value['createdAt'],
|
|
246
|
+
'updatedAt': value['updatedAt'],
|
|
247
|
+
'createdBy': value['createdBy'],
|
|
248
|
+
'updatedBy': value['updatedBy'],
|
|
249
|
+
'scheduleLines': ((value['scheduleLines'] as Array<any>).map(ScheduleLineToJSON)),
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
|
|
@@ -15,6 +15,7 @@ export * from './base-pagination-query';
|
|
|
15
15
|
export * from './billing-run';
|
|
16
16
|
export * from './billing-run-filter-condition';
|
|
17
17
|
export * from './billing-run-filter-options';
|
|
18
|
+
export * from './billing-schedule';
|
|
18
19
|
export * from './calendar';
|
|
19
20
|
export * from './calendar-events';
|
|
20
21
|
export * from './cancel-asset-reservations';
|
|
@@ -156,6 +157,7 @@ export * from './insured-roll-report-filters';
|
|
|
156
157
|
export * from './intent';
|
|
157
158
|
export * from './invoice';
|
|
158
159
|
export * from './invoice-contact';
|
|
160
|
+
export * from './key-metrics';
|
|
159
161
|
export * from './lease-status';
|
|
160
162
|
export * from './line-item';
|
|
161
163
|
export * from './link-plugin';
|
|
@@ -218,6 +220,7 @@ export * from './roles1';
|
|
|
218
220
|
export * from './roles2';
|
|
219
221
|
export * from './roles3';
|
|
220
222
|
export * from './roles4';
|
|
223
|
+
export * from './schedule-line';
|
|
221
224
|
export * from './send-email';
|
|
222
225
|
export * from './send-sms';
|
|
223
226
|
export * from './separate-assets-custom';
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace API
|
|
5
|
+
* ManageSpace API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface KeyMetrics
|
|
20
|
+
*/
|
|
21
|
+
export interface KeyMetrics {
|
|
22
|
+
/**
|
|
23
|
+
* Monthly Recurring Revenue
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof KeyMetrics
|
|
26
|
+
*/
|
|
27
|
+
monthlyRecurringRevenue: string;
|
|
28
|
+
/**
|
|
29
|
+
* Annual Contract Revenue
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof KeyMetrics
|
|
32
|
+
*/
|
|
33
|
+
annualContractRevenue: string;
|
|
34
|
+
/**
|
|
35
|
+
* Total Contract Revenue
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof KeyMetrics
|
|
38
|
+
*/
|
|
39
|
+
totalContractRevenue: string;
|
|
40
|
+
/**
|
|
41
|
+
* Amount Invoiced
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof KeyMetrics
|
|
44
|
+
*/
|
|
45
|
+
amountInvoiced: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the KeyMetrics interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfKeyMetrics(value: object): value is KeyMetrics {
|
|
52
|
+
if (!('monthlyRecurringRevenue' in value) || value['monthlyRecurringRevenue'] === undefined) return false;
|
|
53
|
+
if (!('annualContractRevenue' in value) || value['annualContractRevenue'] === undefined) return false;
|
|
54
|
+
if (!('totalContractRevenue' in value) || value['totalContractRevenue'] === undefined) return false;
|
|
55
|
+
if (!('amountInvoiced' in value) || value['amountInvoiced'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function KeyMetricsFromJSON(json: any): KeyMetrics {
|
|
60
|
+
return KeyMetricsFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function KeyMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeyMetrics {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'monthlyRecurringRevenue': json['monthlyRecurringRevenue'],
|
|
70
|
+
'annualContractRevenue': json['annualContractRevenue'],
|
|
71
|
+
'totalContractRevenue': json['totalContractRevenue'],
|
|
72
|
+
'amountInvoiced': json['amountInvoiced'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function KeyMetricsToJSON(json: any): KeyMetrics {
|
|
77
|
+
return KeyMetricsToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function KeyMetricsToJSONTyped(value?: KeyMetrics | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'monthlyRecurringRevenue': value['monthlyRecurringRevenue'],
|
|
88
|
+
'annualContractRevenue': value['annualContractRevenue'],
|
|
89
|
+
'totalContractRevenue': value['totalContractRevenue'],
|
|
90
|
+
'amountInvoiced': value['amountInvoiced'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace API
|
|
5
|
+
* ManageSpace API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ScheduleLine
|
|
20
|
+
*/
|
|
21
|
+
export interface ScheduleLine {
|
|
22
|
+
/**
|
|
23
|
+
* Schedule Line ID
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ScheduleLine
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
* Schedule Line UID
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ScheduleLine
|
|
32
|
+
*/
|
|
33
|
+
uid: string;
|
|
34
|
+
/**
|
|
35
|
+
* Line Type
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ScheduleLine
|
|
38
|
+
*/
|
|
39
|
+
lineType: string;
|
|
40
|
+
/**
|
|
41
|
+
* Charge Ready Date
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ScheduleLine
|
|
44
|
+
*/
|
|
45
|
+
chargeReadyDate: string;
|
|
46
|
+
/**
|
|
47
|
+
* Start Date
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ScheduleLine
|
|
50
|
+
*/
|
|
51
|
+
startDate: string;
|
|
52
|
+
/**
|
|
53
|
+
* End Date
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ScheduleLine
|
|
56
|
+
*/
|
|
57
|
+
endDate: string;
|
|
58
|
+
/**
|
|
59
|
+
* Unit Price
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof ScheduleLine
|
|
62
|
+
*/
|
|
63
|
+
unitPrice: string;
|
|
64
|
+
/**
|
|
65
|
+
* List Price
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof ScheduleLine
|
|
68
|
+
*/
|
|
69
|
+
listPrice: string;
|
|
70
|
+
/**
|
|
71
|
+
* List Price Base
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof ScheduleLine
|
|
74
|
+
*/
|
|
75
|
+
listPriceBase: string;
|
|
76
|
+
/**
|
|
77
|
+
* Quantity
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof ScheduleLine
|
|
80
|
+
*/
|
|
81
|
+
quantity: number;
|
|
82
|
+
/**
|
|
83
|
+
* Discount
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof ScheduleLine
|
|
86
|
+
*/
|
|
87
|
+
discount: number;
|
|
88
|
+
/**
|
|
89
|
+
* Amount
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof ScheduleLine
|
|
92
|
+
*/
|
|
93
|
+
amount: string;
|
|
94
|
+
/**
|
|
95
|
+
* Remaining Included Units
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof ScheduleLine
|
|
98
|
+
*/
|
|
99
|
+
remainingIncludedUnits: number;
|
|
100
|
+
/**
|
|
101
|
+
* Total Included Units
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof ScheduleLine
|
|
104
|
+
*/
|
|
105
|
+
totalIncludedUnits: number;
|
|
106
|
+
/**
|
|
107
|
+
* Invoiced
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof ScheduleLine
|
|
110
|
+
*/
|
|
111
|
+
invoiced: string;
|
|
112
|
+
/**
|
|
113
|
+
* When the billing schedule was created
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof ScheduleLine
|
|
116
|
+
*/
|
|
117
|
+
createdAt: string;
|
|
118
|
+
/**
|
|
119
|
+
* When the billing schedule was last updated
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof ScheduleLine
|
|
122
|
+
*/
|
|
123
|
+
updatedAt: string;
|
|
124
|
+
/**
|
|
125
|
+
* The email of the user who created the billing schedule
|
|
126
|
+
* @type {string}
|
|
127
|
+
* @memberof ScheduleLine
|
|
128
|
+
*/
|
|
129
|
+
createdBy: string;
|
|
130
|
+
/**
|
|
131
|
+
* The email of the user who last updated the billing schedule
|
|
132
|
+
* @type {string}
|
|
133
|
+
* @memberof ScheduleLine
|
|
134
|
+
*/
|
|
135
|
+
updatedBy: string;
|
|
136
|
+
/**
|
|
137
|
+
* The description of the billing schedule line
|
|
138
|
+
* @type {string}
|
|
139
|
+
* @memberof ScheduleLine
|
|
140
|
+
*/
|
|
141
|
+
description: string;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Check if a given object implements the ScheduleLine interface.
|
|
146
|
+
*/
|
|
147
|
+
export function instanceOfScheduleLine(value: object): value is ScheduleLine {
|
|
148
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
149
|
+
if (!('uid' in value) || value['uid'] === undefined) return false;
|
|
150
|
+
if (!('lineType' in value) || value['lineType'] === undefined) return false;
|
|
151
|
+
if (!('chargeReadyDate' in value) || value['chargeReadyDate'] === undefined) return false;
|
|
152
|
+
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
153
|
+
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
154
|
+
if (!('unitPrice' in value) || value['unitPrice'] === undefined) return false;
|
|
155
|
+
if (!('listPrice' in value) || value['listPrice'] === undefined) return false;
|
|
156
|
+
if (!('listPriceBase' in value) || value['listPriceBase'] === undefined) return false;
|
|
157
|
+
if (!('quantity' in value) || value['quantity'] === undefined) return false;
|
|
158
|
+
if (!('discount' in value) || value['discount'] === undefined) return false;
|
|
159
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
160
|
+
if (!('remainingIncludedUnits' in value) || value['remainingIncludedUnits'] === undefined) return false;
|
|
161
|
+
if (!('totalIncludedUnits' in value) || value['totalIncludedUnits'] === undefined) return false;
|
|
162
|
+
if (!('invoiced' in value) || value['invoiced'] === undefined) return false;
|
|
163
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
164
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
165
|
+
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
|
166
|
+
if (!('updatedBy' in value) || value['updatedBy'] === undefined) return false;
|
|
167
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
168
|
+
return true;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export function ScheduleLineFromJSON(json: any): ScheduleLine {
|
|
172
|
+
return ScheduleLineFromJSONTyped(json, false);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export function ScheduleLineFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleLine {
|
|
176
|
+
if (json == null) {
|
|
177
|
+
return json;
|
|
178
|
+
}
|
|
179
|
+
return {
|
|
180
|
+
|
|
181
|
+
'id': json['id'],
|
|
182
|
+
'uid': json['uid'],
|
|
183
|
+
'lineType': json['lineType'],
|
|
184
|
+
'chargeReadyDate': json['chargeReadyDate'],
|
|
185
|
+
'startDate': json['startDate'],
|
|
186
|
+
'endDate': json['endDate'],
|
|
187
|
+
'unitPrice': json['unitPrice'],
|
|
188
|
+
'listPrice': json['listPrice'],
|
|
189
|
+
'listPriceBase': json['listPriceBase'],
|
|
190
|
+
'quantity': json['quantity'],
|
|
191
|
+
'discount': json['discount'],
|
|
192
|
+
'amount': json['amount'],
|
|
193
|
+
'remainingIncludedUnits': json['remainingIncludedUnits'],
|
|
194
|
+
'totalIncludedUnits': json['totalIncludedUnits'],
|
|
195
|
+
'invoiced': json['invoiced'],
|
|
196
|
+
'createdAt': json['createdAt'],
|
|
197
|
+
'updatedAt': json['updatedAt'],
|
|
198
|
+
'createdBy': json['createdBy'],
|
|
199
|
+
'updatedBy': json['updatedBy'],
|
|
200
|
+
'description': json['description'],
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export function ScheduleLineToJSON(json: any): ScheduleLine {
|
|
205
|
+
return ScheduleLineToJSONTyped(json, false);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export function ScheduleLineToJSONTyped(value?: ScheduleLine | null, ignoreDiscriminator: boolean = false): any {
|
|
209
|
+
if (value == null) {
|
|
210
|
+
return value;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
return {
|
|
214
|
+
|
|
215
|
+
'id': value['id'],
|
|
216
|
+
'uid': value['uid'],
|
|
217
|
+
'lineType': value['lineType'],
|
|
218
|
+
'chargeReadyDate': value['chargeReadyDate'],
|
|
219
|
+
'startDate': value['startDate'],
|
|
220
|
+
'endDate': value['endDate'],
|
|
221
|
+
'unitPrice': value['unitPrice'],
|
|
222
|
+
'listPrice': value['listPrice'],
|
|
223
|
+
'listPriceBase': value['listPriceBase'],
|
|
224
|
+
'quantity': value['quantity'],
|
|
225
|
+
'discount': value['discount'],
|
|
226
|
+
'amount': value['amount'],
|
|
227
|
+
'remainingIncludedUnits': value['remainingIncludedUnits'],
|
|
228
|
+
'totalIncludedUnits': value['totalIncludedUnits'],
|
|
229
|
+
'invoiced': value['invoiced'],
|
|
230
|
+
'createdAt': value['createdAt'],
|
|
231
|
+
'updatedAt': value['updatedAt'],
|
|
232
|
+
'createdBy': value['createdBy'],
|
|
233
|
+
'updatedBy': value['updatedBy'],
|
|
234
|
+
'description': value['description'],
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
|
|
@@ -310,12 +310,6 @@ export interface SubscriptionPreview {
|
|
|
310
310
|
* @memberof SubscriptionPreview
|
|
311
311
|
*/
|
|
312
312
|
updatedBy?: string;
|
|
313
|
-
/**
|
|
314
|
-
* Date customer initiated move-out
|
|
315
|
-
* @type {string}
|
|
316
|
-
* @memberof SubscriptionPreview
|
|
317
|
-
*/
|
|
318
|
-
moveOutDate?: string;
|
|
319
313
|
/**
|
|
320
314
|
* Subscription Current Invoice line items
|
|
321
315
|
* @type {SubscriptionInvoice}
|
|
@@ -423,7 +417,6 @@ export function SubscriptionPreviewFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
423
417
|
'createdBy': json['createdBy'],
|
|
424
418
|
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
425
419
|
'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
|
|
426
|
-
'moveOutDate': json['moveOutDate'] == null ? undefined : json['moveOutDate'],
|
|
427
420
|
'currentInvoice': json['currentInvoice'] == null ? undefined : SubscriptionInvoiceFromJSON(json['currentInvoice']),
|
|
428
421
|
'nextInvoice': json['nextInvoice'] == null ? undefined : SubscriptionInvoiceFromJSON(json['nextInvoice']),
|
|
429
422
|
'priorInvoice': json['priorInvoice'] == null ? undefined : SubscriptionInvoiceFromJSON(json['priorInvoice']),
|
|
@@ -488,7 +481,6 @@ export function SubscriptionPreviewToJSONTyped(value?: SubscriptionPreview | nul
|
|
|
488
481
|
'createdBy': value['createdBy'],
|
|
489
482
|
'updatedAt': value['updatedAt'],
|
|
490
483
|
'updatedBy': value['updatedBy'],
|
|
491
|
-
'moveOutDate': value['moveOutDate'],
|
|
492
484
|
'currentInvoice': SubscriptionInvoiceToJSON(value['currentInvoice']),
|
|
493
485
|
'nextInvoice': SubscriptionInvoiceToJSON(value['nextInvoice']),
|
|
494
486
|
'priorInvoice': SubscriptionInvoiceToJSON(value['priorInvoice']),
|
|
@@ -303,12 +303,6 @@ export interface Subscription {
|
|
|
303
303
|
* @memberof Subscription
|
|
304
304
|
*/
|
|
305
305
|
updatedBy?: string;
|
|
306
|
-
/**
|
|
307
|
-
* Date customer initiated move-out
|
|
308
|
-
* @type {string}
|
|
309
|
-
* @memberof Subscription
|
|
310
|
-
*/
|
|
311
|
-
moveOutDate?: string;
|
|
312
306
|
}
|
|
313
307
|
|
|
314
308
|
/**
|
|
@@ -392,7 +386,6 @@ export function SubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
392
386
|
'createdBy': json['createdBy'],
|
|
393
387
|
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
394
388
|
'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
|
|
395
|
-
'moveOutDate': json['moveOutDate'] == null ? undefined : json['moveOutDate'],
|
|
396
389
|
};
|
|
397
390
|
}
|
|
398
391
|
|
|
@@ -453,7 +446,6 @@ export function SubscriptionToJSONTyped(value?: Subscription | null, ignoreDiscr
|
|
|
453
446
|
'createdBy': value['createdBy'],
|
|
454
447
|
'updatedAt': value['updatedAt'],
|
|
455
448
|
'updatedBy': value['updatedBy'],
|
|
456
|
-
'moveOutDate': value['moveOutDate'],
|
|
457
449
|
};
|
|
458
450
|
}
|
|
459
451
|
|