@randock/nameshift-api-client 0.0.432 → 0.0.433

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.432
1
+ ## @randock/nameshift-api-client@0.0.433
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.432 --save
39
+ npm install @randock/nameshift-api-client@0.0.433 --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
- d5c08935d8e3718b5fc609802731dbd39e50fc8c68f835015cb7f21512d8e92b23f0fd65d05be2c085befa45bb976465
47
+ 87ef300a5de9fbd1c343994bd45dd3d7ffdd6ae9f17de4986f55e7ffef520001881355e40ba85bbad5820e7dbd17c410
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { MoneyDto } from './MoneyDto';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -45,6 +46,12 @@ export interface RentIndexationDto {
45
46
  * @memberof RentIndexationDto
46
47
  */
47
48
  advanceNotifiedForYear: number | null;
49
+ /**
50
+ *
51
+ * @type {MoneyDto}
52
+ * @memberof RentIndexationDto
53
+ */
54
+ oldRecurringPrice: MoneyDto | null;
48
55
  }
49
56
  /**
50
57
  * Check if a given object implements the RentIndexationDto interface.
@@ -18,6 +18,7 @@ exports.RentIndexationDtoFromJSON = RentIndexationDtoFromJSON;
18
18
  exports.RentIndexationDtoFromJSONTyped = RentIndexationDtoFromJSONTyped;
19
19
  exports.RentIndexationDtoToJSON = RentIndexationDtoToJSON;
20
20
  exports.RentIndexationDtoToJSONTyped = RentIndexationDtoToJSONTyped;
21
+ var MoneyDto_1 = require("./MoneyDto");
21
22
  /**
22
23
  * Check if a given object implements the RentIndexationDto interface.
23
24
  */
@@ -32,6 +33,8 @@ function instanceOfRentIndexationDto(value) {
32
33
  return false;
33
34
  if (!('advanceNotifiedForYear' in value) || value['advanceNotifiedForYear'] === undefined)
34
35
  return false;
36
+ if (!('oldRecurringPrice' in value) || value['oldRecurringPrice'] === undefined)
37
+ return false;
35
38
  return true;
36
39
  }
37
40
  function RentIndexationDtoFromJSON(json) {
@@ -47,6 +50,7 @@ function RentIndexationDtoFromJSONTyped(json, ignoreDiscriminator) {
47
50
  'inflationYear': json['inflationYear'],
48
51
  'advanceNotifiedAt': (json['advanceNotifiedAt'] == null ? null : new Date(json['advanceNotifiedAt'])),
49
52
  'advanceNotifiedForYear': json['advanceNotifiedForYear'],
53
+ 'oldRecurringPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['oldRecurringPrice']),
50
54
  };
51
55
  }
