@randock/nameshift-api-client 0.0.217 → 0.0.218

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.217
1
+ ## @randock/nameshift-api-client@0.0.218
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.217 --save
39
+ npm install @randock/nameshift-api-client@0.0.218 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- 3702e3473552a5649b508d44e7954a678ce7b7a46066b1827f90ae5cbcaecb4bb79fcf72776cdd3aa04550b844f32f31
47
+ b95c264e2ffd298a409f3dea1bbda835bf735a5cdc0f96b9c688842fc33223c17ee67b86b5a62bbeb26e8199bb18b469
@@ -14,9 +14,17 @@ import type { CreateSubscriptionInput, ObjectId, SubscriptionDto, UpdateSubscrip
14
14
  export interface SubscriptionsPublicApiCreateSubscriptionRequest {
15
15
  createSubscriptionInput: CreateSubscriptionInput;
16
16
  }
17
+ export interface SubscriptionsPublicApiCreateSubscriptionManualTransactionRequest {
18
+ subscriptionId: string;
19
+ invoiceId: string;
20
+ }
17
21
  export interface SubscriptionsPublicApiGetSubscriptionRequest {
18
22
  subscriptionId: string;
19
23
  }
24
+ export interface SubscriptionsPublicApiGetSubscriptionByInvoiceRequest {
25
+ subscriptionId: string;
26
+ invoiceId: string;
27
+ }
20
28
  export interface SubscriptionsPublicApiUpdateSubscriptionRequest {
21
29
  subscriptionId: string;
22
30
  updateSubscriptionInput: UpdateSubscriptionInput;
@@ -33,6 +41,16 @@ export declare class SubscriptionsPublicApi extends runtime.BaseAPI {
33
41
  *
34
42
  */
35
43
  createSubscription(requestParameters: SubscriptionsPublicApiCreateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId>;
44
+ /**
45
+ * Creates a new manual transaction for active subscription with specified open invoice
46
+ * Create a new manual transaction for subscription invoice
47
+ */
48
+ createSubscriptionManualTransactionRaw(requestParameters: SubscriptionsPublicApiCreateSubscriptionManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
49
+ /**
50
+ * Creates a new manual transaction for active subscription with specified open invoice
51
+ * Create a new manual transaction for subscription invoice
52
+ */
53
+ createSubscriptionManualTransaction(requestParameters: SubscriptionsPublicApiCreateSubscriptionManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
36
54
  /**
37
55
  *
38
56
  */
@@ -41,6 +59,16 @@ export declare class SubscriptionsPublicApi extends runtime.BaseAPI {
41
59
  *
42
60
  */
43
61
  getSubscription(requestParameters: SubscriptionsPublicApiGetSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionDto>;
62
+ /**
63
+ * Returns subscription information for a specific invoice
64
+ * Get subscription by invoice
65
+ */
66
+ getSubscriptionByInvoiceRaw(requestParameters: SubscriptionsPublicApiGetSubscriptionByInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionDto>>;
67
+ /**
68
+ * Returns subscription information for a specific invoice
69
+ * Get subscription by invoice
70
+ */
71
+ getSubscriptionByInvoice(requestParameters: SubscriptionsPublicApiGetSubscriptionByInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionDto>;
44
72
  /**
45
73
  *
46
74
  */
@@ -121,6 +121,53 @@ var SubscriptionsPublicApi = /** @class */ (function (_super) {
121
121
  });
122
122
  });
123
123
  };
124
+ /**
125
+ * Creates a new manual transaction for active subscription with specified open invoice
126
+ * Create a new manual transaction for subscription invoice
127
+ */
128
+ SubscriptionsPublicApi.prototype.createSubscriptionManualTransactionRaw = function (requestParameters, initOverrides) {
129
+ return __awaiter(this, void 0, void 0, function () {
130
+ var queryParameters, headerParameters, response;
131
+ return __generator(this, function (_a) {
132
+ switch (_a.label) {
133
+ case 0:
134
+ if (requestParameters['subscriptionId'] == null) {
135
+ throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling createSubscriptionManualTransaction().');
136
+ }
137
+ if (requestParameters['invoiceId'] == null) {
138
+ throw new runtime.RequiredError('invoiceId', 'Required parameter "invoiceId" was null or undefined when calling createSubscriptionManualTransaction().');
139
+ }
140
+ queryParameters = {};
141
+ headerParameters = {};
142
+ return [4 /*yield*/, this.request({
143
+ path: "/subscriptions/{subscriptionId}/invoices/{invoiceId}/transactions".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))).replace("{".concat("invoiceId", "}"), encodeURIComponent(String(requestParameters['invoiceId']))),
144
+ method: 'POST',
145
+ headers: headerParameters,
146
+ query: queryParameters,
147
+ }, initOverrides)];
148
+ case 1:
149
+ response = _a.sent();
150
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
151
+ }
152
+ });
153
+ });
154
+ };
155
+ /**
156
+ * Creates a new manual transaction for active subscription with specified open invoice
157
+ * Create a new manual transaction for subscription invoice
158
+ */
159
+ SubscriptionsPublicApi.prototype.createSubscriptionManualTransaction = function (requestParameters, initOverrides) {
160
+ return __awaiter(this, void 0, void 0, function () {
161
+ return __generator(this, function (_a) {
162
+ switch (_a.label) {
163
+ case 0: return [4 /*yield*/, this.createSubscriptionManualTransactionRaw(requestParameters, initOverrides)];
164
+ case 1:
165
+ _a.sent();
166
+ return [2 /*return*/];
167
+ }
168
+ });
169
+ });
170
+ };
124
171
  /**
125
172
  *
126
173
  */
@@ -165,6 +212,55 @@ var SubscriptionsPublicApi = /** @class */ (function (_super) {
165
212
  });
166
213
  });
167
214
  };
215
+ /**
216
+ * Returns subscription information for a specific invoice
217
+ * Get subscription by invoice
218
+ */
219
+ SubscriptionsPublicApi.prototype.getSubscriptionByInvoiceRaw = function (requestParameters, initOverrides) {
220
+ return __awaiter(this, void 0, void 0, function () {
221
+ var queryParameters, headerParameters, response;
222
+ return __generator(this, function (_a) {
223
+ switch (_a.label) {
224
+ case 0:
225
+ if (requestParameters['subscriptionId'] == null) {
226
+ throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling getSubscriptionByInvoice().');
227
+ }
228
+ if (requestParameters['invoiceId'] == null) {
229
+ throw new runtime.RequiredError('invoiceId', 'Required parameter "invoiceId" was null or undefined when calling getSubscriptionByInvoice().');
230
+ }
231
+ queryParameters = {};
232
+ headerParameters = {};
233
+ return [4 /*yield*/, this.request({
234
+ path: "/subscriptions/{subscriptionId}/invoices/{invoiceId}".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))).replace("{".concat("invoiceId", "}"), encodeURIComponent(String(requestParameters['invoiceId']))),
235
+ method: 'GET',
236
+ headers: headerParameters,
237
+ query: queryParameters,
238
+ }, initOverrides)];
239
+ case 1:
240
+ response = _a.sent();
241
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SubscriptionDtoFromJSON)(jsonValue); })];
242
+ }
243
+ });
244
+ });
245
+ };
246
+ /**
247
+ * Returns subscription information for a specific invoice
248
+ * Get subscription by invoice
249
+ */
250
+ SubscriptionsPublicApi.prototype.getSubscriptionByInvoice = function (requestParameters, initOverrides) {
251
+ return __awaiter(this, void 0, void 0, function () {
252
+ var response;
253
+ return __generator(this, function (_a) {
254
+ switch (_a.label) {
255
+ case 0: return [4 /*yield*/, this.getSubscriptionByInvoiceRaw(requestParameters, initOverrides)];
256
+ case 1:
257
+ response = _a.sent();
258
+ return [4 /*yield*/, response.value()];
259
+ case 2: return [2 /*return*/, _a.sent()];
260
+ }
261
+ });
262
+ });
263
+ };
168
264
  /**
169
265
  *
170
266
  */
