@randock/nameshift-api-client 0.0.487 → 0.0.489

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 (76) hide show
  1. package/.openapi-generator/FILES +11 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +23 -1
  4. package/dist/apis/AdminApi.js +77 -0
  5. package/dist/apis/BuyersApi.d.ts +33 -1
  6. package/dist/apis/BuyersApi.js +121 -0
  7. package/dist/apis/DomainAppraisalRequestsApi.d.ts +50 -0
  8. package/dist/apis/DomainAppraisalRequestsApi.js +217 -0
  9. package/dist/apis/DomainAppraisalRequestsPublicApi.d.ts +86 -0
  10. package/dist/apis/DomainAppraisalRequestsPublicApi.js +321 -0
  11. package/dist/apis/index.d.ts +2 -0
  12. package/dist/apis/index.js +2 -0
  13. package/dist/models/AccountBankAccountDto.d.ts +17 -0
  14. package/dist/models/AccountBankAccountDto.js +15 -1
  15. package/dist/models/AdminBankAccountDto.d.ts +7 -0
  16. package/dist/models/AdminBankAccountDto.js +5 -0
  17. package/dist/models/AdminBankAccountNameCheckDto.d.ts +119 -0
  18. package/dist/models/AdminBankAccountNameCheckDto.js +119 -0
  19. package/dist/models/AdminDomainAppraisalRequestListItemDto.d.ts +118 -0
  20. package/dist/models/AdminDomainAppraisalRequestListItemDto.js +109 -0
  21. package/dist/models/BuyerDomainAppraisalRequestCheckoutDto.d.ts +268 -0
  22. package/dist/models/BuyerDomainAppraisalRequestCheckoutDto.js +237 -0
  23. package/dist/models/BuyerInvoiceDto.d.ts +2 -2
  24. package/dist/models/BuyerSessionDto.d.ts +6 -0
  25. package/dist/models/BuyerSessionDto.js +4 -0
  26. package/dist/models/CreateAccountPaymentInput.d.ts +1 -0
  27. package/dist/models/CreateAccountPaymentInput.js +2 -1
  28. package/dist/models/CreateBuyerDomainAppraisalRequestInput.d.ts +44 -0
  29. package/dist/models/CreateBuyerDomainAppraisalRequestInput.js +59 -0
  30. package/dist/models/DomainAppraisalRequestListItemDto.d.ts +82 -0
  31. package/dist/models/DomainAppraisalRequestListItemDto.js +85 -0
  32. package/dist/models/DomainAppraisalRequestStatus.d.ts +27 -0
  33. package/dist/models/DomainAppraisalRequestStatus.js +53 -0
  34. package/dist/models/DomainAppraisalRequester.d.ts +25 -0
  35. package/dist/models/DomainAppraisalRequester.js +51 -0
  36. package/dist/models/DomainSalesInformationDto.d.ts +6 -0
  37. package/dist/models/DomainSalesInformationDto.js +4 -0
  38. package/dist/models/FeatureFlagListItemDto.d.ts +2 -0
  39. package/dist/models/FeatureFlagListItemDto.js +3 -1
  40. package/dist/models/GetAdminDomainAppraisalRequests200Response.d.ts +47 -0
  41. package/dist/models/GetAdminDomainAppraisalRequests200Response.js +62 -0
  42. package/dist/models/GetBuyerDomainAppraisalRequests200Response.d.ts +47 -0
  43. package/dist/models/GetBuyerDomainAppraisalRequests200Response.js +62 -0
  44. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +2 -0
  45. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +3 -1
  46. package/dist/models/InvoiceDto.d.ts +2 -2
  47. package/dist/models/PrivateAccountGetMeResponse.d.ts +2 -0
  48. package/dist/models/PrivateAccountGetMeResponse.js +3 -1
  49. package/dist/models/index.d.ts +9 -0
  50. package/dist/models/index.js +9 -0
  51. package/package.json +1 -1
  52. package/src/apis/AdminApi.ts +82 -0
  53. package/src/apis/BuyersApi.ts +113 -0
  54. package/src/apis/DomainAppraisalRequestsApi.ts +157 -0
  55. package/src/apis/DomainAppraisalRequestsPublicApi.ts +271 -0
  56. package/src/apis/index.ts +2 -0
  57. package/src/models/AccountBankAccountDto.ts +21 -0
  58. package/src/models/AdminBankAccountDto.ts +16 -0
  59. package/src/models/AdminBankAccountNameCheckDto.ts +183 -0
  60. package/src/models/AdminDomainAppraisalRequestListItemDto.ts +209 -0
  61. package/src/models/BuyerDomainAppraisalRequestCheckoutDto.ts +411 -0
  62. package/src/models/BuyerInvoiceDto.ts +2 -2
  63. package/src/models/BuyerSessionDto.ts +9 -0
  64. package/src/models/CreateAccountPaymentInput.ts +2 -1
  65. package/src/models/CreateBuyerDomainAppraisalRequestInput.ts +84 -0
  66. package/src/models/DomainAppraisalRequestListItemDto.ts +155 -0
  67. package/src/models/DomainAppraisalRequestStatus.ts +55 -0
  68. package/src/models/DomainAppraisalRequester.ts +53 -0
  69. package/src/models/DomainSalesInformationDto.ts +9 -0
  70. package/src/models/FeatureFlagListItemDto.ts +3 -1
  71. package/src/models/GetAdminDomainAppraisalRequests200Response.ts +106 -0
  72. package/src/models/GetBuyerDomainAppraisalRequests200Response.ts +106 -0
  73. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +3 -1
  74. package/src/models/InvoiceDto.ts +2 -2
  75. package/src/models/PrivateAccountGetMeResponse.ts +3 -1
  76. package/src/models/index.ts +9 -0