52
56
  function RentIndexationDtoToJSON(json) {
@@ -63,5 +67,6 @@ function RentIndexationDtoToJSONTyped(value, ignoreDiscriminator) {
63
67
  'inflationYear': value['inflationYear'],
64
68
  'advanceNotifiedAt': (value['advanceNotifiedAt'] == null ? null : value['advanceNotifiedAt'].toISOString()),
65
69
  'advanceNotifiedForYear': value['advanceNotifiedForYear'],
70
+ 'oldRecurringPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['oldRecurringPrice']),
66
71
  };
67
72
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { RentIndexationDto } from './RentIndexationDto';
12
13
  import type { SubscriptionListItemBillingPeriodicityDto } from './SubscriptionListItemBillingPeriodicityDto';
13
14
  import type { SubscriptionListItemDtoBuyerInformation } from './SubscriptionListItemDtoBuyerInformation';
14
15
  import type { SubscriptionListItemDtoTransaction } from './SubscriptionListItemDtoTransaction';
@@ -189,6 +190,30 @@ export interface SubscriptionListItemDto {
189
190
  * @memberof SubscriptionListItemDto
190
191
  */
191
192
  transaction: SubscriptionListItemDtoTransaction | null;
193
+ /**
194
+ *
195
+ * @type {RentIndexationDto}
196
+ * @memberof SubscriptionListItemDto
197
+ */
198
+ lastRentIndexation: RentIndexationDto | null;
199
+ /**
200
+ *
201
+ * @type {Date}
202
+ * @memberof SubscriptionListItemDto
203
+ */
204
+ nextEligibleRentIndexationDate: Date | null;
205
+ /**
206
+ *
207
+ * @type {string}
208
+ * @memberof SubscriptionListItemDto
209
+ */
210
+ rentIndexationStatus: SubscriptionListItemDtoRentIndexationStatusEnum;
211
+ /**
212
+ *
213
+ * @type {string}
214
+ * @memberof SubscriptionListItemDto
215
+ */
216
+ rentIndexationSkipReason: SubscriptionListItemDtoRentIndexationSkipReasonEnum;
192
217
  }
193
218
  /**
194
219
  * @export
@@ -234,6 +259,34 @@ export declare const SubscriptionListItemDtoRenewStatusReasonEnum: {
234
259
  readonly REQUIRE_RETRY: "require_retry";
235
260
  };
236
261
  export type SubscriptionListItemDtoRenewStatusReasonEnum = typeof SubscriptionListItemDtoRenewStatusReasonEnum[keyof typeof SubscriptionListItemDtoRenewStatusReasonEnum];
262
+ /**
263
+ * @export
264
+ */
265
+ export declare const SubscriptionListItemDtoRentIndexationStatusEnum: {
266
+ readonly ELIGIBLE: "eligible";
267
+ readonly NOT_ELIGIBLE: "not_eligible";
268
+ readonly INDEXED: "indexed";
269
+ readonly FAILED: "failed";
270
+ readonly PENDING_DATA: "pending_data";
271
+ };
272
+ export type SubscriptionListItemDtoRentIndexationStatusEnum = typeof SubscriptionListItemDtoRentIndexationStatusEnum[keyof typeof SubscriptionListItemDtoRentIndexationStatusEnum];
273
+ /**
274
+ * @export
275
+ */
276
+ export declare const SubscriptionListItemDtoRentIndexationSkipReasonEnum: {
277
+ readonly NOT_RENT: "not_rent";
278
+ readonly CONTRACT_TOO_OLD: "contract_too_old";
279
+ readonly NOT_ACTIVE: "not_active";
280
+ readonly SCHEDULED_CANCELLATION: "scheduled_cancellation";
281
+ readonly INSUFFICIENT_TENURE: "insufficient_tenure";
282
+ readonly ALREADY_INDEXED: "already_indexed";
283
+ readonly MISSING_COUNTRY: "missing_country";
284
+ readonly UNMAPPED_COUNTRY: "unmapped_country";
285
+ readonly MISSING_IMF_DATA: "missing_imf_data";
286
+ readonly OUTSIDE_INDEXATION_WINDOW: "outside_indexation_window";
287
+ readonly ADVANCE_ALREADY_NOTIFIED: "advance_already_notified";
288
+ };
289
+ export type SubscriptionListItemDtoRentIndexationSkipReasonEnum = typeof SubscriptionListItemDtoRentIndexationSkipReasonEnum[keyof typeof SubscriptionListItemDtoRentIndexationSkipReasonEnum];
237
290
  /**
238
291
  * Check if a given object implements the SubscriptionListItemDto interface.
239
292
  */
@@ -13,12 +13,13 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.SubscriptionListItemDtoRenewStatusReasonEnum = exports.SubscriptionListItemDtoRenewStatusEnum = exports.SubscriptionListItemDtoScheduledCancellationReasonEnum = exports.SubscriptionListItemDtoTypeEnum = exports.SubscriptionListItemDtoStatusEnum = void 0;
16
+ exports.SubscriptionListItemDtoRentIndexationSkipReasonEnum = exports.SubscriptionListItemDtoRentIndexationStatusEnum = exports.SubscriptionListItemDtoRenewStatusReasonEnum = exports.SubscriptionListItemDtoRenewStatusEnum = exports.SubscriptionListItemDtoScheduledCancellationReasonEnum = exports.SubscriptionListItemDtoTypeEnum = exports.SubscriptionListItemDtoStatusEnum = void 0;
17
17
  exports.instanceOfSubscriptionListItemDto = instanceOfSubscriptionListItemDto;
18
18
  exports.SubscriptionListItemDtoFromJSON = SubscriptionListItemDtoFromJSON;
19
19
  exports.SubscriptionListItemDtoFromJSONTyped = SubscriptionListItemDtoFromJSONTyped;
20
20
  exports.SubscriptionListItemDtoToJSON = SubscriptionListItemDtoToJSON;
21
21
  exports.SubscriptionListItemDtoToJSONTyped = SubscriptionListItemDtoToJSONTyped;
22
+ var RentIndexationDto_1 = require("./RentIndexationDto");
22
23
  var SubscriptionListItemBillingPeriodicityDto_1 = require("./SubscriptionListItemBillingPeriodicityDto");
23
24
  var SubscriptionListItemDtoBuyerInformation_1 = require("./SubscriptionListItemDtoBuyerInformation");
24
25
  var SubscriptionListItemDtoTransaction_1 = require("./SubscriptionListItemDtoTransaction");
@@ -64,6 +65,32 @@ exports.SubscriptionListItemDtoRenewStatusReasonEnum = {
64
65
  IMPOSSIBLE_TO_PAY: 'impossible_to_pay',
65
66
  REQUIRE_RETRY: 'require_retry'
66
67
  };
68
+ /**
69
+ * @export
70
+ */
71
+ exports.SubscriptionListItemDtoRentIndexationStatusEnum = {
72
+ ELIGIBLE: 'eligible',
73
+ NOT_ELIGIBLE: 'not_eligible',
74
+ INDEXED: 'indexed',
75
+ FAILED: 'failed',
76
+ PENDING_DATA: 'pending_data'
77
+ };
78
+ /**
79
+ * @export
80
+ */
81
+ exports.SubscriptionListItemDtoRentIndexationSkipReasonEnum = {
82
+ NOT_RENT: 'not_rent',
83
+ CONTRACT_TOO_OLD: 'contract_too_old',
84
+ NOT_ACTIVE: 'not_active',
85
+ SCHEDULED_CANCELLATION: 'scheduled_cancellation',
86
+ INSUFFICIENT_TENURE: 'insufficient_tenure',
87
+ ALREADY_INDEXED: 'already_indexed',
88
+ MISSING_COUNTRY: 'missing_country',
89
+ UNMAPPED_COUNTRY: 'unmapped_country',
90
+ MISSING_IMF_DATA: 'missing_imf_data',
91
+ OUTSIDE_INDEXATION_WINDOW: 'outside_indexation_window',
92
+ ADVANCE_ALREADY_NOTIFIED: 'advance_already_notified'
93
+ };
67
94
  /**
68
95
  * Check if a given object implements the SubscriptionListItemDto interface.
69
96
  */
@@ -124,6 +151,14 @@ function instanceOfSubscriptionListItemDto(value) {
124
151
  return false;
125
152
  if (!('transaction' in value) || value['transaction'] === undefined)
126
153
  return false;
154
+ if (!('lastRentIndexation' in value) || value['lastRentIndexation'] === undefined)
155
+ return false;
156
+ if (!('nextEligibleRentIndexationDate' in value) || value['nextEligibleRentIndexationDate'] === undefined)
157
+ return false;
158
+ if (!('rentIndexationStatus' in value) || value['rentIndexationStatus'] === undefined)
159
+ return false;
160
+ if (!('rentIndexationSkipReason' in value) || value['rentIndexationSkipReason'] === undefined)
161
+ return false;
127
162
  return true;
128
163
  }
129
164
  function SubscriptionListItemDtoFromJSON(json) {
@@ -162,6 +197,10 @@ function SubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
162
197
  'isLeadImported': json['isLeadImported'],
163
198
  'leadId': json['leadId'],
164
199
  'transaction': (0, SubscriptionListItemDtoTransaction_1.SubscriptionListItemDtoTransactionFromJSON)(json['transaction']),
200
+ 'lastRentIndexation': (0, RentIndexationDto_1.RentIndexationDtoFromJSON)(json['lastRentIndexation']),
201
+ 'nextEligibleRentIndexationDate': (json['nextEligibleRentIndexationDate'] == null ? null : new Date(json['nextEligibleRentIndexationDate'])),
202
+ 'rentIndexationStatus': json['rentIndexationStatus'],
203
+ 'rentIndexationSkipReason': json['rentIndexationSkipReason'],
165
204
  };
166
205
  }
