@randock/nameshift-api-client 0.0.223 → 0.0.225

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.
Files changed (35) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +3 -3
  3. package/dist/apis/LeadsApi.d.ts +12 -1
  4. package/dist/apis/LeadsApi.js +54 -0
  5. package/dist/models/CreateManualLeadInput.d.ts +12 -0
  6. package/dist/models/CreateManualLeadInput.js +8 -0
  7. package/dist/models/DomainSellerDto.d.ts +1 -1
  8. package/dist/models/DomainSellerDto.js +2 -2
  9. package/dist/models/DomainStatsDto.d.ts +1 -1
  10. package/dist/models/LandingPageInput.d.ts +12 -0
  11. package/dist/models/LandingPageInput.js +4 -0
  12. package/dist/models/LandingPageSettingsDto.d.ts +12 -0
  13. package/dist/models/LandingPageSettingsDto.js +8 -0
  14. package/dist/models/LeadLeaseToOwnConfigurationPresetsDto.d.ts +41 -0
  15. package/dist/models/LeadLeaseToOwnConfigurationPresetsDto.js +56 -0
  16. package/dist/models/SubscriptionDto.d.ts +7 -0
  17. package/dist/models/SubscriptionDto.js +5 -0
  18. package/dist/models/SubscriptionLeaseToOwnConfigurationDto.d.ts +51 -0
  19. package/dist/models/SubscriptionLeaseToOwnConfigurationDto.js +64 -0
  20. package/dist/models/WithSettingsInner.d.ts +12 -0
  21. package/dist/models/WithSettingsInner.js +8 -0
  22. package/dist/models/index.d.ts +2 -0
  23. package/dist/models/index.js +2 -0
  24. package/package.json +1 -1
  25. package/src/apis/LeadsApi.ts +45 -0
  26. package/src/models/CreateManualLeadInput.ts +18 -0
  27. package/src/models/DomainSellerDto.ts +3 -3
  28. package/src/models/DomainStatsDto.ts +1 -1
  29. package/src/models/LandingPageInput.ts +16 -0
  30. package/src/models/LandingPageSettingsDto.ts +18 -0
  31. package/src/models/LeadLeaseToOwnConfigurationPresetsDto.ts +83 -0
  32. package/src/models/SubscriptionDto.ts +16 -0
  33. package/src/models/SubscriptionLeaseToOwnConfigurationDto.ts +101 -0
  34. package/src/models/WithSettingsInner.ts +18 -0
  35. package/src/models/index.ts +2 -0
@@ -136,6 +136,7 @@ src/models/LandingPageInput.ts
136
136
  src/models/LandingPageSettingsDto.ts
137
137
  src/models/LeadDomainDto.ts
138
138
  src/models/LeadDto.ts
139
+ src/models/LeadLeaseToOwnConfigurationPresetsDto.ts
139
140
  src/models/LeadMessageData.ts
140
141
  src/models/LeadMessageDto.ts
141
142
  src/models/LeadStatusDto.ts
@@ -209,6 +210,7 @@ src/models/SubscriptionDetailsDomainSellerUserDto.ts
209
210
  src/models/SubscriptionDetailsDto.ts
210
211
  src/models/SubscriptionDomainDto.ts
211
212
  src/models/SubscriptionDto.ts
213
+ src/models/SubscriptionLeaseToOwnConfigurationDto.ts
212
214
  src/models/SubscriptionListItemBillingPeriodicityDto.ts
213
215
  src/models/SubscriptionListItemDto.ts
214
216
  src/models/SubscriptionListItemDtoBuyerInformation.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.223
1
+ ## @randock/nameshift-api-client@0.0.225
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.223 --save
39
+ npm install @randock/nameshift-api-client@0.0.225 --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
- 5eab3ecb69e46bb8afb84ce24bba2b03dca73cfda16938753610c0c7540d648f001cfb5000cab4af41f5f6e3b5eddcff
47
+ 45b26c87dc2d3dfdc4c31de44456d66aa33612337ed79d15a2ad77b62e56181eb97799891f6b0a0147b44b963290499e
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput, IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto, List200Response, ListLeadMessagesDto, ObjectId, PutLeadOfferInput } from '../models/index';
13
+ import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput, IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto, LeadLeaseToOwnConfigurationPresetsDto, List200Response, ListLeadMessagesDto, ObjectId, PutLeadOfferInput } from '../models/index';
14
14
  export interface LeadsApiAcceptLeadOfferRequest {
15
15
  leadId: string;
16
16
  }
@@ -31,6 +31,9 @@ export interface LeadsApiCreateMessageRequest {
31
31
  export interface LeadsApiGetLeadRequest {
32
32
  leadId: string;
33
33
  }
34
+ export interface LeadsApiGetLeadLeaseToOwnConfigurationPresetsRequest {
35
+ date?: string;
36
+ }
34
37
  export interface LeadsApiGetMessagesRequest {
35
38
  leadId: string;
36
39
  }
@@ -99,6 +102,14 @@ export declare class LeadsApi extends runtime.BaseAPI {
99
102
  *
100
103
  */
101
104
  getLead(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto>;
105
+ /**
106
+ *
107
+ */
108
+ getLeadLeaseToOwnConfigurationPresetsRaw(requestParameters: LeadsApiGetLeadLeaseToOwnConfigurationPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadLeaseToOwnConfigurationPresetsDto>>;
109
+ /**
110
+ *
111
+ */
112
+ getLeadLeaseToOwnConfigurationPresets(requestParameters?: LeadsApiGetLeadLeaseToOwnConfigurationPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadLeaseToOwnConfigurationPresetsDto>;
102
113
  /**
103
114
  *
104
115
  */
@@ -397,6 +397,60 @@ var LeadsApi = /** @class */ (function (_super) {
397
397
  });
398
398
  });
399
399
  };
400
+ /**
401
+ *
402
+ */
403
+ LeadsApi.prototype.getLeadLeaseToOwnConfigurationPresetsRaw = function (requestParameters, initOverrides) {
404
+ return __awaiter(this, void 0, void 0, function () {
405
+ var queryParameters, headerParameters, token, tokenString, response;
406
+ return __generator(this, function (_a) {
407
+ switch (_a.label) {
408
+ case 0:
409
+ queryParameters = {};
410
+ if (requestParameters['date'] != null) {
411
+ queryParameters['date'] = requestParameters['date'];
412
+ }
413
+ headerParameters = {};
414
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
415
+ token = this.configuration.accessToken;
416
+ return [4 /*yield*/, token("bearer", [])];
417
+ case 1:
418
+ tokenString = _a.sent();
419
+ if (tokenString) {
420
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
421
+ }
422
+ _a.label = 2;
423
+ case 2: return [4 /*yield*/, this.request({
424
+ path: "/private/leads/lease-to-own-configuration-presets",
425
+ method: 'GET',
426
+ headers: headerParameters,
427
+ query: queryParameters,
428
+ }, initOverrides)];
429
+ case 3:
430
+ response = _a.sent();
431
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadLeaseToOwnConfigurationPresetsDtoFromJSON)(jsonValue); })];
432
+ }
433
+ });
434
+ });
435
+ };
436
+ /**
437
+ *
438
+ */
439
+ LeadsApi.prototype.getLeadLeaseToOwnConfigurationPresets = function () {
440
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
441
+ var response;
442
+ if (requestParameters === void 0) { requestParameters = {}; }
443
+ return __generator(this, function (_a) {
444
+ switch (_a.label) {
445
+ case 0: return [4 /*yield*/, this.getLeadLeaseToOwnConfigurationPresetsRaw(requestParameters, initOverrides)];
446
+ case 1:
447
+ response = _a.sent();
448
+ return [4 /*yield*/, response.value()];
449
+ case 2: return [2 /*return*/, _a.sent()];
450
+ }
451
+ });
452
+ });
453
+ };
400
454
  /**
401
455
  *
402
456
  */
