@randock/nameshift-api-client 0.0.538 → 0.0.540

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +36 -1
  4. package/dist/apis/AdminApi.js +136 -0
  5. package/dist/apis/BrokeredLeadsApi.d.ts +195 -0
  6. package/dist/apis/BrokeredLeadsApi.js +912 -0
  7. package/dist/apis/BrokeredLeadsPublicApi.d.ts +31 -0
  8. package/dist/apis/BrokeredLeadsPublicApi.js +126 -0
  9. package/dist/apis/index.d.ts +2 -0
  10. package/dist/apis/index.js +2 -0
  11. package/dist/models/AccountBrokerSettingsInput.d.ts +38 -0
  12. package/dist/models/AccountBrokerSettingsInput.js +51 -0
  13. package/dist/models/AccountDto.d.ts +12 -0
  14. package/dist/models/AccountDto.js +8 -0
  15. package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +1 -0
  16. package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +2 -1
  17. package/dist/models/AccountNameshiftCommissionItemDto.d.ts +1 -0
  18. package/dist/models/AccountNameshiftCommissionItemDto.js +2 -1
  19. package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +1 -0
  20. package/dist/models/AccountNameshiftCommissionReasonDto.js +2 -1
  21. package/dist/models/AccountNotificationDto.d.ts +1 -0
  22. package/dist/models/AccountNotificationDto.js +2 -1
  23. package/dist/models/AccountSettingsBrokerDto.d.ts +38 -0
  24. package/dist/models/AccountSettingsBrokerDto.js +55 -0
  25. package/dist/models/AccountSettingsDto.d.ts +7 -0
  26. package/dist/models/AccountSettingsDto.js +5 -0
  27. package/dist/models/AccountSettingsInput.d.ts +7 -0
  28. package/dist/models/AccountSettingsInput.js +3 -0
  29. package/dist/models/AdminBrokeredLeadDto.d.ts +248 -0
  30. package/dist/models/AdminBrokeredLeadDto.js +204 -0
  31. package/dist/models/AdminListBrokeredLeads200Response.d.ts +47 -0
  32. package/dist/models/AdminListBrokeredLeads200Response.js +62 -0
  33. package/dist/models/ApiKeyDto.d.ts +2 -0
  34. package/dist/models/ApiKeyDto.js +2 -0
  35. package/dist/models/ApiKeyScopeDto.d.ts +2 -0
  36. package/dist/models/ApiKeyScopeDto.js +2 -0
  37. package/dist/models/BrokerBrokeredLeadDto.d.ts +189 -0
  38. package/dist/models/BrokerBrokeredLeadDto.js +162 -0
  39. package/dist/models/BrokerCommissionInput.d.ts +52 -0
  40. package/dist/models/BrokerCommissionInput.js +63 -0
  41. package/dist/models/BrokeredLeadBreakdownDto.d.ts +58 -0
  42. package/dist/models/BrokeredLeadBreakdownDto.js +69 -0
  43. package/dist/models/BrokeredLeadBuyerContactDto.d.ts +50 -0
  44. package/dist/models/BrokeredLeadBuyerContactDto.js +63 -0
  45. package/dist/models/BrokeredLeadBuyerInput.d.ts +50 -0
  46. package/dist/models/BrokeredLeadBuyerInput.js +63 -0
  47. package/dist/models/BrokeredLeadCommissionDto.d.ts +71 -0
  48. package/dist/models/BrokeredLeadCommissionDto.js +80 -0
  49. package/dist/models/BrokeredLeadInvitationDto.d.ts +57 -0
  50. package/dist/models/BrokeredLeadInvitationDto.js +68 -0
  51. package/dist/models/BuyerInvoiceDto.d.ts +6 -0
  52. package/dist/models/BuyerInvoiceDto.js +4 -0
  53. package/dist/models/BuyerNotificationDto.d.ts +6 -0
  54. package/dist/models/BuyerNotificationDto.js +7 -1
  55. package/dist/models/BuyerNotificationListItemDto.d.ts +6 -0
  56. package/dist/models/BuyerNotificationListItemDto.js +7 -1
  57. package/dist/models/CommissionDto.d.ts +1 -0
  58. package/dist/models/CommissionDto.js +2 -1
  59. package/dist/models/CommissionPayloadInput.d.ts +1 -0
  60. package/dist/models/CommissionPayloadInput.js +2 -1
  61. package/dist/models/CommissionReasonDto.d.ts +1 -0
  62. package/dist/models/CommissionReasonDto.js +2 -1
  63. package/dist/models/CommissionSimulationItemInput.d.ts +1 -0
  64. package/dist/models/CommissionSimulationItemInput.js +2 -1
  65. package/dist/models/CreateApiKeyInput.d.ts +2 -0
  66. package/dist/models/CreateApiKeyInput.js +2 -0
  67. package/dist/models/CreateBrokeredLeadInput.d.ts +59 -0
  68. package/dist/models/CreateBrokeredLeadInput.js +68 -0
  69. package/dist/models/CreatedApiKeyDto.d.ts +2 -0
  70. package/dist/models/CreatedApiKeyDto.js +2 -0
  71. package/dist/models/CustomerSuccessListAccountDto.d.ts +6 -0
  72. package/dist/models/CustomerSuccessListAccountDto.js +4 -0
  73. package/dist/models/CustomerSuccessListAccountMetricsDto.d.ts +6 -0
  74. package/dist/models/CustomerSuccessListAccountMetricsDto.js +4 -0
  75. package/dist/models/DeclineBrokeredLeadInput.d.ts +32 -0
  76. package/dist/models/DeclineBrokeredLeadInput.js +49 -0
  77. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  78. package/dist/models/FeatureFlagListItemDto.js +1 -0
  79. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +13 -0
  80. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +9 -0
  81. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +1 -1
  82. package/dist/models/InvoiceDto.d.ts +6 -0
  83. package/dist/models/InvoiceDto.js +4 -0
  84. package/dist/models/LeadBrokeredDealDto.d.ts +39 -0
  85. package/dist/models/LeadBrokeredDealDto.js +56 -0
  86. package/dist/models/ListAccountMetricsDto.d.ts +6 -0
  87. package/dist/models/ListAccountMetricsDto.js +4 -0
  88. package/dist/models/ListBrokerLeads200Response.d.ts +47 -0
  89. package/dist/models/ListBrokerLeads200Response.js +62 -0
  90. package/dist/models/ListLeadsResultItem.d.ts +7 -0
  91. package/dist/models/ListLeadsResultItem.js +5 -0
  92. package/dist/models/ManualLeadDetails.d.ts +7 -0
  93. package/dist/models/ManualLeadDetails.js +5 -0
  94. package/dist/models/OverrideBrokeredLeadNameshiftCommissionInput.d.ts +38 -0
  95. package/dist/models/OverrideBrokeredLeadNameshiftCommissionInput.js +55 -0
  96. package/dist/models/PrivateAccountGetMeResponse.d.ts +19 -0
  97. package/dist/models/PrivateAccountGetMeResponse.js +13 -0
  98. package/dist/models/RegisterAccountInput.d.ts +6 -0
  99. package/dist/models/RegisterAccountInput.js +2 -0
  100. package/dist/models/SellerBrokeredLeadDto.d.ts +114 -0
  101. package/dist/models/SellerBrokeredLeadDto.js +111 -0
  102. package/dist/models/SellerBrokeredLeadVerificationDto.d.ts +44 -0
  103. package/dist/models/SellerBrokeredLeadVerificationDto.js +59 -0
  104. package/dist/models/SellerInvoiceDto.d.ts +6 -0
  105. package/dist/models/SellerInvoiceDto.js +4 -0
  106. package/dist/models/SimulateCommissionInput.d.ts +1 -0
  107. package/dist/models/SimulateCommissionInput.js +2 -1
  108. package/dist/models/UpdateApiKeyInput.d.ts +2 -0
  109. package/dist/models/UpdateApiKeyInput.js +2 -0
  110. package/dist/models/UserNotificationDto.d.ts +6 -0
  111. package/dist/models/UserNotificationDto.js +7 -1
  112. package/dist/models/UserNotificationListItemDto.d.ts +6 -0
  113. package/dist/models/UserNotificationListItemDto.js +7 -1
  114. package/dist/models/WithSettingsInner.d.ts +11 -4
  115. package/dist/models/WithSettingsInner.js +9 -4
  116. package/dist/models/index.d.ts +18 -0
  117. package/dist/models/index.js +18 -0
  118. package/package.json +1 -1
  119. package/src/apis/AdminApi.ts +145 -0
  120. package/src/apis/BrokeredLeadsApi.ts +740 -0
  121. package/src/apis/BrokeredLeadsPublicApi.ts +69 -0
  122. package/src/apis/index.ts +2 -0
  123. package/src/models/AccountBrokerSettingsInput.ts +73 -0
  124. package/src/models/AccountDto.ts +18 -0
  125. package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +2 -1
  126. package/src/models/AccountNameshiftCommissionItemDto.ts +2 -1
  127. package/src/models/AccountNameshiftCommissionReasonDto.ts +2 -1
  128. package/src/models/AccountNotificationDto.ts +2 -1
  129. package/src/models/AccountSettingsBrokerDto.ts +75 -0
  130. package/src/models/AccountSettingsDto.ts +16 -0
  131. package/src/models/AccountSettingsInput.ts +15 -0
  132. package/src/models/AdminBrokeredLeadDto.ts +404 -0
  133. package/src/models/AdminListBrokeredLeads200Response.ts +106 -0
  134. package/src/models/ApiKeyDto.ts +2 -0
  135. package/src/models/ApiKeyScopeDto.ts +2 -0
  136. package/src/models/BrokerBrokeredLeadDto.ts +320 -0
  137. package/src/models/BrokerCommissionInput.ts +93 -0
  138. package/src/models/BrokeredLeadBreakdownDto.ts +117 -0
  139. package/src/models/BrokeredLeadBuyerContactDto.ts +93 -0
  140. package/src/models/BrokeredLeadBuyerInput.ts +93 -0
  141. package/src/models/BrokeredLeadCommissionDto.ts +130 -0
  142. package/src/models/BrokeredLeadInvitationDto.ts +110 -0
  143. package/src/models/BuyerInvoiceDto.ts +9 -0
  144. package/src/models/BuyerNotificationDto.ts +7 -1
  145. package/src/models/BuyerNotificationListItemDto.ts +7 -1
  146. package/src/models/CommissionDto.ts +2 -1
  147. package/src/models/CommissionPayloadInput.ts +2 -1
  148. package/src/models/CommissionReasonDto.ts +2 -1
  149. package/src/models/CommissionSimulationItemInput.ts +2 -1
  150. package/src/models/CreateApiKeyInput.ts +2 -0
  151. package/src/models/CreateBrokeredLeadInput.ts +123 -0
  152. package/src/models/CreatedApiKeyDto.ts +2 -0
  153. package/src/models/CustomerSuccessListAccountDto.ts +9 -0
  154. package/src/models/CustomerSuccessListAccountMetricsDto.ts +9 -0
  155. package/src/models/DeclineBrokeredLeadInput.ts +65 -0
  156. package/src/models/FeatureFlagListItemDto.ts +1 -0
  157. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +19 -0
  158. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +1 -1
  159. package/src/models/InvoiceDto.ts +9 -0
  160. package/src/models/LeadBrokeredDealDto.ts +83 -0
  161. package/src/models/ListAccountMetricsDto.ts +9 -0
  162. package/src/models/ListBrokerLeads200Response.ts +106 -0
  163. package/src/models/ListLeadsResultItem.ts +16 -0
  164. package/src/models/ManualLeadDetails.ts +16 -0
  165. package/src/models/OverrideBrokeredLeadNameshiftCommissionInput.ts +75 -0
  166. package/src/models/PrivateAccountGetMeResponse.ts +28 -0
  167. package/src/models/RegisterAccountInput.ts +8 -0
  168. package/src/models/SellerBrokeredLeadDto.ts +215 -0
  169. package/src/models/SellerBrokeredLeadVerificationDto.ts +84 -0
  170. package/src/models/SellerInvoiceDto.ts +9 -0
  171. package/src/models/SimulateCommissionInput.ts +2 -1
  172. package/src/models/UpdateApiKeyInput.ts +2 -0
  173. package/src/models/UserNotificationDto.ts +7 -1
  174. package/src/models/UserNotificationListItemDto.ts +7 -1
  175. package/src/models/WithSettingsInner.ts +44 -28
  176. package/src/models/index.ts +18 -0