167
206
  function SubscriptionListItemDtoToJSON(json) {
@@ -201,5 +240,9 @@ function SubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
201
240
  'isLeadImported': value['isLeadImported'],
202
241
  'leadId': value['leadId'],
203
242
  'transaction': (0, SubscriptionListItemDtoTransaction_1.SubscriptionListItemDtoTransactionToJSON)(value['transaction']),
243
+ 'lastRentIndexation': (0, RentIndexationDto_1.RentIndexationDtoToJSON)(value['lastRentIndexation']),
244
+ 'nextEligibleRentIndexationDate': (value['nextEligibleRentIndexationDate'] == null ? null : value['nextEligibleRentIndexationDate'].toISOString()),
245
+ 'rentIndexationStatus': value['rentIndexationStatus'],
246
+ 'rentIndexationSkipReason': value['rentIndexationSkipReason'],
204
247
  };
205
248
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.432",
3
+ "version": "0.0.433",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { MoneyDto } from './MoneyDto';
17
+ import {
18
+ MoneyDtoFromJSON,
19
+ MoneyDtoFromJSONTyped,
20
+ MoneyDtoToJSON,
21
+ MoneyDtoToJSONTyped,
22
+ } from './MoneyDto';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -49,6 +57,12 @@ export interface RentIndexationDto {
49
57
  * @memberof RentIndexationDto
50
58
  */
51
59
  advanceNotifiedForYear: number | null;
60
+ /**
61
+ *
62
+ * @type {MoneyDto}
63
+ * @memberof RentIndexationDto
64
+ */
65
+ oldRecurringPrice: MoneyDto | null;
52
66
  }