@@ -89,6 +89,12 @@ export interface BuyerSubscriptionListItemDto {
89
89
  * @memberof BuyerSubscriptionListItemDto
90
90
  */
91
91
  renewAt: Date;
92
+ /**
93
+ * The subscription payment URL
94
+ * @type {string}
95
+ * @memberof BuyerSubscriptionListItemDto
96
+ */
97
+ paymentUrl: string | null;
92
98
  }
93
99
  /**
94
100
  * @export
@@ -66,6 +66,8 @@ function instanceOfBuyerSubscriptionListItemDto(value) {
66
66
  return false;
67
67
  if (!('renewAt' in value) || value['renewAt'] === undefined)
68
68
  return false;
69
+ if (!('paymentUrl' in value) || value['paymentUrl'] === undefined)
70
+ return false;
69
71
  return true;
70
72
  }
71
73
  function BuyerSubscriptionListItemDtoFromJSON(json) {
@@ -88,6 +90,7 @@ function BuyerSubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
88
90
  'installments': json['installments'],
89
91
  'paidInstallmentsNumber': json['paidInstallmentsNumber'],
90
92
  'renewAt': (new Date(json['renewAt'])),
93
+ 'paymentUrl': json['paymentUrl'],
91
94
  };
92
95
  }
93
96
  function BuyerSubscriptionListItemDtoToJSON(json) {
@@ -111,5 +114,6 @@ function BuyerSubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
111
114
  'installments': value['installments'],
112
115
  'paidInstallmentsNumber': value['paidInstallmentsNumber'],
113
116
  'renewAt': ((value['renewAt']).toISOString()),
117
+ 'paymentUrl': value['paymentUrl'],
114
118
  };
115
119
  }
@@ -124,6 +124,18 @@ export interface SubscriptionDto {
124
124
  * @memberof SubscriptionDto
125
125
  */