@@ -58,6 +58,18 @@ export interface CreateManualLeadInput {
58
58
  * @memberof CreateManualLeadInput
59
59
  */
60
60
  offer: MoneyInput;
61
+ /**
62
+ *
63
+ * @type {number}
64
+ * @memberof CreateManualLeadInput
65
+ */
66
+ leaseToOwnMinMonths: number | null;
67
+ /**
68
+ *
69
+ * @type {number}
70
+ * @memberof CreateManualLeadInput
71
+ */
72
+ leaseToOwnMaxMonths: number | null;
61
73
  }
62
74
  /**
63
75
  * @export
@@ -46,6 +46,10 @@ function instanceOfCreateManualLeadInput(value) {
46
46
  return false;
47
47
  if (!('offer' in value) || value['offer'] === undefined)
48
48
  return false;
49
+ if (!('leaseToOwnMinMonths' in value) || value['leaseToOwnMinMonths'] === undefined)
50
+ return false;
51
+ if (!('leaseToOwnMaxMonths' in value) || value['leaseToOwnMaxMonths'] === undefined)
52
+ return false;
49
53
  return true;
50
54
  }
51
55
  function CreateManualLeadInputFromJSON(json) {
@@ -63,6 +67,8 @@ function CreateManualLeadInputFromJSONTyped(json, ignoreDiscriminator) {
63
67
  'lastname': json['lastname'],
64
68
  'locale': json['locale'],
65
69
  'offer': (0, MoneyInput_1.MoneyInputFromJSON)(json['offer']),
70
+ 'leaseToOwnMinMonths': json['leaseToOwnMinMonths'],
71
+ 'leaseToOwnMaxMonths': json['leaseToOwnMaxMonths'],
66
72
  };
67
73
  }
68
74
  function CreateManualLeadInputToJSON(json) {
@@ -81,5 +87,7 @@ function CreateManualLeadInputToJSONTyped(value, ignoreDiscriminator) {
81
87
  'lastname': value['lastname'],
82
88
  'locale': value['locale'],
83
89
  'offer': (0, MoneyInput_1.MoneyInputToJSON)(value['offer']),
90
+ 'leaseToOwnMinMonths': value['leaseToOwnMinMonths'],
91
+ 'leaseToOwnMaxMonths': value['leaseToOwnMaxMonths'],
84
92
  };
85
93
  }
@@ -33,7 +33,7 @@ export interface DomainSellerDto {
33
33
  * @type {Date}
34
34
  * @memberof DomainSellerDto
35
35
  */
36
- lastOnline: Date;
36
+ lastOnline: Date | null;
37
37
  /**
38
38
  * Delivers in, formatted
39
39
  * @type {string}
@@ -51,7 +51,7 @@ function DomainSellerDtoFromJSONTyped(json, ignoreDiscriminator) {
51
51
  return {
52
52
  'createdAt': (new Date(json['createdAt'])),
53
53
  'anonymous': json['anonymous'],
54
- 'lastOnline': (new Date(json['lastOnline'])),
54
+ 'lastOnline': (json['lastOnline'] == null ? null : new Date(json['lastOnline'])),
55
55
  'deliversIn': json['deliversIn'],
56
56
  'name': json['name'],
57
57
  'avatar': json['avatar'],
@@ -70,7 +70,7 @@ function DomainSellerDtoToJSONTyped(value, ignoreDiscriminator) {
70
70
  return {
71
71
  'createdAt': ((value['createdAt']).toISOString()),
72
72
  'anonymous': value['anonymous'],
73
- 'lastOnline': ((value['lastOnline']).toISOString()),
73
+ 'lastOnline': (value['lastOnline'] == null ? null : value['lastOnline'].toISOString()),
74
74
  'deliversIn': value['deliversIn'],
75
75
  'name': value['name'],
76
76
  'avatar': value['avatar'],
@@ -27,7 +27,7 @@ export interface DomainStatsDto {
27
27
  * @type {string}
28
28
  * @memberof DomainStatsDto
29
29
  */
30
- shareUrl: string;
30
+ shareUrl: string | null;
31
31
  /**
32
32
  * The time unit
33
33
  * @type {string}
@@ -27,6 +27,18 @@ export interface LandingPageInput {
27
27
  * @memberof LandingPageInput
28
28
  */
29
29
  showRelatedDomains?: boolean | null;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof LandingPageInput
34
+ */
35
+ showLastOnline?: boolean | null;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof LandingPageInput
40
+ */
41
+ showDeliversIn?: boolean | null;
30
42
  /**
31
43
  *
32
44
  * @type {boolean}
@@ -34,6 +34,8 @@ function LandingPageInputFromJSONTyped(json, ignoreDiscriminator) {
34
34
  return {
35
35
  'anonymous': json['anonymous'] == null ? undefined : json['anonymous'],
36
36
  'showRelatedDomains': json['showRelatedDomains'] == null ? undefined : json['showRelatedDomains'],
37
+ 'showLastOnline': json['showLastOnline'] == null ? undefined : json['showLastOnline'],
38
+ 'showDeliversIn': json['showDeliversIn'] == null ? undefined : json['showDeliversIn'],
37
39
  'seoMetrics': json['seoMetrics'] == null ? undefined : json['seoMetrics'],
38
40
  'visitorStats': json['visitorStats'] == null ? undefined : json['visitorStats'],
39
41
  'minDomainAuthority': json['minDomainAuthority'] == null ? undefined : json['minDomainAuthority'],
@@ -50,6 +52,8 @@ function LandingPageInputToJSONTyped(value, ignoreDiscriminator) {
50
52
  return {
51
53
  'anonymous': value['anonymous'],
52
54
  'showRelatedDomains': value['showRelatedDomains'],
55
+ 'showLastOnline': value['showLastOnline'],
56
+ 'showDeliversIn': value['showDeliversIn'],
53
57
  'seoMetrics': value['seoMetrics'],
54
58
  'visitorStats': value['visitorStats'],
55
59
  'minDomainAuthority': value['minDomainAuthority'],
@@ -45,6 +45,18 @@ export interface LandingPageSettingsDto {
45
45
  * @memberof LandingPageSettingsDto
46
46
  */
47
47
  minDomainAuthority: number | null;
