@randock/nameshift-api-client 0.0.538 → 0.0.539
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/AdminApi.d.ts +36 -1
- package/dist/apis/AdminApi.js +136 -0
- package/dist/apis/BrokeredLeadsApi.d.ts +195 -0
- package/dist/apis/BrokeredLeadsApi.js +912 -0
- package/dist/apis/BrokeredLeadsPublicApi.d.ts +31 -0
- package/dist/apis/BrokeredLeadsPublicApi.js +126 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AccountBrokerSettingsInput.d.ts +38 -0
- package/dist/models/AccountBrokerSettingsInput.js +51 -0
- package/dist/models/AccountDto.d.ts +6 -0
- package/dist/models/AccountDto.js +4 -0
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +1 -0
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +2 -1
- package/dist/models/AccountNameshiftCommissionItemDto.d.ts +1 -0
- package/dist/models/AccountNameshiftCommissionItemDto.js +2 -1
- package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +1 -0
- package/dist/models/AccountNameshiftCommissionReasonDto.js +2 -1
- package/dist/models/AccountNotificationDto.d.ts +1 -0
- package/dist/models/AccountNotificationDto.js +2 -1
- package/dist/models/AccountSettingsBrokerDto.d.ts +38 -0
- package/dist/models/AccountSettingsBrokerDto.js +55 -0
- package/dist/models/AccountSettingsDto.d.ts +7 -0
- package/dist/models/AccountSettingsDto.js +5 -0
- package/dist/models/AccountSettingsInput.d.ts +7 -0
- package/dist/models/AccountSettingsInput.js +3 -0
- package/dist/models/AdminBrokeredLeadDto.d.ts +248 -0
- package/dist/models/AdminBrokeredLeadDto.js +204 -0
- package/dist/models/AdminListBrokeredLeads200Response.d.ts +47 -0
- package/dist/models/AdminListBrokeredLeads200Response.js +62 -0
- package/dist/models/ApiKeyDto.d.ts +2 -0
- package/dist/models/ApiKeyDto.js +2 -0
- package/dist/models/ApiKeyScopeDto.d.ts +2 -0
- package/dist/models/ApiKeyScopeDto.js +2 -0
- package/dist/models/BrokerBrokeredLeadDto.d.ts +189 -0
- package/dist/models/BrokerBrokeredLeadDto.js +162 -0
- package/dist/models/BrokerCommissionInput.d.ts +52 -0
- package/dist/models/BrokerCommissionInput.js +63 -0
- package/dist/models/BrokeredLeadBreakdownDto.d.ts +58 -0
- package/dist/models/BrokeredLeadBreakdownDto.js +69 -0
- package/dist/models/BrokeredLeadBuyerContactDto.d.ts +50 -0
- package/dist/models/BrokeredLeadBuyerContactDto.js +63 -0
- package/dist/models/BrokeredLeadBuyerInput.d.ts +50 -0
- package/dist/models/BrokeredLeadBuyerInput.js +63 -0
- package/dist/models/BrokeredLeadCommissionDto.d.ts +71 -0
- package/dist/models/BrokeredLeadCommissionDto.js +80 -0
- package/dist/models/BrokeredLeadInvitationDto.d.ts +57 -0
- package/dist/models/BrokeredLeadInvitationDto.js +68 -0
- package/dist/models/BuyerInvoiceDto.d.ts +6 -0
- package/dist/models/BuyerInvoiceDto.js +4 -0
- package/dist/models/BuyerNotificationDto.d.ts +6 -0
- package/dist/models/BuyerNotificationDto.js +7 -1
- package/dist/models/BuyerNotificationListItemDto.d.ts +6 -0
- package/dist/models/BuyerNotificationListItemDto.js +7 -1
- package/dist/models/CommissionDto.d.ts +1 -0
- package/dist/models/CommissionDto.js +2 -1
- package/dist/models/CommissionPayloadInput.d.ts +1 -0
- package/dist/models/CommissionPayloadInput.js +2 -1
- package/dist/models/CommissionReasonDto.d.ts +1 -0
- package/dist/models/CommissionReasonDto.js +2 -1
- package/dist/models/CommissionSimulationItemInput.d.ts +1 -0
- package/dist/models/CommissionSimulationItemInput.js +2 -1
- package/dist/models/CreateApiKeyInput.d.ts +2 -0
- package/dist/models/CreateApiKeyInput.js +2 -0
- package/dist/models/CreateBrokeredLeadInput.d.ts +59 -0
- package/dist/models/CreateBrokeredLeadInput.js +68 -0
- package/dist/models/CreatedApiKeyDto.d.ts +2 -0
- package/dist/models/CreatedApiKeyDto.js +2 -0
- package/dist/models/CustomerSuccessListAccountDto.d.ts +6 -0
- package/dist/models/CustomerSuccessListAccountDto.js +4 -0
- package/dist/models/DeclineBrokeredLeadInput.d.ts +32 -0
- package/dist/models/DeclineBrokeredLeadInput.js +49 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
- package/dist/models/FeatureFlagListItemDto.js +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +7 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +5 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +1 -1
- package/dist/models/InvoiceDto.d.ts +6 -0
- package/dist/models/InvoiceDto.js +4 -0
- package/dist/models/LeadBrokeredDealDto.d.ts +39 -0
- package/dist/models/LeadBrokeredDealDto.js +56 -0
- package/dist/models/ListBrokerLeads200Response.d.ts +47 -0
- package/dist/models/ListBrokerLeads200Response.js +62 -0
- package/dist/models/ListLeadsResultItem.d.ts +7 -0
- package/dist/models/ListLeadsResultItem.js +5 -0
- package/dist/models/ManualLeadDetails.d.ts +7 -0
- package/dist/models/ManualLeadDetails.js +5 -0
- package/dist/models/OverrideBrokeredLeadNameshiftCommissionInput.d.ts +38 -0
- package/dist/models/OverrideBrokeredLeadNameshiftCommissionInput.js +55 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +13 -0
- package/dist/models/PrivateAccountGetMeResponse.js +9 -0
- package/dist/models/RegisterAccountInput.d.ts +6 -0
- package/dist/models/RegisterAccountInput.js +2 -0
- package/dist/models/SellerBrokeredLeadDto.d.ts +114 -0
- package/dist/models/SellerBrokeredLeadDto.js +111 -0
- package/dist/models/SellerBrokeredLeadVerificationDto.d.ts +44 -0
- package/dist/models/SellerBrokeredLeadVerificationDto.js +59 -0
- package/dist/models/SellerInvoiceDto.d.ts +6 -0
- package/dist/models/SellerInvoiceDto.js +4 -0
- package/dist/models/SimulateCommissionInput.d.ts +1 -0
- package/dist/models/SimulateCommissionInput.js +2 -1
- package/dist/models/UpdateApiKeyInput.d.ts +2 -0
- package/dist/models/UpdateApiKeyInput.js +2 -0
- package/dist/models/UserNotificationDto.d.ts +6 -0
- package/dist/models/UserNotificationDto.js +7 -1
- package/dist/models/UserNotificationListItemDto.d.ts +6 -0
- package/dist/models/UserNotificationListItemDto.js +7 -1
- package/dist/models/WithSettingsInner.d.ts +11 -4
- package/dist/models/WithSettingsInner.js +9 -4
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.js +18 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +145 -0
- package/src/apis/BrokeredLeadsApi.ts +740 -0
- package/src/apis/BrokeredLeadsPublicApi.ts +69 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AccountBrokerSettingsInput.ts +73 -0
- package/src/models/AccountDto.ts +9 -0
- package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +2 -1
- package/src/models/AccountNameshiftCommissionItemDto.ts +2 -1
- package/src/models/AccountNameshiftCommissionReasonDto.ts +2 -1
- package/src/models/AccountNotificationDto.ts +2 -1
- package/src/models/AccountSettingsBrokerDto.ts +75 -0
- package/src/models/AccountSettingsDto.ts +16 -0
- package/src/models/AccountSettingsInput.ts +15 -0
- package/src/models/AdminBrokeredLeadDto.ts +404 -0
- package/src/models/AdminListBrokeredLeads200Response.ts +106 -0
- package/src/models/ApiKeyDto.ts +2 -0
- package/src/models/ApiKeyScopeDto.ts +2 -0
- package/src/models/BrokerBrokeredLeadDto.ts +320 -0
- package/src/models/BrokerCommissionInput.ts +93 -0
- package/src/models/BrokeredLeadBreakdownDto.ts +117 -0
- package/src/models/BrokeredLeadBuyerContactDto.ts +93 -0
- package/src/models/BrokeredLeadBuyerInput.ts +93 -0
- package/src/models/BrokeredLeadCommissionDto.ts +130 -0
- package/src/models/BrokeredLeadInvitationDto.ts +110 -0
- package/src/models/BuyerInvoiceDto.ts +9 -0
- package/src/models/BuyerNotificationDto.ts +7 -1
- package/src/models/BuyerNotificationListItemDto.ts +7 -1
- package/src/models/CommissionDto.ts +2 -1
- package/src/models/CommissionPayloadInput.ts +2 -1
- package/src/models/CommissionReasonDto.ts +2 -1
- package/src/models/CommissionSimulationItemInput.ts +2 -1
- package/src/models/CreateApiKeyInput.ts +2 -0
- package/src/models/CreateBrokeredLeadInput.ts +123 -0
- package/src/models/CreatedApiKeyDto.ts +2 -0
- package/src/models/CustomerSuccessListAccountDto.ts +9 -0
- package/src/models/DeclineBrokeredLeadInput.ts +65 -0
- package/src/models/FeatureFlagListItemDto.ts +1 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +10 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +1 -1
- package/src/models/InvoiceDto.ts +9 -0
- package/src/models/LeadBrokeredDealDto.ts +83 -0
- package/src/models/ListBrokerLeads200Response.ts +106 -0
- package/src/models/ListLeadsResultItem.ts +16 -0
- package/src/models/ManualLeadDetails.ts +16 -0
- package/src/models/OverrideBrokeredLeadNameshiftCommissionInput.ts +75 -0
- package/src/models/PrivateAccountGetMeResponse.ts +19 -0
- package/src/models/RegisterAccountInput.ts +8 -0
- package/src/models/SellerBrokeredLeadDto.ts +215 -0
- package/src/models/SellerBrokeredLeadVerificationDto.ts +84 -0
- package/src/models/SellerInvoiceDto.ts +9 -0
- package/src/models/SimulateCommissionInput.ts +2 -1
- package/src/models/UpdateApiKeyInput.ts +2 -0
- package/src/models/UserNotificationDto.ts +7 -1
- package/src/models/UserNotificationListItemDto.ts +7 -1
- package/src/models/WithSettingsInner.ts +44 -28
- package/src/models/index.ts +18 -0
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 { BrokeredLeadCommissionDto } from './BrokeredLeadCommissionDto';
|
|
13
|
+
import type { MoneyDto } from './MoneyDto';
|
|
14
|
+
import type { MoneyDecimalDto } from './MoneyDecimalDto';
|
|
15
|
+
import type { BrokeredLeadBuyerContactDto } from './BrokeredLeadBuyerContactDto';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface BrokerBrokeredLeadDto
|
|
20
|
+
*/
|
|
21
|
+
export interface BrokerBrokeredLeadDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BrokerBrokeredLeadDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BrokerBrokeredLeadDto
|
|
32
|
+
*/
|
|
33
|
+
domainName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof BrokerBrokeredLeadDto
|
|
38
|
+
*/
|
|
39
|
+
status: BrokerBrokeredLeadDtoStatusEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {MoneyDto}
|
|
43
|
+
* @memberof BrokerBrokeredLeadDto
|
|
44
|
+
*/
|
|
45
|
+
askingPrice: MoneyDto;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {BrokeredLeadCommissionDto}
|
|
49
|
+
* @memberof BrokerBrokeredLeadDto
|
|
50
|
+
*/
|
|
51
|
+
commission: BrokeredLeadCommissionDto;
|
|
52
|
+
/**
|
|
53
|
+
* Nameshift platform fee charged to the broker, as a percentage of the sale price.
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof BrokerBrokeredLeadDto
|
|
56
|
+
*/
|
|
57
|
+
nameshiftCommissionPercentage: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {MoneyDecimalDto}
|
|
61
|
+
* @memberof BrokerBrokeredLeadDto
|
|
62
|
+
*/
|
|
63
|
+
nameshiftFee: MoneyDecimalDto;
|
|
64
|
+
/**
|
|
65
|
+
* What the broker is paid: the commission less the fee.
|
|
66
|
+
* @type {MoneyDecimalDto}
|
|
67
|
+
* @memberof BrokerBrokeredLeadDto
|
|
68
|
+
*/
|
|
69
|
+
netPayout: MoneyDecimalDto;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {BrokeredLeadBuyerContactDto}
|
|
73
|
+
* @memberof BrokerBrokeredLeadDto
|
|
74
|
+
*/
|
|
75
|
+
buyer: BrokeredLeadBuyerContactDto;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof BrokerBrokeredLeadDto
|
|
80
|
+
*/
|
|
81
|
+
sellerEmail: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* Whether the deal waits in a seller account: the one that verified the domain, or the one that took up the link.
|
|
84
|
+
* @type {boolean}
|
|
85
|
+
* @memberof BrokerBrokeredLeadDto
|
|
86
|
+
*/
|
|
87
|
+
sellerLinked: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* The link for a seller who has not taken up the deal yet, while it is valid: a new seller signs up through it, one with an account takes it up.
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof BrokerBrokeredLeadDto
|
|
92
|
+
*/
|
|
93
|
+
sellerSignupUrl: string | null;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {Date}
|
|
97
|
+
* @memberof BrokerBrokeredLeadDto
|
|
98
|
+
*/
|
|
99
|
+
sellerSignupUrlExpiresAt: Date | null;
|
|
100
|
+
/**
|
|
101
|
+
* Where a seller with an account reviews the deal.
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof BrokerBrokeredLeadDto
|
|
104
|
+
*/
|
|
105
|
+
sellerReviewUrl: string | null;
|
|
106
|
+
/**
|
|
107
|
+
* Where the buyer pays, once the deal is ready for payment.
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof BrokerBrokeredLeadDto
|
|
110
|
+
*/
|
|
111
|
+
paymentUrl: string | null;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {Date}
|
|
115
|
+
* @memberof BrokerBrokeredLeadDto
|
|
116
|
+
*/
|
|
117
|
+
sellerNotifiedAt: Date | null;
|
|
118
|
+
/**
|
|
119
|
+
* When the seller can be emailed again.
|
|
120
|
+
* @type {Date}
|
|
121
|
+
* @memberof BrokerBrokeredLeadDto
|
|
122
|
+
*/
|
|
123
|
+
nextSellerNotificationAt: Date | null;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {boolean}
|
|
127
|
+
* @memberof BrokerBrokeredLeadDto
|
|
128
|
+
*/
|
|
129
|
+
canNotifySeller: boolean;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {Date}
|
|
133
|
+
* @memberof BrokerBrokeredLeadDto
|
|
134
|
+
*/
|
|
135
|
+
buyerNotifiedAt: Date | null;
|
|
136
|
+
/**
|
|
137
|
+
* When the buyer can be emailed again.
|
|
138
|
+
* @type {Date}
|
|
139
|
+
* @memberof BrokerBrokeredLeadDto
|
|
140
|
+
*/
|
|
141
|
+
nextBuyerNotificationAt: Date | null;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {boolean}
|
|
145
|
+
* @memberof BrokerBrokeredLeadDto
|
|
146
|
+
*/
|
|
147
|
+
canNotifyBuyer: boolean;
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @type {string}
|
|
151
|
+
* @memberof BrokerBrokeredLeadDto
|
|
152
|
+
*/
|
|
153
|
+
declineReason: string | null;
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
* @type {Date}
|
|
157
|
+
* @memberof BrokerBrokeredLeadDto
|
|
158
|
+
*/
|
|
159
|
+
createdAt: Date;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @type {Date}
|
|
163
|
+
* @memberof BrokerBrokeredLeadDto
|
|
164
|
+
*/
|
|
165
|
+
updatedAt: Date;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* @export
|
|
169
|
+
*/
|
|
170
|
+
export declare const BrokerBrokeredLeadDtoStatusEnum: {
|
|
171
|
+
readonly PENDING_SELLER: "pending_seller";
|
|
172
|
+
readonly PENDING_SELLER_VERIFICATION: "pending_seller_verification";
|
|
173
|
+
readonly AWAITING_PAYMENT: "awaiting_payment";
|
|
174
|
+
readonly PAYMENT_EXPIRED: "payment_expired";
|
|
175
|
+
readonly TRANSFER_IN_PROGRESS: "transfer_in_progress";
|
|
176
|
+
readonly COMPLETED: "completed";
|
|
177
|
+
readonly CLOSED: "closed";
|
|
178
|
+
readonly DECLINED: "declined";
|
|
179
|
+
readonly CANCELLED: "cancelled";
|
|
180
|
+
};
|
|
181
|
+
export type BrokerBrokeredLeadDtoStatusEnum = typeof BrokerBrokeredLeadDtoStatusEnum[keyof typeof BrokerBrokeredLeadDtoStatusEnum];
|
|
182
|
+
/**
|
|
183
|
+
* Check if a given object implements the BrokerBrokeredLeadDto interface.
|
|
184
|
+
*/
|
|
185
|
+
export declare function instanceOfBrokerBrokeredLeadDto(value: object): value is BrokerBrokeredLeadDto;
|
|
186
|
+
export declare function BrokerBrokeredLeadDtoFromJSON(json: any): BrokerBrokeredLeadDto;
|
|
187
|
+
export declare function BrokerBrokeredLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrokerBrokeredLeadDto;
|
|
188
|
+
export declare function BrokerBrokeredLeadDtoToJSON(json: any): BrokerBrokeredLeadDto;
|
|
189
|
+
export declare function BrokerBrokeredLeadDtoToJSONTyped(value?: BrokerBrokeredLeadDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.BrokerBrokeredLeadDtoStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfBrokerBrokeredLeadDto = instanceOfBrokerBrokeredLeadDto;
|
|
18
|
+
exports.BrokerBrokeredLeadDtoFromJSON = BrokerBrokeredLeadDtoFromJSON;
|
|
19
|
+
exports.BrokerBrokeredLeadDtoFromJSONTyped = BrokerBrokeredLeadDtoFromJSONTyped;
|
|
20
|
+
exports.BrokerBrokeredLeadDtoToJSON = BrokerBrokeredLeadDtoToJSON;
|
|
21
|
+
exports.BrokerBrokeredLeadDtoToJSONTyped = BrokerBrokeredLeadDtoToJSONTyped;
|
|
22
|
+
var BrokeredLeadCommissionDto_1 = require("./BrokeredLeadCommissionDto");
|
|
23
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
24
|
+
var MoneyDecimalDto_1 = require("./MoneyDecimalDto");
|
|
25
|
+
var BrokeredLeadBuyerContactDto_1 = require("./BrokeredLeadBuyerContactDto");
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
exports.BrokerBrokeredLeadDtoStatusEnum = {
|
|
30
|
+
PENDING_SELLER: 'pending_seller',
|
|
31
|
+
PENDING_SELLER_VERIFICATION: 'pending_seller_verification',
|
|
32
|
+
AWAITING_PAYMENT: 'awaiting_payment',
|
|
33
|
+
PAYMENT_EXPIRED: 'payment_expired',
|
|
34
|
+
TRANSFER_IN_PROGRESS: 'transfer_in_progress',
|
|
35
|
+
COMPLETED: 'completed',
|
|
36
|
+
CLOSED: 'closed',
|
|
37
|
+
DECLINED: 'declined',
|
|
38
|
+
CANCELLED: 'cancelled'
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the BrokerBrokeredLeadDto interface.
|
|
42
|
+
*/
|
|
43
|
+
function instanceOfBrokerBrokeredLeadDto(value) {
|
|
44
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('domainName' in value) || value['domainName'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('askingPrice' in value) || value['askingPrice'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('commission' in value) || value['commission'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('nameshiftCommissionPercentage' in value) || value['nameshiftCommissionPercentage'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('nameshiftFee' in value) || value['nameshiftFee'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('netPayout' in value) || value['netPayout'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('buyer' in value) || value['buyer'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('sellerEmail' in value) || value['sellerEmail'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('sellerLinked' in value) || value['sellerLinked'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
if (!('sellerSignupUrl' in value) || value['sellerSignupUrl'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
if (!('sellerSignupUrlExpiresAt' in value) || value['sellerSignupUrlExpiresAt'] === undefined)
|
|
69
|
+
return false;
|
|
70
|
+
if (!('sellerReviewUrl' in value) || value['sellerReviewUrl'] === undefined)
|
|
71
|
+
return false;
|
|
72
|
+
if (!('paymentUrl' in value) || value['paymentUrl'] === undefined)
|
|
73
|
+
return false;
|
|
74
|
+
if (!('sellerNotifiedAt' in value) || value['sellerNotifiedAt'] === undefined)
|
|
75
|
+
return false;
|
|
76
|
+
if (!('nextSellerNotificationAt' in value) || value['nextSellerNotificationAt'] === undefined)
|
|
77
|
+
return false;
|
|
78
|
+
if (!('canNotifySeller' in value) || value['canNotifySeller'] === undefined)
|
|
79
|
+
return false;
|
|
80
|
+
if (!('buyerNotifiedAt' in value) || value['buyerNotifiedAt'] === undefined)
|
|
81
|
+
return false;
|
|
82
|
+
if (!('nextBuyerNotificationAt' in value) || value['nextBuyerNotificationAt'] === undefined)
|
|
83
|
+
return false;
|
|
84
|
+
if (!('canNotifyBuyer' in value) || value['canNotifyBuyer'] === undefined)
|
|
85
|
+
return false;
|
|
86
|
+
if (!('declineReason' in value) || value['declineReason'] === undefined)
|
|
87
|
+
return false;
|
|
88
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
89
|
+
return false;
|
|
90
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
91
|
+
return false;
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
function BrokerBrokeredLeadDtoFromJSON(json) {
|
|
95
|
+
return BrokerBrokeredLeadDtoFromJSONTyped(json, false);
|
|
96
|
+
}
|
|
97
|
+
function BrokerBrokeredLeadDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
98
|
+
if (json == null) {
|
|
99
|
+
return json;
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
'id': json['id'],
|
|
103
|
+
'domainName': json['domainName'],
|
|
104
|
+
'status': json['status'],
|
|
105
|
+
'askingPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['askingPrice']),
|
|
106
|
+
'commission': (0, BrokeredLeadCommissionDto_1.BrokeredLeadCommissionDtoFromJSON)(json['commission']),
|
|
107
|
+
'nameshiftCommissionPercentage': json['nameshiftCommissionPercentage'],
|
|
108
|
+
'nameshiftFee': (0, MoneyDecimalDto_1.MoneyDecimalDtoFromJSON)(json['nameshiftFee']),
|
|
109
|
+
'netPayout': (0, MoneyDecimalDto_1.MoneyDecimalDtoFromJSON)(json['netPayout']),
|
|
110
|
+
'buyer': (0, BrokeredLeadBuyerContactDto_1.BrokeredLeadBuyerContactDtoFromJSON)(json['buyer']),
|
|
111
|
+
'sellerEmail': json['sellerEmail'],
|
|
112
|
+
'sellerLinked': json['sellerLinked'],
|
|
113
|
+
'sellerSignupUrl': json['sellerSignupUrl'],
|
|
114
|
+
'sellerSignupUrlExpiresAt': (json['sellerSignupUrlExpiresAt'] == null ? null : new Date(json['sellerSignupUrlExpiresAt'])),
|
|
115
|
+
'sellerReviewUrl': json['sellerReviewUrl'],
|
|
116
|
+
'paymentUrl': json['paymentUrl'],
|
|
117
|
+
'sellerNotifiedAt': (json['sellerNotifiedAt'] == null ? null : new Date(json['sellerNotifiedAt'])),
|
|
118
|
+
'nextSellerNotificationAt': (json['nextSellerNotificationAt'] == null ? null : new Date(json['nextSellerNotificationAt'])),
|
|
119
|
+
'canNotifySeller': json['canNotifySeller'],
|
|
120
|
+
'buyerNotifiedAt': (json['buyerNotifiedAt'] == null ? null : new Date(json['buyerNotifiedAt'])),
|
|
121
|
+
'nextBuyerNotificationAt': (json['nextBuyerNotificationAt'] == null ? null : new Date(json['nextBuyerNotificationAt'])),
|
|
122
|
+
'canNotifyBuyer': json['canNotifyBuyer'],
|
|
123
|
+
'declineReason': json['declineReason'],
|
|
124
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
125
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
function BrokerBrokeredLeadDtoToJSON(json) {
|
|
129
|
+
return BrokerBrokeredLeadDtoToJSONTyped(json, false);
|
|
130
|
+
}
|
|
131
|
+
function BrokerBrokeredLeadDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
132
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
133
|
+
if (value == null) {
|
|
134
|
+
return value;
|
|
135
|
+
}
|
|
136
|
+
return {
|
|
137
|
+
'id': value['id'],
|
|
138
|
+
'domainName': value['domainName'],
|
|
139
|
+
'status': value['status'],
|
|
140
|
+
'askingPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['askingPrice']),
|
|
141
|
+
'commission': (0, BrokeredLeadCommissionDto_1.BrokeredLeadCommissionDtoToJSON)(value['commission']),
|
|
142
|
+
'nameshiftCommissionPercentage': value['nameshiftCommissionPercentage'],
|
|
143
|
+
'nameshiftFee': (0, MoneyDecimalDto_1.MoneyDecimalDtoToJSON)(value['nameshiftFee']),
|
|
144
|
+
'netPayout': (0, MoneyDecimalDto_1.MoneyDecimalDtoToJSON)(value['netPayout']),
|
|
145
|
+
'buyer': (0, BrokeredLeadBuyerContactDto_1.BrokeredLeadBuyerContactDtoToJSON)(value['buyer']),
|
|
146
|
+
'sellerEmail': value['sellerEmail'],
|
|
147
|
+
'sellerLinked': value['sellerLinked'],
|
|
148
|
+
'sellerSignupUrl': value['sellerSignupUrl'],
|
|
149
|
+
'sellerSignupUrlExpiresAt': (value['sellerSignupUrlExpiresAt'] == null ? null : value['sellerSignupUrlExpiresAt'].toISOString()),
|
|
150
|
+
'sellerReviewUrl': value['sellerReviewUrl'],
|
|
151
|
+
'paymentUrl': value['paymentUrl'],
|
|
152
|
+
'sellerNotifiedAt': (value['sellerNotifiedAt'] == null ? null : value['sellerNotifiedAt'].toISOString()),
|
|
153
|
+
'nextSellerNotificationAt': (value['nextSellerNotificationAt'] == null ? null : value['nextSellerNotificationAt'].toISOString()),
|
|
154
|
+
'canNotifySeller': value['canNotifySeller'],
|
|
155
|
+
'buyerNotifiedAt': (value['buyerNotifiedAt'] == null ? null : value['buyerNotifiedAt'].toISOString()),
|
|
156
|
+
'nextBuyerNotificationAt': (value['nextBuyerNotificationAt'] == null ? null : value['nextBuyerNotificationAt'].toISOString()),
|
|
157
|
+
'canNotifyBuyer': value['canNotifyBuyer'],
|
|
158
|
+
'declineReason': value['declineReason'],
|
|
159
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
160
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
161
|
+
};
|
|
162
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 BrokerCommissionInput
|
|
16
|
+
*/
|
|
17
|
+
export interface BrokerCommissionInput {
|
|
18
|
+
/**
|
|
19
|
+
* Whether the values are percentages of the sale price or fixed amounts in its currency.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BrokerCommissionInput
|
|
22
|
+
*/
|
|
23
|
+
type: BrokerCommissionInputTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Commission charged to the buyer, on top of the sale price. Null or 0 charges the buyer nothing.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof BrokerCommissionInput
|
|
28
|
+
*/
|
|
29
|
+
buyerValue?: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* Commission charged to the seller, deducted from the proceeds. Null or 0 charges the seller nothing.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof BrokerCommissionInput
|
|
34
|
+
*/
|
|
35
|
+
sellerValue?: number | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const BrokerCommissionInputTypeEnum: {
|
|
41
|
+
readonly FIXED: "fixed";
|
|
42
|
+
readonly PERCENTAGE: "percentage";
|
|
43
|
+
};
|
|
44
|
+
export type BrokerCommissionInputTypeEnum = typeof BrokerCommissionInputTypeEnum[keyof typeof BrokerCommissionInputTypeEnum];
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the BrokerCommissionInput interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfBrokerCommissionInput(value: object): value is BrokerCommissionInput;
|
|
49
|
+
export declare function BrokerCommissionInputFromJSON(json: any): BrokerCommissionInput;
|
|
50
|
+
export declare function BrokerCommissionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrokerCommissionInput;
|
|
51
|
+
export declare function BrokerCommissionInputToJSON(json: any): BrokerCommissionInput;
|
|
52
|
+
export declare function BrokerCommissionInputToJSONTyped(value?: BrokerCommissionInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.BrokerCommissionInputTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfBrokerCommissionInput = instanceOfBrokerCommissionInput;
|
|
18
|
+
exports.BrokerCommissionInputFromJSON = BrokerCommissionInputFromJSON;
|
|
19
|
+
exports.BrokerCommissionInputFromJSONTyped = BrokerCommissionInputFromJSONTyped;
|
|
20
|
+
exports.BrokerCommissionInputToJSON = BrokerCommissionInputToJSON;
|
|
21
|
+
exports.BrokerCommissionInputToJSONTyped = BrokerCommissionInputToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.BrokerCommissionInputTypeEnum = {
|
|
26
|
+
FIXED: 'fixed',
|
|
27
|
+
PERCENTAGE: 'percentage'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the BrokerCommissionInput interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfBrokerCommissionInput(value) {
|
|
33
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function BrokerCommissionInputFromJSON(json) {
|
|
38
|
+
return BrokerCommissionInputFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function BrokerCommissionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'type': json['type'],
|
|
46
|
+
'buyerValue': json['buyerValue'] == null ? undefined : json['buyerValue'],
|
|
47
|
+
'sellerValue': json['sellerValue'] == null ? undefined : json['sellerValue'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function BrokerCommissionInputToJSON(json) {
|
|
51
|
+
return BrokerCommissionInputToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function BrokerCommissionInputToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'type': value['type'],
|
|
60
|
+
'buyerValue': value['buyerValue'],
|
|
61
|
+
'sellerValue': value['sellerValue'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 { BrokeredLeadCommissionDto } from './BrokeredLeadCommissionDto';
|
|
13
|
+
import type { MoneyDecimalDto } from './MoneyDecimalDto';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface BrokeredLeadBreakdownDto
|
|
18
|
+
*/
|
|
19
|
+
export interface BrokeredLeadBreakdownDto {
|
|
20
|
+
/**
|
|
21
|
+
* The sale price the buyer and the seller agreed to.
|
|
22
|
+
* @type {MoneyDecimalDto}
|
|
23
|
+
* @memberof BrokeredLeadBreakdownDto
|
|
24
|
+
*/
|
|
25
|
+
salePrice: MoneyDecimalDto;
|
|
26
|
+
/**
|
|
27
|
+
* What the buyer pays, before taxes.
|
|
28
|
+
* @type {MoneyDecimalDto}
|
|
29
|
+
* @memberof BrokeredLeadBreakdownDto
|
|
30
|
+
*/
|
|
31
|
+
buyerPays: MoneyDecimalDto;
|
|
32
|
+
/**
|
|
33
|
+
* What the seller receives.
|
|
34
|
+
* @type {MoneyDecimalDto}
|
|
35
|
+
* @memberof BrokeredLeadBreakdownDto
|
|
36
|
+
*/
|
|
37
|
+
sellerReceives: MoneyDecimalDto;
|
|
38
|
+
/**
|
|
39
|
+
* The broker commission on both sides together.
|
|
40
|
+
* @type {MoneyDecimalDto}
|
|
41
|
+
* @memberof BrokeredLeadBreakdownDto
|
|
42
|
+
*/
|
|
43
|
+
brokerReceives: MoneyDecimalDto;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {BrokeredLeadCommissionDto}
|
|
47
|
+
* @memberof BrokeredLeadBreakdownDto
|
|
48
|
+
*/
|
|
49
|
+
commission: BrokeredLeadCommissionDto;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the BrokeredLeadBreakdownDto interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfBrokeredLeadBreakdownDto(value: object): value is BrokeredLeadBreakdownDto;
|
|
55
|
+
export declare function BrokeredLeadBreakdownDtoFromJSON(json: any): BrokeredLeadBreakdownDto;
|
|
56
|
+
export declare function BrokeredLeadBreakdownDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrokeredLeadBreakdownDto;
|
|
57
|
+
export declare function BrokeredLeadBreakdownDtoToJSON(json: any): BrokeredLeadBreakdownDto;
|
|
58
|
+
export declare function BrokeredLeadBreakdownDtoToJSONTyped(value?: BrokeredLeadBreakdownDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.instanceOfBrokeredLeadBreakdownDto = instanceOfBrokeredLeadBreakdownDto;
|
|
17
|
+
exports.BrokeredLeadBreakdownDtoFromJSON = BrokeredLeadBreakdownDtoFromJSON;
|
|
18
|
+
exports.BrokeredLeadBreakdownDtoFromJSONTyped = BrokeredLeadBreakdownDtoFromJSONTyped;
|
|
19
|
+
exports.BrokeredLeadBreakdownDtoToJSON = BrokeredLeadBreakdownDtoToJSON;
|
|
20
|
+
exports.BrokeredLeadBreakdownDtoToJSONTyped = BrokeredLeadBreakdownDtoToJSONTyped;
|
|
21
|
+
var BrokeredLeadCommissionDto_1 = require("./BrokeredLeadCommissionDto");
|
|
22
|
+
var MoneyDecimalDto_1 = require("./MoneyDecimalDto");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the BrokeredLeadBreakdownDto interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfBrokeredLeadBreakdownDto(value) {
|
|
27
|
+
if (!('salePrice' in value) || value['salePrice'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('buyerPays' in value) || value['buyerPays'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('sellerReceives' in value) || value['sellerReceives'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('brokerReceives' in value) || value['brokerReceives'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('commission' in value) || value['commission'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function BrokeredLeadBreakdownDtoFromJSON(json) {
|
|
40
|
+
return BrokeredLeadBreakdownDtoFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function BrokeredLeadBreakdownDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'salePrice': (0, MoneyDecimalDto_1.MoneyDecimalDtoFromJSON)(json['salePrice']),
|
|
48
|
+
'buyerPays': (0, MoneyDecimalDto_1.MoneyDecimalDtoFromJSON)(json['buyerPays']),
|
|
49
|
+
'sellerReceives': (0, MoneyDecimalDto_1.MoneyDecimalDtoFromJSON)(json['sellerReceives']),
|
|
50
|
+
'brokerReceives': (0, MoneyDecimalDto_1.MoneyDecimalDtoFromJSON)(json['brokerReceives']),
|
|
51
|
+
'commission': (0, BrokeredLeadCommissionDto_1.BrokeredLeadCommissionDtoFromJSON)(json['commission']),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function BrokeredLeadBreakdownDtoToJSON(json) {
|
|
55
|
+
return BrokeredLeadBreakdownDtoToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function BrokeredLeadBreakdownDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
58
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'salePrice': (0, MoneyDecimalDto_1.MoneyDecimalDtoToJSON)(value['salePrice']),
|
|
64
|
+
'buyerPays': (0, MoneyDecimalDto_1.MoneyDecimalDtoToJSON)(value['buyerPays']),
|
|
65
|
+
'sellerReceives': (0, MoneyDecimalDto_1.MoneyDecimalDtoToJSON)(value['sellerReceives']),
|
|
66
|
+
'brokerReceives': (0, MoneyDecimalDto_1.MoneyDecimalDtoToJSON)(value['brokerReceives']),
|
|
67
|
+
'commission': (0, BrokeredLeadCommissionDto_1.BrokeredLeadCommissionDtoToJSON)(value['commission']),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 BrokeredLeadBuyerContactDto
|
|
16
|
+
*/
|
|
17
|
+
export interface BrokeredLeadBuyerContactDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BrokeredLeadBuyerContactDto
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BrokeredLeadBuyerContactDto
|
|
28
|
+
*/
|
|
29
|
+
firstname: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BrokeredLeadBuyerContactDto
|
|
34
|
+
*/
|
|
35
|
+
lastname: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BrokeredLeadBuyerContactDto
|
|
40
|
+
*/
|
|
41
|
+
locale: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the BrokeredLeadBuyerContactDto interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfBrokeredLeadBuyerContactDto(value: object): value is BrokeredLeadBuyerContactDto;
|
|
47
|
+
export declare function BrokeredLeadBuyerContactDtoFromJSON(json: any): BrokeredLeadBuyerContactDto;
|
|
48
|
+
export declare function BrokeredLeadBuyerContactDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrokeredLeadBuyerContactDto;
|
|
49
|
+
export declare function BrokeredLeadBuyerContactDtoToJSON(json: any): BrokeredLeadBuyerContactDto;
|
|
50
|
+
export declare function BrokeredLeadBuyerContactDtoToJSONTyped(value?: BrokeredLeadBuyerContactDto | null, ignoreDiscriminator?: boolean): any;
|