@randock/nameshift-api-client 0.0.431 → 0.0.432

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.
@@ -395,6 +395,7 @@ src/models/RentConfigurationDto.ts
395
395
  src/models/RentConfigurationInput.ts
396
396
  src/models/RentConfigurationPresetsDto.ts
397
397
  src/models/RentDto.ts
398
+ src/models/RentIndexationDto.ts
398
399
  src/models/RequestAccessTokenInput.ts
399
400
  src/models/RequestEmailOtpInput.ts
400
401
  src/models/RequestUserEmailChangeOtpInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.431
1
+ ## @randock/nameshift-api-client@0.0.432
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.431 --save
39
+ npm install @randock/nameshift-api-client@0.0.432 --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
- 0c3662be0785f8309624046749dca0e4f682fdd2173e1d732a91e906390005edb06013623a932b4165c871a1e60b963c
47
+ d5c08935d8e3718b5fc609802731dbd39e50fc8c68f835015cb7f21512d8e92b23f0fd65d05be2c085befa45bb976465
@@ -110,6 +110,8 @@ export declare const BuyerNotificationDtoTypeEnum: {
110
110
  readonly SELLER_RENT_SUBSCRIPTION_CANCELLED: "seller_rent_subscription_cancelled";
111
111
  readonly LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "lease_to_own_subscription_has_been_activated_for_first_time";
112
112
  readonly RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "rent_subscription_has_been_activated_for_first_time";
113
+ readonly RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: "rent_subscription_rent_indexation_advance_notice";
114
+ readonly RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: "rent_subscription_rent_indexation_applied";
113
115
  readonly PASSWORD_RESET: "password_reset";
114
116
  readonly USER_EMAIL_CHANGED: "user_email_changed";
115
117
  readonly BUYER_INVOICE: "buyer_invoice";
@@ -71,6 +71,8 @@ exports.BuyerNotificationDtoTypeEnum = {
71
71
  SELLER_RENT_SUBSCRIPTION_CANCELLED: 'seller_rent_subscription_cancelled',
72
72
  LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
73
73
  RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
74
+ RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: 'rent_subscription_rent_indexation_advance_notice',
75
+ RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
74
76
  PASSWORD_RESET: 'password_reset',
75
77
  USER_EMAIL_CHANGED: 'user_email_changed',
76
78
  BUYER_INVOICE: 'buyer_invoice',
@@ -103,6 +103,8 @@ export declare const BuyerNotificationListItemDtoTypeEnum: {
103
103
  readonly SELLER_RENT_SUBSCRIPTION_CANCELLED: "seller_rent_subscription_cancelled";
104
104
  readonly LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "lease_to_own_subscription_has_been_activated_for_first_time";
105
105
  readonly RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "rent_subscription_has_been_activated_for_first_time";
106
+ readonly RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: "rent_subscription_rent_indexation_advance_notice";
107
+ readonly RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: "rent_subscription_rent_indexation_applied";
106
108
  readonly PASSWORD_RESET: "password_reset";
107
109
  readonly USER_EMAIL_CHANGED: "user_email_changed";
108
110
  readonly BUYER_INVOICE: "buyer_invoice";
@@ -70,6 +70,8 @@ exports.BuyerNotificationListItemDtoTypeEnum = {
70
70
  SELLER_RENT_SUBSCRIPTION_CANCELLED: 'seller_rent_subscription_cancelled',
71
71
  LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
72
72
  RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
73
+ RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: 'rent_subscription_rent_indexation_advance_notice',
74
+ RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
73
75
  PASSWORD_RESET: 'password_reset',
74
76
  USER_EMAIL_CHANGED: 'user_email_changed',
75
77
  BUYER_INVOICE: 'buyer_invoice',
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface RentIndexationDto
16
+ */
17
+ export interface RentIndexationDto {
18
+ /**
19
+ *
20
+ * @type {Date}
21
+ * @memberof RentIndexationDto
22
+ */
23
+ appliedAt: Date | null;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof RentIndexationDto
28
+ */
29
+ appliedRate: number | null;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof RentIndexationDto
34
+ */
35
+ inflationYear: number | null;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof RentIndexationDto
40
+ */
41
+ advanceNotifiedAt: Date | null;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof RentIndexationDto
46
+ */
47
+ advanceNotifiedForYear: number | null;
48
+ }
49
+ /**
50
+ * Check if a given object implements the RentIndexationDto interface.
51
+ */
52
+ export declare function instanceOfRentIndexationDto(value: object): value is RentIndexationDto;
53
+ export declare function RentIndexationDtoFromJSON(json: any): RentIndexationDto;
54
+ export declare function RentIndexationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RentIndexationDto;
55
+ export declare function RentIndexationDtoToJSON(json: any): RentIndexationDto;
56
+ export declare function RentIndexationDtoToJSONTyped(value?: RentIndexationDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfRentIndexationDto = instanceOfRentIndexationDto;
17
+ exports.RentIndexationDtoFromJSON = RentIndexationDtoFromJSON;
18
+ exports.RentIndexationDtoFromJSONTyped = RentIndexationDtoFromJSONTyped;
19
+ exports.RentIndexationDtoToJSON = RentIndexationDtoToJSON;
20
+ exports.RentIndexationDtoToJSONTyped = RentIndexationDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the RentIndexationDto interface.
23
+ */
24
+ function instanceOfRentIndexationDto(value) {
25
+ if (!('appliedAt' in value) || value['appliedAt'] === undefined)
26
+ return false;
27
+ if (!('appliedRate' in value) || value['appliedRate'] === undefined)
28
+ return false;
29
+ if (!('inflationYear' in value) || value['inflationYear'] === undefined)
30
+ return false;
31
+ if (!('advanceNotifiedAt' in value) || value['advanceNotifiedAt'] === undefined)
32
+ return false;
33
+ if (!('advanceNotifiedForYear' in value) || value['advanceNotifiedForYear'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function RentIndexationDtoFromJSON(json) {
38
+ return RentIndexationDtoFromJSONTyped(json, false);
39
+ }
40
+ function RentIndexationDtoFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'appliedAt': (json['appliedAt'] == null ? null : new Date(json['appliedAt'])),
46
+ 'appliedRate': json['appliedRate'],
47
+ 'inflationYear': json['inflationYear'],
48
+ 'advanceNotifiedAt': (json['advanceNotifiedAt'] == null ? null : new Date(json['advanceNotifiedAt'])),
49
+ 'advanceNotifiedForYear': json['advanceNotifiedForYear'],
50
+ };
51
+ }
52
+ function RentIndexationDtoToJSON(json) {
53
+ return RentIndexationDtoToJSONTyped(json, false);
54
+ }
55
+ function RentIndexationDtoToJSONTyped(value, ignoreDiscriminator) {
56
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'appliedAt': (value['appliedAt'] == null ? null : value['appliedAt'].toISOString()),
62
+ 'appliedRate': value['appliedRate'],
63
+ 'inflationYear': value['inflationYear'],
64
+ 'advanceNotifiedAt': (value['advanceNotifiedAt'] == null ? null : value['advanceNotifiedAt'].toISOString()),
65
+ 'advanceNotifiedForYear': value['advanceNotifiedForYear'],
66
+ };
67
+ }
@@ -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 { InvoiceItemDto } from './InvoiceItemDto';
13
14
  import type { SubscriptionDetailsDomainDto } from './SubscriptionDetailsDomainDto';
14
15
  import type { MoneyDto } from './MoneyDto';
@@ -215,6 +216,30 @@ export interface SubscriptionDetailsDto {
215
216
  * @memberof SubscriptionDetailsDto
216
217
  */
217
218
  scheduledCancellationReason: string | null;
219
+ /**
220
+ *
221
+ * @type {RentIndexationDto}
222
+ * @memberof SubscriptionDetailsDto
223
+ */
224
+ lastRentIndexation: RentIndexationDto | null;
225
+ /**
226
+ *
227
+ * @type {Date}
228
+ * @memberof SubscriptionDetailsDto
229
+ */
230
+ nextEligibleRentIndexationDate: Date | null;
231
+ /**
232
+ *
233
+ * @type {string}
234
+ * @memberof SubscriptionDetailsDto
235
+ */
236
+ rentIndexationStatus: SubscriptionDetailsDtoRentIndexationStatusEnum;
237
+ /**
238
+ *
239
+ * @type {string}
240
+ * @memberof SubscriptionDetailsDto
241
+ */
242
+ rentIndexationSkipReason: SubscriptionDetailsDtoRentIndexationSkipReasonEnum;
218
243
  }
219
244
  /**
220
245
  * @export
@@ -252,6 +277,34 @@ export declare const SubscriptionDetailsDtoRenewStatusReasonEnum: {
252
277
  readonly REQUIRE_RETRY: "require_retry";
253
278
  };
254
279
  export type SubscriptionDetailsDtoRenewStatusReasonEnum = typeof SubscriptionDetailsDtoRenewStatusReasonEnum[keyof typeof SubscriptionDetailsDtoRenewStatusReasonEnum];
280
+ /**
281
+ * @export
282
+ */
283
+ export declare const SubscriptionDetailsDtoRentIndexationStatusEnum: {
284
+ readonly ELIGIBLE: "eligible";
285
+ readonly NOT_ELIGIBLE: "not_eligible";
286
+ readonly INDEXED: "indexed";
287
+ readonly FAILED: "failed";
288
+ readonly PENDING_DATA: "pending_data";
289
+ };
290
+ export type SubscriptionDetailsDtoRentIndexationStatusEnum = typeof SubscriptionDetailsDtoRentIndexationStatusEnum[keyof typeof SubscriptionDetailsDtoRentIndexationStatusEnum];
291
+ /**
292
+ * @export
293
+ */
294
+ export declare const SubscriptionDetailsDtoRentIndexationSkipReasonEnum: {
295
+ readonly NOT_RENT: "not_rent";
296
+ readonly CONTRACT_TOO_OLD: "contract_too_old";
297
+ readonly NOT_ACTIVE: "not_active";
298
+ readonly SCHEDULED_CANCELLATION: "scheduled_cancellation";
299
+ readonly INSUFFICIENT_TENURE: "insufficient_tenure";
300
+ readonly ALREADY_INDEXED: "already_indexed";
301
+ readonly MISSING_COUNTRY: "missing_country";
302
+ readonly UNMAPPED_COUNTRY: "unmapped_country";
303
+ readonly MISSING_IMF_DATA: "missing_imf_data";
304
+ readonly OUTSIDE_INDEXATION_WINDOW: "outside_indexation_window";
305
+ readonly ADVANCE_ALREADY_NOTIFIED: "advance_already_notified";
306
+ };
307
+ export type SubscriptionDetailsDtoRentIndexationSkipReasonEnum = typeof SubscriptionDetailsDtoRentIndexationSkipReasonEnum[keyof typeof SubscriptionDetailsDtoRentIndexationSkipReasonEnum];
255
308
  /**
256
309
  * Check if a given object implements the SubscriptionDetailsDto interface.
257
310
  */
@@ -13,12 +13,13 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.SubscriptionDetailsDtoRenewStatusReasonEnum = exports.SubscriptionDetailsDtoRenewStatusEnum = exports.SubscriptionDetailsDtoTypeEnum = exports.SubscriptionDetailsDtoStatusEnum = void 0;
16
+ exports.SubscriptionDetailsDtoRentIndexationSkipReasonEnum = exports.SubscriptionDetailsDtoRentIndexationStatusEnum = exports.SubscriptionDetailsDtoRenewStatusReasonEnum = exports.SubscriptionDetailsDtoRenewStatusEnum = exports.SubscriptionDetailsDtoTypeEnum = exports.SubscriptionDetailsDtoStatusEnum = void 0;
17
17
  exports.instanceOfSubscriptionDetailsDto = instanceOfSubscriptionDetailsDto;
18
18
  exports.SubscriptionDetailsDtoFromJSON = SubscriptionDetailsDtoFromJSON;
19
19
  exports.SubscriptionDetailsDtoFromJSONTyped = SubscriptionDetailsDtoFromJSONTyped;
20
20
  exports.SubscriptionDetailsDtoToJSON = SubscriptionDetailsDtoToJSON;
21
21
  exports.SubscriptionDetailsDtoToJSONTyped = SubscriptionDetailsDtoToJSONTyped;
22
+ var RentIndexationDto_1 = require("./RentIndexationDto");
22
23
  var InvoiceItemDto_1 = require("./InvoiceItemDto");
23
24
  var SubscriptionDetailsDomainDto_1 = require("./SubscriptionDetailsDomainDto");
24
25
  var MoneyDto_1 = require("./MoneyDto");
@@ -59,6 +60,32 @@ exports.SubscriptionDetailsDtoRenewStatusReasonEnum = {
59
60
  IMPOSSIBLE_TO_PAY: 'impossible_to_pay',
60
61
  REQUIRE_RETRY: 'require_retry'
61
62
  };
63
+ /**
64
+ * @export
65
+ */
66
+ exports.SubscriptionDetailsDtoRentIndexationStatusEnum = {
67
+ ELIGIBLE: 'eligible',
68
+ NOT_ELIGIBLE: 'not_eligible',
69
+ INDEXED: 'indexed',
70
+ FAILED: 'failed',
71
+ PENDING_DATA: 'pending_data'
72
+ };
73
+ /**
74
+ * @export
75
+ */
76
+ exports.SubscriptionDetailsDtoRentIndexationSkipReasonEnum = {
77
+ NOT_RENT: 'not_rent',
78
+ CONTRACT_TOO_OLD: 'contract_too_old',
79
+ NOT_ACTIVE: 'not_active',
80
+ SCHEDULED_CANCELLATION: 'scheduled_cancellation',
81
+ INSUFFICIENT_TENURE: 'insufficient_tenure',
82
+ ALREADY_INDEXED: 'already_indexed',
83
+ MISSING_COUNTRY: 'missing_country',
84
+ UNMAPPED_COUNTRY: 'unmapped_country',
85
+ MISSING_IMF_DATA: 'missing_imf_data',
86
+ OUTSIDE_INDEXATION_WINDOW: 'outside_indexation_window',
87
+ ADVANCE_ALREADY_NOTIFIED: 'advance_already_notified'
88
+ };
62
89
  /**
63
90
  * Check if a given object implements the SubscriptionDetailsDto interface.
64
91
  */
@@ -127,6 +154,14 @@ function instanceOfSubscriptionDetailsDto(value) {
127
154
  return false;
128
155
  if (!('scheduledCancellationReason' in value) || value['scheduledCancellationReason'] === undefined)
129
156
  return false;
157
+ if (!('lastRentIndexation' in value) || value['lastRentIndexation'] === undefined)
158
+ return false;
159
+ if (!('nextEligibleRentIndexationDate' in value) || value['nextEligibleRentIndexationDate'] === undefined)
160
+ return false;
161
+ if (!('rentIndexationStatus' in value) || value['rentIndexationStatus'] === undefined)
162
+ return false;
163
+ if (!('rentIndexationSkipReason' in value) || value['rentIndexationSkipReason'] === undefined)
164
+ return false;
130
165
  return true;
131
166
  }
132
167
  function SubscriptionDetailsDtoFromJSON(json) {
@@ -169,6 +204,10 @@ function SubscriptionDetailsDtoFromJSONTyped(json, ignoreDiscriminator) {
169
204
  'renewStatusReason': json['renewStatusReason'],
170
205
  'scheduledCancellationAt': (json['scheduledCancellationAt'] == null ? null : new Date(json['scheduledCancellationAt'])),
171
206
  'scheduledCancellationReason': json['scheduledCancellationReason'],
207
+ 'lastRentIndexation': (0, RentIndexationDto_1.RentIndexationDtoFromJSON)(json['lastRentIndexation']),
208
+ 'nextEligibleRentIndexationDate': (json['nextEligibleRentIndexationDate'] == null ? null : new Date(json['nextEligibleRentIndexationDate'])),
209
+ 'rentIndexationStatus': json['rentIndexationStatus'],
210
+ 'rentIndexationSkipReason': json['rentIndexationSkipReason'],
172
211
  };
173
212
  }
174
213
  function SubscriptionDetailsDtoToJSON(json) {
@@ -212,5 +251,9 @@ function SubscriptionDetailsDtoToJSONTyped(value, ignoreDiscriminator) {
212
251
  'renewStatusReason': value['renewStatusReason'],
213
252
  'scheduledCancellationAt': (value['scheduledCancellationAt'] == null ? null : value['scheduledCancellationAt'].toISOString()),
214
253
  'scheduledCancellationReason': value['scheduledCancellationReason'],
254
+ 'lastRentIndexation': (0, RentIndexationDto_1.RentIndexationDtoToJSON)(value['lastRentIndexation']),
255
+ 'nextEligibleRentIndexationDate': (value['nextEligibleRentIndexationDate'] == null ? null : value['nextEligibleRentIndexationDate'].toISOString()),
256
+ 'rentIndexationStatus': value['rentIndexationStatus'],
257
+ 'rentIndexationSkipReason': value['rentIndexationSkipReason'],
215
258
  };
216
259
  }
@@ -110,6 +110,8 @@ export declare const UserNotificationDtoTypeEnum: {
110
110
  readonly SELLER_RENT_SUBSCRIPTION_CANCELLED: "seller_rent_subscription_cancelled";
111
111
  readonly LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "lease_to_own_subscription_has_been_activated_for_first_time";
112
112
  readonly RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "rent_subscription_has_been_activated_for_first_time";
113
+ readonly RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: "rent_subscription_rent_indexation_advance_notice";
114
+ readonly RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: "rent_subscription_rent_indexation_applied";
113
115
  readonly PASSWORD_RESET: "password_reset";
114
116
  readonly USER_EMAIL_CHANGED: "user_email_changed";
115
117
  readonly BUYER_INVOICE: "buyer_invoice";
@@ -71,6 +71,8 @@ exports.UserNotificationDtoTypeEnum = {
71
71
  SELLER_RENT_SUBSCRIPTION_CANCELLED: 'seller_rent_subscription_cancelled',
72
72
  LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
73
73
  RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
74
+ RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: 'rent_subscription_rent_indexation_advance_notice',
75
+ RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
74
76
  PASSWORD_RESET: 'password_reset',
75
77
  USER_EMAIL_CHANGED: 'user_email_changed',
76
78
  BUYER_INVOICE: 'buyer_invoice',
@@ -103,6 +103,8 @@ export declare const UserNotificationListItemDtoTypeEnum: {
103
103
  readonly SELLER_RENT_SUBSCRIPTION_CANCELLED: "seller_rent_subscription_cancelled";
104
104
  readonly LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "lease_to_own_subscription_has_been_activated_for_first_time";
105
105
  readonly RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "rent_subscription_has_been_activated_for_first_time";
106
+ readonly RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: "rent_subscription_rent_indexation_advance_notice";
107
+ readonly RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: "rent_subscription_rent_indexation_applied";
106
108
  readonly PASSWORD_RESET: "password_reset";
107
109
  readonly USER_EMAIL_CHANGED: "user_email_changed";
108
110
  readonly BUYER_INVOICE: "buyer_invoice";
@@ -70,6 +70,8 @@ exports.UserNotificationListItemDtoTypeEnum = {
70
70
  SELLER_RENT_SUBSCRIPTION_CANCELLED: 'seller_rent_subscription_cancelled',
71
71
  LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
72
72
  RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
73
+ RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: 'rent_subscription_rent_indexation_advance_notice',
74
+ RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
73
75
  PASSWORD_RESET: 'password_reset',
74
76
  USER_EMAIL_CHANGED: 'user_email_changed',
75
77
  BUYER_INVOICE: 'buyer_invoice',
@@ -355,6 +355,7 @@ export * from './RentConfigurationDto';
355
355
  export * from './RentConfigurationInput';
356
356
  export * from './RentConfigurationPresetsDto';
357
357
  export * from './RentDto';
358
+ export * from './RentIndexationDto';
358
359
  export * from './RequestAccessTokenInput';
359
360
  export * from './RequestEmailOtpInput';
360
361
  export * from './RequestUserEmailChangeOtpInput';
@@ -373,6 +373,7 @@ __exportStar(require("./RentConfigurationDto"), exports);
373
373
  __exportStar(require("./RentConfigurationInput"), exports);
374
374
  __exportStar(require("./RentConfigurationPresetsDto"), exports);
375
375
  __exportStar(require("./RentDto"), exports);
376
+ __exportStar(require("./RentIndexationDto"), exports);
376
377
  __exportStar(require("./RequestAccessTokenInput"), exports);
377
378
  __exportStar(require("./RequestEmailOtpInput"), exports);
378
379
  __exportStar(require("./RequestUserEmailChangeOtpInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.431",
3
+ "version": "0.0.432",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -123,6 +123,8 @@ export const BuyerNotificationDtoTypeEnum = {
123
123
  SELLER_RENT_SUBSCRIPTION_CANCELLED: 'seller_rent_subscription_cancelled',
124
124
  LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
125
125
  RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
126
+ RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: 'rent_subscription_rent_indexation_advance_notice',
127
+ RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
126
128
  PASSWORD_RESET: 'password_reset',
127
129
  USER_EMAIL_CHANGED: 'user_email_changed',
128
130
  BUYER_INVOICE: 'buyer_invoice',
@@ -109,6 +109,8 @@ export const BuyerNotificationListItemDtoTypeEnum = {
109
109
  SELLER_RENT_SUBSCRIPTION_CANCELLED: 'seller_rent_subscription_cancelled',
110
110
  LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
111
111
  RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
112
+ RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: 'rent_subscription_rent_indexation_advance_notice',
113
+ RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
112
114
  PASSWORD_RESET: 'password_reset',
113
115
  USER_EMAIL_CHANGED: 'user_email_changed',
114
116
  BUYER_INVOICE: 'buyer_invoice',
@@ -0,0 +1,102 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.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 RentIndexationDto
20
+ */
21
+ export interface RentIndexationDto {
22
+ /**
23
+ *
24
+ * @type {Date}
25
+ * @memberof RentIndexationDto
26
+ */
27
+ appliedAt: Date | null;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof RentIndexationDto
32
+ */
33
+ appliedRate: number | null;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof RentIndexationDto
38
+ */
39
+ inflationYear: number | null;
40
+ /**
41
+ *
42
+ * @type {Date}
43
+ * @memberof RentIndexationDto
44
+ */
45
+ advanceNotifiedAt: Date | null;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof RentIndexationDto
50
+ */
51
+ advanceNotifiedForYear: number | null;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the RentIndexationDto interface.
56
+ */
57
+ export function instanceOfRentIndexationDto(value: object): value is RentIndexationDto {
58
+ if (!('appliedAt' in value) || value['appliedAt'] === undefined) return false;
59
+ if (!('appliedRate' in value) || value['appliedRate'] === undefined) return false;
60
+ if (!('inflationYear' in value) || value['inflationYear'] === undefined) return false;
61
+ if (!('advanceNotifiedAt' in value) || value['advanceNotifiedAt'] === undefined) return false;
62
+ if (!('advanceNotifiedForYear' in value) || value['advanceNotifiedForYear'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function RentIndexationDtoFromJSON(json: any): RentIndexationDto {
67
+ return RentIndexationDtoFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function RentIndexationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RentIndexationDto {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'appliedAt': (json['appliedAt'] == null ? null : new Date(json['appliedAt'])),
77
+ 'appliedRate': json['appliedRate'],
78
+ 'inflationYear': json['inflationYear'],
79
+ 'advanceNotifiedAt': (json['advanceNotifiedAt'] == null ? null : new Date(json['advanceNotifiedAt'])),
80
+ 'advanceNotifiedForYear': json['advanceNotifiedForYear'],
81
+ };
82
+ }
83
+
84
+ export function RentIndexationDtoToJSON(json: any): RentIndexationDto {
85
+ return RentIndexationDtoToJSONTyped(json, false);
86
+ }
87
+
88
+ export function RentIndexationDtoToJSONTyped(value?: RentIndexationDto | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'appliedAt': (value['appliedAt'] == null ? null : (value['appliedAt'] as any).toISOString()),
96
+ 'appliedRate': value['appliedRate'],
97
+ 'inflationYear': value['inflationYear'],
98
+ 'advanceNotifiedAt': (value['advanceNotifiedAt'] == null ? null : (value['advanceNotifiedAt'] as any).toISOString()),
99
+ 'advanceNotifiedForYear': value['advanceNotifiedForYear'],
100
+ };
101
+ }
102
+
@@ -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 { InvoiceItemDto } from './InvoiceItemDto';
17
24
  import {
18
25
  InvoiceItemDtoFromJSON,
@@ -268,6 +275,30 @@ export interface SubscriptionDetailsDto {
268
275
  * @memberof SubscriptionDetailsDto
269
276
  */
270
277
  scheduledCancellationReason: string | null;
278
+ /**
279
+ *
280
+ * @type {RentIndexationDto}
281
+ * @memberof SubscriptionDetailsDto
282
+ */
283
+ lastRentIndexation: RentIndexationDto | null;
284
+ /**
285
+ *
286
+ * @type {Date}
287
+ * @memberof SubscriptionDetailsDto
288
+ */
289
+ nextEligibleRentIndexationDate: Date | null;
290
+ /**
291
+ *
292
+ * @type {string}
293
+ * @memberof SubscriptionDetailsDto
294
+ */
295
+ rentIndexationStatus: SubscriptionDetailsDtoRentIndexationStatusEnum;
296
+ /**
297
+ *
298
+ * @type {string}
299
+ * @memberof SubscriptionDetailsDto
300
+ */
301
+ rentIndexationSkipReason: SubscriptionDetailsDtoRentIndexationSkipReasonEnum;
271
302
  }
272
303
 
273
304
 
@@ -311,6 +342,36 @@ export const SubscriptionDetailsDtoRenewStatusReasonEnum = {
311
342
  } as const;
312
343
  export type SubscriptionDetailsDtoRenewStatusReasonEnum = typeof SubscriptionDetailsDtoRenewStatusReasonEnum[keyof typeof SubscriptionDetailsDtoRenewStatusReasonEnum];
313
344
 
345
+ /**
346
+ * @export
347
+ */
348
+ export const SubscriptionDetailsDtoRentIndexationStatusEnum = {
349
+ ELIGIBLE: 'eligible',
350
+ NOT_ELIGIBLE: 'not_eligible',
351
+ INDEXED: 'indexed',
352
+ FAILED: 'failed',
353
+ PENDING_DATA: 'pending_data'
354
+ } as const;
355
+ export type SubscriptionDetailsDtoRentIndexationStatusEnum = typeof SubscriptionDetailsDtoRentIndexationStatusEnum[keyof typeof SubscriptionDetailsDtoRentIndexationStatusEnum];
356
+
357
+ /**
358
+ * @export
359
+ */
360
+ export const SubscriptionDetailsDtoRentIndexationSkipReasonEnum = {
361
+ NOT_RENT: 'not_rent',
362
+ CONTRACT_TOO_OLD: 'contract_too_old',
363
+ NOT_ACTIVE: 'not_active',
364
+ SCHEDULED_CANCELLATION: 'scheduled_cancellation',
365
+ INSUFFICIENT_TENURE: 'insufficient_tenure',
366
+ ALREADY_INDEXED: 'already_indexed',
367
+ MISSING_COUNTRY: 'missing_country',
368
+ UNMAPPED_COUNTRY: 'unmapped_country',
369
+ MISSING_IMF_DATA: 'missing_imf_data',
370
+ OUTSIDE_INDEXATION_WINDOW: 'outside_indexation_window',
371
+ ADVANCE_ALREADY_NOTIFIED: 'advance_already_notified'
372
+ } as const;
373
+ export type SubscriptionDetailsDtoRentIndexationSkipReasonEnum = typeof SubscriptionDetailsDtoRentIndexationSkipReasonEnum[keyof typeof SubscriptionDetailsDtoRentIndexationSkipReasonEnum];
374
+
314
375
 
315
376
  /**
316
377
  * Check if a given object implements the SubscriptionDetailsDto interface.
@@ -348,6 +409,10 @@ export function instanceOfSubscriptionDetailsDto(value: object): value is Subscr
348
409
  if (!('renewStatusReason' in value) || value['renewStatusReason'] === undefined) return false;
349
410
  if (!('scheduledCancellationAt' in value) || value['scheduledCancellationAt'] === undefined) return false;
350
411
  if (!('scheduledCancellationReason' in value) || value['scheduledCancellationReason'] === undefined) return false;
412
+ if (!('lastRentIndexation' in value) || value['lastRentIndexation'] === undefined) return false;
413
+ if (!('nextEligibleRentIndexationDate' in value) || value['nextEligibleRentIndexationDate'] === undefined) return false;
414
+ if (!('rentIndexationStatus' in value) || value['rentIndexationStatus'] === undefined) return false;
415
+ if (!('rentIndexationSkipReason' in value) || value['rentIndexationSkipReason'] === undefined) return false;
351
416
  return true;
352
417
  }
353
418
 
@@ -393,6 +458,10 @@ export function SubscriptionDetailsDtoFromJSONTyped(json: any, ignoreDiscriminat
393
458
  'renewStatusReason': json['renewStatusReason'],
394
459
  'scheduledCancellationAt': (json['scheduledCancellationAt'] == null ? null : new Date(json['scheduledCancellationAt'])),
395
460
  'scheduledCancellationReason': json['scheduledCancellationReason'],
461
+ 'lastRentIndexation': RentIndexationDtoFromJSON(json['lastRentIndexation']),
462
+ 'nextEligibleRentIndexationDate': (json['nextEligibleRentIndexationDate'] == null ? null : new Date(json['nextEligibleRentIndexationDate'])),
463
+ 'rentIndexationStatus': json['rentIndexationStatus'],
464
+ 'rentIndexationSkipReason': json['rentIndexationSkipReason'],
396
465
  };
397
466
  }
398
467
 
@@ -439,6 +508,10 @@ export function SubscriptionDetailsDtoToJSONTyped(value?: SubscriptionDetailsDto
439
508
  'renewStatusReason': value['renewStatusReason'],
440
509
  'scheduledCancellationAt': (value['scheduledCancellationAt'] == null ? null : (value['scheduledCancellationAt'] as any).toISOString()),
441
510
  'scheduledCancellationReason': value['scheduledCancellationReason'],
511
+ 'lastRentIndexation': RentIndexationDtoToJSON(value['lastRentIndexation']),
512
+ 'nextEligibleRentIndexationDate': (value['nextEligibleRentIndexationDate'] == null ? null : (value['nextEligibleRentIndexationDate'] as any).toISOString()),
513
+ 'rentIndexationStatus': value['rentIndexationStatus'],
514
+ 'rentIndexationSkipReason': value['rentIndexationSkipReason'],
442
515
  };
443
516
  }
444
517
 
@@ -123,6 +123,8 @@ export const UserNotificationDtoTypeEnum = {
123
123
  SELLER_RENT_SUBSCRIPTION_CANCELLED: 'seller_rent_subscription_cancelled',
124
124
  LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
125
125
  RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
126
+ RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: 'rent_subscription_rent_indexation_advance_notice',
127
+ RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
126
128
  PASSWORD_RESET: 'password_reset',
127
129
  USER_EMAIL_CHANGED: 'user_email_changed',
128
130
  BUYER_INVOICE: 'buyer_invoice',
@@ -109,6 +109,8 @@ export const UserNotificationListItemDtoTypeEnum = {
109
109
  SELLER_RENT_SUBSCRIPTION_CANCELLED: 'seller_rent_subscription_cancelled',
110
110
  LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
111
111
  RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
112
+ RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: 'rent_subscription_rent_indexation_advance_notice',
113
+ RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
112
114
  PASSWORD_RESET: 'password_reset',
113
115
  USER_EMAIL_CHANGED: 'user_email_changed',
114
116
  BUYER_INVOICE: 'buyer_invoice',
@@ -357,6 +357,7 @@ export * from './RentConfigurationDto';
357
357
  export * from './RentConfigurationInput';
358
358
  export * from './RentConfigurationPresetsDto';
359
359
  export * from './RentDto';
360
+ export * from './RentIndexationDto';
360
361
  export * from './RequestAccessTokenInput';
361
362
  export * from './RequestEmailOtpInput';
362
363
  export * from './RequestUserEmailChangeOtpInput';