48
+ /**
49
+ *
50
+ * @type {boolean}
51
+ * @memberof LandingPageSettingsDto
52
+ */
53
+ showLastOnline: boolean | null;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof LandingPageSettingsDto
58
+ */
59
+ showDeliversIn: boolean | null;
48
60
  }
49
61
  /**
50
62
  * Check if a given object implements the LandingPageSettingsDto interface.
@@ -32,6 +32,10 @@ function instanceOfLandingPageSettingsDto(value) {
32
32
  return false;
33
33
  if (!('minDomainAuthority' in value) || value['minDomainAuthority'] === undefined)
34
34
  return false;
35
+ if (!('showLastOnline' in value) || value['showLastOnline'] === undefined)
36
+ return false;
37
+ if (!('showDeliversIn' in value) || value['showDeliversIn'] === undefined)
38
+ return false;
35
39
  return true;
36
40
  }
37
41
  function LandingPageSettingsDtoFromJSON(json) {
@@ -47,6 +51,8 @@ function LandingPageSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
47
51
  'seoMetrics': json['seoMetrics'],
48
52
  'visitorStats': json['visitorStats'],
49
53
  'minDomainAuthority': json['minDomainAuthority'],
54
+ 'showLastOnline': json['showLastOnline'],
55
+ 'showDeliversIn': json['showDeliversIn'],
50
56
  };
51
57
  }
52
58
  function LandingPageSettingsDtoToJSON(json) {
@@ -63,5 +69,7 @@ function LandingPageSettingsDtoToJSONTyped(value, ignoreDiscriminator) {
63
69
  'seoMetrics': value['seoMetrics'],
64
70
  'visitorStats': value['visitorStats'],
65
71
  'minDomainAuthority': value['minDomainAuthority'],
72
+ 'showLastOnline': value['showLastOnline'],
73
+ 'showDeliversIn': value['showDeliversIn'],
66
74
  };
67
75
  }
@@ -0,0 +1,41 @@
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 { LeaseToOwnConfigurationPresetsDto } from './LeaseToOwnConfigurationPresetsDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface LeadLeaseToOwnConfigurationPresetsDto
17
+ */
18
+ export interface LeadLeaseToOwnConfigurationPresetsDto {
19
+ /**
20
+ * The exchange rates
21
+ * @type {{ [key: string]: number; }}
22
+ * @memberof LeadLeaseToOwnConfigurationPresetsDto
23
+ */
24
+ rates: {
25
+ [key: string]: number;
26
+ };
27
+ /**
28
+ * The default lease to own configuration presets
29
+ * @type {LeaseToOwnConfigurationPresetsDto}
30
+ * @memberof LeadLeaseToOwnConfigurationPresetsDto
31
+ */
32
+ leaseToOwnConfigurationPreset: LeaseToOwnConfigurationPresetsDto;
33
+ }
34
+ /**
35
+ * Check if a given object implements the LeadLeaseToOwnConfigurationPresetsDto interface.
36
+ */
37
+ export declare function instanceOfLeadLeaseToOwnConfigurationPresetsDto(value: object): value is LeadLeaseToOwnConfigurationPresetsDto;
38
+ export declare function LeadLeaseToOwnConfigurationPresetsDtoFromJSON(json: any): LeadLeaseToOwnConfigurationPresetsDto;
39
+ export declare function LeadLeaseToOwnConfigurationPresetsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadLeaseToOwnConfigurationPresetsDto;
40
+ export declare function LeadLeaseToOwnConfigurationPresetsDtoToJSON(json: any): LeadLeaseToOwnConfigurationPresetsDto;
41
+ export declare function LeadLeaseToOwnConfigurationPresetsDtoToJSONTyped(value?: LeadLeaseToOwnConfigurationPresetsDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.instanceOfLeadLeaseToOwnConfigurationPresetsDto = instanceOfLeadLeaseToOwnConfigurationPresetsDto;
17
+ exports.LeadLeaseToOwnConfigurationPresetsDtoFromJSON = LeadLeaseToOwnConfigurationPresetsDtoFromJSON;
18
+ exports.LeadLeaseToOwnConfigurationPresetsDtoFromJSONTyped = LeadLeaseToOwnConfigurationPresetsDtoFromJSONTyped;
19
+ exports.LeadLeaseToOwnConfigurationPresetsDtoToJSON = LeadLeaseToOwnConfigurationPresetsDtoToJSON;
20
+ exports.LeadLeaseToOwnConfigurationPresetsDtoToJSONTyped = LeadLeaseToOwnConfigurationPresetsDtoToJSONTyped;
21
+ var LeaseToOwnConfigurationPresetsDto_1 = require("./LeaseToOwnConfigurationPresetsDto");
22
+ /**
23
+ * Check if a given object implements the LeadLeaseToOwnConfigurationPresetsDto interface.
24
+ */
25
+ function instanceOfLeadLeaseToOwnConfigurationPresetsDto(value) {
26
+ if (!('rates' in value) || value['rates'] === undefined)
27
+ return false;
28
+ if (!('leaseToOwnConfigurationPreset' in value) || value['leaseToOwnConfigurationPreset'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function LeadLeaseToOwnConfigurationPresetsDtoFromJSON(json) {
33
+ return LeadLeaseToOwnConfigurationPresetsDtoFromJSONTyped(json, false);
34
+ }
35
+ function LeadLeaseToOwnConfigurationPresetsDtoFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'rates': json['rates'],
41
+ 'leaseToOwnConfigurationPreset': (0, LeaseToOwnConfigurationPresetsDto_1.LeaseToOwnConfigurationPresetsDtoFromJSON)(json['leaseToOwnConfigurationPreset']),
42
+ };
43
+ }
44
+ function LeadLeaseToOwnConfigurationPresetsDtoToJSON(json) {
45
+ return LeadLeaseToOwnConfigurationPresetsDtoToJSONTyped(json, false);
46
+ }
47
+ function LeadLeaseToOwnConfigurationPresetsDtoToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'rates': value['rates'],
54
+ 'leaseToOwnConfigurationPreset': (0, LeaseToOwnConfigurationPresetsDto_1.LeaseToOwnConfigurationPresetsDtoToJSON)(value['leaseToOwnConfigurationPreset']),
55
+ };
56
+ }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { InvoiceItemDto } from './InvoiceItemDto';
13
+ import type { SubscriptionLeaseToOwnConfigurationDto } from './SubscriptionLeaseToOwnConfigurationDto';
13
14
  import type { InvoiceTransactionDto } from './InvoiceTransactionDto';
14
15
  import type { MoneyDto } from './MoneyDto';
15
16
  import type { SubscriptionDomainDto } from './SubscriptionDomainDto';
@@ -154,6 +155,12 @@ export interface SubscriptionDto {
154
155
  * @memberof SubscriptionDto
155
156
  */
156
157
  leadStatus: SubscriptionDtoLeadStatusEnum | null;
158
+ /**
159
+ *
160
+ * @type {SubscriptionLeaseToOwnConfigurationDto}
161
+ * @memberof SubscriptionDto
162
+ */
163
+ leaseToOwn: SubscriptionLeaseToOwnConfigurationDto;
157
164
  }