53
67
 
54
68
  /**
@@ -60,6 +74,7 @@ export function instanceOfRentIndexationDto(value: object): value is RentIndexat
60
74
  if (!('inflationYear' in value) || value['inflationYear'] === undefined) return false;
61
75
  if (!('advanceNotifiedAt' in value) || value['advanceNotifiedAt'] === undefined) return false;
62
76
  if (!('advanceNotifiedForYear' in value) || value['advanceNotifiedForYear'] === undefined) return false;
77
+ if (!('oldRecurringPrice' in value) || value['oldRecurringPrice'] === undefined) return false;
63
78
  return true;
64
79
  }
65
80
 
@@ -78,6 +93,7 @@ export function RentIndexationDtoFromJSONTyped(json: any, ignoreDiscriminator: b
78
93
  'inflationYear': json['inflationYear'],
79
94
  'advanceNotifiedAt': (json['advanceNotifiedAt'] == null ? null : new Date(json['advanceNotifiedAt'])),
80
95
  'advanceNotifiedForYear': json['advanceNotifiedForYear'],
96
+ 'oldRecurringPrice': MoneyDtoFromJSON(json['oldRecurringPrice']),
81
97
  };
82
98
  }
83
99
 
@@ -97,6 +113,7 @@ export function RentIndexationDtoToJSONTyped(value?: RentIndexationDto | null, i
97
113
  'inflationYear': value['inflationYear'],
98
114
  'advanceNotifiedAt': (value['advanceNotifiedAt'] == null ? null : (value['advanceNotifiedAt'] as any).toISOString()),
99
115
  'advanceNotifiedForYear': value['advanceNotifiedForYear'],
116
+ 'oldRecurringPrice': MoneyDtoToJSON(value['oldRecurringPrice']),
100
117
  };
101
118
  }
102
119
 
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { RentIndexationDto } from './RentIndexationDto';
17
+ import {
18
+ RentIndexationDtoFromJSON,
19
+ RentIndexationDtoFromJSONTyped,
20
+ RentIndexationDtoToJSON,
21
+ RentIndexationDtoToJSONTyped,
22
+ } from './RentIndexationDto';
16
23
  import type { SubscriptionListItemBillingPeriodicityDto } from './SubscriptionListItemBillingPeriodicityDto';
17
24
  import {
18
25
  SubscriptionListItemBillingPeriodicityDtoFromJSON,
@@ -230,6 +237,30 @@ export interface SubscriptionListItemDto {
230
237
  * @memberof SubscriptionListItemDto
231
238
  */
232
239
  transaction: SubscriptionListItemDtoTransaction | null;
240
+ /**
241
+ *
242
+ * @type {RentIndexationDto}
243
+ * @memberof SubscriptionListItemDto
244
+ */
245
+ lastRentIndexation: RentIndexationDto | null;
246
+ /**
247
+ *
248
+ * @type {Date}
249
+ * @memberof SubscriptionListItemDto
250
+ */
251
+ nextEligibleRentIndexationDate: Date | null;
252
+ /**
253
+ *
254
+ * @type {string}
255
+ * @memberof SubscriptionListItemDto
256
+ */
257
+ rentIndexationStatus: SubscriptionListItemDtoRentIndexationStatusEnum;
258
+ /**
259
+ *
260
+ * @type {string}
261
+ * @memberof SubscriptionListItemDto
262
+ */
263
+ rentIndexationSkipReason: SubscriptionListItemDtoRentIndexationSkipReasonEnum;
233
264
  }
234
265
 
235
266
 
@@ -282,6 +313,36 @@ export const SubscriptionListItemDtoRenewStatusReasonEnum = {
282
313
  } as const;
283
314
  export type SubscriptionListItemDtoRenewStatusReasonEnum = typeof SubscriptionListItemDtoRenewStatusReasonEnum[keyof typeof SubscriptionListItemDtoRenewStatusReasonEnum];
