@randock/nameshift-api-client 0.0.431 → 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.
@@ -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.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.431 --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
- 0c3662be0785f8309624046749dca0e4f682fdd2173e1d732a91e906390005edb06013623a932b4165c871a1e60b963c
47
+ 87ef300a5de9fbd1c343994bd45dd3d7ffdd6ae9f17de4986f55e7ffef520001881355e40ba85bbad5820e7dbd17c410
@@ -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,63 @@
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
+ import type { MoneyDto } from './MoneyDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RentIndexationDto
17
+ */
18
+ export interface RentIndexationDto {
19
+ /**
20
+ *
21
+ * @type {Date}
22
+ * @memberof RentIndexationDto
23
+ */
24
+ appliedAt: Date | null;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof RentIndexationDto
29
+ */
30
+ appliedRate: number | null;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof RentIndexationDto
35
+ */
36
+ inflationYear: number | null;
37
+ /**
38
+ *
39
+ * @type {Date}
40
+ * @memberof RentIndexationDto
41
+ */
42
+ advanceNotifiedAt: Date | null;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof RentIndexationDto
47
+ */
48
+ advanceNotifiedForYear: number | null;
49
+ /**
50
+ *
51
+ * @type {MoneyDto}
52
+ * @memberof RentIndexationDto
53
+ */
54
+ oldRecurringPrice: MoneyDto | null;
55
+ }
56
+ /**
57
+ * Check if a given object implements the RentIndexationDto interface.
58
+ */
59
+ export declare function instanceOfRentIndexationDto(value: object): value is RentIndexationDto;
60
+ export declare function RentIndexationDtoFromJSON(json: any): RentIndexationDto;
61
+ export declare function RentIndexationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RentIndexationDto;
62
+ export declare function RentIndexationDtoToJSON(json: any): RentIndexationDto;
63
+ export declare function RentIndexationDtoToJSONTyped(value?: RentIndexationDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
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
+ var MoneyDto_1 = require("./MoneyDto");
22
+ /**
23
+ * Check if a given object implements the RentIndexationDto interface.
24
+ */
25
+ function instanceOfRentIndexationDto(value) {
26
+ if (!('appliedAt' in value) || value['appliedAt'] === undefined)
27
+ return false;
28
+ if (!('appliedRate' in value) || value['appliedRate'] === undefined)
29
+ return false;
30
+ if (!('inflationYear' in value) || value['inflationYear'] === undefined)
31
+ return false;
32
+ if (!('advanceNotifiedAt' in value) || value['advanceNotifiedAt'] === undefined)
33
+ return false;
34
+ if (!('advanceNotifiedForYear' in value) || value['advanceNotifiedForYear'] === undefined)
35
+ return false;
36
+ if (!('oldRecurringPrice' in value) || value['oldRecurringPrice'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function RentIndexationDtoFromJSON(json) {
41
+ return RentIndexationDtoFromJSONTyped(json, false);
42
+ }
43
+ function RentIndexationDtoFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'appliedAt': (json['appliedAt'] == null ? null : new Date(json['appliedAt'])),
49
+ 'appliedRate': json['appliedRate'],
50
+ 'inflationYear': json['inflationYear'],
51
+ 'advanceNotifiedAt': (json['advanceNotifiedAt'] == null ? null : new Date(json['advanceNotifiedAt'])),
52
+ 'advanceNotifiedForYear': json['advanceNotifiedForYear'],
53
+ 'oldRecurringPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['oldRecurringPrice']),
54
+ };
55
+ }
56
+ function RentIndexationDtoToJSON(json) {
57
+ return RentIndexationDtoToJSONTyped(json, false);
58
+ }
59
+ function RentIndexationDtoToJSONTyped(value, ignoreDiscriminator) {
60
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'appliedAt': (value['appliedAt'] == null ? null : value['appliedAt'].toISOString()),
66
+ 'appliedRate': value['appliedRate'],
67
+ 'inflationYear': value['inflationYear'],
68
+ 'advanceNotifiedAt': (value['advanceNotifiedAt'] == null ? null : value['advanceNotifiedAt'].toISOString()),
69
+ 'advanceNotifiedForYear': value['advanceNotifiedForYear'],
70
+ 'oldRecurringPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['oldRecurringPrice']),
71
+ };
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 { 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
  }
@@ -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
  }
@@ -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.433",
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,119 @@
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
+ import type { MoneyDto } from './MoneyDto';
17
+ import {
18
+ MoneyDtoFromJSON,
19
+ MoneyDtoFromJSONTyped,
20
+ MoneyDtoToJSON,
21
+ MoneyDtoToJSONTyped,
22
+ } from './MoneyDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface RentIndexationDto
28
+ */
29
+ export interface RentIndexationDto {
30
+ /**
31
+ *
32
+ * @type {Date}
33
+ * @memberof RentIndexationDto
34
+ */
35
+ appliedAt: Date | null;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof RentIndexationDto
40
+ */
41
+ appliedRate: number | null;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof RentIndexationDto
46
+ */
47
+ inflationYear: number | null;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof RentIndexationDto
52
+ */
53
+ advanceNotifiedAt: Date | null;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof RentIndexationDto
58
+ */
59
+ advanceNotifiedForYear: number | null;
60
+ /**
61
+ *
62
+ * @type {MoneyDto}
63
+ * @memberof RentIndexationDto
64
+ */
65
+ oldRecurringPrice: MoneyDto | null;
66
+ }
67
+
68
+ /**
69
+ * Check if a given object implements the RentIndexationDto interface.
70
+ */
71
+ export function instanceOfRentIndexationDto(value: object): value is RentIndexationDto {
72
+ if (!('appliedAt' in value) || value['appliedAt'] === undefined) return false;
73
+ if (!('appliedRate' in value) || value['appliedRate'] === undefined) return false;
74
+ if (!('inflationYear' in value) || value['inflationYear'] === undefined) return false;
75
+ if (!('advanceNotifiedAt' in value) || value['advanceNotifiedAt'] === undefined) return false;
76
+ if (!('advanceNotifiedForYear' in value) || value['advanceNotifiedForYear'] === undefined) return false;
77
+ if (!('oldRecurringPrice' in value) || value['oldRecurringPrice'] === undefined) return false;
78
+ return true;
79
+ }
80
+
81
+ export function RentIndexationDtoFromJSON(json: any): RentIndexationDto {
82
+ return RentIndexationDtoFromJSONTyped(json, false);
83
+ }
84
+
85
+ export function RentIndexationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RentIndexationDto {
86
+ if (json == null) {
87
+ return json;
88
+ }
89
+ return {
90
+
91
+ 'appliedAt': (json['appliedAt'] == null ? null : new Date(json['appliedAt'])),
92
+ 'appliedRate': json['appliedRate'],
93
+ 'inflationYear': json['inflationYear'],
94
+ 'advanceNotifiedAt': (json['advanceNotifiedAt'] == null ? null : new Date(json['advanceNotifiedAt'])),
95
+ 'advanceNotifiedForYear': json['advanceNotifiedForYear'],
96
+ 'oldRecurringPrice': MoneyDtoFromJSON(json['oldRecurringPrice']),
97
+ };
98
+ }
99
+
100
+ export function RentIndexationDtoToJSON(json: any): RentIndexationDto {
101
+ return RentIndexationDtoToJSONTyped(json, false);
102
+ }
103
+
104
+ export function RentIndexationDtoToJSONTyped(value?: RentIndexationDto | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'appliedAt': (value['appliedAt'] == null ? null : (value['appliedAt'] as any).toISOString()),
112
+ 'appliedRate': value['appliedRate'],
113
+ 'inflationYear': value['inflationYear'],
114
+ 'advanceNotifiedAt': (value['advanceNotifiedAt'] == null ? null : (value['advanceNotifiedAt'] as any).toISOString()),
115
+ 'advanceNotifiedForYear': value['advanceNotifiedForYear'],
116
+ 'oldRecurringPrice': MoneyDtoToJSON(value['oldRecurringPrice']),
117
+ };
118
+ }
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 { 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
 
@@ -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
 
@@ -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';