158
165
  /**
159
166
  * @export
@@ -20,6 +20,7 @@ exports.SubscriptionDtoFromJSONTyped = SubscriptionDtoFromJSONTyped;
20
20
  exports.SubscriptionDtoToJSON = SubscriptionDtoToJSON;
21
21
  exports.SubscriptionDtoToJSONTyped = SubscriptionDtoToJSONTyped;
22
22
  var InvoiceItemDto_1 = require("./InvoiceItemDto");
23
+ var SubscriptionLeaseToOwnConfigurationDto_1 = require("./SubscriptionLeaseToOwnConfigurationDto");
23
24
  var InvoiceTransactionDto_1 = require("./InvoiceTransactionDto");
24
25
  var MoneyDto_1 = require("./MoneyDto");
25
26
  var SubscriptionDomainDto_1 = require("./SubscriptionDomainDto");
@@ -101,6 +102,8 @@ function instanceOfSubscriptionDto(value) {
101
102
  return false;
102
103
  if (!('leadStatus' in value) || value['leadStatus'] === undefined)
103
104
  return false;
105
+ if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined)
106
+ return false;
104
107
  return true;
105
108
  }
106
109
  function SubscriptionDtoFromJSON(json) {
@@ -133,6 +136,7 @@ function SubscriptionDtoFromJSONTyped(json, ignoreDiscriminator) {
133
136
  'billingPeriodicity': (0, SubscriptionBillingPeriodicityDto_1.SubscriptionBillingPeriodicityDtoFromJSON)(json['billingPeriodicity']),
134
137
  'hasLead': json['hasLead'],
135
138
  'leadStatus': json['leadStatus'],
139
+ 'leaseToOwn': (0, SubscriptionLeaseToOwnConfigurationDto_1.SubscriptionLeaseToOwnConfigurationDtoFromJSON)(json['leaseToOwn']),
136
140
  };
137
141
  }
138
142
  function SubscriptionDtoToJSON(json) {
@@ -166,5 +170,6 @@ function SubscriptionDtoToJSONTyped(value, ignoreDiscriminator) {
166
170
  'billingPeriodicity': (0, SubscriptionBillingPeriodicityDto_1.SubscriptionBillingPeriodicityDtoToJSON)(value['billingPeriodicity']),
167
171
  'hasLead': value['hasLead'],
168
172
  'leadStatus': value['leadStatus'],
173
+ 'leaseToOwn': (0, SubscriptionLeaseToOwnConfigurationDto_1.SubscriptionLeaseToOwnConfigurationDtoToJSON)(value['leaseToOwn']),
169
174
  };
170
175
  }
@@ -0,0 +1,51 @@
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 SubscriptionLeaseToOwnConfigurationDto
17
+ */
18
+ export interface SubscriptionLeaseToOwnConfigurationDto {
19
+ /**
20
+ * Minimum months option
21
+ * @type {number}
22
+ * @memberof SubscriptionLeaseToOwnConfigurationDto
23
+ */
24
+ minMonths: number;
25
+ /**
26
+ * Maximum months option
27
+ * @type {number}
28
+ * @memberof SubscriptionLeaseToOwnConfigurationDto
29
+ */
30
+ maxMonths: number;
31
+ /**
32
+ * Total lease to own total subscription price
33
+ * @type {MoneyDto}
34
+ * @memberof SubscriptionLeaseToOwnConfigurationDto
35
+ */
36
+ basePrice: MoneyDto;
37
+ /**
38
+ * Total lease to own recurring price
39
+ * @type {MoneyDto}
40
+ * @memberof SubscriptionLeaseToOwnConfigurationDto
41
+ */
42
+ recurringPrice: MoneyDto;
43
+ }
44
+ /**
45
+ * Check if a given object implements the SubscriptionLeaseToOwnConfigurationDto interface.
46
+ */
47
+ export declare function instanceOfSubscriptionLeaseToOwnConfigurationDto(value: object): value is SubscriptionLeaseToOwnConfigurationDto;
48
+ export declare function SubscriptionLeaseToOwnConfigurationDtoFromJSON(json: any): SubscriptionLeaseToOwnConfigurationDto;
49
+ export declare function SubscriptionLeaseToOwnConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionLeaseToOwnConfigurationDto;
50
+ export declare function SubscriptionLeaseToOwnConfigurationDtoToJSON(json: any): SubscriptionLeaseToOwnConfigurationDto;
51
+ export declare function SubscriptionLeaseToOwnConfigurationDtoToJSONTyped(value?: SubscriptionLeaseToOwnConfigurationDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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.instanceOfSubscriptionLeaseToOwnConfigurationDto = instanceOfSubscriptionLeaseToOwnConfigurationDto;
17
+ exports.SubscriptionLeaseToOwnConfigurationDtoFromJSON = SubscriptionLeaseToOwnConfigurationDtoFromJSON;
18
+ exports.SubscriptionLeaseToOwnConfigurationDtoFromJSONTyped = SubscriptionLeaseToOwnConfigurationDtoFromJSONTyped;
19
+ exports.SubscriptionLeaseToOwnConfigurationDtoToJSON = SubscriptionLeaseToOwnConfigurationDtoToJSON;
20
+ exports.SubscriptionLeaseToOwnConfigurationDtoToJSONTyped = SubscriptionLeaseToOwnConfigurationDtoToJSONTyped;
21
+ var MoneyDto_1 = require("./MoneyDto");
22
+ /**
23
+ * Check if a given object implements the SubscriptionLeaseToOwnConfigurationDto interface.
24
+ */
25
+ function instanceOfSubscriptionLeaseToOwnConfigurationDto(value) {
26
+ if (!('minMonths' in value) || value['minMonths'] === undefined)
27
+ return false;
28
+ if (!('maxMonths' in value) || value['maxMonths'] === undefined)
29
+ return false;
30
+ if (!('basePrice' in value) || value['basePrice'] === undefined)
31
+ return false;
32
+ if (!('recurringPrice' in value) || value['recurringPrice'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function SubscriptionLeaseToOwnConfigurationDtoFromJSON(json) {
37
+ return SubscriptionLeaseToOwnConfigurationDtoFromJSONTyped(json, false);
38
+ }
39
+ function SubscriptionLeaseToOwnConfigurationDtoFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'minMonths': json['minMonths'],
45
+ 'maxMonths': json['maxMonths'],
46
+ 'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
47
+ 'recurringPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['recurringPrice']),
48
+ };
49
+ }
50
+ function SubscriptionLeaseToOwnConfigurationDtoToJSON(json) {
51
+ return SubscriptionLeaseToOwnConfigurationDtoToJSONTyped(json, false);
52
+ }
53
+ function SubscriptionLeaseToOwnConfigurationDtoToJSONTyped(value, ignoreDiscriminator) {
54
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'minMonths': value['minMonths'],
60
+ 'maxMonths': value['maxMonths'],
61
+ 'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
62
+ 'recurringPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['recurringPrice']),
63
+ };
64
+ }
@@ -41,6 +41,18 @@ export interface WithSettingsInner {
41
41
  * @memberof WithSettingsInner
42
42
  */
43
43
  showRelatedDomains: boolean;
44
+ /**
45
+ *
46
+ * @type {boolean}
47
+ * @memberof WithSettingsInner
48
+ */
49
+ showLastOnline: boolean;
50
+ /**
51
+ *
52
+ * @type {boolean}
53
+ * @memberof WithSettingsInner
54
+ */
55
+ showDeliversIn: boolean;
44
56
  /**
45
57
  *
46
58
  * @type {string}
@@ -32,6 +32,10 @@ function instanceOfWithSettingsInner(value) {
32
32
  return false;
33
33
  if (!('showRelatedDomains' in value) || value['showRelatedDomains'] === undefined)
34
34
  return false;
35
+ if (!('showLastOnline' in value) || value['showLastOnline'] === undefined)
36
+ return false;
37
+ if (!('showDeliversIn' in value) || value['showDeliversIn'] === undefined)
38
+ return false;
35
39
  if (!('sidnIdcode' in value) || value['sidnIdcode'] === undefined)
36
40
  return false;
37
41
  if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined)
@@ -50,6 +54,8 @@ function WithSettingsInnerFromJSONTyped(json, ignoreDiscriminator) {
50
54
  'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['defaultStartingOffer']),
51
55
  'anonymous': json['anonymous'],
52
56
  'showRelatedDomains': json['showRelatedDomains'],
57
+ 'showLastOnline': json['showLastOnline'],
58
+ 'showDeliversIn': json['showDeliversIn'],
53
59
  'sidnIdcode': json['sidnIdcode'],
54
60
  'leaseToOwn': (0, AccountSettingsLeaseToOwnConfigurationDto_1.AccountSettingsLeaseToOwnConfigurationDtoFromJSON)(json['leaseToOwn']),
55
61
  };
@@ -67,6 +73,8 @@ function WithSettingsInnerToJSONTyped(value, ignoreDiscriminator) {
67
73
  'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['defaultStartingOffer']),
68
74
  'anonymous': value['anonymous'],
69
75
  'showRelatedDomains': value['showRelatedDomains'],
76
+ 'showLastOnline': value['showLastOnline'],
77
+ 'showDeliversIn': value['showDeliversIn'],
70
78
  'sidnIdcode': value['sidnIdcode'],
71
79
  'leaseToOwn': (0, AccountSettingsLeaseToOwnConfigurationDto_1.AccountSettingsLeaseToOwnConfigurationDtoToJSON)(value['leaseToOwn']),
72
80
  };
@@ -109,6 +109,7 @@ export * from './LandingPageInput';
109
109
  export * from './LandingPageSettingsDto';
110
110
  export * from './LeadDomainDto';
111
111
  export * from './LeadDto';
112
+ export * from './LeadLeaseToOwnConfigurationPresetsDto';
112
113
  export * from './LeadMessageData';
113
114
  export * from './LeadMessageDto';
114
115
  export * from './LeadStatusDto';
@@ -182,6 +183,7 @@ export * from './SubscriptionDetailsDomainSellerUserDto';
182
183
  export * from './SubscriptionDetailsDto';
183
184
  export * from './SubscriptionDomainDto';
184
185
  export * from './SubscriptionDto';
186
+ export * from './SubscriptionLeaseToOwnConfigurationDto';
185
187
  export * from './SubscriptionListItemBillingPeriodicityDto';
186
188
  export * from './SubscriptionListItemDto';
187
189
  export * from './SubscriptionListItemDtoBuyerInformation';
@@ -127,6 +127,7 @@ __exportStar(require("./LandingPageInput"), exports);
127
127
  __exportStar(require("./LandingPageSettingsDto"), exports);
128
128
  __exportStar(require("./LeadDomainDto"), exports);
129
129
  __exportStar(require("./LeadDto"), exports);
130
+ __exportStar(require("./LeadLeaseToOwnConfigurationPresetsDto"), exports);
130
131
  __exportStar(require("./LeadMessageData"), exports);
131
132
  __exportStar(require("./LeadMessageDto"), exports);
132
133
  __exportStar(require("./LeadStatusDto"), exports);
@@ -200,6 +201,7 @@ __exportStar(require("./SubscriptionDetailsDomainSellerUserDto"), exports);
200
201
  __exportStar(require("./SubscriptionDetailsDto"), exports);
201
202
  __exportStar(require("./SubscriptionDomainDto"), exports);
202
203
  __exportStar(require("./SubscriptionDto"), exports);
204
+ __exportStar(require("./SubscriptionLeaseToOwnConfigurationDto"), exports);
203
205
  __exportStar(require("./SubscriptionListItemBillingPeriodicityDto"), exports);
204
206
  __exportStar(require("./SubscriptionListItemDto"), exports);
205
207
  __exportStar(require("./SubscriptionListItemDtoBuyerInformation"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.223",
3
+ "version": "0.0.225",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -20,6 +20,7 @@ import type {
20
20
  CreateLeadMessageInput,
21
21
  CreateManualLeadInput,
22
22
  IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto,
23
+ LeadLeaseToOwnConfigurationPresetsDto,
23
24
  List200Response,
24
25
  ListLeadMessagesDto,
25
26
  ObjectId,
@@ -38,6 +39,8 @@ import {
38
39
  CreateManualLeadInputToJSON,
39
40
  IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSON,
40
41
  IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoToJSON,
42
+ LeadLeaseToOwnConfigurationPresetsDtoFromJSON,
43
+ LeadLeaseToOwnConfigurationPresetsDtoToJSON,
41
44
  List200ResponseFromJSON,
42
45
  List200ResponseToJSON,
43
46
  ListLeadMessagesDtoFromJSON,
@@ -78,6 +81,10 @@ export interface LeadsApiGetLeadRequest {
78
81
  leadId: string;
79
82
  }
80
83
 
84
+ export interface LeadsApiGetLeadLeaseToOwnConfigurationPresetsRequest {
85
+ date?: string;
86
+ }
87
+
81
88
  export interface LeadsApiGetMessagesRequest {
82
89
  leadId: string;
83
90
  }
@@ -368,6 +375,44 @@ export class LeadsApi extends runtime.BaseAPI {
368
375
  return await response.value();
369
376
  }
370
377
 
378
+ /**
379
+ *
380
+ */
381
+ async getLeadLeaseToOwnConfigurationPresetsRaw(requestParameters: LeadsApiGetLeadLeaseToOwnConfigurationPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadLeaseToOwnConfigurationPresetsDto>> {
382
+ const queryParameters: any = {};
383
+
384
+ if (requestParameters['date'] != null) {
385
+ queryParameters['date'] = requestParameters['date'];
386
+ }
387
+
388
+ const headerParameters: runtime.HTTPHeaders = {};
389
+
390
+ if (this.configuration && this.configuration.accessToken) {
391
+ const token = this.configuration.accessToken;
392
+ const tokenString = await token("bearer", []);
393
+
394
+ if (tokenString) {
395
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
396
+ }
397
+ }
398
+ const response = await this.request({
399
+ path: `/private/leads/lease-to-own-configuration-presets`,
400
+ method: 'GET',
401
+ headers: headerParameters,
402
+ query: queryParameters,
403
+ }, initOverrides);
404
+
405
+ return new runtime.JSONApiResponse(response, (jsonValue) => LeadLeaseToOwnConfigurationPresetsDtoFromJSON(jsonValue));
406
+ }
407
+
408
+ /**
409
+ *
410
+ */
411
+ async getLeadLeaseToOwnConfigurationPresets(requestParameters: LeadsApiGetLeadLeaseToOwnConfigurationPresetsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadLeaseToOwnConfigurationPresetsDto> {
412
+ const response = await this.getLeadLeaseToOwnConfigurationPresetsRaw(requestParameters, initOverrides);
413
+ return await response.value();
414
+ }
415
+
371
416
  /**
372
417
  *
373
418
  */
@@ -69,6 +69,18 @@ export interface CreateManualLeadInput {
69
69
  * @memberof CreateManualLeadInput
70
70
  */
71
71
  offer: MoneyInput;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof CreateManualLeadInput
76
+ */
77
+ leaseToOwnMinMonths: number | null;
78
+ /**
79
+ *
80
+ * @type {number}
81
+ * @memberof CreateManualLeadInput
82
+ */
83
+ leaseToOwnMaxMonths: number | null;
72
84
  }
73
85
 
74
86
 
@@ -94,6 +106,8 @@ export function instanceOfCreateManualLeadInput(value: object): value is CreateM
94
106
  if (!('lastname' in value) || value['lastname'] === undefined) return false;
95
107
  if (!('locale' in value) || value['locale'] === undefined) return false;
96
108
  if (!('offer' in value) || value['offer'] === undefined) return false;
109
+ if (!('leaseToOwnMinMonths' in value) || value['leaseToOwnMinMonths'] === undefined) return false;
110
+ if (!('leaseToOwnMaxMonths' in value) || value['leaseToOwnMaxMonths'] === undefined) return false;
97
111
  return true;
98
112
  }
99
113
 
@@ -114,6 +128,8 @@ export function CreateManualLeadInputFromJSONTyped(json: any, ignoreDiscriminato
114
128
  'lastname': json['lastname'],
115
129
  'locale': json['locale'],
116
130
  'offer': MoneyInputFromJSON(json['offer']),
131
+ 'leaseToOwnMinMonths': json['leaseToOwnMinMonths'],
132
+ 'leaseToOwnMaxMonths': json['leaseToOwnMaxMonths'],
117
133
  };
118
134
  }
119
135
 
@@ -135,6 +151,8 @@ export function CreateManualLeadInputToJSONTyped(value?: CreateManualLeadInput |
135
151
  'lastname': value['lastname'],
136
152
  'locale': value['locale'],
137
153
  'offer': MoneyInputToJSON(value['offer']),
154
+ 'leaseToOwnMinMonths': value['leaseToOwnMinMonths'],
155
+ 'leaseToOwnMaxMonths': value['leaseToOwnMaxMonths'],
138
156
  };
139
157
  }
140
158
 
@@ -44,7 +44,7 @@ export interface DomainSellerDto {
44
44
  * @type {Date}
45
45
  * @memberof DomainSellerDto
46
46
  */
47
- lastOnline: Date;
47
+ lastOnline: Date | null;
48
48
  /**
49
49
  * Delivers in, formatted
50
50
  * @type {string}
@@ -104,7 +104,7 @@ export function DomainSellerDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
104
104
 
105
105
  'createdAt': (new Date(json['createdAt'])),
106
106
  'anonymous': json['anonymous'],
107
- 'lastOnline': (new Date(json['lastOnline'])),
107
+ 'lastOnline': (json['lastOnline'] == null ? null : new Date(json['lastOnline'])),
108
108
  'deliversIn': json['deliversIn'],
109
109
  'name': json['name'],
110
110
  'avatar': json['avatar'],
@@ -126,7 +126,7 @@ export function DomainSellerDtoToJSONTyped(value?: DomainSellerDto | null, ignor
126
126
 
127
127
  'createdAt': ((value['createdAt']).toISOString()),
128
128
  'anonymous': value['anonymous'],
129
- 'lastOnline': ((value['lastOnline']).toISOString()),
129
+ 'lastOnline': (value['lastOnline'] == null ? null : (value['lastOnline'] as any).toISOString()),
130
130
  'deliversIn': value['deliversIn'],
131
131
  'name': value['name'],
132
132
  'avatar': value['avatar'],
@@ -38,7 +38,7 @@ export interface DomainStatsDto {
38
38
  * @type {string}
39
39
  * @memberof DomainStatsDto
40
40
  */
41
- shareUrl: string;
41
+ shareUrl: string | null;
42
42
  /**
43
43
  * The time unit
44
44
  * @type {string}
@@ -31,6 +31,18 @@ export interface LandingPageInput {
31
31
  * @memberof LandingPageInput
32
32
  */
33
33
  showRelatedDomains?: boolean | null;
34
+ /**
35
+ *
36
+ * @type {boolean}
37
+ * @memberof LandingPageInput
38
+ */
39
+ showLastOnline?: boolean | null;
40
+ /**
41
+ *
42
+ * @type {boolean}
43
+ * @memberof LandingPageInput
44
+ */
45
+ showDeliversIn?: boolean | null;
34
46
  /**
35
47
  *
36
48
  * @type {boolean}
@@ -70,6 +82,8 @@ export function LandingPageInputFromJSONTyped(json: any, ignoreDiscriminator: bo
70
82
 
71
83
  'anonymous': json['anonymous'] == null ? undefined : json['anonymous'],
72
84
  'showRelatedDomains': json['showRelatedDomains'] == null ? undefined : json['showRelatedDomains'],
85
+ 'showLastOnline': json['showLastOnline'] == null ? undefined : json['showLastOnline'],
86
+ 'showDeliversIn': json['showDeliversIn'] == null ? undefined : json['showDeliversIn'],
73
87
  'seoMetrics': json['seoMetrics'] == null ? undefined : json['seoMetrics'],
74
88
  'visitorStats': json['visitorStats'] == null ? undefined : json['visitorStats'],
75
89
  'minDomainAuthority': json['minDomainAuthority'] == null ? undefined : json['minDomainAuthority'],
@@ -89,6 +103,8 @@ export function LandingPageInputToJSONTyped(value?: LandingPageInput | null, ign
89
103
 
90
104
  'anonymous': value['anonymous'],
91
105
  'showRelatedDomains': value['showRelatedDomains'],
106
+ 'showLastOnline': value['showLastOnline'],
107
+ 'showDeliversIn': value['showDeliversIn'],
92
108
  'seoMetrics': value['seoMetrics'],
93
109
  'visitorStats': value['visitorStats'],
94
110
  'minDomainAuthority': value['minDomainAuthority'],
@@ -49,6 +49,18 @@ export interface LandingPageSettingsDto {
49
49
  * @memberof LandingPageSettingsDto
50
50
  */
51
51
  minDomainAuthority: number | null;
52
+ /**
53
+ *
54
+ * @type {boolean}
55
+ * @memberof LandingPageSettingsDto
56
+ */
57
+ showLastOnline: boolean | null;
58
+ /**
59
+ *
60
+ * @type {boolean}
61
+ * @memberof LandingPageSettingsDto
62
+ */
63
+ showDeliversIn: boolean | null;
52
64
  }
53
65
 
54
66
  /**
@@ -60,6 +72,8 @@ export function instanceOfLandingPageSettingsDto(value: object): value is Landin
60
72
  if (!('seoMetrics' in value) || value['seoMetrics'] === undefined) return false;
61
73
  if (!('visitorStats' in value) || value['visitorStats'] === undefined) return false;
62
74
  if (!('minDomainAuthority' in value) || value['minDomainAuthority'] === undefined) return false;
75
+ if (!('showLastOnline' in value) || value['showLastOnline'] === undefined) return false;
76
+ if (!('showDeliversIn' in value) || value['showDeliversIn'] === undefined) return false;
63
77
  return true;
64
78
  }
65
79
 
@@ -78,6 +92,8 @@ export function LandingPageSettingsDtoFromJSONTyped(json: any, ignoreDiscriminat
78
92
  'seoMetrics': json['seoMetrics'],
79
93
  'visitorStats': json['visitorStats'],
80
94
  'minDomainAuthority': json['minDomainAuthority'],
95
+ 'showLastOnline': json['showLastOnline'],
96
+ 'showDeliversIn': json['showDeliversIn'],
81
97
  };
82
98
  }
83
99
 
@@ -97,6 +113,8 @@ export function LandingPageSettingsDtoToJSONTyped(value?: LandingPageSettingsDto
97
113
  'seoMetrics': value['seoMetrics'],
98
114
  'visitorStats': value['visitorStats'],
99
115
  'minDomainAuthority': value['minDomainAuthority'],
116
+ 'showLastOnline': value['showLastOnline'],
117
+ 'showDeliversIn': value['showDeliversIn'],
100
118
  };
101
119
  }
102
120
 
@@ -0,0 +1,83 @@
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 { LeaseToOwnConfigurationPresetsDto } from './LeaseToOwnConfigurationPresetsDto';
17
+ import {
18
+ LeaseToOwnConfigurationPresetsDtoFromJSON,
19
+ LeaseToOwnConfigurationPresetsDtoFromJSONTyped,
20
+ LeaseToOwnConfigurationPresetsDtoToJSON,
21
+ LeaseToOwnConfigurationPresetsDtoToJSONTyped,
22
+ } from './LeaseToOwnConfigurationPresetsDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface LeadLeaseToOwnConfigurationPresetsDto
28
+ */
29
+ export interface LeadLeaseToOwnConfigurationPresetsDto {
30
+ /**
31
+ * The exchange rates
32
+ * @type {{ [key: string]: number; }}
33
+ * @memberof LeadLeaseToOwnConfigurationPresetsDto
34
+ */
35
+ rates: { [key: string]: number; };
36
+ /**
37
+ * The default lease to own configuration presets
38
+ * @type {LeaseToOwnConfigurationPresetsDto}
39
+ * @memberof LeadLeaseToOwnConfigurationPresetsDto
40
+ */
41
+ leaseToOwnConfigurationPreset: LeaseToOwnConfigurationPresetsDto;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the LeadLeaseToOwnConfigurationPresetsDto interface.
46
+ */
47
+ export function instanceOfLeadLeaseToOwnConfigurationPresetsDto(value: object): value is LeadLeaseToOwnConfigurationPresetsDto {
48
+ if (!('rates' in value) || value['rates'] === undefined) return false;
49
+ if (!('leaseToOwnConfigurationPreset' in value) || value['leaseToOwnConfigurationPreset'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function LeadLeaseToOwnConfigurationPresetsDtoFromJSON(json: any): LeadLeaseToOwnConfigurationPresetsDto {
54
+ return LeadLeaseToOwnConfigurationPresetsDtoFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function LeadLeaseToOwnConfigurationPresetsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadLeaseToOwnConfigurationPresetsDto {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'rates': json['rates'],
64
+ 'leaseToOwnConfigurationPreset': LeaseToOwnConfigurationPresetsDtoFromJSON(json['leaseToOwnConfigurationPreset']),
65
+ };
66
+ }
67
+
68
+ export function LeadLeaseToOwnConfigurationPresetsDtoToJSON(json: any): LeadLeaseToOwnConfigurationPresetsDto {
69
+ return LeadLeaseToOwnConfigurationPresetsDtoToJSONTyped(json, false);
70
+ }
71
+
72
+ export function LeadLeaseToOwnConfigurationPresetsDtoToJSONTyped(value?: LeadLeaseToOwnConfigurationPresetsDto | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'rates': value['rates'],
80
+ 'leaseToOwnConfigurationPreset': LeaseToOwnConfigurationPresetsDtoToJSON(value['leaseToOwnConfigurationPreset']),
81
+ };
82
+ }
83
+
@@ -20,6 +20,13 @@ import {
20
20
  InvoiceItemDtoToJSON,
21
21
  InvoiceItemDtoToJSONTyped,
22
22
  } from './InvoiceItemDto';
23
+ import type { SubscriptionLeaseToOwnConfigurationDto } from './SubscriptionLeaseToOwnConfigurationDto';
24
+ import {
25
+ SubscriptionLeaseToOwnConfigurationDtoFromJSON,
26
+ SubscriptionLeaseToOwnConfigurationDtoFromJSONTyped,
27
+ SubscriptionLeaseToOwnConfigurationDtoToJSON,
28
+ SubscriptionLeaseToOwnConfigurationDtoToJSONTyped,
29
+ } from './SubscriptionLeaseToOwnConfigurationDto';
23
30
  import type { InvoiceTransactionDto } from './InvoiceTransactionDto';
24
31
  import {
25
32
  InvoiceTransactionDtoFromJSON,
@@ -201,6 +208,12 @@ export interface SubscriptionDto {
201
208
  * @memberof SubscriptionDto
202
209
  */
203
210
  leadStatus: SubscriptionDtoLeadStatusEnum | null;
211
+ /**
212
+ *
213
+ * @type {SubscriptionLeaseToOwnConfigurationDto}
214
+ * @memberof SubscriptionDto
215
+ */
216
+ leaseToOwn: SubscriptionLeaseToOwnConfigurationDto;
204
217
  }
205
218
 
206
219
 
@@ -264,6 +277,7 @@ export function instanceOfSubscriptionDto(value: object): value is SubscriptionD
264
277
  if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined) return false;
265
278
  if (!('hasLead' in value) || value['hasLead'] === undefined) return false;
266
279
  if (!('leadStatus' in value) || value['leadStatus'] === undefined) return false;
280
+ if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
267
281
  return true;
268
282
  }
269
283
 
@@ -299,6 +313,7 @@ export function SubscriptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
299
313
  'billingPeriodicity': SubscriptionBillingPeriodicityDtoFromJSON(json['billingPeriodicity']),
300
314
  'hasLead': json['hasLead'],
301
315
  'leadStatus': json['leadStatus'],
316
+ 'leaseToOwn': SubscriptionLeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
302
317
  };
303
318
  }
304
319
 
@@ -335,6 +350,7 @@ export function SubscriptionDtoToJSONTyped(value?: SubscriptionDto | null, ignor
335
350
  'billingPeriodicity': SubscriptionBillingPeriodicityDtoToJSON(value['billingPeriodicity']),
336
351
  'hasLead': value['hasLead'],
337
352
  'leadStatus': value['leadStatus'],
353
+ 'leaseToOwn': SubscriptionLeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
338
354
  };
339
355
  }
