@randock/nameshift-api-client 0.0.223 → 0.0.224
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -0
- package/README.md +3 -3
- package/dist/apis/LeadsApi.d.ts +12 -1
- package/dist/apis/LeadsApi.js +54 -0
- package/dist/models/CreateManualLeadInput.d.ts +12 -0
- package/dist/models/CreateManualLeadInput.js +8 -0
- package/dist/models/LeadLeaseToOwnConfigurationPresetsDto.d.ts +41 -0
- package/dist/models/LeadLeaseToOwnConfigurationPresetsDto.js +56 -0
- package/dist/models/SubscriptionDto.d.ts +7 -0
- package/dist/models/SubscriptionDto.js +5 -0
- package/dist/models/SubscriptionLeaseToOwnConfigurationDto.d.ts +51 -0
- package/dist/models/SubscriptionLeaseToOwnConfigurationDto.js +64 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/LeadsApi.ts +45 -0
- package/src/models/CreateManualLeadInput.ts +18 -0
- package/src/models/LeadLeaseToOwnConfigurationPresetsDto.ts +83 -0
- package/src/models/SubscriptionDto.ts +16 -0
- package/src/models/SubscriptionLeaseToOwnConfigurationDto.ts +101 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -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.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.224
|
|
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.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.224 --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
|
-
|
|
47
|
+
c91ec71f7baab9af3a48158545c0518a1b790a262f568c52b343e069750048683326d34e9122df5f169a7424b3dfa691
|
package/dist/apis/LeadsApi.d.ts
CHANGED
|
@@ -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
|
*/
|
package/dist/apis/LeadsApi.js
CHANGED
|
@@ -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
|
}
|
|
@@ -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
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/models/index.js
CHANGED
|
@@ -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
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -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
|
|
|
@@ -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
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -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';
|