@randock/nameshift-api-client 0.0.222 → 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 +13 -0
- package/dist/models/CreateManualLeadInput.js +10 -1
- package/dist/models/LeadLeaseToOwnConfigurationPresetsDto.d.ts +41 -0
- package/dist/models/LeadLeaseToOwnConfigurationPresetsDto.js +56 -0
- package/dist/models/SubscriptionDto.d.ts +30 -0
- package/dist/models/SubscriptionDto.js +24 -1
- 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 +20 -1
- package/src/models/LeadLeaseToOwnConfigurationPresetsDto.ts +83 -0
- package/src/models/SubscriptionDto.ts +46 -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
|
|
@@ -65,6 +77,7 @@ export interface CreateManualLeadInput {
|
|
|
65
77
|
export declare const CreateManualLeadInputTypeEnum: {
|
|
66
78
|
readonly BUY_NOW: "buy_now";
|
|
67
79
|
readonly OFFER: "offer";
|
|
80
|
+
readonly LEASE_TO_OWN: "lease_to_own";
|
|
68
81
|
};
|
|
69
82
|
export type CreateManualLeadInputTypeEnum = typeof CreateManualLeadInputTypeEnum[keyof typeof CreateManualLeadInputTypeEnum];
|
|
70
83
|
/**
|
|
@@ -25,7 +25,8 @@ var MoneyInput_1 = require("./MoneyInput");
|
|
|
25
25
|
*/
|
|
26
26
|
exports.CreateManualLeadInputTypeEnum = {
|
|
27
27
|
BUY_NOW: 'buy_now',
|
|
28
|
-
OFFER: 'offer'
|
|
28
|
+
OFFER: 'offer',
|
|
29
|
+
LEASE_TO_OWN: 'lease_to_own'
|
|
29
30
|
};
|
|
30
31
|
/**
|
|
31
32
|
* Check if a given object implements the CreateManualLeadInput interface.
|
|
@@ -45,6 +46,10 @@ function instanceOfCreateManualLeadInput(value) {
|
|
|
45
46
|
return false;
|
|
46
47
|
if (!('offer' in value) || value['offer'] === undefined)
|
|
47
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;
|
|
48
53
|
return true;
|
|
49
54
|
}
|
|
50
55
|
function CreateManualLeadInputFromJSON(json) {
|
|
@@ -62,6 +67,8 @@ function CreateManualLeadInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
67
|
'lastname': json['lastname'],
|
|
63
68
|
'locale': json['locale'],
|
|
64
69
|
'offer': (0, MoneyInput_1.MoneyInputFromJSON)(json['offer']),
|
|
70
|
+
'leaseToOwnMinMonths': json['leaseToOwnMinMonths'],
|
|
71
|
+
'leaseToOwnMaxMonths': json['leaseToOwnMaxMonths'],
|
|
65
72
|
};
|
|
66
73
|
}
|
|
67
74
|
function CreateManualLeadInputToJSON(json) {
|
|
@@ -80,5 +87,7 @@ function CreateManualLeadInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
80
87
|
'lastname': value['lastname'],
|
|
81
88
|
'locale': value['locale'],
|
|
82
89
|
'offer': (0, MoneyInput_1.MoneyInputToJSON)(value['offer']),
|
|
90
|
+
'leaseToOwnMinMonths': value['leaseToOwnMinMonths'],
|
|
91
|
+
'leaseToOwnMaxMonths': value['leaseToOwnMaxMonths'],
|
|
83
92
|
};
|
|
84
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';
|
|
@@ -142,6 +143,24 @@ export interface SubscriptionDto {
|
|
|
142
143
|
* @memberof SubscriptionDto
|
|
143
144
|
*/
|
|
144
145
|
billingPeriodicity: SubscriptionBillingPeriodicityDto;
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @type {boolean}
|
|
149
|
+
* @memberof SubscriptionDto
|
|
150
|
+
*/
|
|
151
|
+
hasLead: boolean;
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @type {string}
|
|
155
|
+
* @memberof SubscriptionDto
|
|
156
|
+
*/
|
|
157
|
+
leadStatus: SubscriptionDtoLeadStatusEnum | null;
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @type {SubscriptionLeaseToOwnConfigurationDto}
|
|
161
|
+
* @memberof SubscriptionDto
|
|
162
|
+
*/
|
|
163
|
+
leaseToOwn: SubscriptionLeaseToOwnConfigurationDto;
|
|
145
164
|
}
|
|
146
165
|
/**
|
|
147
166
|
* @export
|
|
@@ -162,6 +181,17 @@ export declare const SubscriptionDtoTypeEnum: {
|
|
|
162
181
|
readonly LEASE_TO_OWN: "lease_to_own";
|
|
163
182
|
};
|
|
164
183
|
export type SubscriptionDtoTypeEnum = typeof SubscriptionDtoTypeEnum[keyof typeof SubscriptionDtoTypeEnum];
|
|
184
|
+
/**
|
|
185
|
+
* @export
|
|
186
|
+
*/
|
|
187
|
+
export declare const SubscriptionDtoLeadStatusEnum: {
|
|
188
|
+
readonly UNVERIFIED: "unverified";
|
|
189
|
+
readonly ACTIVE: "active";
|
|
190
|
+
readonly ACCEPTED: "accepted";
|
|
191
|
+
readonly FINISHED: "finished";
|
|
192
|
+
readonly CLOSED: "closed";
|
|
193
|
+
};
|
|
194
|
+
export type SubscriptionDtoLeadStatusEnum = typeof SubscriptionDtoLeadStatusEnum[keyof typeof SubscriptionDtoLeadStatusEnum];
|
|
165
195
|
/**
|
|
166
196
|
* Check if a given object implements the SubscriptionDto interface.
|
|
167
197
|
*/
|
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.SubscriptionDtoTypeEnum = exports.SubscriptionDtoStatusEnum = void 0;
|
|
16
|
+
exports.SubscriptionDtoLeadStatusEnum = exports.SubscriptionDtoTypeEnum = exports.SubscriptionDtoStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfSubscriptionDto = instanceOfSubscriptionDto;
|
|
18
18
|
exports.SubscriptionDtoFromJSON = SubscriptionDtoFromJSON;
|
|
19
19
|
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");
|
|
@@ -43,6 +44,16 @@ exports.SubscriptionDtoTypeEnum = {
|
|
|
43
44
|
RENT: 'rent',
|
|
44
45
|
LEASE_TO_OWN: 'lease_to_own'
|
|
45
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
exports.SubscriptionDtoLeadStatusEnum = {
|
|
51
|
+
UNVERIFIED: 'unverified',
|
|
52
|
+
ACTIVE: 'active',
|
|
53
|
+
ACCEPTED: 'accepted',
|
|
54
|
+
FINISHED: 'finished',
|
|
55
|
+
CLOSED: 'closed'
|
|
56
|
+
};
|
|
46
57
|
/**
|
|
47
58
|
* Check if a given object implements the SubscriptionDto interface.
|
|
48
59
|
*/
|
|
@@ -87,6 +98,12 @@ function instanceOfSubscriptionDto(value) {
|
|
|
87
98
|
return false;
|
|
88
99
|
if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined)
|
|
89
100
|
return false;
|
|
101
|
+
if (!('hasLead' in value) || value['hasLead'] === undefined)
|
|
102
|
+
return false;
|
|
103
|
+
if (!('leadStatus' in value) || value['leadStatus'] === undefined)
|
|
104
|
+
return false;
|
|
105
|
+
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined)
|
|
106
|
+
return false;
|
|
90
107
|
return true;
|
|
91
108
|
}
|
|
92
109
|
function SubscriptionDtoFromJSON(json) {
|
|
@@ -117,6 +134,9 @@ function SubscriptionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
117
134
|
'currentInstallment': json['currentInstallment'],
|
|
118
135
|
'expectedInstallmentsNumber': json['expectedInstallmentsNumber'],
|
|
119
136
|
'billingPeriodicity': (0, SubscriptionBillingPeriodicityDto_1.SubscriptionBillingPeriodicityDtoFromJSON)(json['billingPeriodicity']),
|
|
137
|
+
'hasLead': json['hasLead'],
|
|
138
|
+
'leadStatus': json['leadStatus'],
|
|
139
|
+
'leaseToOwn': (0, SubscriptionLeaseToOwnConfigurationDto_1.SubscriptionLeaseToOwnConfigurationDtoFromJSON)(json['leaseToOwn']),
|
|
120
140
|
};
|
|
121
141
|
}
|
|
122
142
|
function SubscriptionDtoToJSON(json) {
|
|
@@ -148,5 +168,8 @@ function SubscriptionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
148
168
|
'currentInstallment': value['currentInstallment'],
|
|
149
169
|
'expectedInstallmentsNumber': value['expectedInstallmentsNumber'],
|
|
150
170
|
'billingPeriodicity': (0, SubscriptionBillingPeriodicityDto_1.SubscriptionBillingPeriodicityDtoToJSON)(value['billingPeriodicity']),
|
|
171
|
+
'hasLead': value['hasLead'],
|
|
172
|
+
'leadStatus': value['leadStatus'],
|
|
173
|
+
'leaseToOwn': (0, SubscriptionLeaseToOwnConfigurationDto_1.SubscriptionLeaseToOwnConfigurationDtoToJSON)(value['leaseToOwn']),
|
|
151
174
|
};
|
|
152
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
|
|
|
@@ -77,7 +89,8 @@ export interface CreateManualLeadInput {
|
|
|
77
89
|
*/
|
|
78
90
|
export const CreateManualLeadInputTypeEnum = {
|
|
79
91
|
BUY_NOW: 'buy_now',
|
|
80
|
-
OFFER: 'offer'
|
|
92
|
+
OFFER: 'offer',
|
|
93
|
+
LEASE_TO_OWN: 'lease_to_own'
|
|
81
94
|
} as const;
|
|
82
95
|
export type CreateManualLeadInputTypeEnum = typeof CreateManualLeadInputTypeEnum[keyof typeof CreateManualLeadInputTypeEnum];
|
|
83
96
|
|
|
@@ -93,6 +106,8 @@ export function instanceOfCreateManualLeadInput(value: object): value is CreateM
|
|
|
93
106
|
if (!('lastname' in value) || value['lastname'] === undefined) return false;
|
|
94
107
|
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
95
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;
|
|
96
111
|
return true;
|
|
97
112
|
}
|
|
98
113
|
|
|
@@ -113,6 +128,8 @@ export function CreateManualLeadInputFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
113
128
|
'lastname': json['lastname'],
|
|
114
129
|
'locale': json['locale'],
|
|
115
130
|
'offer': MoneyInputFromJSON(json['offer']),
|
|
131
|
+
'leaseToOwnMinMonths': json['leaseToOwnMinMonths'],
|
|
132
|
+
'leaseToOwnMaxMonths': json['leaseToOwnMaxMonths'],
|
|
116
133
|
};
|
|
117
134
|
}
|
|
118
135
|
|
|
@@ -134,6 +151,8 @@ export function CreateManualLeadInputToJSONTyped(value?: CreateManualLeadInput |
|
|
|
134
151
|
'lastname': value['lastname'],
|
|
135
152
|
'locale': value['locale'],
|
|
136
153
|
'offer': MoneyInputToJSON(value['offer']),
|
|
154
|
+
'leaseToOwnMinMonths': value['leaseToOwnMinMonths'],
|
|
155
|
+
'leaseToOwnMaxMonths': value['leaseToOwnMaxMonths'],
|
|
137
156
|
};
|
|
138
157
|
}
|
|
139
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,
|
|
@@ -189,6 +196,24 @@ export interface SubscriptionDto {
|
|
|
189
196
|
* @memberof SubscriptionDto
|
|
190
197
|
*/
|
|
191
198
|
billingPeriodicity: SubscriptionBillingPeriodicityDto;
|
|
199
|
+
/**
|
|
200
|
+
*
|
|
201
|
+
* @type {boolean}
|
|
202
|
+
* @memberof SubscriptionDto
|
|
203
|
+
*/
|
|
204
|
+
hasLead: boolean;
|
|
205
|
+
/**
|
|
206
|
+
*
|
|
207
|
+
* @type {string}
|
|
208
|
+
* @memberof SubscriptionDto
|
|
209
|
+
*/
|
|
210
|
+
leadStatus: SubscriptionDtoLeadStatusEnum | null;
|
|
211
|
+
/**
|
|
212
|
+
*
|
|
213
|
+
* @type {SubscriptionLeaseToOwnConfigurationDto}
|
|
214
|
+
* @memberof SubscriptionDto
|
|
215
|
+
*/
|
|
216
|
+
leaseToOwn: SubscriptionLeaseToOwnConfigurationDto;
|
|
192
217
|
}
|
|
193
218
|
|
|
194
219
|
|
|
@@ -213,6 +238,18 @@ export const SubscriptionDtoTypeEnum = {
|
|
|
213
238
|
} as const;
|
|
214
239
|
export type SubscriptionDtoTypeEnum = typeof SubscriptionDtoTypeEnum[keyof typeof SubscriptionDtoTypeEnum];
|
|
215
240
|
|
|
241
|
+
/**
|
|
242
|
+
* @export
|
|
243
|
+
*/
|
|
244
|
+
export const SubscriptionDtoLeadStatusEnum = {
|
|
245
|
+
UNVERIFIED: 'unverified',
|
|
246
|
+
ACTIVE: 'active',
|
|
247
|
+
ACCEPTED: 'accepted',
|
|
248
|
+
FINISHED: 'finished',
|
|
249
|
+
CLOSED: 'closed'
|
|
250
|
+
} as const;
|
|
251
|
+
export type SubscriptionDtoLeadStatusEnum = typeof SubscriptionDtoLeadStatusEnum[keyof typeof SubscriptionDtoLeadStatusEnum];
|
|
252
|
+
|
|
216
253
|
|
|
217
254
|
/**
|
|
218
255
|
* Check if a given object implements the SubscriptionDto interface.
|
|
@@ -238,6 +275,9 @@ export function instanceOfSubscriptionDto(value: object): value is SubscriptionD
|
|
|
238
275
|
if (!('currentInstallment' in value) || value['currentInstallment'] === undefined) return false;
|
|
239
276
|
if (!('expectedInstallmentsNumber' in value) || value['expectedInstallmentsNumber'] === undefined) return false;
|
|
240
277
|
if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined) return false;
|
|
278
|
+
if (!('hasLead' in value) || value['hasLead'] === undefined) return false;
|
|
279
|
+
if (!('leadStatus' in value) || value['leadStatus'] === undefined) return false;
|
|
280
|
+
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
241
281
|
return true;
|
|
242
282
|
}
|
|
243
283
|
|
|
@@ -271,6 +311,9 @@ export function SubscriptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
271
311
|
'currentInstallment': json['currentInstallment'],
|
|
272
312
|
'expectedInstallmentsNumber': json['expectedInstallmentsNumber'],
|
|
273
313
|
'billingPeriodicity': SubscriptionBillingPeriodicityDtoFromJSON(json['billingPeriodicity']),
|
|
314
|
+
'hasLead': json['hasLead'],
|
|
315
|
+
'leadStatus': json['leadStatus'],
|
|
316
|
+
'leaseToOwn': SubscriptionLeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
|
|
274
317
|
};
|
|
275
318
|
}
|
|
276
319
|
|
|
@@ -305,6 +348,9 @@ export function SubscriptionDtoToJSONTyped(value?: SubscriptionDto | null, ignor
|
|
|
305
348
|
'currentInstallment': value['currentInstallment'],
|
|
306
349
|
'expectedInstallmentsNumber': value['expectedInstallmentsNumber'],
|
|
307
350
|
'billingPeriodicity': SubscriptionBillingPeriodicityDtoToJSON(value['billingPeriodicity']),
|
|
351
|
+
'hasLead': value['hasLead'],
|
|
352
|
+
'leadStatus': value['leadStatus'],
|
|
353
|
+
'leaseToOwn': SubscriptionLeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
|
|
308
354
|
};
|
|
309
355
|
}
|
|
310
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';
|