340
356
 
@@ -0,0 +1,101 @@
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 SubscriptionLeaseToOwnConfigurationDto
28
+ */
29
+ export interface SubscriptionLeaseToOwnConfigurationDto {
30
+ /**
31
+ * Minimum months option
32
+ * @type {number}
33
+ * @memberof SubscriptionLeaseToOwnConfigurationDto
34
+ */
35
+ minMonths: number;
36
+ /**
37
+ * Maximum months option
38
+ * @type {number}
39
+ * @memberof SubscriptionLeaseToOwnConfigurationDto
40
+ */
41
+ maxMonths: number;
42
+ /**
43
+ * Total lease to own total subscription price
44
+ * @type {MoneyDto}
45
+ * @memberof SubscriptionLeaseToOwnConfigurationDto
46
+ */
47
+ basePrice: MoneyDto;
48
+ /**
49
+ * Total lease to own recurring price
50
+ * @type {MoneyDto}
51
+ * @memberof SubscriptionLeaseToOwnConfigurationDto
52
+ */
53
+ recurringPrice: MoneyDto;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the SubscriptionLeaseToOwnConfigurationDto interface.
58
+ */
59
+ export function instanceOfSubscriptionLeaseToOwnConfigurationDto(value: object): value is SubscriptionLeaseToOwnConfigurationDto {
60
+ if (!('minMonths' in value) || value['minMonths'] === undefined) return false;
61
+ if (!('maxMonths' in value) || value['maxMonths'] === undefined) return false;
62
+ if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
63
+ if (!('recurringPrice' in value) || value['recurringPrice'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function SubscriptionLeaseToOwnConfigurationDtoFromJSON(json: any): SubscriptionLeaseToOwnConfigurationDto {
68
+ return SubscriptionLeaseToOwnConfigurationDtoFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function SubscriptionLeaseToOwnConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionLeaseToOwnConfigurationDto {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'minMonths': json['minMonths'],
78
+ 'maxMonths': json['maxMonths'],
79
+ 'basePrice': MoneyDtoFromJSON(json['basePrice']),
80
+ 'recurringPrice': MoneyDtoFromJSON(json['recurringPrice']),
81
+ };
82
+ }
83
+
84
+ export function SubscriptionLeaseToOwnConfigurationDtoToJSON(json: any): SubscriptionLeaseToOwnConfigurationDto {
85
+ return SubscriptionLeaseToOwnConfigurationDtoToJSONTyped(json, false);
86
+ }
87
+
88
+ export function SubscriptionLeaseToOwnConfigurationDtoToJSONTyped(value?: SubscriptionLeaseToOwnConfigurationDto | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'minMonths': value['minMonths'],
96
+ 'maxMonths': value['maxMonths'],
97
+ 'basePrice': MoneyDtoToJSON(value['basePrice']),
98
+ 'recurringPrice': MoneyDtoToJSON(value['recurringPrice']),
99
+ };
100
+ }
101
+
@@ -58,6 +58,18 @@ export interface WithSettingsInner {
58
58
  * @memberof WithSettingsInner
59
59
  */
60
60
  showRelatedDomains: boolean;
61
+ /**
62
+ *
63
+ * @type {boolean}
64
+ * @memberof WithSettingsInner
65
+ */
66
+ showLastOnline: boolean;
67
+ /**
68
+ *
69
+ * @type {boolean}
70
+ * @memberof WithSettingsInner
71
+ */
72
+ showDeliversIn: boolean;
61
73
  /**
62
74
  *
63
75
  * @type {string}
@@ -80,6 +92,8 @@ export function instanceOfWithSettingsInner(value: object): value is WithSetting
80
92
  if (!('defaultStartingOffer' in value) || value['defaultStartingOffer'] === undefined) return false;
81
93
  if (!('anonymous' in value) || value['anonymous'] === undefined) return false;
82
94
  if (!('showRelatedDomains' in value) || value['showRelatedDomains'] === undefined) return false;
95
+ if (!('showLastOnline' in value) || value['showLastOnline'] === undefined) return false;
96
+ if (!('showDeliversIn' in value) || value['showDeliversIn'] === undefined) return false;
83
97
  if (!('sidnIdcode' in value) || value['sidnIdcode'] === undefined) return false;
84
98
  if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
85
99
  return true;
@@ -99,6 +113,8 @@ export function WithSettingsInnerFromJSONTyped(json: any, ignoreDiscriminator: b
99
113
  'defaultStartingOffer': MoneyDtoFromJSON(json['defaultStartingOffer']),
100
114
  'anonymous': json['anonymous'],
101
115
  'showRelatedDomains': json['showRelatedDomains'],
116
+ 'showLastOnline': json['showLastOnline'],
117
+ 'showDeliversIn': json['showDeliversIn'],
102
118
  'sidnIdcode': json['sidnIdcode'],
103
119
  'leaseToOwn': AccountSettingsLeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
104
120
  };
@@ -119,6 +135,8 @@ export function WithSettingsInnerToJSONTyped(value?: WithSettingsInner | null, i
119
135
  'defaultStartingOffer': MoneyDtoToJSON(value['defaultStartingOffer']),
120
136
  'anonymous': value['anonymous'],
121
137
  'showRelatedDomains': value['showRelatedDomains'],
138
+ 'showLastOnline': value['showLastOnline'],
139
+ 'showDeliversIn': value['showDeliversIn'],
122
140
  'sidnIdcode': value['sidnIdcode'],
123
141
  'leaseToOwn': AccountSettingsLeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
124
142
  };
@@ -111,6 +111,7 @@ export * from './LandingPageInput';
111
111
  export * from './LandingPageSettingsDto';
112
112
  export * from './LeadDomainDto';
113
113
  export * from './LeadDto';
114
+ export * from './LeadLeaseToOwnConfigurationPresetsDto';
114
115
  export * from './LeadMessageData';
115
116
  export * from './LeadMessageDto';
116
117
  export * from './LeadStatusDto';
@@ -184,6 +185,7 @@ export * from './SubscriptionDetailsDomainSellerUserDto';
184
185
  export * from './SubscriptionDetailsDto';
185
186
  export * from './SubscriptionDomainDto';
186
187
  export * from './SubscriptionDto';
188
+ export * from './SubscriptionLeaseToOwnConfigurationDto';
187
189
  export * from './SubscriptionListItemBillingPeriodicityDto';
188
190
  export * from './SubscriptionListItemDto';
189
191
  export * from './SubscriptionListItemDtoBuyerInformation';