@@ -0,0 +1,320 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * 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.
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 { BrokeredLeadCommissionDto } from './BrokeredLeadCommissionDto';
17
+ import {
18
+ BrokeredLeadCommissionDtoFromJSON,
19
+ BrokeredLeadCommissionDtoFromJSONTyped,
20
+ BrokeredLeadCommissionDtoToJSON,
21
+ BrokeredLeadCommissionDtoToJSONTyped,
22
+ } from './BrokeredLeadCommissionDto';
23
+ import type { MoneyDto } from './MoneyDto';
24
+ import {
25
+ MoneyDtoFromJSON,
26
+ MoneyDtoFromJSONTyped,
27
+ MoneyDtoToJSON,
28
+ MoneyDtoToJSONTyped,
29
+ } from './MoneyDto';
30
+ import type { MoneyDecimalDto } from './MoneyDecimalDto';
31
+ import {
32
+ MoneyDecimalDtoFromJSON,
33
+ MoneyDecimalDtoFromJSONTyped,
34
+ MoneyDecimalDtoToJSON,
35
+ MoneyDecimalDtoToJSONTyped,
36
+ } from './MoneyDecimalDto';
37
+ import type { BrokeredLeadBuyerContactDto } from './BrokeredLeadBuyerContactDto';
38
+ import {
39
+ BrokeredLeadBuyerContactDtoFromJSON,
40
+ BrokeredLeadBuyerContactDtoFromJSONTyped,
41
+ BrokeredLeadBuyerContactDtoToJSON,
42
+ BrokeredLeadBuyerContactDtoToJSONTyped,
43
+ } from './BrokeredLeadBuyerContactDto';
44
+
45
+ /**
46
+ *
47
+ * @export
48
+ * @interface BrokerBrokeredLeadDto
49
+ */
50
+ export interface BrokerBrokeredLeadDto {
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof BrokerBrokeredLeadDto
55
+ */
56
+ id: string;
57
+ /**
58
+ *
59
+ * @type {string}
60
+ * @memberof BrokerBrokeredLeadDto
61
+ */
62
+ domainName: string;
63
+ /**
64
+ *
65
+ * @type {string}
66
+ * @memberof BrokerBrokeredLeadDto
67
+ */
68
+ status: BrokerBrokeredLeadDtoStatusEnum;
69
+ /**
70
+ *
71
+ * @type {MoneyDto}
72
+ * @memberof BrokerBrokeredLeadDto
73
+ */
74
+ askingPrice: MoneyDto;
75
+ /**
76
+ *
77
+ * @type {BrokeredLeadCommissionDto}
78
+ * @memberof BrokerBrokeredLeadDto
79
+ */
80
+ commission: BrokeredLeadCommissionDto;
81
+ /**
82
+ * Nameshift platform fee charged to the broker, as a percentage of the sale price.
83
+ * @type {number}
84
+ * @memberof BrokerBrokeredLeadDto
85
+ */
86
+ nameshiftCommissionPercentage: number;
87
+ /**
88
+ *
89
+ * @type {MoneyDecimalDto}
90
+ * @memberof BrokerBrokeredLeadDto
91
+ */
92
+ nameshiftFee: MoneyDecimalDto;
93
+ /**
94
+ * What the broker is paid: the commission less the fee.
95
+ * @type {MoneyDecimalDto}
96
+ * @memberof BrokerBrokeredLeadDto
97
+ */
98
+ netPayout: MoneyDecimalDto;
99
+ /**
100
+ *
101
+ * @type {BrokeredLeadBuyerContactDto}
102
+ * @memberof BrokerBrokeredLeadDto
103
+ */
104
+ buyer: BrokeredLeadBuyerContactDto;
105
+ /**
106
+ *
107
+ * @type {string}
108
+ * @memberof BrokerBrokeredLeadDto
109
+ */
110
+ sellerEmail: string | null;
111
+ /**
112
+ * Whether the deal waits in a seller account: the one that verified the domain, or the one that took up the link.
113
+ * @type {boolean}
114
+ * @memberof BrokerBrokeredLeadDto
115
+ */
116
+ sellerLinked: boolean;
117
+ /**
118
+ * 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.
119
+ * @type {string}
120
+ * @memberof BrokerBrokeredLeadDto
121
+ */
122
+ sellerSignupUrl: string | null;
123
+ /**
124
+ *
125
+ * @type {Date}
126
+ * @memberof BrokerBrokeredLeadDto
127
+ */
128
+ sellerSignupUrlExpiresAt: Date | null;
129
+ /**
130
+ * Where a seller with an account reviews the deal.
131
+ * @type {string}
132
+ * @memberof BrokerBrokeredLeadDto
133
+ */
134
+ sellerReviewUrl: string | null;
135
+ /**
136
+ * Where the buyer pays, once the deal is ready for payment.
137
+ * @type {string}
138
+ * @memberof BrokerBrokeredLeadDto
139
+ */
140
+ paymentUrl: string | null;
141
+ /**
142
+ *
143
+ * @type {Date}
144
+ * @memberof BrokerBrokeredLeadDto
145
+ */
146
+ sellerNotifiedAt: Date | null;
147
+ /**
148
+ * When the seller can be emailed again.
149
+ * @type {Date}
150
+ * @memberof BrokerBrokeredLeadDto
151
+ */
152
+ nextSellerNotificationAt: Date | null;
153
+ /**
154
+ *
155
+ * @type {boolean}
156
+ * @memberof BrokerBrokeredLeadDto
157
+ */
158
+ canNotifySeller: boolean;
159
+ /**
160
+ *
161
+ * @type {Date}
162
+ * @memberof BrokerBrokeredLeadDto
163
+ */
164
+ buyerNotifiedAt: Date | null;
165
+ /**
166
+ * When the buyer can be emailed again.
167
+ * @type {Date}
168
+ * @memberof BrokerBrokeredLeadDto
169
+ */
170
+ nextBuyerNotificationAt: Date | null;
171
+ /**
172
+ *
173
+ * @type {boolean}
174
+ * @memberof BrokerBrokeredLeadDto
175
+ */
176
+ canNotifyBuyer: boolean;
177
+ /**
178
+ *
179
+ * @type {string}
180
+ * @memberof BrokerBrokeredLeadDto
181
+ */
182
+ declineReason: string | null;
183
+ /**
184
+ *
185
+ * @type {Date}
186
+ * @memberof BrokerBrokeredLeadDto
187
+ */
188
+ createdAt: Date;
189
+ /**
190
+ *
191
+ * @type {Date}
192
+ * @memberof BrokerBrokeredLeadDto
193
+ */
194
+ updatedAt: Date;
195
+ }
196
+
197
+
198
+ /**
199
+ * @export
200
+ */
201
+ export const BrokerBrokeredLeadDtoStatusEnum = {
202
+ PENDING_SELLER: 'pending_seller',
203
+ PENDING_SELLER_VERIFICATION: 'pending_seller_verification',
204
+ AWAITING_PAYMENT: 'awaiting_payment',
205
+ PAYMENT_EXPIRED: 'payment_expired',
206
+ TRANSFER_IN_PROGRESS: 'transfer_in_progress',
207
+ COMPLETED: 'completed',
208
+ CLOSED: 'closed',
209
+ DECLINED: 'declined',
210
+ CANCELLED: 'cancelled'
211
+ } as const;
212
+ export type BrokerBrokeredLeadDtoStatusEnum = typeof BrokerBrokeredLeadDtoStatusEnum[keyof typeof BrokerBrokeredLeadDtoStatusEnum];
213
+
214
+
215
+ /**
216
+ * Check if a given object implements the BrokerBrokeredLeadDto interface.
217
+ */
218
+ export function instanceOfBrokerBrokeredLeadDto(value: object): value is BrokerBrokeredLeadDto {
219
+ if (!('id' in value) || value['id'] === undefined) return false;
220
+ if (!('domainName' in value) || value['domainName'] === undefined) return false;
221
+ if (!('status' in value) || value['status'] === undefined) return false;
222
+ if (!('askingPrice' in value) || value['askingPrice'] === undefined) return false;
223
+ if (!('commission' in value) || value['commission'] === undefined) return false;
224
+ if (!('nameshiftCommissionPercentage' in value) || value['nameshiftCommissionPercentage'] === undefined) return false;
225
+ if (!('nameshiftFee' in value) || value['nameshiftFee'] === undefined) return false;
226
+ if (!('netPayout' in value) || value['netPayout'] === undefined) return false;
227
+ if (!('buyer' in value) || value['buyer'] === undefined) return false;
228
+ if (!('sellerEmail' in value) || value['sellerEmail'] === undefined) return false;
229
+ if (!('sellerLinked' in value) || value['sellerLinked'] === undefined) return false;
230
+ if (!('sellerSignupUrl' in value) || value['sellerSignupUrl'] === undefined) return false;
231
+ if (!('sellerSignupUrlExpiresAt' in value) || value['sellerSignupUrlExpiresAt'] === undefined) return false;
232
+ if (!('sellerReviewUrl' in value) || value['sellerReviewUrl'] === undefined) return false;
233
+ if (!('paymentUrl' in value) || value['paymentUrl'] === undefined) return false;
234
+ if (!('sellerNotifiedAt' in value) || value['sellerNotifiedAt'] === undefined) return false;
235
+ if (!('nextSellerNotificationAt' in value) || value['nextSellerNotificationAt'] === undefined) return false;
236
+ if (!('canNotifySeller' in value) || value['canNotifySeller'] === undefined) return false;
237
+ if (!('buyerNotifiedAt' in value) || value['buyerNotifiedAt'] === undefined) return false;
238
+ if (!('nextBuyerNotificationAt' in value) || value['nextBuyerNotificationAt'] === undefined) return false;
239
+ if (!('canNotifyBuyer' in value) || value['canNotifyBuyer'] === undefined) return false;
240
+ if (!('declineReason' in value) || value['declineReason'] === undefined) return false;
241
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
242
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
243
+ return true;
244
+ }
245
+
246
+ export function BrokerBrokeredLeadDtoFromJSON(json: any): BrokerBrokeredLeadDto {
247
+ return BrokerBrokeredLeadDtoFromJSONTyped(json, false);
248
+ }
249
+
250
+ export function BrokerBrokeredLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrokerBrokeredLeadDto {
251
+ if (json == null) {
252
+ return json;
253
+ }
254
+ return {
255
+
256
+ 'id': json['id'],
257
+ 'domainName': json['domainName'],
258
+ 'status': json['status'],
259
+ 'askingPrice': MoneyDtoFromJSON(json['askingPrice']),
260
+ 'commission': BrokeredLeadCommissionDtoFromJSON(json['commission']),
261
+ 'nameshiftCommissionPercentage': json['nameshiftCommissionPercentage'],
262
+ 'nameshiftFee': MoneyDecimalDtoFromJSON(json['nameshiftFee']),
263
+ 'netPayout': MoneyDecimalDtoFromJSON(json['netPayout']),
264
+ 'buyer': BrokeredLeadBuyerContactDtoFromJSON(json['buyer']),
265
+ 'sellerEmail': json['sellerEmail'],
266
+ 'sellerLinked': json['sellerLinked'],
267
+ 'sellerSignupUrl': json['sellerSignupUrl'],
268
+ 'sellerSignupUrlExpiresAt': (json['sellerSignupUrlExpiresAt'] == null ? null : new Date(json['sellerSignupUrlExpiresAt'])),
269
+ 'sellerReviewUrl': json['sellerReviewUrl'],
270
+ 'paymentUrl': json['paymentUrl'],
271
+ 'sellerNotifiedAt': (json['sellerNotifiedAt'] == null ? null : new Date(json['sellerNotifiedAt'])),
272
+ 'nextSellerNotificationAt': (json['nextSellerNotificationAt'] == null ? null : new Date(json['nextSellerNotificationAt'])),
273
+ 'canNotifySeller': json['canNotifySeller'],
274
+ 'buyerNotifiedAt': (json['buyerNotifiedAt'] == null ? null : new Date(json['buyerNotifiedAt'])),
275
+ 'nextBuyerNotificationAt': (json['nextBuyerNotificationAt'] == null ? null : new Date(json['nextBuyerNotificationAt'])),
276
+ 'canNotifyBuyer': json['canNotifyBuyer'],
277
+ 'declineReason': json['declineReason'],
278
+ 'createdAt': (new Date(json['createdAt'])),
279
+ 'updatedAt': (new Date(json['updatedAt'])),
280
+ };
281
+ }
282
+
283
+ export function BrokerBrokeredLeadDtoToJSON(json: any): BrokerBrokeredLeadDto {
284
+ return BrokerBrokeredLeadDtoToJSONTyped(json, false);
285
+ }
286
+
287
+ export function BrokerBrokeredLeadDtoToJSONTyped(value?: BrokerBrokeredLeadDto | null, ignoreDiscriminator: boolean = false): any {
288
+ if (value == null) {
289
+ return value;
290
+ }
291
+
292
+ return {
293
+
294
+ 'id': value['id'],
295
+ 'domainName': value['domainName'],
296
+ 'status': value['status'],
297
+ 'askingPrice': MoneyDtoToJSON(value['askingPrice']),
298
+ 'commission': BrokeredLeadCommissionDtoToJSON(value['commission']),
299
+ 'nameshiftCommissionPercentage': value['nameshiftCommissionPercentage'],
300
+ 'nameshiftFee': MoneyDecimalDtoToJSON(value['nameshiftFee']),
301
+ 'netPayout': MoneyDecimalDtoToJSON(value['netPayout']),
302
+ 'buyer': BrokeredLeadBuyerContactDtoToJSON(value['buyer']),
303
+ 'sellerEmail': value['sellerEmail'],
304
+ 'sellerLinked': value['sellerLinked'],
305
+ 'sellerSignupUrl': value['sellerSignupUrl'],
306
+ 'sellerSignupUrlExpiresAt': (value['sellerSignupUrlExpiresAt'] == null ? null : (value['sellerSignupUrlExpiresAt'] as any).toISOString()),
307
+ 'sellerReviewUrl': value['sellerReviewUrl'],
308
+ 'paymentUrl': value['paymentUrl'],
309
+ 'sellerNotifiedAt': (value['sellerNotifiedAt'] == null ? null : (value['sellerNotifiedAt'] as any).toISOString()),
310
+ 'nextSellerNotificationAt': (value['nextSellerNotificationAt'] == null ? null : (value['nextSellerNotificationAt'] as any).toISOString()),
311
+ 'canNotifySeller': value['canNotifySeller'],
312
+ 'buyerNotifiedAt': (value['buyerNotifiedAt'] == null ? null : (value['buyerNotifiedAt'] as any).toISOString()),
313
+ 'nextBuyerNotificationAt': (value['nextBuyerNotificationAt'] == null ? null : (value['nextBuyerNotificationAt'] as any).toISOString()),
314
+ 'canNotifyBuyer': value['canNotifyBuyer'],
315
+ 'declineReason': value['declineReason'],
316
+ 'createdAt': ((value['createdAt']).toISOString()),
317
+ 'updatedAt': ((value['updatedAt']).toISOString()),
318
+ };
319
+ }
320
+
@@ -0,0 +1,93 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * 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.
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface BrokerCommissionInput
20
+ */
21
+ export interface BrokerCommissionInput {
22
+ /**
23
+ * Whether the values are percentages of the sale price or fixed amounts in its currency.
24
+ * @type {string}
25
+ * @memberof BrokerCommissionInput
26
+ */
27
+ type: BrokerCommissionInputTypeEnum;
28
+ /**
29
+ * Commission charged to the buyer, on top of the sale price. Null or 0 charges the buyer nothing.
30
+ * @type {number}
31
+ * @memberof BrokerCommissionInput
32
+ */
33
+ buyerValue?: number | null;
34
+ /**
35
+ * Commission charged to the seller, deducted from the proceeds. Null or 0 charges the seller nothing.
36
+ * @type {number}
37
+ * @memberof BrokerCommissionInput
38
+ */
39
+ sellerValue?: number | null;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const BrokerCommissionInputTypeEnum = {
47
+ FIXED: 'fixed',
48
+ PERCENTAGE: 'percentage'
49
+ } as const;
50
+ export type BrokerCommissionInputTypeEnum = typeof BrokerCommissionInputTypeEnum[keyof typeof BrokerCommissionInputTypeEnum];
51
+
52
+
53
+ /**
54
+ * Check if a given object implements the BrokerCommissionInput interface.
55
+ */
56
+ export function instanceOfBrokerCommissionInput(value: object): value is BrokerCommissionInput {
57
+ if (!('type' in value) || value['type'] === undefined) return false;
58
+ return true;
59
+ }
60
+
61
+ export function BrokerCommissionInputFromJSON(json: any): BrokerCommissionInput {
62
+ return BrokerCommissionInputFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function BrokerCommissionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrokerCommissionInput {
66
+ if (json == null) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'type': json['type'],
72
+ 'buyerValue': json['buyerValue'] == null ? undefined : json['buyerValue'],
73
+ 'sellerValue': json['sellerValue'] == null ? undefined : json['sellerValue'],
74
+ };
75
+ }
76
+
77
+ export function BrokerCommissionInputToJSON(json: any): BrokerCommissionInput {
78
+ return BrokerCommissionInputToJSONTyped(json, false);
79
+ }
80
+
81
+ export function BrokerCommissionInputToJSONTyped(value?: BrokerCommissionInput | null, ignoreDiscriminator: boolean = false): any {
82
+ if (value == null) {
83
+ return value;
84
+ }
85
+
86
+ return {
87
+
88
+ 'type': value['type'],
89
+ 'buyerValue': value['buyerValue'],
90
+ 'sellerValue': value['sellerValue'],
91
+ };
92
+ }
93
+
@@ -0,0 +1,117 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * 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.
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 { BrokeredLeadCommissionDto } from './BrokeredLeadCommissionDto';
17
+ import {
18
+ BrokeredLeadCommissionDtoFromJSON,
19
+ BrokeredLeadCommissionDtoFromJSONTyped,
20
+ BrokeredLeadCommissionDtoToJSON,
21
+ BrokeredLeadCommissionDtoToJSONTyped,
22
+ } from './BrokeredLeadCommissionDto';
23
+ import type { MoneyDecimalDto } from './MoneyDecimalDto';
24
+ import {
25
+ MoneyDecimalDtoFromJSON,
26
+ MoneyDecimalDtoFromJSONTyped,
27
+ MoneyDecimalDtoToJSON,
28
+ MoneyDecimalDtoToJSONTyped,
29
+ } from './MoneyDecimalDto';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface BrokeredLeadBreakdownDto
35
+ */
36
+ export interface BrokeredLeadBreakdownDto {
37
+ /**
38
+ * The sale price the buyer and the seller agreed to.
39
+ * @type {MoneyDecimalDto}
40
+ * @memberof BrokeredLeadBreakdownDto
41
+ */
42
+ salePrice: MoneyDecimalDto;
43
+ /**
44
+ * What the buyer pays, before taxes.
45
+ * @type {MoneyDecimalDto}
46
+ * @memberof BrokeredLeadBreakdownDto
47
+ */
48
+ buyerPays: MoneyDecimalDto;
49
+ /**
50
+ * What the seller receives.
51
+ * @type {MoneyDecimalDto}
52
+ * @memberof BrokeredLeadBreakdownDto
53
+ */
54
+ sellerReceives: MoneyDecimalDto;
55
+ /**
56
+ * The broker commission on both sides together.
57
+ * @type {MoneyDecimalDto}
58
+ * @memberof BrokeredLeadBreakdownDto
59
+ */
60
+ brokerReceives: MoneyDecimalDto;
61
+ /**
62
+ *
63
+ * @type {BrokeredLeadCommissionDto}
64
+ * @memberof BrokeredLeadBreakdownDto
65
+ */
66
+ commission: BrokeredLeadCommissionDto;
67
+ }
68
+
69
+ /**
70
+ * Check if a given object implements the BrokeredLeadBreakdownDto interface.
71
+ */
72
+ export function instanceOfBrokeredLeadBreakdownDto(value: object): value is BrokeredLeadBreakdownDto {
73
+ if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
74
+ if (!('buyerPays' in value) || value['buyerPays'] === undefined) return false;
75
+ if (!('sellerReceives' in value) || value['sellerReceives'] === undefined) return false;
76
+ if (!('brokerReceives' in value) || value['brokerReceives'] === undefined) return false;
77
+ if (!('commission' in value) || value['commission'] === undefined) return false;
78
+ return true;
79
+ }
80
+
81
+ export function BrokeredLeadBreakdownDtoFromJSON(json: any): BrokeredLeadBreakdownDto {
82
+ return BrokeredLeadBreakdownDtoFromJSONTyped(json, false);
83
+ }
84
+
85
+ export function BrokeredLeadBreakdownDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrokeredLeadBreakdownDto {
86
+ if (json == null) {
87
+ return json;
88
+ }
89
+ return {
90
+
91
+ 'salePrice': MoneyDecimalDtoFromJSON(json['salePrice']),
92
+ 'buyerPays': MoneyDecimalDtoFromJSON(json['buyerPays']),
93
+ 'sellerReceives': MoneyDecimalDtoFromJSON(json['sellerReceives']),
94
+ 'brokerReceives': MoneyDecimalDtoFromJSON(json['brokerReceives']),
95
+ 'commission': BrokeredLeadCommissionDtoFromJSON(json['commission']),
96
+ };
97
+ }
98
+
99
+ export function BrokeredLeadBreakdownDtoToJSON(json: any): BrokeredLeadBreakdownDto {
100
+ return BrokeredLeadBreakdownDtoToJSONTyped(json, false);
101
+ }
102
+
103
+ export function BrokeredLeadBreakdownDtoToJSONTyped(value?: BrokeredLeadBreakdownDto | null, ignoreDiscriminator: boolean = false): any {
104
+ if (value == null) {
105
+ return value;
106
+ }
107
+
108
+ return {
109
+
110
+ 'salePrice': MoneyDecimalDtoToJSON(value['salePrice']),
111
+ 'buyerPays': MoneyDecimalDtoToJSON(value['buyerPays']),
112
+ 'sellerReceives': MoneyDecimalDtoToJSON(value['sellerReceives']),
113
+ 'brokerReceives': MoneyDecimalDtoToJSON(value['brokerReceives']),
114
+ 'commission': BrokeredLeadCommissionDtoToJSON(value['commission']),
115
+ };
116
+ }
117
+
@@ -0,0 +1,93 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * 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.
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface BrokeredLeadBuyerContactDto
20
+ */
21
+ export interface BrokeredLeadBuyerContactDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof BrokeredLeadBuyerContactDto
26
+ */
27
+ email: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof BrokeredLeadBuyerContactDto
32
+ */
33
+ firstname: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof BrokeredLeadBuyerContactDto
38
+ */
39
+ lastname: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof BrokeredLeadBuyerContactDto
44
+ */
45
+ locale: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the BrokeredLeadBuyerContactDto interface.
50
+ */
51
+ export function instanceOfBrokeredLeadBuyerContactDto(value: object): value is BrokeredLeadBuyerContactDto {
52
+ if (!('email' in value) || value['email'] === undefined) return false;
53
+ if (!('firstname' in value) || value['firstname'] === undefined) return false;
54
+ if (!('lastname' in value) || value['lastname'] === undefined) return false;
55
+ if (!('locale' in value) || value['locale'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function BrokeredLeadBuyerContactDtoFromJSON(json: any): BrokeredLeadBuyerContactDto {
60
+ return BrokeredLeadBuyerContactDtoFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function BrokeredLeadBuyerContactDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrokeredLeadBuyerContactDto {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'email': json['email'],
70
+ 'firstname': json['firstname'],
71
+ 'lastname': json['lastname'],
72
+ 'locale': json['locale'],
73
+ };
74
+ }
75
+
76
+ export function BrokeredLeadBuyerContactDtoToJSON(json: any): BrokeredLeadBuyerContactDto {
77
+ return BrokeredLeadBuyerContactDtoToJSONTyped(json, false);
78
+ }
79
+
80
+ export function BrokeredLeadBuyerContactDtoToJSONTyped(value?: BrokeredLeadBuyerContactDto | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'email': value['email'],
88
+ 'firstname': value['firstname'],
89
+ 'lastname': value['lastname'],
90
+ 'locale': value['locale'],
91
+ };
92
+ }
93
+