@randock/nameshift-api-client 0.0.331 → 0.0.333
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 +20 -0
- package/README.md +3 -3
- package/dist/apis/AccountsPublicApi.d.ts +1 -0
- package/dist/apis/AccountsPublicApi.js +3 -0
- package/dist/apis/AuctionsPublicApi.d.ts +29 -0
- package/dist/apis/AuctionsPublicApi.js +124 -0
- package/dist/apis/BuyersApi.d.ts +54 -1
- package/dist/apis/BuyersApi.js +267 -0
- package/dist/apis/BuyersPublicApi.d.ts +23 -1
- package/dist/apis/BuyersPublicApi.js +90 -0
- package/dist/apis/DomainsApi.d.ts +13 -1
- package/dist/apis/DomainsApi.js +56 -0
- package/dist/apis/LeadsApi.d.ts +2 -5
- package/dist/apis/LeadsApi.js +4 -8
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AuctionBidDto.d.ts +51 -0
- package/dist/models/AuctionBidDto.js +64 -0
- package/dist/models/AuctionBidInput.d.ts +32 -0
- package/dist/models/AuctionBidInput.js +51 -0
- package/dist/models/AuctionBuyerDto.d.ts +74 -0
- package/dist/models/AuctionBuyerDto.js +79 -0
- package/dist/models/AuctionBuyerWithTokenDto.d.ts +39 -0
- package/dist/models/AuctionBuyerWithTokenDto.js +56 -0
- package/dist/models/AuctionDto.d.ts +82 -0
- package/dist/models/AuctionDto.js +85 -0
- package/dist/models/BuyerLeadListItemDto.d.ts +23 -0
- package/dist/models/BuyerLeadListItemDto.js +19 -1
- package/dist/models/DomainAuctionDto.d.ts +63 -0
- package/dist/models/DomainAuctionDto.js +72 -0
- package/dist/models/DomainSalesInformationDto.d.ts +12 -0
- package/dist/models/DomainSalesInformationDto.js +8 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +5 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +5 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +5 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +36 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +28 -1
- package/dist/models/LeadDto.d.ts +43 -0
- package/dist/models/LeadDto.js +33 -1
- package/dist/models/LeadLeaseToOwnConfigurationDto.d.ts +50 -0
- package/dist/models/LeadLeaseToOwnConfigurationDto.js +63 -0
- package/dist/models/LeadMessageData.d.ts +7 -0
- package/dist/models/LeadMessageData.js +5 -0
- package/dist/models/LeadMessageDataLeaseToOwn.d.ts +38 -0
- package/dist/models/LeadMessageDataLeaseToOwn.js +55 -0
- package/dist/models/LeadMessageDto.d.ts +16 -0
- package/dist/models/LeadMessageDto.js +14 -1
- package/dist/models/LeadOfferDto.d.ts +72 -0
- package/dist/models/LeadOfferDto.js +84 -0
- package/dist/models/LeadRentConfigurationDto.d.ts +38 -0
- package/dist/models/LeadRentConfigurationDto.js +55 -0
- package/dist/models/ListLeadsResultItem.d.ts +43 -0
- package/dist/models/ListLeadsResultItem.js +33 -1
- package/dist/models/ManualLeadLeaseToOwnDto.d.ts +12 -0
- package/dist/models/ManualLeadLeaseToOwnDto.js +8 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- package/dist/models/PutBuyerLeadOfferInput.d.ts +22 -0
- package/dist/models/PutBuyerLeadOfferInput.js +14 -0
- package/dist/models/PutLeadOfferInput.d.ts +23 -1
- package/dist/models/PutLeadOfferInput.js +15 -3
- package/dist/models/RegisterAuctionBuyerPhoneInput.d.ts +47 -0
- package/dist/models/RegisterAuctionBuyerPhoneInput.js +64 -0
- package/dist/models/RegisterInput.d.ts +38 -0
- package/dist/models/RegisterInput.js +55 -0
- package/dist/models/RequestEmailOtpInput.d.ts +38 -0
- package/dist/models/RequestEmailOtpInput.js +55 -0
- package/dist/models/SellerLeadDetails.d.ts +43 -0
- package/dist/models/SellerLeadDetails.js +33 -1
- package/dist/models/StartAuctionInput.d.ts +51 -0
- package/dist/models/StartAuctionInput.js +62 -0
- package/dist/models/TaskListLeadDto.d.ts +43 -0
- package/dist/models/TaskListLeadDto.js +33 -1
- package/dist/models/TaskListLeadLeaseToOwnConfigurationDto.d.ts +50 -0
- package/dist/models/TaskListLeadLeaseToOwnConfigurationDto.js +63 -0
- package/dist/models/TaskListLeadOfferDto.d.ts +72 -0
- package/dist/models/TaskListLeadOfferDto.js +84 -0
- package/dist/models/TaskListLeadRentConfigurationDto.d.ts +38 -0
- package/dist/models/TaskListLeadRentConfigurationDto.js +55 -0
- package/dist/models/VerifyEmailOtpInput.d.ts +38 -0
- package/dist/models/VerifyEmailOtpInput.js +55 -0
- package/dist/models/VerifyPhoneOtpInput.d.ts +32 -0
- package/dist/models/VerifyPhoneOtpInput.js +51 -0
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.js +19 -0
- package/package.json +1 -1
- package/src/apis/AccountsPublicApi.ts +5 -0
- package/src/apis/AuctionsPublicApi.ts +67 -0
- package/src/apis/BuyersApi.ts +249 -0
- package/src/apis/BuyersPublicApi.ts +88 -0
- package/src/apis/DomainsApi.ts +58 -0
- package/src/apis/LeadsApi.ts +3 -11
- package/src/apis/index.ts +1 -0
- package/src/models/AuctionBidDto.ts +101 -0
- package/src/models/AuctionBidInput.ts +66 -0
- package/src/models/AuctionBuyerDto.ts +129 -0
- package/src/models/AuctionBuyerWithTokenDto.ts +83 -0
- package/src/models/AuctionDto.ts +153 -0
- package/src/models/BuyerLeadListItemDto.ts +36 -0
- package/src/models/DomainAuctionDto.ts +119 -0
- package/src/models/DomainSalesInformationDto.ts +18 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +16 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +16 -0
- package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +16 -0
- package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +61 -0
- package/src/models/LeadDto.ts +77 -0
- package/src/models/LeadLeaseToOwnConfigurationDto.ts +93 -0
- package/src/models/LeadMessageData.ts +16 -0
- package/src/models/LeadMessageDataLeaseToOwn.ts +75 -0
- package/src/models/LeadMessageDto.ts +20 -0
- package/src/models/LeadOfferDto.ts +132 -0
- package/src/models/LeadRentConfigurationDto.ts +75 -0
- package/src/models/ListLeadsResultItem.ts +77 -0
- package/src/models/ManualLeadLeaseToOwnDto.ts +18 -0
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/PutBuyerLeadOfferInput.ts +29 -0
- package/src/models/PutLeadOfferInput.ts +31 -3
- package/src/models/RegisterAuctionBuyerPhoneInput.ts +87 -0
- package/src/models/RegisterInput.ts +75 -0
- package/src/models/RequestEmailOtpInput.ts +75 -0
- package/src/models/SellerLeadDetails.ts +77 -0
- package/src/models/StartAuctionInput.ts +100 -0
- package/src/models/TaskListLeadDto.ts +77 -0
- package/src/models/TaskListLeadLeaseToOwnConfigurationDto.ts +93 -0
- package/src/models/TaskListLeadOfferDto.ts +132 -0
- package/src/models/TaskListLeadRentConfigurationDto.ts +75 -0
- package/src/models/VerifyEmailOtpInput.ts +75 -0
- package/src/models/VerifyPhoneOtpInput.ts +66 -0
- package/src/models/index.ts +19 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RequestEmailOtpInput
|
|
16
|
+
*/
|
|
17
|
+
export interface RequestEmailOtpInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RequestEmailOtpInput
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RequestEmailOtpInput
|
|
28
|
+
*/
|
|
29
|
+
locale: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the RequestEmailOtpInput interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfRequestEmailOtpInput(value: object): value is RequestEmailOtpInput;
|
|
35
|
+
export declare function RequestEmailOtpInputFromJSON(json: any): RequestEmailOtpInput;
|
|
36
|
+
export declare function RequestEmailOtpInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestEmailOtpInput;
|
|
37
|
+
export declare function RequestEmailOtpInputToJSON(json: any): RequestEmailOtpInput;
|
|
38
|
+
export declare function RequestEmailOtpInputToJSONTyped(value?: RequestEmailOtpInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfRequestEmailOtpInput = instanceOfRequestEmailOtpInput;
|
|
17
|
+
exports.RequestEmailOtpInputFromJSON = RequestEmailOtpInputFromJSON;
|
|
18
|
+
exports.RequestEmailOtpInputFromJSONTyped = RequestEmailOtpInputFromJSONTyped;
|
|
19
|
+
exports.RequestEmailOtpInputToJSON = RequestEmailOtpInputToJSON;
|
|
20
|
+
exports.RequestEmailOtpInputToJSONTyped = RequestEmailOtpInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RequestEmailOtpInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRequestEmailOtpInput(value) {
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('locale' in value) || value['locale'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function RequestEmailOtpInputFromJSON(json) {
|
|
32
|
+
return RequestEmailOtpInputFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function RequestEmailOtpInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'email': json['email'],
|
|
40
|
+
'locale': json['locale'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function RequestEmailOtpInputToJSON(json) {
|
|
44
|
+
return RequestEmailOtpInputToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function RequestEmailOtpInputToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'email': value['email'],
|
|
53
|
+
'locale': value['locale'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -9,9 +9,12 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { LeadLeaseToOwnConfigurationDto } from './LeadLeaseToOwnConfigurationDto';
|
|
12
13
|
import type { IntersectionDomainDtoWithAccountDto } from './IntersectionDomainDtoWithAccountDto';
|
|
13
14
|
import type { MoneyDto } from './MoneyDto';
|
|
14
15
|
import type { BuyerDto } from './BuyerDto';
|
|
16
|
+
import type { LeadRentConfigurationDto } from './LeadRentConfigurationDto';
|
|
17
|
+
import type { LeadOfferDto } from './LeadOfferDto';
|
|
15
18
|
/**
|
|
16
19
|
*
|
|
17
20
|
* @export
|
|
@@ -42,6 +45,12 @@ export interface SellerLeadDetails {
|
|
|
42
45
|
* @memberof SellerLeadDetails
|
|
43
46
|
*/
|
|
44
47
|
lastOfferBy: SellerLeadDetailsLastOfferByEnum | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof SellerLeadDetails
|
|
52
|
+
*/
|
|
53
|
+
lastOfferType: SellerLeadDetailsLastOfferTypeEnum | null;
|
|
45
54
|
/**
|
|
46
55
|
*
|
|
47
56
|
* @type {IntersectionDomainDtoWithAccountDto}
|
|
@@ -114,6 +123,30 @@ export interface SellerLeadDetails {
|
|
|
114
123
|
* @memberof SellerLeadDetails
|
|
115
124
|
*/
|
|
116
125
|
isPriceNegotiatorAgentPaused: boolean;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {LeadLeaseToOwnConfigurationDto}
|
|
129
|
+
* @memberof SellerLeadDetails
|
|
130
|
+
*/
|
|
131
|
+
leaseToOwn: LeadLeaseToOwnConfigurationDto | null;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {LeadRentConfigurationDto}
|
|
135
|
+
* @memberof SellerLeadDetails
|
|
136
|
+
*/
|
|
137
|
+
rent: LeadRentConfigurationDto;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {LeadOfferDto}
|
|
141
|
+
* @memberof SellerLeadDetails
|
|
142
|
+
*/
|
|
143
|
+
lastBuyerOffer: LeadOfferDto | null;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {LeadOfferDto}
|
|
147
|
+
* @memberof SellerLeadDetails
|
|
148
|
+
*/
|
|
149
|
+
lastSellerOffer: LeadOfferDto | null;
|
|
117
150
|
}
|
|
118
151
|
/**
|
|
119
152
|
* @export
|
|
@@ -136,6 +169,16 @@ export declare const SellerLeadDetailsLastOfferByEnum: {
|
|
|
136
169
|
readonly ADMIN: "admin";
|
|
137
170
|
};
|
|
138
171
|
export type SellerLeadDetailsLastOfferByEnum = typeof SellerLeadDetailsLastOfferByEnum[keyof typeof SellerLeadDetailsLastOfferByEnum];
|
|
172
|
+
/**
|
|
173
|
+
* @export
|
|
174
|
+
*/
|
|
175
|
+
export declare const SellerLeadDetailsLastOfferTypeEnum: {
|
|
176
|
+
readonly LEAD: "lead";
|
|
177
|
+
readonly LEASE_TO_OWN: "lease_to_own";
|
|
178
|
+
readonly RENT: "rent";
|
|
179
|
+
readonly AUCTION: "auction";
|
|
180
|
+
};
|
|
181
|
+
export type SellerLeadDetailsLastOfferTypeEnum = typeof SellerLeadDetailsLastOfferTypeEnum[keyof typeof SellerLeadDetailsLastOfferTypeEnum];
|
|
139
182
|
/**
|
|
140
183
|
* @export
|
|
141
184
|
*/
|
|
@@ -13,15 +13,18 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.SellerLeadDetailsManualTypeEnum = exports.SellerLeadDetailsLastOfferByEnum = exports.SellerLeadDetailsStatusEnum = void 0;
|
|
16
|
+
exports.SellerLeadDetailsManualTypeEnum = exports.SellerLeadDetailsLastOfferTypeEnum = exports.SellerLeadDetailsLastOfferByEnum = exports.SellerLeadDetailsStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfSellerLeadDetails = instanceOfSellerLeadDetails;
|
|
18
18
|
exports.SellerLeadDetailsFromJSON = SellerLeadDetailsFromJSON;
|
|
19
19
|
exports.SellerLeadDetailsFromJSONTyped = SellerLeadDetailsFromJSONTyped;
|
|
20
20
|
exports.SellerLeadDetailsToJSON = SellerLeadDetailsToJSON;
|
|
21
21
|
exports.SellerLeadDetailsToJSONTyped = SellerLeadDetailsToJSONTyped;
|
|
22
|
+
var LeadLeaseToOwnConfigurationDto_1 = require("./LeadLeaseToOwnConfigurationDto");
|
|
22
23
|
var IntersectionDomainDtoWithAccountDto_1 = require("./IntersectionDomainDtoWithAccountDto");
|
|
23
24
|
var MoneyDto_1 = require("./MoneyDto");
|
|
24
25
|
var BuyerDto_1 = require("./BuyerDto");
|
|
26
|
+
var LeadRentConfigurationDto_1 = require("./LeadRentConfigurationDto");
|
|
27
|
+
var LeadOfferDto_1 = require("./LeadOfferDto");
|
|
25
28
|
/**
|
|
26
29
|
* @export
|
|
27
30
|
*/
|
|
@@ -41,6 +44,15 @@ exports.SellerLeadDetailsLastOfferByEnum = {
|
|
|
41
44
|
AI: 'ai',
|
|
42
45
|
ADMIN: 'admin'
|
|
43
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
exports.SellerLeadDetailsLastOfferTypeEnum = {
|
|
51
|
+
LEAD: 'lead',
|
|
52
|
+
LEASE_TO_OWN: 'lease_to_own',
|
|
53
|
+
RENT: 'rent',
|
|
54
|
+
AUCTION: 'auction'
|
|
55
|
+
};
|
|
44
56
|
/**
|
|
45
57
|
* @export
|
|
46
58
|
*/
|
|
@@ -62,6 +74,8 @@ function instanceOfSellerLeadDetails(value) {
|
|
|
62
74
|
return false;
|
|
63
75
|
if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined)
|
|
64
76
|
return false;
|
|
77
|
+
if (!('lastOfferType' in value) || value['lastOfferType'] === undefined)
|
|
78
|
+
return false;
|
|
65
79
|
if (!('domain' in value) || value['domain'] === undefined)
|
|
66
80
|
return false;
|
|
67
81
|
if (!('manualType' in value) || value['manualType'] === undefined)
|
|
@@ -86,6 +100,14 @@ function instanceOfSellerLeadDetails(value) {
|
|
|
86
100
|
return false;
|
|
87
101
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined)
|
|
88
102
|
return false;
|
|
103
|
+
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined)
|
|
104
|
+
return false;
|
|
105
|
+
if (!('rent' in value) || value['rent'] === undefined)
|
|
106
|
+
return false;
|
|
107
|
+
if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined)
|
|
108
|
+
return false;
|
|
109
|
+
if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined)
|
|
110
|
+
return false;
|
|
89
111
|
return true;
|
|
90
112
|
}
|
|
91
113
|
function SellerLeadDetailsFromJSON(json) {
|
|
@@ -100,6 +122,7 @@ function SellerLeadDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
100
122
|
'status': json['status'],
|
|
101
123
|
'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
|
|
102
124
|
'lastOfferBy': json['lastOfferBy'],
|
|
125
|
+
'lastOfferType': json['lastOfferType'],
|
|
103
126
|
'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoFromJSON)(json['domain']),
|
|
104
127
|
'manualType': json['manualType'],
|
|
105
128
|
'buyer': (0, BuyerDto_1.BuyerDtoFromJSON)(json['buyer']),
|
|
@@ -112,6 +135,10 @@ function SellerLeadDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
112
135
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
113
136
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
114
137
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
138
|
+
'leaseToOwn': (0, LeadLeaseToOwnConfigurationDto_1.LeadLeaseToOwnConfigurationDtoFromJSON)(json['leaseToOwn']),
|
|
139
|
+
'rent': (0, LeadRentConfigurationDto_1.LeadRentConfigurationDtoFromJSON)(json['rent']),
|
|
140
|
+
'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastBuyerOffer']),
|
|
141
|
+
'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastSellerOffer']),
|
|
115
142
|
};
|
|
116
143
|
}
|
|
117
144
|
function SellerLeadDetailsToJSON(json) {
|
|
@@ -127,6 +154,7 @@ function SellerLeadDetailsToJSONTyped(value, ignoreDiscriminator) {
|
|
|
127
154
|
'status': value['status'],
|
|
128
155
|
'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
|
|
129
156
|
'lastOfferBy': value['lastOfferBy'],
|
|
157
|
+
'lastOfferType': value['lastOfferType'],
|
|
130
158
|
'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoToJSON)(value['domain']),
|
|
131
159
|
'manualType': value['manualType'],
|
|
132
160
|
'buyer': (0, BuyerDto_1.BuyerDtoToJSON)(value['buyer']),
|
|
@@ -139,5 +167,9 @@ function SellerLeadDetailsToJSONTyped(value, ignoreDiscriminator) {
|
|
|
139
167
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
140
168
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
141
169
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
170
|
+
'leaseToOwn': (0, LeadLeaseToOwnConfigurationDto_1.LeadLeaseToOwnConfigurationDtoToJSON)(value['leaseToOwn']),
|
|
171
|
+
'rent': (0, LeadRentConfigurationDto_1.LeadRentConfigurationDtoToJSON)(value['rent']),
|
|
172
|
+
'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastBuyerOffer']),
|
|
173
|
+
'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastSellerOffer']),
|
|
142
174
|
};
|
|
143
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 { MoneyInput } from './MoneyInput';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface StartAuctionInput
|
|
17
|
+
*/
|
|
18
|
+
export interface StartAuctionInput {
|
|
19
|
+
/**
|
|
20
|
+
* Minimum bid amount
|
|
21
|
+
* @type {MoneyInput}
|
|
22
|
+
* @memberof StartAuctionInput
|
|
23
|
+
*/
|
|
24
|
+
minimumBid: MoneyInput;
|
|
25
|
+
/**
|
|
26
|
+
* Reserve price (optional)
|
|
27
|
+
* @type {MoneyInput}
|
|
28
|
+
* @memberof StartAuctionInput
|
|
29
|
+
*/
|
|
30
|
+
reservePrice?: MoneyInput;
|
|
31
|
+
/**
|
|
32
|
+
* Auction start date
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof StartAuctionInput
|
|
35
|
+
*/
|
|
36
|
+
startDate: string;
|
|
37
|
+
/**
|
|
38
|
+
* Auction end date
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof StartAuctionInput
|
|
41
|
+
*/
|
|
42
|
+
endDate: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the StartAuctionInput interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfStartAuctionInput(value: object): value is StartAuctionInput;
|
|
48
|
+
export declare function StartAuctionInputFromJSON(json: any): StartAuctionInput;
|
|
49
|
+
export declare function StartAuctionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartAuctionInput;
|
|
50
|
+
export declare function StartAuctionInputToJSON(json: any): StartAuctionInput;
|
|
51
|
+
export declare function StartAuctionInputToJSONTyped(value?: StartAuctionInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfStartAuctionInput = instanceOfStartAuctionInput;
|
|
17
|
+
exports.StartAuctionInputFromJSON = StartAuctionInputFromJSON;
|
|
18
|
+
exports.StartAuctionInputFromJSONTyped = StartAuctionInputFromJSONTyped;
|
|
19
|
+
exports.StartAuctionInputToJSON = StartAuctionInputToJSON;
|
|
20
|
+
exports.StartAuctionInputToJSONTyped = StartAuctionInputToJSONTyped;
|
|
21
|
+
var MoneyInput_1 = require("./MoneyInput");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the StartAuctionInput interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfStartAuctionInput(value) {
|
|
26
|
+
if (!('minimumBid' in value) || value['minimumBid'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('startDate' in value) || value['startDate'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('endDate' in value) || value['endDate'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function StartAuctionInputFromJSON(json) {
|
|
35
|
+
return StartAuctionInputFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function StartAuctionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'minimumBid': (0, MoneyInput_1.MoneyInputFromJSON)(json['minimumBid']),
|
|
43
|
+
'reservePrice': json['reservePrice'] == null ? undefined : (0, MoneyInput_1.MoneyInputFromJSON)(json['reservePrice']),
|
|
44
|
+
'startDate': json['startDate'],
|
|
45
|
+
'endDate': json['endDate'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function StartAuctionInputToJSON(json) {
|
|
49
|
+
return StartAuctionInputToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function StartAuctionInputToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'minimumBid': (0, MoneyInput_1.MoneyInputToJSON)(value['minimumBid']),
|
|
58
|
+
'reservePrice': (0, MoneyInput_1.MoneyInputToJSON)(value['reservePrice']),
|
|
59
|
+
'startDate': value['startDate'],
|
|
60
|
+
'endDate': value['endDate'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -9,7 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { TaskListLeadLeaseToOwnConfigurationDto } from './TaskListLeadLeaseToOwnConfigurationDto';
|
|
13
|
+
import type { TaskListLeadOfferDto } from './TaskListLeadOfferDto';
|
|
12
14
|
import type { MoneyDto } from './MoneyDto';
|
|
15
|
+
import type { TaskListLeadRentConfigurationDto } from './TaskListLeadRentConfigurationDto';
|
|
13
16
|
/**
|
|
14
17
|
*
|
|
15
18
|
* @export
|
|
@@ -34,12 +37,42 @@ export interface TaskListLeadDto {
|
|
|
34
37
|
* @memberof TaskListLeadDto
|
|
35
38
|
*/
|
|
36
39
|
lastOfferBy: TaskListLeadDtoLastOfferByEnum | null;
|
|
40
|
+
/**
|
|
41
|
+
* Last offer type or null
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof TaskListLeadDto
|
|
44
|
+
*/
|
|
45
|
+
lastOfferType: TaskListLeadDtoLastOfferTypeEnum | null;
|
|
37
46
|
/**
|
|
38
47
|
* Seller unread messages
|
|
39
48
|
* @type {number}
|
|
40
49
|
* @memberof TaskListLeadDto
|
|
41
50
|
*/
|
|
42
51
|
unreadSellerMessagesNumber: number;
|
|
52
|
+
/**
|
|
53
|
+
* Last buyer offer or null
|
|
54
|
+
* @type {TaskListLeadOfferDto}
|
|
55
|
+
* @memberof TaskListLeadDto
|
|
56
|
+
*/
|
|
57
|
+
lastBuyerOffer: TaskListLeadOfferDto | null;
|
|
58
|
+
/**
|
|
59
|
+
* Last seller offer or null
|
|
60
|
+
* @type {TaskListLeadOfferDto}
|
|
61
|
+
* @memberof TaskListLeadDto
|
|
62
|
+
*/
|
|
63
|
+
lastSellerOffer: TaskListLeadOfferDto | null;
|
|
64
|
+
/**
|
|
65
|
+
* Lease to own configuration or null
|
|
66
|
+
* @type {TaskListLeadLeaseToOwnConfigurationDto}
|
|
67
|
+
* @memberof TaskListLeadDto
|
|
68
|
+
*/
|
|
69
|
+
leaseToOwn: TaskListLeadLeaseToOwnConfigurationDto | null;
|
|
70
|
+
/**
|
|
71
|
+
* Rent configuration
|
|
72
|
+
* @type {TaskListLeadRentConfigurationDto}
|
|
73
|
+
* @memberof TaskListLeadDto
|
|
74
|
+
*/
|
|
75
|
+
rent: TaskListLeadRentConfigurationDto;
|
|
43
76
|
}
|
|
44
77
|
/**
|
|
45
78
|
* @export
|
|
@@ -51,6 +84,16 @@ export declare const TaskListLeadDtoLastOfferByEnum: {
|
|
|
51
84
|
readonly ADMIN: "admin";
|
|
52
85
|
};
|
|
53
86
|
export type TaskListLeadDtoLastOfferByEnum = typeof TaskListLeadDtoLastOfferByEnum[keyof typeof TaskListLeadDtoLastOfferByEnum];
|
|
87
|
+
/**
|
|
88
|
+
* @export
|
|
89
|
+
*/
|
|
90
|
+
export declare const TaskListLeadDtoLastOfferTypeEnum: {
|
|
91
|
+
readonly LEAD: "lead";
|
|
92
|
+
readonly LEASE_TO_OWN: "lease_to_own";
|
|
93
|
+
readonly RENT: "rent";
|
|
94
|
+
readonly AUCTION: "auction";
|
|
95
|
+
};
|
|
96
|
+
export type TaskListLeadDtoLastOfferTypeEnum = typeof TaskListLeadDtoLastOfferTypeEnum[keyof typeof TaskListLeadDtoLastOfferTypeEnum];
|
|
54
97
|
/**
|
|
55
98
|
* Check if a given object implements the TaskListLeadDto interface.
|
|
56
99
|
*/
|
|
@@ -13,13 +13,16 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.TaskListLeadDtoLastOfferByEnum = void 0;
|
|
16
|
+
exports.TaskListLeadDtoLastOfferTypeEnum = exports.TaskListLeadDtoLastOfferByEnum = void 0;
|
|
17
17
|
exports.instanceOfTaskListLeadDto = instanceOfTaskListLeadDto;
|
|
18
18
|
exports.TaskListLeadDtoFromJSON = TaskListLeadDtoFromJSON;
|
|
19
19
|
exports.TaskListLeadDtoFromJSONTyped = TaskListLeadDtoFromJSONTyped;
|
|
20
20
|
exports.TaskListLeadDtoToJSON = TaskListLeadDtoToJSON;
|
|
21
21
|
exports.TaskListLeadDtoToJSONTyped = TaskListLeadDtoToJSONTyped;
|
|
22
|
+
var TaskListLeadLeaseToOwnConfigurationDto_1 = require("./TaskListLeadLeaseToOwnConfigurationDto");
|
|
23
|
+
var TaskListLeadOfferDto_1 = require("./TaskListLeadOfferDto");
|
|
22
24
|
var MoneyDto_1 = require("./MoneyDto");
|
|
25
|
+
var TaskListLeadRentConfigurationDto_1 = require("./TaskListLeadRentConfigurationDto");
|
|
23
26
|
/**
|
|
24
27
|
* @export
|
|
25
28
|
*/
|
|
@@ -29,6 +32,15 @@ exports.TaskListLeadDtoLastOfferByEnum = {
|
|
|
29
32
|
AI: 'ai',
|
|
30
33
|
ADMIN: 'admin'
|
|
31
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
38
|
+
exports.TaskListLeadDtoLastOfferTypeEnum = {
|
|
39
|
+
LEAD: 'lead',
|
|
40
|
+
LEASE_TO_OWN: 'lease_to_own',
|
|
41
|
+
RENT: 'rent',
|
|
42
|
+
AUCTION: 'auction'
|
|
43
|
+
};
|
|
32
44
|
/**
|
|
33
45
|
* Check if a given object implements the TaskListLeadDto interface.
|
|
34
46
|
*/
|
|
@@ -39,8 +51,18 @@ function instanceOfTaskListLeadDto(value) {
|
|
|
39
51
|
return false;
|
|
40
52
|
if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined)
|
|
41
53
|
return false;
|
|
54
|
+
if (!('lastOfferType' in value) || value['lastOfferType'] === undefined)
|
|
55
|
+
return false;
|
|
42
56
|
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined)
|
|
43
57
|
return false;
|
|
58
|
+
if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('rent' in value) || value['rent'] === undefined)
|
|
65
|
+
return false;
|
|
44
66
|
return true;
|
|
45
67
|
}
|
|
46
68
|
function TaskListLeadDtoFromJSON(json) {
|
|
@@ -54,7 +76,12 @@ function TaskListLeadDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
76
|
'id': json['id'],
|
|
55
77
|
'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
|
|
56
78
|
'lastOfferBy': json['lastOfferBy'],
|
|
79
|
+
'lastOfferType': json['lastOfferType'],
|
|
57
80
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
81
|
+
'lastBuyerOffer': (0, TaskListLeadOfferDto_1.TaskListLeadOfferDtoFromJSON)(json['lastBuyerOffer']),
|
|
82
|
+
'lastSellerOffer': (0, TaskListLeadOfferDto_1.TaskListLeadOfferDtoFromJSON)(json['lastSellerOffer']),
|
|
83
|
+
'leaseToOwn': (0, TaskListLeadLeaseToOwnConfigurationDto_1.TaskListLeadLeaseToOwnConfigurationDtoFromJSON)(json['leaseToOwn']),
|
|
84
|
+
'rent': (0, TaskListLeadRentConfigurationDto_1.TaskListLeadRentConfigurationDtoFromJSON)(json['rent']),
|
|
58
85
|
};
|
|
59
86
|
}
|
|
60
87
|
function TaskListLeadDtoToJSON(json) {
|
|
@@ -69,6 +96,11 @@ function TaskListLeadDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
69
96
|
'id': value['id'],
|
|
70
97
|
'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
|
|
71
98
|
'lastOfferBy': value['lastOfferBy'],
|
|
99
|
+
'lastOfferType': value['lastOfferType'],
|
|
72
100
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
101
|
+
'lastBuyerOffer': (0, TaskListLeadOfferDto_1.TaskListLeadOfferDtoToJSON)(value['lastBuyerOffer']),
|
|
102
|
+
'lastSellerOffer': (0, TaskListLeadOfferDto_1.TaskListLeadOfferDtoToJSON)(value['lastSellerOffer']),
|
|
103
|
+
'leaseToOwn': (0, TaskListLeadLeaseToOwnConfigurationDto_1.TaskListLeadLeaseToOwnConfigurationDtoToJSON)(value['leaseToOwn']),
|
|
104
|
+
'rent': (0, TaskListLeadRentConfigurationDto_1.TaskListLeadRentConfigurationDtoToJSON)(value['rent']),
|
|
73
105
|
};
|
|
74
106
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TaskListLeadLeaseToOwnConfigurationDto
|
|
16
|
+
*/
|
|
17
|
+
export interface TaskListLeadLeaseToOwnConfigurationDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof TaskListLeadLeaseToOwnConfigurationDto
|
|
22
|
+
*/
|
|
23
|
+
minMonths: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof TaskListLeadLeaseToOwnConfigurationDto
|
|
28
|
+
*/
|
|
29
|
+
maxMonths: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof TaskListLeadLeaseToOwnConfigurationDto
|
|
34
|
+
*/
|
|
35
|
+
kickBackPercentage: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof TaskListLeadLeaseToOwnConfigurationDto
|
|
40
|
+
*/
|
|
41
|
+
markupComissionPercentage: number | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the TaskListLeadLeaseToOwnConfigurationDto interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfTaskListLeadLeaseToOwnConfigurationDto(value: object): value is TaskListLeadLeaseToOwnConfigurationDto;
|
|
47
|
+
export declare function TaskListLeadLeaseToOwnConfigurationDtoFromJSON(json: any): TaskListLeadLeaseToOwnConfigurationDto;
|
|
48
|
+
export declare function TaskListLeadLeaseToOwnConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskListLeadLeaseToOwnConfigurationDto;
|
|
49
|
+
export declare function TaskListLeadLeaseToOwnConfigurationDtoToJSON(json: any): TaskListLeadLeaseToOwnConfigurationDto;
|
|
50
|
+
export declare function TaskListLeadLeaseToOwnConfigurationDtoToJSONTyped(value?: TaskListLeadLeaseToOwnConfigurationDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfTaskListLeadLeaseToOwnConfigurationDto = instanceOfTaskListLeadLeaseToOwnConfigurationDto;
|
|
17
|
+
exports.TaskListLeadLeaseToOwnConfigurationDtoFromJSON = TaskListLeadLeaseToOwnConfigurationDtoFromJSON;
|
|
18
|
+
exports.TaskListLeadLeaseToOwnConfigurationDtoFromJSONTyped = TaskListLeadLeaseToOwnConfigurationDtoFromJSONTyped;
|
|
19
|
+
exports.TaskListLeadLeaseToOwnConfigurationDtoToJSON = TaskListLeadLeaseToOwnConfigurationDtoToJSON;
|
|
20
|
+
exports.TaskListLeadLeaseToOwnConfigurationDtoToJSONTyped = TaskListLeadLeaseToOwnConfigurationDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TaskListLeadLeaseToOwnConfigurationDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTaskListLeadLeaseToOwnConfigurationDto(value) {
|
|
25
|
+
if (!('minMonths' in value) || value['minMonths'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('maxMonths' in value) || value['maxMonths'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('kickBackPercentage' in value) || value['kickBackPercentage'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('markupComissionPercentage' in value) || value['markupComissionPercentage'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function TaskListLeadLeaseToOwnConfigurationDtoFromJSON(json) {
|
|
36
|
+
return TaskListLeadLeaseToOwnConfigurationDtoFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function TaskListLeadLeaseToOwnConfigurationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'minMonths': json['minMonths'],
|
|
44
|
+
'maxMonths': json['maxMonths'],
|
|
45
|
+
'kickBackPercentage': json['kickBackPercentage'],
|
|
46
|
+
'markupComissionPercentage': json['markupComissionPercentage'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function TaskListLeadLeaseToOwnConfigurationDtoToJSON(json) {
|
|
50
|
+
return TaskListLeadLeaseToOwnConfigurationDtoToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function TaskListLeadLeaseToOwnConfigurationDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'minMonths': value['minMonths'],
|
|
59
|
+
'maxMonths': value['maxMonths'],
|
|
60
|
+
'kickBackPercentage': value['kickBackPercentage'],
|
|
61
|
+
'markupComissionPercentage': value['markupComissionPercentage'],
|
|
62
|
+
};
|
|
63
|
+
}
|