@managespace/sdk 0.1.112 → 0.1.114

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.
@@ -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
+