@managespace/sdk 0.0.16 → 0.0.18

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.
@@ -46,17 +46,23 @@ export interface PlanChargeResponse {
46
46
  */
47
47
  name: string;
48
48
  /**
49
- * Description of charge
49
+ * Type of charge
50
50
  * @type {string}
51
51
  * @memberof PlanChargeResponse
52
52
  */
53
- description: string;
53
+ type: string;
54
54
  /**
55
- * Type of charge
55
+ * Billing period for recurring and usage based Charges
56
56
  * @type {string}
57
57
  * @memberof PlanChargeResponse
58
58
  */
59
- type: string;
59
+ billingPeriod: string;
60
+ /**
61
+ * Description of charge
62
+ * @type {string}
63
+ * @memberof PlanChargeResponse
64
+ */
65
+ description: string;
60
66
  /**
61
67
  * Line number
62
68
  * @type {number}
@@ -87,12 +93,6 @@ export interface PlanChargeResponse {
87
93
  * @memberof PlanChargeResponse
88
94
  */
89
95
  listPriceBase: string;
90
- /**
91
- * Billing period for recurring and usage based Charges
92
- * @type {string}
93
- * @memberof PlanChargeResponse
94
- */
95
- billingPeriod: string;
96
96
  /**
97
97
  * Determine boundary of Charge period
98
98
  * @type {string}
@@ -174,14 +174,14 @@ export function instanceOfPlanChargeResponse(value: object): value is PlanCharge
174
174
  if (!('id' in value) || value['id'] === undefined) return false;
175
175
  if (!('productId' in value) || value['productId'] === undefined) return false;
176
176
  if (!('name' in value) || value['name'] === undefined) return false;
177
- if (!('description' in value) || value['description'] === undefined) return false;
178
177
  if (!('type' in value) || value['type'] === undefined) return false;
178
+ if (!('billingPeriod' in value) || value['billingPeriod'] === undefined) return false;
179
+ if (!('description' in value) || value['description'] === undefined) return false;
179
180
  if (!('lineNumber' in value) || value['lineNumber'] === undefined) return false;
180
181
  if (!('chargeTiming' in value) || value['chargeTiming'] === undefined) return false;
181
182
  if (!('pricingModel' in value) || value['pricingModel'] === undefined) return false;
182
183
  if (!('listPrice' in value) || value['listPrice'] === undefined) return false;
183
184
  if (!('listPriceBase' in value) || value['listPriceBase'] === undefined) return false;
184
- if (!('billingPeriod' in value) || value['billingPeriod'] === undefined) return false;
185
185
  if (!('billingPeriodStartAlignment' in value) || value['billingPeriodStartAlignment'] === undefined) return false;
186
186
  if (!('billingDay' in value) || value['billingDay'] === undefined) return false;
187
187
  if (!('billingDate' in value) || value['billingDate'] === undefined) return false;
@@ -210,14 +210,14 @@ export function PlanChargeResponseFromJSONTyped(json: any, ignoreDiscriminator:
210
210
  'id': json['id'],
211
211
  'productId': json['productId'],
212
212
  'name': json['name'],
213
- 'description': json['description'],
214
213
  'type': json['type'],
214
+ 'billingPeriod': json['billingPeriod'],
215
+ 'description': json['description'],
215
216
  'lineNumber': json['lineNumber'],
216
217
  'chargeTiming': json['chargeTiming'],
217
218
  'pricingModel': json['pricingModel'],
218
219
  'listPrice': json['listPrice'],
219
220
  'listPriceBase': json['listPriceBase'],
220
- 'billingPeriod': json['billingPeriod'],
221
221
  'billingPeriodStartAlignment': json['billingPeriodStartAlignment'],
222
222
  'billingDay': json['billingDay'],
223
223
  'billingDate': json['billingDate'],
@@ -247,14 +247,14 @@ export function PlanChargeResponseToJSONTyped(value?: PlanChargeResponse | null,
247
247
  'id': value['id'],
248
248
  'productId': value['productId'],
249
249
  'name': value['name'],
250
- 'description': value['description'],
251
250
  'type': value['type'],
251
+ 'billingPeriod': value['billingPeriod'],
252
+ 'description': value['description'],
252
253
  'lineNumber': value['lineNumber'],
253
254
  'chargeTiming': value['chargeTiming'],
254
255
  'pricingModel': value['pricingModel'],
255
256
  'listPrice': value['listPrice'],
256
257
  'listPriceBase': value['listPriceBase'],
257
- 'billingPeriod': value['billingPeriod'],
258
258
  'billingPeriodStartAlignment': value['billingPeriodStartAlignment'],
259
259
  'billingDay': value['billingDay'],
260
260
  'billingDate': value['billingDate'],
@@ -39,6 +39,18 @@ export interface PlanResponse {
39
39
  * @memberof PlanResponse
40
40
  */
41
41
  name: string;
42
+ /**
43
+ * Product ID
44
+ * @type {string}
45
+ * @memberof PlanResponse
46
+ */
47
+ productId: string;
48
+ /**
49
+ * Product name
50
+ * @type {string}
51
+ * @memberof PlanResponse
52
+ */
53
+ productName: string;
42
54
  /**
43
55
  * Plan status
44
56
  * @type {string}
@@ -57,6 +69,12 @@ export interface PlanResponse {
57
69
  * @memberof PlanResponse
58
70
  */
59
71
  showSsp: boolean;
72
+ /**
73
+ * URL used for self sign up
74
+ * @type {string}
75
+ * @memberof PlanResponse
76
+ */
77
+ publicUrl: string;
60
78
  /**
61
79
  * Email of user who created record
62
80
  * @type {string}
@@ -87,12 +105,6 @@ export interface PlanResponse {
87
105
  * @memberof PlanResponse
88
106
  */
89
107
  charges: Array<PlanChargeResponse>;
90
- /**
91
- * URL used for self sign up
92
- * @type {string}
93
- * @memberof PlanResponse
94
- */
95
- publicUrl: string;
96
108
  /**
97
109
  * Custom fields on the invoice
98
110
  * @type {object}
@@ -107,15 +119,17 @@ export interface PlanResponse {
107
119
  export function instanceOfPlanResponse(value: object): value is PlanResponse {
108
120
  if (!('id' in value) || value['id'] === undefined) return false;
109
121
  if (!('name' in value) || value['name'] === undefined) return false;
122
+ if (!('productId' in value) || value['productId'] === undefined) return false;
123
+ if (!('productName' in value) || value['productName'] === undefined) return false;
110
124
  if (!('status' in value) || value['status'] === undefined) return false;
111
125
  if (!('description' in value) || value['description'] === undefined) return false;
112
126
  if (!('showSsp' in value) || value['showSsp'] === undefined) return false;
127
+ if (!('publicUrl' in value) || value['publicUrl'] === undefined) return false;
113
128
  if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
114
129
  if (!('updatedBy' in value) || value['updatedBy'] === undefined) return false;
115
130
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
116
131
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
117
132
  if (!('charges' in value) || value['charges'] === undefined) return false;
118
- if (!('publicUrl' in value) || value['publicUrl'] === undefined) return false;
119
133
  if (!('customFields' in value) || value['customFields'] === undefined) return false;
120
134
  return true;
121
135
  }
@@ -132,15 +146,17 @@ export function PlanResponseFromJSONTyped(json: any, ignoreDiscriminator: boolea
132
146
 
133
147
  'id': json['id'],
134
148
  'name': json['name'],
149
+ 'productId': json['productId'],
150
+ 'productName': json['productName'],
135
151
  'status': json['status'],
136
152
  'description': json['description'],
137
153
  'showSsp': json['showSsp'],
154
+ 'publicUrl': json['publicUrl'],
138
155
  'createdBy': json['createdBy'],
139
156
  'updatedBy': json['updatedBy'],
140
157
  'createdAt': json['createdAt'],
141
158
  'updatedAt': json['updatedAt'],
142
159
  'charges': ((json['charges'] as Array<any>).map(PlanChargeResponseFromJSON)),
143
- 'publicUrl': json['publicUrl'],
144
160
  'customFields': json['customFields'],
145
161
  };
146
162
  }
@@ -158,15 +174,17 @@ export function PlanResponseToJSONTyped(value?: PlanResponse | null, ignoreDiscr
158
174
 
159
175
  'id': value['id'],
160
176
  'name': value['name'],
177
+ 'productId': value['productId'],
178
+ 'productName': value['productName'],
161
179
  'status': value['status'],
162
180
  'description': value['description'],
163
181
  'showSsp': value['showSsp'],
182
+ 'publicUrl': value['publicUrl'],
164
183
  'createdBy': value['createdBy'],
165
184
  'updatedBy': value['updatedBy'],
166
185
  'createdAt': value['createdAt'],
167
186
  'updatedAt': value['updatedAt'],
168
187
  'charges': ((value['charges'] as Array<any>).map(PlanChargeResponseToJSON)),
169
- 'publicUrl': value['publicUrl'],
170
188
  'customFields': value['customFields'],
171
189
  };
172
190
  }