284
315
 
316
+ /**
317
+ * @export
318
+ */
319
+ export const SubscriptionListItemDtoRentIndexationStatusEnum = {
320
+ ELIGIBLE: 'eligible',
321
+ NOT_ELIGIBLE: 'not_eligible',
322
+ INDEXED: 'indexed',
323
+ FAILED: 'failed',
324
+ PENDING_DATA: 'pending_data'
325
+ } as const;
326
+ export type SubscriptionListItemDtoRentIndexationStatusEnum = typeof SubscriptionListItemDtoRentIndexationStatusEnum[keyof typeof SubscriptionListItemDtoRentIndexationStatusEnum];
327
+
328
+ /**
329
+ * @export
330
+ */
331
+ export const SubscriptionListItemDtoRentIndexationSkipReasonEnum = {
332
+ NOT_RENT: 'not_rent',
333
+ CONTRACT_TOO_OLD: 'contract_too_old',
334
+ NOT_ACTIVE: 'not_active',
335
+ SCHEDULED_CANCELLATION: 'scheduled_cancellation',
336
+ INSUFFICIENT_TENURE: 'insufficient_tenure',
337
+ ALREADY_INDEXED: 'already_indexed',
338
+ MISSING_COUNTRY: 'missing_country',
339
+ UNMAPPED_COUNTRY: 'unmapped_country',
340
+ MISSING_IMF_DATA: 'missing_imf_data',
341
+ OUTSIDE_INDEXATION_WINDOW: 'outside_indexation_window',
342
+ ADVANCE_ALREADY_NOTIFIED: 'advance_already_notified'
343
+ } as const;
344
+ export type SubscriptionListItemDtoRentIndexationSkipReasonEnum = typeof SubscriptionListItemDtoRentIndexationSkipReasonEnum[keyof typeof SubscriptionListItemDtoRentIndexationSkipReasonEnum];
345
+
285
346
 
286
347
  /**
287
348
  * Check if a given object implements the SubscriptionListItemDto interface.
@@ -315,6 +376,10 @@ export function instanceOfSubscriptionListItemDto(value: object): value is Subsc
315
376
  if (!('isLeadImported' in value) || value['isLeadImported'] === undefined) return false;
316
377
  if (!('leadId' in value) || value['leadId'] === undefined) return false;
317
378
  if (!('transaction' in value) || value['transaction'] === undefined) return false;
379
+ if (!('lastRentIndexation' in value) || value['lastRentIndexation'] === undefined) return false;
380
+ if (!('nextEligibleRentIndexationDate' in value) || value['nextEligibleRentIndexationDate'] === undefined) return false;
381
+ if (!('rentIndexationStatus' in value) || value['rentIndexationStatus'] === undefined) return false;
382
+ if (!('rentIndexationSkipReason' in value) || value['rentIndexationSkipReason'] === undefined) return false;
318
383
  return true;
319
384
  }
320
385
 
@@ -356,6 +421,10 @@ export function SubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscrimina
356
421
  'isLeadImported': json['isLeadImported'],
357
422
  'leadId': json['leadId'],
358
423
  'transaction': SubscriptionListItemDtoTransactionFromJSON(json['transaction']),
424
+ 'lastRentIndexation': RentIndexationDtoFromJSON(json['lastRentIndexation']),
425
+ 'nextEligibleRentIndexationDate': (json['nextEligibleRentIndexationDate'] == null ? null : new Date(json['nextEligibleRentIndexationDate'])),
426
+ 'rentIndexationStatus': json['rentIndexationStatus'],
427
+ 'rentIndexationSkipReason': json['rentIndexationSkipReason'],
359
428
  };
360
429
  }
361
430
 
@@ -398,6 +467,10 @@ export function SubscriptionListItemDtoToJSONTyped(value?: SubscriptionListItemD
398
467
  'isLeadImported': value['isLeadImported'],
399
468
  'leadId': value['leadId'],
400
469
  'transaction': SubscriptionListItemDtoTransactionToJSON(value['transaction']),
470
+ 'lastRentIndexation': RentIndexationDtoToJSON(value['lastRentIndexation']),
471
+ 'nextEligibleRentIndexationDate': (value['nextEligibleRentIndexationDate'] == null ? null : (value['nextEligibleRentIndexationDate'] as any).toISOString()),
472
+ 'rentIndexationStatus': value['rentIndexationStatus'],
473
+ 'rentIndexationSkipReason': value['rentIndexationSkipReason'],
401
474
  };
402
475
  }
403
476