126
126
  installments: number;
127
+ /**
128
+ *
129
+ * @type {number}
130
+ * @memberof SubscriptionDto
131
+ */
132
+ currentInstallment: number;
133
+ /**
134
+ *
135
+ * @type {number}
136
+ * @memberof SubscriptionDto
137
+ */
138
+ expectedInstallmentsNumber: number;
127
139
  /**
128
140
  *
129
141
  * @type {SubscriptionBillingPeriodicityDto}
@@ -81,6 +81,10 @@ function instanceOfSubscriptionDto(value) {
81
81
  return false;
82
82
  if (!('installments' in value) || value['installments'] === undefined)
83
83
  return false;
84
+ if (!('currentInstallment' in value) || value['currentInstallment'] === undefined)
85
+ return false;
86
+ if (!('expectedInstallmentsNumber' in value) || value['expectedInstallmentsNumber'] === undefined)
87
+ return false;
84
88
  if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined)
85
89
  return false;
86
90
  return true;
@@ -110,6 +114,8 @@ function SubscriptionDtoFromJSONTyped(json, ignoreDiscriminator) {
110
114
  'domain': (0, SubscriptionDomainDto_1.SubscriptionDomainDtoFromJSON)(json['domain']),
111
115
  'type': json['type'],
112
116
  'installments': json['installments'],
117
+ 'currentInstallment': json['currentInstallment'],
118
+ 'expectedInstallmentsNumber': json['expectedInstallmentsNumber'],
113
119
  'billingPeriodicity': (0, SubscriptionBillingPeriodicityDto_1.SubscriptionBillingPeriodicityDtoFromJSON)(json['billingPeriodicity']),
114
120
  };
115
121
  }
@@ -139,6 +145,8 @@ function SubscriptionDtoToJSONTyped(value, ignoreDiscriminator) {
139
145
  'domain': (0, SubscriptionDomainDto_1.SubscriptionDomainDtoToJSON)(value['domain']),
140
146
  'type': value['type'],
141
147
  'installments': value['installments'],
148
+ 'currentInstallment': value['currentInstallment'],
149
+ 'expectedInstallmentsNumber': value['expectedInstallmentsNumber'],
142
150
  'billingPeriodicity': (0, SubscriptionBillingPeriodicityDto_1.SubscriptionBillingPeriodicityDtoToJSON)(value['billingPeriodicity']),
143
151
  };
144
152
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.217",
3
+ "version": "0.0.218",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -22,6 +22,7 @@ import type {
22
22
  SubscriptionDto,
23
23
  ThrottlerException,
24
24
  UpdateSubscriptionInput,
25
+ ValidationException,
25
26
  } from '../models/index';
26
27
  import {
27
28
  BadRequestExceptionFromJSON,
@@ -38,16 +39,28 @@ import {
38
39
  ThrottlerExceptionToJSON,
39
40
  UpdateSubscriptionInputFromJSON,
40
41
  UpdateSubscriptionInputToJSON,
42
+ ValidationExceptionFromJSON,
43
+ ValidationExceptionToJSON,
41
44
  } from '../models/index';
42
45
 
43
46
  export interface SubscriptionsPublicApiCreateSubscriptionRequest {
44
47
  createSubscriptionInput: CreateSubscriptionInput;
45
48
  }
46
49
 
50
+ export interface SubscriptionsPublicApiCreateSubscriptionManualTransactionRequest {
51
+ subscriptionId: string;
52
+ invoiceId: string;
53
+ }
54
+
47
55
  export interface SubscriptionsPublicApiGetSubscriptionRequest {
48
56
  subscriptionId: string;
49
57
  }
50
58
 
59
+ export interface SubscriptionsPublicApiGetSubscriptionByInvoiceRequest {
60
+ subscriptionId: string;
61
+ invoiceId: string;
62
+ }
63
+
51
64
  export interface SubscriptionsPublicApiUpdateSubscriptionRequest {
52
65
  subscriptionId: string;
53
66
  updateSubscriptionInput: UpdateSubscriptionInput;
@@ -94,6 +107,47 @@ export class SubscriptionsPublicApi extends runtime.BaseAPI {
94
107
  return await response.value();
95
108
  }
96
109
 
110
+ /**
111
+ * Creates a new manual transaction for active subscription with specified open invoice
112
+ * Create a new manual transaction for subscription invoice
113
+ */
114
+ async createSubscriptionManualTransactionRaw(requestParameters: SubscriptionsPublicApiCreateSubscriptionManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
115
+ if (requestParameters['subscriptionId'] == null) {
116
+ throw new runtime.RequiredError(
117
+ 'subscriptionId',
118
+ 'Required parameter "subscriptionId" was null or undefined when calling createSubscriptionManualTransaction().'
119
+ );
120
+ }
121
+
122
+ if (requestParameters['invoiceId'] == null) {
123
+ throw new runtime.RequiredError(
124
+ 'invoiceId',
125
+ 'Required parameter "invoiceId" was null or undefined when calling createSubscriptionManualTransaction().'
126
+ );
127
+ }
128
+
129
+ const queryParameters: any = {};
130
+
131
+ const headerParameters: runtime.HTTPHeaders = {};
132
+
133
+ const response = await this.request({
134
+ path: `/subscriptions/{subscriptionId}/invoices/{invoiceId}/transactions`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))).replace(`{${"invoiceId"}}`, encodeURIComponent(String(requestParameters['invoiceId']))),
135
+ method: 'POST',
136
+ headers: headerParameters,
137
+ query: queryParameters,
138
+ }, initOverrides);
139
+
140
+ return new runtime.VoidApiResponse(response);
141
+ }
142
+
143
+ /**
144
+ * Creates a new manual transaction for active subscription with specified open invoice
145
+ * Create a new manual transaction for subscription invoice
146
+ */
147
+ async createSubscriptionManualTransaction(requestParameters: SubscriptionsPublicApiCreateSubscriptionManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
148
+ await this.createSubscriptionManualTransactionRaw(requestParameters, initOverrides);
149
+ }
150
+
97
151
  /**
98
152
  *
99
153
  */