@@ -0,0 +1,271 @@
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
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ BuyerDomainAppraisalRequestCheckoutDto,
19
+ CreateBuyerDomainAppraisalRequestInput,
20
+ CreateManualTransactionInput,
21
+ NotFoundException,
22
+ ObjectId,
23
+ UpdateOrderInput,
24
+ ValidationException,
25
+ } from '../models/index';
26
+ import {
27
+ BuyerDomainAppraisalRequestCheckoutDtoFromJSON,
28
+ BuyerDomainAppraisalRequestCheckoutDtoToJSON,
29
+ CreateBuyerDomainAppraisalRequestInputFromJSON,
30
+ CreateBuyerDomainAppraisalRequestInputToJSON,
31
+ CreateManualTransactionInputFromJSON,
32
+ CreateManualTransactionInputToJSON,
33
+ NotFoundExceptionFromJSON,
34
+ NotFoundExceptionToJSON,
35
+ ObjectIdFromJSON,
36
+ ObjectIdToJSON,
37
+ UpdateOrderInputFromJSON,
38
+ UpdateOrderInputToJSON,
39
+ ValidationExceptionFromJSON,
40
+ ValidationExceptionToJSON,
41
+ } from '../models/index';
42
+
43
+ export interface DomainAppraisalRequestsPublicApiCreateBuyerDomainAppraisalRequestRequest {
44
+ createBuyerDomainAppraisalRequestInput: CreateBuyerDomainAppraisalRequestInput;
45
+ }
46
+
47
+ export interface DomainAppraisalRequestsPublicApiCreateDomainAppraisalRequestManualTransactionRequest {
48
+ domainAppraisalRequestId: string;
49
+ createManualTransactionInput: CreateManualTransactionInput;
50
+ }
51
+
52
+ export interface DomainAppraisalRequestsPublicApiDownloadDomainAppraisalRequestProformaInvoiceRequest {
53
+ domainAppraisalRequestId: string;
54
+ }
55
+
56
+ export interface DomainAppraisalRequestsPublicApiGetBuyerDomainAppraisalRequestRequest {
57
+ domainAppraisalRequestId: string;
58
+ includePaymentMethods?: boolean;
59
+ }
60
+
61
+ export interface DomainAppraisalRequestsPublicApiUpdateBuyerDomainAppraisalRequestRequest {
62
+ domainAppraisalRequestId: string;
63
+ updateOrderInput: UpdateOrderInput;
64
+ }
65
+
66
+ /**
67
+ *
68
+ */
69
+ export class DomainAppraisalRequestsPublicApi extends runtime.BaseAPI {
70
+
71
+ /**
72
+ * Creates the domain appraisal request of a domain for a buyer, with its draft invoice.
73
+ * Create domain appraisal request
74
+ */
75
+ async createBuyerDomainAppraisalRequestRaw(requestParameters: DomainAppraisalRequestsPublicApiCreateBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>> {
76
+ if (requestParameters['createBuyerDomainAppraisalRequestInput'] == null) {
77
+ throw new runtime.RequiredError(
78
+ 'createBuyerDomainAppraisalRequestInput',
79
+ 'Required parameter "createBuyerDomainAppraisalRequestInput" was null or undefined when calling createBuyerDomainAppraisalRequest().'
80
+ );
81
+ }
82
+
83
+ const queryParameters: any = {};
84
+
85
+ const headerParameters: runtime.HTTPHeaders = {};
86
+
87
+ headerParameters['Content-Type'] = 'application/json';
88
+
89
+ const response = await this.request({
90
+ path: `/domain-appraisal-requests`,
91
+ method: 'POST',
92
+ headers: headerParameters,
93
+ query: queryParameters,
94
+ body: CreateBuyerDomainAppraisalRequestInputToJSON(requestParameters['createBuyerDomainAppraisalRequestInput']),
95
+ }, initOverrides);
96
+
97
+ return new runtime.JSONApiResponse(response, (jsonValue) => ObjectIdFromJSON(jsonValue));
98
+ }
99
+
100
+ /**
101
+ * Creates the domain appraisal request of a domain for a buyer, with its draft invoice.
102
+ * Create domain appraisal request
103
+ */
104
+ async createBuyerDomainAppraisalRequest(requestParameters: DomainAppraisalRequestsPublicApiCreateBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId> {
105
+ const response = await this.createBuyerDomainAppraisalRequestRaw(requestParameters, initOverrides);
106
+ return await response.value();
107
+ }
108
+
109
+ /**
110
+ * Starts the payment of the invoice of an unpaid buyer domain appraisal request.
111
+ * Create a new manual transaction for domain appraisal request invoice
112
+ */
113
+ async createDomainAppraisalRequestManualTransactionRaw(requestParameters: DomainAppraisalRequestsPublicApiCreateDomainAppraisalRequestManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
114
+ if (requestParameters['domainAppraisalRequestId'] == null) {
115
+ throw new runtime.RequiredError(
116
+ 'domainAppraisalRequestId',
117
+ 'Required parameter "domainAppraisalRequestId" was null or undefined when calling createDomainAppraisalRequestManualTransaction().'
118
+ );
119
+ }
120
+
121
+ if (requestParameters['createManualTransactionInput'] == null) {
122
+ throw new runtime.RequiredError(
123
+ 'createManualTransactionInput',
124
+ 'Required parameter "createManualTransactionInput" was null or undefined when calling createDomainAppraisalRequestManualTransaction().'
125
+ );
126
+ }
127
+
128
+ const queryParameters: any = {};
129
+
130
+ const headerParameters: runtime.HTTPHeaders = {};
131
+
132
+ headerParameters['Content-Type'] = 'application/json';
133
+
134
+ const response = await this.request({
135
+ path: `/domain-appraisal-requests/{domainAppraisalRequestId}/invoice/transactions`.replace(`{${"domainAppraisalRequestId"}}`, encodeURIComponent(String(requestParameters['domainAppraisalRequestId']))),
136
+ method: 'POST',
137
+ headers: headerParameters,
138
+ query: queryParameters,
139
+ body: CreateManualTransactionInputToJSON(requestParameters['createManualTransactionInput']),
140
+ }, initOverrides);
141
+
142
+ return new runtime.VoidApiResponse(response);
143
+ }
144
+
145
+ /**
146
+ * Starts the payment of the invoice of an unpaid buyer domain appraisal request.
147
+ * Create a new manual transaction for domain appraisal request invoice
148
+ */
149
+ async createDomainAppraisalRequestManualTransaction(requestParameters: DomainAppraisalRequestsPublicApiCreateDomainAppraisalRequestManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
150
+ await this.createDomainAppraisalRequestManualTransactionRaw(requestParameters, initOverrides);
151
+ }
152
+
153
+ /**
154
+ * Downloads the pro-forma invoice PDF of a buyer domain appraisal request before it is paid.
155
+ * Download domain appraisal request pro-forma invoice
156
+ */
157
+ async downloadDomainAppraisalRequestProformaInvoiceRaw(requestParameters: DomainAppraisalRequestsPublicApiDownloadDomainAppraisalRequestProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
158
+ if (requestParameters['domainAppraisalRequestId'] == null) {
159
+ throw new runtime.RequiredError(
160
+ 'domainAppraisalRequestId',
161
+ 'Required parameter "domainAppraisalRequestId" was null or undefined when calling downloadDomainAppraisalRequestProformaInvoice().'
162
+ );
163
+ }
164
+
165
+ const queryParameters: any = {};
166
+
167
+ const headerParameters: runtime.HTTPHeaders = {};
168
+
169
+ const response = await this.request({
170
+ path: `/domain-appraisal-requests/{domainAppraisalRequestId}/proforma/download`.replace(`{${"domainAppraisalRequestId"}}`, encodeURIComponent(String(requestParameters['domainAppraisalRequestId']))),
171
+ method: 'GET',
172
+ headers: headerParameters,
173
+ query: queryParameters,
174
+ }, initOverrides);
175
+
176
+ return new runtime.BlobApiResponse(response);
177
+ }
178
+
179
+ /**
180
+ * Downloads the pro-forma invoice PDF of a buyer domain appraisal request before it is paid.
181
+ * Download domain appraisal request pro-forma invoice
182
+ */
183
+ async downloadDomainAppraisalRequestProformaInvoice(requestParameters: DomainAppraisalRequestsPublicApiDownloadDomainAppraisalRequestProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
184
+ const response = await this.downloadDomainAppraisalRequestProformaInvoiceRaw(requestParameters, initOverrides);
185
+ return await response.value();
186
+ }
187
+
188
+ /**
189
+ * Returns a buyer domain appraisal request with its invoice and payment state.
190
+ * Get domain appraisal request
191
+ */
192
+ async getBuyerDomainAppraisalRequestRaw(requestParameters: DomainAppraisalRequestsPublicApiGetBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerDomainAppraisalRequestCheckoutDto>> {
193
+ if (requestParameters['domainAppraisalRequestId'] == null) {
194
+ throw new runtime.RequiredError(
195
+ 'domainAppraisalRequestId',
196
+ 'Required parameter "domainAppraisalRequestId" was null or undefined when calling getBuyerDomainAppraisalRequest().'
197
+ );
198
+ }
199
+
200
+ const queryParameters: any = {};
201
+
202
+ if (requestParameters['includePaymentMethods'] != null) {
203
+ queryParameters['includePaymentMethods'] = requestParameters['includePaymentMethods'];
204
+ }
205
+
206
+ const headerParameters: runtime.HTTPHeaders = {};
207
+
208
+ const response = await this.request({
209
+ path: `/domain-appraisal-requests/{domainAppraisalRequestId}`.replace(`{${"domainAppraisalRequestId"}}`, encodeURIComponent(String(requestParameters['domainAppraisalRequestId']))),
210
+ method: 'GET',
211
+ headers: headerParameters,
212
+ query: queryParameters,
213
+ }, initOverrides);
214
+
215
+ return new runtime.JSONApiResponse(response, (jsonValue) => BuyerDomainAppraisalRequestCheckoutDtoFromJSON(jsonValue));
216
+ }
217
+
218
+ /**
219
+ * Returns a buyer domain appraisal request with its invoice and payment state.
220
+ * Get domain appraisal request
221
+ */
222
+ async getBuyerDomainAppraisalRequest(requestParameters: DomainAppraisalRequestsPublicApiGetBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerDomainAppraisalRequestCheckoutDto> {
223
+ const response = await this.getBuyerDomainAppraisalRequestRaw(requestParameters, initOverrides);
224
+ return await response.value();
225
+ }
226
+
227
+ /**
228
+ * Updates the buyer and billing information of an domain appraisal request that is still unpaid.
229
+ * Update domain appraisal request
230
+ */
231
+ async updateBuyerDomainAppraisalRequestRaw(requestParameters: DomainAppraisalRequestsPublicApiUpdateBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
232
+ if (requestParameters['domainAppraisalRequestId'] == null) {
233
+ throw new runtime.RequiredError(
234
+ 'domainAppraisalRequestId',
235
+ 'Required parameter "domainAppraisalRequestId" was null or undefined when calling updateBuyerDomainAppraisalRequest().'
236
+ );
237
+ }
238
+
239
+ if (requestParameters['updateOrderInput'] == null) {
240
+ throw new runtime.RequiredError(
241
+ 'updateOrderInput',
242
+ 'Required parameter "updateOrderInput" was null or undefined when calling updateBuyerDomainAppraisalRequest().'
243
+ );
244
+ }
245
+
246
+ const queryParameters: any = {};
247
+
248
+ const headerParameters: runtime.HTTPHeaders = {};
249
+
250
+ headerParameters['Content-Type'] = 'application/json';
251
+
252
+ const response = await this.request({
253
+ path: `/domain-appraisal-requests/{domainAppraisalRequestId}`.replace(`{${"domainAppraisalRequestId"}}`, encodeURIComponent(String(requestParameters['domainAppraisalRequestId']))),
254
+ method: 'PATCH',
255
+ headers: headerParameters,
256
+ query: queryParameters,
257
+ body: UpdateOrderInputToJSON(requestParameters['updateOrderInput']),
258
+ }, initOverrides);
259
+
260
+ return new runtime.VoidApiResponse(response);
261
+ }
262
+
263
+ /**
264
+ * Updates the buyer and billing information of an domain appraisal request that is still unpaid.
265
+ * Update domain appraisal request
266
+ */
267
+ async updateBuyerDomainAppraisalRequest(requestParameters: DomainAppraisalRequestsPublicApiUpdateBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
268
+ await this.updateBuyerDomainAppraisalRequestRaw(requestParameters, initOverrides);
269
+ }
270
+
271
+ }
package/src/apis/index.ts CHANGED
@@ -12,6 +12,8 @@ export * from './BuyersApi';
12
12
  export * from './BuyersPublicApi';
13
13
  export * from './ChallengesApi';
14
14
  export * from './CustomerSuccessApi';
15
+ export * from './DomainAppraisalRequestsApi';
16
+ export * from './DomainAppraisalRequestsPublicApi';
15
17
  export * from './DomainTransfersApi';
16
18
  export * from './DomainsApi';
17
19
  export * from './DomainsPublicApi';
@@ -51,6 +51,12 @@ export interface AccountBankAccountDto {
51
51
  * @memberof AccountBankAccountDto
52
52
  */
53
53
  verificationStatus: AccountBankAccountDtoVerificationStatusEnum;
54
+ /**
55
+ * Where the check of the account holder's name with the seller's bank stands: checking while the bank is being asked, then what it answered. A pending account is best verified by micro-deposit only once the check is done. Null when the bank is not asked about this account.
56
+ * @type {string}
57
+ * @memberof AccountBankAccountDto
58
+ */
59
+ nameCheckStatus: AccountBankAccountDtoNameCheckStatusEnum | null;
54
60
  /**
55
61
  *
56
62
  * @type {AccountBankAccountDtoDetails}
@@ -70,6 +76,18 @@ export const AccountBankAccountDtoVerificationStatusEnum = {
70
76
  } as const;
71
77
  export type AccountBankAccountDtoVerificationStatusEnum = typeof AccountBankAccountDtoVerificationStatusEnum[keyof typeof AccountBankAccountDtoVerificationStatusEnum];
72
78
 
79
+ /**
80
+ * @export
81
+ */
82
+ export const AccountBankAccountDtoNameCheckStatusEnum = {
83
+ CHECKING: 'checking',
84
+ MATCHED: 'matched',
85
+ NOT_MATCHED: 'not_matched',
86
+ INVALID: 'invalid',
87
+ UNAVAILABLE: 'unavailable'
88
+ } as const;
89
+ export type AccountBankAccountDtoNameCheckStatusEnum = typeof AccountBankAccountDtoNameCheckStatusEnum[keyof typeof AccountBankAccountDtoNameCheckStatusEnum];
90
+
73
91
 
74
92
  /**
75
93
  * Check if a given object implements the AccountBankAccountDto interface.
@@ -79,6 +97,7 @@ export function instanceOfAccountBankAccountDto(value: object): value is Account
79
97
  if (!('primary' in value) || value['primary'] === undefined) return false;
80
98
  if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
81
99
  if (!('verificationStatus' in value) || value['verificationStatus'] === undefined) return false;
100
+ if (!('nameCheckStatus' in value) || value['nameCheckStatus'] === undefined) return false;
82
101
  if (!('details' in value) || value['details'] === undefined) return false;
83
102
  return true;
84
103
  }
@@ -97,6 +116,7 @@ export function AccountBankAccountDtoFromJSONTyped(json: any, ignoreDiscriminato
97
116
  'primary': json['primary'],
98
117
  'currencyCode': json['currencyCode'],
99
118
  'verificationStatus': json['verificationStatus'],
119
+ 'nameCheckStatus': json['nameCheckStatus'],
100
120
  'details': AccountBankAccountDtoDetailsFromJSON(json['details']),
101
121
  };
102
122
  }
@@ -116,6 +136,7 @@ export function AccountBankAccountDtoToJSONTyped(value?: AccountBankAccountDto |
116
136
  'primary': value['primary'],
117
137
  'currencyCode': value['currencyCode'],
118
138
  'verificationStatus': value['verificationStatus'],
139
+ 'nameCheckStatus': value['nameCheckStatus'],
119
140
  'details': AccountBankAccountDtoDetailsToJSON(value['details']),
120
141
  };
121
142
  }
@@ -27,6 +27,13 @@ import {
27
27
  AdminVerificationDepositDtoToJSON,
28
28
  AdminVerificationDepositDtoToJSONTyped,
29
29
  } from './AdminVerificationDepositDto';
30
+ import type { AdminBankAccountNameCheckDto } from './AdminBankAccountNameCheckDto';
31
+ import {
32
+ AdminBankAccountNameCheckDtoFromJSON,
33
+ AdminBankAccountNameCheckDtoFromJSONTyped,
34
+ AdminBankAccountNameCheckDtoToJSON,
35
+ AdminBankAccountNameCheckDtoToJSONTyped,
36
+ } from './AdminBankAccountNameCheckDto';
30
37
 
31
38
  /**
32
39
  *
@@ -52,6 +59,12 @@ export interface AdminBankAccountDto {
52
59
  * @memberof AdminBankAccountDto
53
60
  */
54
61
  relatedVerificationDeposits: Array<AdminVerificationDepositDto>;
62
+ /**
63
+ * Last answer of the seller's bank when asked who holds the account (Verification/Confirmation of Payee), if it was asked.
64
+ * @type {AdminBankAccountNameCheckDto}
65
+ * @memberof AdminBankAccountDto
66
+ */
67
+ nameCheck: AdminBankAccountNameCheckDto | null;
55
68
  }
56
69
 
57
70
  /**
@@ -61,6 +74,7 @@ export function instanceOfAdminBankAccountDto(value: object): value is AdminBank
61
74
  if (!('accountName' in value) || value['accountName'] === undefined) return false;
62
75
  if (!('bankAccount' in value) || value['bankAccount'] === undefined) return false;
63
76
  if (!('relatedVerificationDeposits' in value) || value['relatedVerificationDeposits'] === undefined) return false;
77
+ if (!('nameCheck' in value) || value['nameCheck'] === undefined) return false;
64
78
  return true;
65
79
  }
66
80
 
@@ -77,6 +91,7 @@ export function AdminBankAccountDtoFromJSONTyped(json: any, ignoreDiscriminator:
77
91
  'accountName': json['accountName'],
78
92
  'bankAccount': AccountBankAccountDtoFromJSON(json['bankAccount']),
79
93
  'relatedVerificationDeposits': ((json['relatedVerificationDeposits'] as Array<any>).map(AdminVerificationDepositDtoFromJSON)),
94
+ 'nameCheck': AdminBankAccountNameCheckDtoFromJSON(json['nameCheck']),
80
95
  };
81
96
  }
82
97
 
@@ -94,6 +109,7 @@ export function AdminBankAccountDtoToJSONTyped(value?: AdminBankAccountDto | nul
94
109
  'accountName': value['accountName'],
95
110
  'bankAccount': AccountBankAccountDtoToJSON(value['bankAccount']),
96
111
  'relatedVerificationDeposits': ((value['relatedVerificationDeposits'] as Array<any>).map(AdminVerificationDepositDtoToJSON)),
112
+ 'nameCheck': AdminBankAccountNameCheckDtoToJSON(value['nameCheck']),
97
113
  };
98
114
  }
99
115
 
@@ -0,0 +1,183 @@
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 AdminBankAccountNameCheckDto
20
+ */
21
+ export interface AdminBankAccountNameCheckDto {
22
+ /**
23
+ * Scheme the bank was asked through: vop (EU Verification of Payee), cop (UK Confirmation of Payee) or napas (Vietnam).
24
+ * @type {string}
25
+ * @memberof AdminBankAccountNameCheckDto
26
+ */
27
+ scheme: AdminBankAccountNameCheckDtoSchemeEnum;
28
+ /**
29
+ * Whether the account exists and could be checked, as the bank answered. REQUEST_FAILED when the bank could not be asked, see error.
30
+ * @type {string}
31
+ * @memberof AdminBankAccountNameCheckDto
32
+ */
33
+ code: AdminBankAccountNameCheckDtoCodeEnum;
34
+ /**
35
+ * How closely the holder name matched the billing name, when the bank compared them.
36
+ * @type {string}
37
+ * @memberof AdminBankAccountNameCheckDto
38
+ */
39
+ nameMatch: AdminBankAccountNameCheckDtoNameMatchEnum | null;
40
+ /**
41
+ * Name the bank holds the account in, when it returned one. Never show it to the seller.
42
+ * @type {string}
43
+ * @memberof AdminBankAccountNameCheckDto
44
+ */
45
+ resolvedAccountName: string | null;
46
+ /**
47
+ * Name of the bank, when it returned one.
48
+ * @type {string}
49
+ * @memberof AdminBankAccountNameCheckDto
50
+ */
51
+ resolvedBankName: string | null;
52
+ /**
53
+ * Billing name the bank was asked about.
54
+ * @type {string}
55
+ * @memberof AdminBankAccountNameCheckDto
56
+ */
57
+ checkedName: string;
58
+ /**
59
+ * Holder type the bank was asked about.
60
+ * @type {string}
61
+ * @memberof AdminBankAccountNameCheckDto
62
+ */
63
+ entityType: AdminBankAccountNameCheckDtoEntityTypeEnum;
64
+ /**
65
+ * When the bank answered, or could not be asked.
66
+ * @type {Date}
67
+ * @memberof AdminBankAccountNameCheckDto
68
+ */
69
+ checkedAt: Date;
70
+ /**
71
+ * Why the bank could not be asked, when it could not: the error type, HTTP status and provider codes, such as "ValidationError 400 transfer_method_unsupported".
72
+ * @type {string}
73
+ * @memberof AdminBankAccountNameCheckDto
74
+ */
75
+ error: string | null;
76
+ }
77
+
78
+
79
+ /**
80
+ * @export
81
+ */
82
+ export const AdminBankAccountNameCheckDtoSchemeEnum = {
83
+ VOP: 'vop',
84
+ COP: 'cop',
85
+ NAPAS: 'napas'
86
+ } as const;
87
+ export type AdminBankAccountNameCheckDtoSchemeEnum = typeof AdminBankAccountNameCheckDtoSchemeEnum[keyof typeof AdminBankAccountNameCheckDtoSchemeEnum];
88
+
89
+ /**
90
+ * @export
91
+ */
92
+ export const AdminBankAccountNameCheckDtoCodeEnum = {
93
+ VERIFIED: 'VERIFIED',
94
+ INVALID: 'INVALID',
95
+ CANNOT_VERIFY: 'CANNOT_VERIFY',
96
+ EXTERNAL_SERVICE_UNAVAILABLE: 'EXTERNAL_SERVICE_UNAVAILABLE',
97
+ REQUEST_FAILED: 'REQUEST_FAILED'
98
+ } as const;
99
+ export type AdminBankAccountNameCheckDtoCodeEnum = typeof AdminBankAccountNameCheckDtoCodeEnum[keyof typeof AdminBankAccountNameCheckDtoCodeEnum];
100
+
101
+ /**
102
+ * @export
103
+ */
104
+ export const AdminBankAccountNameCheckDtoNameMatchEnum = {
105
+ FULL_MATCH: 'FULL_MATCH',
106
+ PARTIAL_MATCH: 'PARTIAL_MATCH',
107
+ NOT_MATCHED: 'NOT_MATCHED',
108
+ FULL_MATCH_INCORRECT_TYPE: 'FULL_MATCH_INCORRECT_TYPE',
109
+ PARTIAL_MATCH_INCORRECT_TYPE: 'PARTIAL_MATCH_INCORRECT_TYPE'
110
+ } as const;
111
+ export type AdminBankAccountNameCheckDtoNameMatchEnum = typeof AdminBankAccountNameCheckDtoNameMatchEnum[keyof typeof AdminBankAccountNameCheckDtoNameMatchEnum];
112
+
113
+ /**
114
+ * @export
115
+ */
116
+ export const AdminBankAccountNameCheckDtoEntityTypeEnum = {
117
+ PERSONAL: 'PERSONAL',
118
+ COMPANY: 'COMPANY'
119
+ } as const;
120
+ export type AdminBankAccountNameCheckDtoEntityTypeEnum = typeof AdminBankAccountNameCheckDtoEntityTypeEnum[keyof typeof AdminBankAccountNameCheckDtoEntityTypeEnum];
121
+
122
+
123
+ /**
124
+ * Check if a given object implements the AdminBankAccountNameCheckDto interface.
125
+ */
126
+ export function instanceOfAdminBankAccountNameCheckDto(value: object): value is AdminBankAccountNameCheckDto {
127
+ if (!('scheme' in value) || value['scheme'] === undefined) return false;
128
+ if (!('code' in value) || value['code'] === undefined) return false;
129
+ if (!('nameMatch' in value) || value['nameMatch'] === undefined) return false;
130
+ if (!('resolvedAccountName' in value) || value['resolvedAccountName'] === undefined) return false;
131
+ if (!('resolvedBankName' in value) || value['resolvedBankName'] === undefined) return false;
132
+ if (!('checkedName' in value) || value['checkedName'] === undefined) return false;
133
+ if (!('entityType' in value) || value['entityType'] === undefined) return false;
134
+ if (!('checkedAt' in value) || value['checkedAt'] === undefined) return false;
135
+ if (!('error' in value) || value['error'] === undefined) return false;
136
+ return true;
137
+ }
138
+
139
+ export function AdminBankAccountNameCheckDtoFromJSON(json: any): AdminBankAccountNameCheckDto {
140
+ return AdminBankAccountNameCheckDtoFromJSONTyped(json, false);
141
+ }
142
+
143
+ export function AdminBankAccountNameCheckDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminBankAccountNameCheckDto {
144
+ if (json == null) {
145
+ return json;
146
+ }
147
+ return {
148
+
149
+ 'scheme': json['scheme'],
150
+ 'code': json['code'],
151
+ 'nameMatch': json['nameMatch'],
152
+ 'resolvedAccountName': json['resolvedAccountName'],
153
+ 'resolvedBankName': json['resolvedBankName'],
154
+ 'checkedName': json['checkedName'],
155
+ 'entityType': json['entityType'],
156
+ 'checkedAt': (new Date(json['checkedAt'])),
157
+ 'error': json['error'],
158
+ };
159
+ }
160
+
161
+ export function AdminBankAccountNameCheckDtoToJSON(json: any): AdminBankAccountNameCheckDto {
162
+ return AdminBankAccountNameCheckDtoToJSONTyped(json, false);
163
+ }
164
+
165
+ export function AdminBankAccountNameCheckDtoToJSONTyped(value?: AdminBankAccountNameCheckDto | null, ignoreDiscriminator: boolean = false): any {
166
+ if (value == null) {
167
+ return value;
168
+ }
169
+
170
+ return {
171
+
172
+ 'scheme': value['scheme'],
173
+ 'code': value['code'],
174
+ 'nameMatch': value['nameMatch'],
175
+ 'resolvedAccountName': value['resolvedAccountName'],
176
+ 'resolvedBankName': value['resolvedBankName'],
177
+ 'checkedName': value['checkedName'],
178
+ 'entityType': value['entityType'],
179
+ 'checkedAt': ((value['checkedAt']).toISOString()),
180
+ 'error': value['error'],
181
+ };
182
+ }
183
+