@@ -127,6 +181,48 @@ export class SubscriptionsPublicApi extends runtime.BaseAPI {
127
181
  return await response.value();
128
182
  }
129
183
 
184
+ /**
185
+ * Returns subscription information for a specific invoice
186
+ * Get subscription by invoice
187
+ */
188
+ async getSubscriptionByInvoiceRaw(requestParameters: SubscriptionsPublicApiGetSubscriptionByInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionDto>> {
189
+ if (requestParameters['subscriptionId'] == null) {
190
+ throw new runtime.RequiredError(
191
+ 'subscriptionId',
192
+ 'Required parameter "subscriptionId" was null or undefined when calling getSubscriptionByInvoice().'
193
+ );
194
+ }
195
+
196
+ if (requestParameters['invoiceId'] == null) {
197
+ throw new runtime.RequiredError(
198
+ 'invoiceId',
199
+ 'Required parameter "invoiceId" was null or undefined when calling getSubscriptionByInvoice().'
200
+ );
201
+ }
202
+
203
+ const queryParameters: any = {};
204
+
205
+ const headerParameters: runtime.HTTPHeaders = {};
206
+
207
+ const response = await this.request({
208
+ path: `/subscriptions/{subscriptionId}/invoices/{invoiceId}`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))).replace(`{${"invoiceId"}}`, encodeURIComponent(String(requestParameters['invoiceId']))),
209
+ method: 'GET',
210
+ headers: headerParameters,
211
+ query: queryParameters,
212
+ }, initOverrides);
213
+
214
+ return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionDtoFromJSON(jsonValue));
215
+ }
216
+
217
+ /**
218
+ * Returns subscription information for a specific invoice
219
+ * Get subscription by invoice
220
+ */
221
+ async getSubscriptionByInvoice(requestParameters: SubscriptionsPublicApiGetSubscriptionByInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionDto> {
222
+ const response = await this.getSubscriptionByInvoiceRaw(requestParameters, initOverrides);
223
+ return await response.value();
224
+ }
225
+
130
226
  /**
131
227
  *
132
228
  */
@@ -106,6 +106,12 @@ export interface BuyerSubscriptionListItemDto {
106
106
  * @memberof BuyerSubscriptionListItemDto
107
107
  */
108
108
  renewAt: Date;
109
+ /**
110
+ * The subscription payment URL
111
+ * @type {string}
112
+ * @memberof BuyerSubscriptionListItemDto
113
+ */
114
+ paymentUrl: string | null;
109
115
  }
110
116
 
111
117
 
@@ -147,6 +153,7 @@ export function instanceOfBuyerSubscriptionListItemDto(value: object): value is
147
153
  if (!('installments' in value) || value['installments'] === undefined) return false;
148
154
  if (!('paidInstallmentsNumber' in value) || value['paidInstallmentsNumber'] === undefined) return false;
149
155
  if (!('renewAt' in value) || value['renewAt'] === undefined) return false;
156
+ if (!('paymentUrl' in value) || value['paymentUrl'] === undefined) return false;
150
157
  return true;
151
158
  }
152
159
 
@@ -172,6 +179,7 @@ export function BuyerSubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscr
172
179
  'installments': json['installments'],
173
180
  'paidInstallmentsNumber': json['paidInstallmentsNumber'],
174
181
  'renewAt': (new Date(json['renewAt'])),
182
+ 'paymentUrl': json['paymentUrl'],
175
183
  };
176
184
  }
177
185
 
@@ -198,6 +206,7 @@ export function BuyerSubscriptionListItemDtoToJSONTyped(value?: BuyerSubscriptio
198
206
  'installments': value['installments'],
199
207
  'paidInstallmentsNumber': value['paidInstallmentsNumber'],
200
208
  'renewAt': ((value['renewAt']).toISOString()),
209
+ 'paymentUrl': value['paymentUrl'],
201
210
  };
202
211
  }
203
212
 
@@ -171,6 +171,18 @@ export interface SubscriptionDto {
171
171
  * @memberof SubscriptionDto
172
172
  */
173
173
  installments: number;
174
+ /**
175
+ *
176
+ * @type {number}
177
+ * @memberof SubscriptionDto
178
+ */
179
+ currentInstallment: number;
180
+ /**
181
+ *
182
+ * @type {number}
183
+ * @memberof SubscriptionDto
184
+ */
185
+ expectedInstallmentsNumber: number;
174
186
  /**
175
187
  *
176
188
  * @type {SubscriptionBillingPeriodicityDto}
@@ -223,6 +235,8 @@ export function instanceOfSubscriptionDto(value: object): value is SubscriptionD
223
235
  if (!('domain' in value) || value['domain'] === undefined) return false;
224
236
  if (!('type' in value) || value['type'] === undefined) return false;
225
237
  if (!('installments' in value) || value['installments'] === undefined) return false;
238
+ if (!('currentInstallment' in value) || value['currentInstallment'] === undefined) return false;
239
+ if (!('expectedInstallmentsNumber' in value) || value['expectedInstallmentsNumber'] === undefined) return false;
226
240
  if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined) return false;
227
241
  return true;
228
242
  }
@@ -254,6 +268,8 @@ export function SubscriptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
254
268
  'domain': SubscriptionDomainDtoFromJSON(json['domain']),
255
269
  'type': json['type'],
256
270
  'installments': json['installments'],
271
+ 'currentInstallment': json['currentInstallment'],
272
+ 'expectedInstallmentsNumber': json['expectedInstallmentsNumber'],
257
273
  'billingPeriodicity': SubscriptionBillingPeriodicityDtoFromJSON(json['billingPeriodicity']),
258
274
  };
259
275
  }
@@ -286,6 +302,8 @@ export function SubscriptionDtoToJSONTyped(value?: SubscriptionDto | null, ignor
286
302
  'domain': SubscriptionDomainDtoToJSON(value['domain']),
287
303
  'type': value['type'],
288
304
  'installments': value['installments'],
305
+ 'currentInstallment': value['currentInstallment'],
306
+ 'expectedInstallmentsNumber': value['expectedInstallmentsNumber'],
289
307
  'billingPeriodicity': SubscriptionBillingPeriodicityDtoToJSON(value['billingPeriodicity']),
290
308
  };
291
309
  }