@randock/nameshift-api-client 0.0.488 → 0.0.490
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 +1 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +13 -0
- package/dist/apis/AdminApi.js +53 -0
- package/dist/models/AccountBankAccountDto.d.ts +17 -0
- package/dist/models/AccountBankAccountDto.js +15 -1
- package/dist/models/AdminBankAccountDto.d.ts +7 -0
- package/dist/models/AdminBankAccountDto.js +5 -0
- package/dist/models/AdminBankAccountNameCheckDto.d.ts +119 -0
- package/dist/models/AdminBankAccountNameCheckDto.js +119 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
- package/dist/models/FeatureFlagListItemDto.js +2 -1
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +46 -0
- package/src/models/AccountBankAccountDto.ts +21 -0
- package/src/models/AdminBankAccountDto.ts +16 -0
- package/src/models/AdminBankAccountNameCheckDto.ts +183 -0
- package/src/models/FeatureFlagListItemDto.ts +2 -1
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -91,6 +91,7 @@ src/models/AdminAccountSettingsInput.ts
|
|
|
91
91
|
src/models/AdminAuctionCommissionByDateRangeInput.ts
|
|
92
92
|
src/models/AdminAuctionConfigurationInput.ts
|
|
93
93
|
src/models/AdminBankAccountDto.ts
|
|
94
|
+
src/models/AdminBankAccountNameCheckDto.ts
|
|
94
95
|
src/models/AdminBankDepositAccountBankAccountDto.ts
|
|
95
96
|
src/models/AdminBankDepositAccountDto.ts
|
|
96
97
|
src/models/AdminBankDepositDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.490
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.490 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
380daf7fa7dd0f79d64bd6257b2cfb85160137d343c7cd9bbfbb344522d0f87d737451e68182e97ca33c5faf7bceaf33
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -310,6 +310,9 @@ export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
|
|
|
310
310
|
export interface AdminApiPurgeDomainCdnCacheRequest {
|
|
311
311
|
domainId: string;
|
|
312
312
|
}
|
|
313
|
+
export interface AdminApiRefreshAdminLeadEnrichmentRequest {
|
|
314
|
+
leadId: string;
|
|
315
|
+
}
|
|
313
316
|
export interface AdminApiRejectAccountAliasRequest {
|
|
314
317
|
accountId: string;
|
|
315
318
|
}
|
|
@@ -1007,6 +1010,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
1007
1010
|
* Purge domain CDN cache
|
|
1008
1011
|
*/
|
|
1009
1012
|
purgeDomainCdnCache(requestParameters: AdminApiPurgeDomainCdnCacheRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1013
|
+
/**
|
|
1014
|
+
* Sends the buyer inquiry of a lead to the enrichment service again, for any account. The service ignores it while what it holds for the lead is still fresh or in progress. Requires admin bearer authentication.
|
|
1015
|
+
* Request the buyer enrichment of a lead again
|
|
1016
|
+
*/
|
|
1017
|
+
refreshAdminLeadEnrichmentRaw(requestParameters: AdminApiRefreshAdminLeadEnrichmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1018
|
+
/**
|
|
1019
|
+
* Sends the buyer inquiry of a lead to the enrichment service again, for any account. The service ignores it while what it holds for the lead is still fresh or in progress. Requires admin bearer authentication.
|
|
1020
|
+
* Request the buyer enrichment of a lead again
|
|
1021
|
+
*/
|
|
1022
|
+
refreshAdminLeadEnrichment(requestParameters: AdminApiRefreshAdminLeadEnrichmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1010
1023
|
/**
|
|
1011
1024
|
* Marks the account alias as rejected, so the landing pages keep the official name, and notifies the account users by email. Rejecting an already rejected alias does nothing.
|
|
1012
1025
|
* Reject account alias
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -3807,6 +3807,59 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
3807
3807
|
});
|
|
3808
3808
|
});
|
|
3809
3809
|
};
|
|
3810
|
+
/**
|
|
3811
|
+
* Sends the buyer inquiry of a lead to the enrichment service again, for any account. The service ignores it while what it holds for the lead is still fresh or in progress. Requires admin bearer authentication.
|
|
3812
|
+
* Request the buyer enrichment of a lead again
|
|
3813
|
+
*/
|
|
3814
|
+
AdminApi.prototype.refreshAdminLeadEnrichmentRaw = function (requestParameters, initOverrides) {
|
|
3815
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3816
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
3817
|
+
return __generator(this, function (_a) {
|
|
3818
|
+
switch (_a.label) {
|
|
3819
|
+
case 0:
|
|
3820
|
+
if (requestParameters['leadId'] == null) {
|
|
3821
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling refreshAdminLeadEnrichment().');
|
|
3822
|
+
}
|
|
3823
|
+
queryParameters = {};
|
|
3824
|
+
headerParameters = {};
|
|
3825
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
3826
|
+
token = this.configuration.accessToken;
|
|
3827
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
3828
|
+
case 1:
|
|
3829
|
+
tokenString = _a.sent();
|
|
3830
|
+
if (tokenString) {
|
|
3831
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
3832
|
+
}
|
|
3833
|
+
_a.label = 2;
|
|
3834
|
+
case 2: return [4 /*yield*/, this.request({
|
|
3835
|
+
path: "/admin/leads/{leadId}/enrichment/refresh".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
3836
|
+
method: 'POST',
|
|
3837
|
+
headers: headerParameters,
|
|
3838
|
+
query: queryParameters,
|
|
3839
|
+
}, initOverrides)];
|
|
3840
|
+
case 3:
|
|
3841
|
+
response = _a.sent();
|
|
3842
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
3843
|
+
}
|
|
3844
|
+
});
|
|
3845
|
+
});
|
|
3846
|
+
};
|
|
3847
|
+
/**
|
|
3848
|
+
* Sends the buyer inquiry of a lead to the enrichment service again, for any account. The service ignores it while what it holds for the lead is still fresh or in progress. Requires admin bearer authentication.
|
|
3849
|
+
* Request the buyer enrichment of a lead again
|
|
3850
|
+
*/
|
|
3851
|
+
AdminApi.prototype.refreshAdminLeadEnrichment = function (requestParameters, initOverrides) {
|
|
3852
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3853
|
+
return __generator(this, function (_a) {
|
|
3854
|
+
switch (_a.label) {
|
|
3855
|
+
case 0: return [4 /*yield*/, this.refreshAdminLeadEnrichmentRaw(requestParameters, initOverrides)];
|
|
3856
|
+
case 1:
|
|
3857
|
+
_a.sent();
|
|
3858
|
+
return [2 /*return*/];
|
|
3859
|
+
}
|
|
3860
|
+
});
|
|
3861
|
+
});
|
|
3862
|
+
};
|
|
3810
3863
|
/**
|
|
3811
3864
|
* Marks the account alias as rejected, so the landing pages keep the official name, and notifies the account users by email. Rejecting an already rejected alias does nothing.
|
|
3812
3865
|
* Reject account alias
|
|
@@ -40,6 +40,12 @@ export interface AccountBankAccountDto {
|
|
|
40
40
|
* @memberof AccountBankAccountDto
|
|
41
41
|
*/
|
|
42
42
|
verificationStatus: AccountBankAccountDtoVerificationStatusEnum;
|
|
43
|
+
/**
|
|
44
|
+
* 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.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AccountBankAccountDto
|
|
47
|
+
*/
|
|
48
|
+
nameCheckStatus: AccountBankAccountDtoNameCheckStatusEnum | null;
|
|
43
49
|
/**
|
|
44
50
|
*
|
|
45
51
|
* @type {AccountBankAccountDtoDetails}
|
|
@@ -56,6 +62,17 @@ export declare const AccountBankAccountDtoVerificationStatusEnum: {
|
|
|
56
62
|
readonly REJECTED: "rejected";
|
|
57
63
|
};
|
|
58
64
|
export type AccountBankAccountDtoVerificationStatusEnum = typeof AccountBankAccountDtoVerificationStatusEnum[keyof typeof AccountBankAccountDtoVerificationStatusEnum];
|
|
65
|
+
/**
|
|
66
|
+
* @export
|
|
67
|
+
*/
|
|
68
|
+
export declare const AccountBankAccountDtoNameCheckStatusEnum: {
|
|
69
|
+
readonly CHECKING: "checking";
|
|
70
|
+
readonly MATCHED: "matched";
|
|
71
|
+
readonly NOT_MATCHED: "not_matched";
|
|
72
|
+
readonly INVALID: "invalid";
|
|
73
|
+
readonly UNAVAILABLE: "unavailable";
|
|
74
|
+
};
|
|
75
|
+
export type AccountBankAccountDtoNameCheckStatusEnum = typeof AccountBankAccountDtoNameCheckStatusEnum[keyof typeof AccountBankAccountDtoNameCheckStatusEnum];
|
|
59
76
|
/**
|
|
60
77
|
* Check if a given object implements the AccountBankAccountDto interface.
|
|
61
78
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.AccountBankAccountDtoVerificationStatusEnum = void 0;
|
|
16
|
+
exports.AccountBankAccountDtoNameCheckStatusEnum = exports.AccountBankAccountDtoVerificationStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfAccountBankAccountDto = instanceOfAccountBankAccountDto;
|
|
18
18
|
exports.AccountBankAccountDtoFromJSON = AccountBankAccountDtoFromJSON;
|
|
19
19
|
exports.AccountBankAccountDtoFromJSONTyped = AccountBankAccountDtoFromJSONTyped;
|
|
@@ -28,6 +28,16 @@ exports.AccountBankAccountDtoVerificationStatusEnum = {
|
|
|
28
28
|
VERIFIED: 'verified',
|
|
29
29
|
REJECTED: 'rejected'
|
|
30
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.AccountBankAccountDtoNameCheckStatusEnum = {
|
|
35
|
+
CHECKING: 'checking',
|
|
36
|
+
MATCHED: 'matched',
|
|
37
|
+
NOT_MATCHED: 'not_matched',
|
|
38
|
+
INVALID: 'invalid',
|
|
39
|
+
UNAVAILABLE: 'unavailable'
|
|
40
|
+
};
|
|
31
41
|
/**
|
|
32
42
|
* Check if a given object implements the AccountBankAccountDto interface.
|
|
33
43
|
*/
|
|
@@ -40,6 +50,8 @@ function instanceOfAccountBankAccountDto(value) {
|
|
|
40
50
|
return false;
|
|
41
51
|
if (!('verificationStatus' in value) || value['verificationStatus'] === undefined)
|
|
42
52
|
return false;
|
|
53
|
+
if (!('nameCheckStatus' in value) || value['nameCheckStatus'] === undefined)
|
|
54
|
+
return false;
|
|
43
55
|
if (!('details' in value) || value['details'] === undefined)
|
|
44
56
|
return false;
|
|
45
57
|
return true;
|
|
@@ -56,6 +68,7 @@ function AccountBankAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
68
|
'primary': json['primary'],
|
|
57
69
|
'currencyCode': json['currencyCode'],
|
|
58
70
|
'verificationStatus': json['verificationStatus'],
|
|
71
|
+
'nameCheckStatus': json['nameCheckStatus'],
|
|
59
72
|
'details': (0, AccountBankAccountDtoDetails_1.AccountBankAccountDtoDetailsFromJSON)(json['details']),
|
|
60
73
|
};
|
|
61
74
|
}
|
|
@@ -72,6 +85,7 @@ function AccountBankAccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
72
85
|
'primary': value['primary'],
|
|
73
86
|
'currencyCode': value['currencyCode'],
|
|
74
87
|
'verificationStatus': value['verificationStatus'],
|
|
88
|
+
'nameCheckStatus': value['nameCheckStatus'],
|
|
75
89
|
'details': (0, AccountBankAccountDtoDetails_1.AccountBankAccountDtoDetailsToJSON)(value['details']),
|
|
76
90
|
};
|
|
77
91
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { AccountBankAccountDto } from './AccountBankAccountDto';
|
|
13
13
|
import type { AdminVerificationDepositDto } from './AdminVerificationDepositDto';
|
|
14
|
+
import type { AdminBankAccountNameCheckDto } from './AdminBankAccountNameCheckDto';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -35,6 +36,12 @@ export interface AdminBankAccountDto {
|
|
|
35
36
|
* @memberof AdminBankAccountDto
|
|
36
37
|
*/
|
|
37
38
|
relatedVerificationDeposits: Array<AdminVerificationDepositDto>;
|
|
39
|
+
/**
|
|
40
|
+
* Last answer of the seller's bank when asked who holds the account (Verification/Confirmation of Payee), if it was asked.
|
|
41
|
+
* @type {AdminBankAccountNameCheckDto}
|
|
42
|
+
* @memberof AdminBankAccountDto
|
|
43
|
+
*/
|
|
44
|
+
nameCheck: AdminBankAccountNameCheckDto | null;
|
|
38
45
|
}
|
|
39
46
|
/**
|
|
40
47
|
* Check if a given object implements the AdminBankAccountDto interface.
|
|
@@ -20,6 +20,7 @@ exports.AdminBankAccountDtoToJSON = AdminBankAccountDtoToJSON;
|
|
|
20
20
|
exports.AdminBankAccountDtoToJSONTyped = AdminBankAccountDtoToJSONTyped;
|
|
21
21
|
var AccountBankAccountDto_1 = require("./AccountBankAccountDto");
|
|
22
22
|
var AdminVerificationDepositDto_1 = require("./AdminVerificationDepositDto");
|
|
23
|
+
var AdminBankAccountNameCheckDto_1 = require("./AdminBankAccountNameCheckDto");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the AdminBankAccountDto interface.
|
|
25
26
|
*/
|
|
@@ -30,6 +31,8 @@ function instanceOfAdminBankAccountDto(value) {
|
|
|
30
31
|
return false;
|
|
31
32
|
if (!('relatedVerificationDeposits' in value) || value['relatedVerificationDeposits'] === undefined)
|
|
32
33
|
return false;
|
|
34
|
+
if (!('nameCheck' in value) || value['nameCheck'] === undefined)
|
|
35
|
+
return false;
|
|
33
36
|
return true;
|
|
34
37
|
}
|
|
35
38
|
function AdminBankAccountDtoFromJSON(json) {
|
|
@@ -43,6 +46,7 @@ function AdminBankAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
46
|
'accountName': json['accountName'],
|
|
44
47
|
'bankAccount': (0, AccountBankAccountDto_1.AccountBankAccountDtoFromJSON)(json['bankAccount']),
|
|
45
48
|
'relatedVerificationDeposits': (json['relatedVerificationDeposits'].map(AdminVerificationDepositDto_1.AdminVerificationDepositDtoFromJSON)),
|
|
49
|
+
'nameCheck': (0, AdminBankAccountNameCheckDto_1.AdminBankAccountNameCheckDtoFromJSON)(json['nameCheck']),
|
|
46
50
|
};
|
|
47
51
|
}
|
|
48
52
|
function AdminBankAccountDtoToJSON(json) {
|
|
@@ -57,5 +61,6 @@ function AdminBankAccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
57
61
|
'accountName': value['accountName'],
|
|
58
62
|
'bankAccount': (0, AccountBankAccountDto_1.AccountBankAccountDtoToJSON)(value['bankAccount']),
|
|
59
63
|
'relatedVerificationDeposits': (value['relatedVerificationDeposits'].map(AdminVerificationDepositDto_1.AdminVerificationDepositDtoToJSON)),
|
|
64
|
+
'nameCheck': (0, AdminBankAccountNameCheckDto_1.AdminBankAccountNameCheckDtoToJSON)(value['nameCheck']),
|
|
60
65
|
};
|
|
61
66
|
}
|
|
@@ -0,0 +1,119 @@
|
|
|
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 AdminBankAccountNameCheckDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminBankAccountNameCheckDto {
|
|
18
|
+
/**
|
|
19
|
+
* Scheme the bank was asked through: vop (EU Verification of Payee), cop (UK Confirmation of Payee) or napas (Vietnam).
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminBankAccountNameCheckDto
|
|
22
|
+
*/
|
|
23
|
+
scheme: AdminBankAccountNameCheckDtoSchemeEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the account exists and could be checked, as the bank answered. REQUEST_FAILED when the bank could not be asked, see error.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminBankAccountNameCheckDto
|
|
28
|
+
*/
|
|
29
|
+
code: AdminBankAccountNameCheckDtoCodeEnum;
|
|
30
|
+
/**
|
|
31
|
+
* How closely the holder name matched the billing name, when the bank compared them.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AdminBankAccountNameCheckDto
|
|
34
|
+
*/
|
|
35
|
+
nameMatch: AdminBankAccountNameCheckDtoNameMatchEnum | null;
|
|
36
|
+
/**
|
|
37
|
+
* Name the bank holds the account in, when it returned one. Never show it to the seller.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AdminBankAccountNameCheckDto
|
|
40
|
+
*/
|
|
41
|
+
resolvedAccountName: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Name of the bank, when it returned one.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AdminBankAccountNameCheckDto
|
|
46
|
+
*/
|
|
47
|
+
resolvedBankName: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Billing name the bank was asked about.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof AdminBankAccountNameCheckDto
|
|
52
|
+
*/
|
|
53
|
+
checkedName: string;
|
|
54
|
+
/**
|
|
55
|
+
* Holder type the bank was asked about.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof AdminBankAccountNameCheckDto
|
|
58
|
+
*/
|
|
59
|
+
entityType: AdminBankAccountNameCheckDtoEntityTypeEnum;
|
|
60
|
+
/**
|
|
61
|
+
* When the bank answered, or could not be asked.
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof AdminBankAccountNameCheckDto
|
|
64
|
+
*/
|
|
65
|
+
checkedAt: Date;
|
|
66
|
+
/**
|
|
67
|
+
* 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".
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof AdminBankAccountNameCheckDto
|
|
70
|
+
*/
|
|
71
|
+
error: string | null;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export declare const AdminBankAccountNameCheckDtoSchemeEnum: {
|
|
77
|
+
readonly VOP: "vop";
|
|
78
|
+
readonly COP: "cop";
|
|
79
|
+
readonly NAPAS: "napas";
|
|
80
|
+
};
|
|
81
|
+
export type AdminBankAccountNameCheckDtoSchemeEnum = typeof AdminBankAccountNameCheckDtoSchemeEnum[keyof typeof AdminBankAccountNameCheckDtoSchemeEnum];
|
|
82
|
+
/**
|
|
83
|
+
* @export
|
|
84
|
+
*/
|
|
85
|
+
export declare const AdminBankAccountNameCheckDtoCodeEnum: {
|
|
86
|
+
readonly VERIFIED: "VERIFIED";
|
|
87
|
+
readonly INVALID: "INVALID";
|
|
88
|
+
readonly CANNOT_VERIFY: "CANNOT_VERIFY";
|
|
89
|
+
readonly EXTERNAL_SERVICE_UNAVAILABLE: "EXTERNAL_SERVICE_UNAVAILABLE";
|
|
90
|
+
readonly REQUEST_FAILED: "REQUEST_FAILED";
|
|
91
|
+
};
|
|
92
|
+
export type AdminBankAccountNameCheckDtoCodeEnum = typeof AdminBankAccountNameCheckDtoCodeEnum[keyof typeof AdminBankAccountNameCheckDtoCodeEnum];
|
|
93
|
+
/**
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
export declare const AdminBankAccountNameCheckDtoNameMatchEnum: {
|
|
97
|
+
readonly FULL_MATCH: "FULL_MATCH";
|
|
98
|
+
readonly PARTIAL_MATCH: "PARTIAL_MATCH";
|
|
99
|
+
readonly NOT_MATCHED: "NOT_MATCHED";
|
|
100
|
+
readonly FULL_MATCH_INCORRECT_TYPE: "FULL_MATCH_INCORRECT_TYPE";
|
|
101
|
+
readonly PARTIAL_MATCH_INCORRECT_TYPE: "PARTIAL_MATCH_INCORRECT_TYPE";
|
|
102
|
+
};
|
|
103
|
+
export type AdminBankAccountNameCheckDtoNameMatchEnum = typeof AdminBankAccountNameCheckDtoNameMatchEnum[keyof typeof AdminBankAccountNameCheckDtoNameMatchEnum];
|
|
104
|
+
/**
|
|
105
|
+
* @export
|
|
106
|
+
*/
|
|
107
|
+
export declare const AdminBankAccountNameCheckDtoEntityTypeEnum: {
|
|
108
|
+
readonly PERSONAL: "PERSONAL";
|
|
109
|
+
readonly COMPANY: "COMPANY";
|
|
110
|
+
};
|
|
111
|
+
export type AdminBankAccountNameCheckDtoEntityTypeEnum = typeof AdminBankAccountNameCheckDtoEntityTypeEnum[keyof typeof AdminBankAccountNameCheckDtoEntityTypeEnum];
|
|
112
|
+
/**
|
|
113
|
+
* Check if a given object implements the AdminBankAccountNameCheckDto interface.
|
|
114
|
+
*/
|
|
115
|
+
export declare function instanceOfAdminBankAccountNameCheckDto(value: object): value is AdminBankAccountNameCheckDto;
|
|
116
|
+
export declare function AdminBankAccountNameCheckDtoFromJSON(json: any): AdminBankAccountNameCheckDto;
|
|
117
|
+
export declare function AdminBankAccountNameCheckDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminBankAccountNameCheckDto;
|
|
118
|
+
export declare function AdminBankAccountNameCheckDtoToJSON(json: any): AdminBankAccountNameCheckDto;
|
|
119
|
+
export declare function AdminBankAccountNameCheckDtoToJSONTyped(value?: AdminBankAccountNameCheckDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,119 @@
|
|
|
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.AdminBankAccountNameCheckDtoEntityTypeEnum = exports.AdminBankAccountNameCheckDtoNameMatchEnum = exports.AdminBankAccountNameCheckDtoCodeEnum = exports.AdminBankAccountNameCheckDtoSchemeEnum = void 0;
|
|
17
|
+
exports.instanceOfAdminBankAccountNameCheckDto = instanceOfAdminBankAccountNameCheckDto;
|
|
18
|
+
exports.AdminBankAccountNameCheckDtoFromJSON = AdminBankAccountNameCheckDtoFromJSON;
|
|
19
|
+
exports.AdminBankAccountNameCheckDtoFromJSONTyped = AdminBankAccountNameCheckDtoFromJSONTyped;
|
|
20
|
+
exports.AdminBankAccountNameCheckDtoToJSON = AdminBankAccountNameCheckDtoToJSON;
|
|
21
|
+
exports.AdminBankAccountNameCheckDtoToJSONTyped = AdminBankAccountNameCheckDtoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AdminBankAccountNameCheckDtoSchemeEnum = {
|
|
26
|
+
VOP: 'vop',
|
|
27
|
+
COP: 'cop',
|
|
28
|
+
NAPAS: 'napas'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.AdminBankAccountNameCheckDtoCodeEnum = {
|
|
34
|
+
VERIFIED: 'VERIFIED',
|
|
35
|
+
INVALID: 'INVALID',
|
|
36
|
+
CANNOT_VERIFY: 'CANNOT_VERIFY',
|
|
37
|
+
EXTERNAL_SERVICE_UNAVAILABLE: 'EXTERNAL_SERVICE_UNAVAILABLE',
|
|
38
|
+
REQUEST_FAILED: 'REQUEST_FAILED'
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
exports.AdminBankAccountNameCheckDtoNameMatchEnum = {
|
|
44
|
+
FULL_MATCH: 'FULL_MATCH',
|
|
45
|
+
PARTIAL_MATCH: 'PARTIAL_MATCH',
|
|
46
|
+
NOT_MATCHED: 'NOT_MATCHED',
|
|
47
|
+
FULL_MATCH_INCORRECT_TYPE: 'FULL_MATCH_INCORRECT_TYPE',
|
|
48
|
+
PARTIAL_MATCH_INCORRECT_TYPE: 'PARTIAL_MATCH_INCORRECT_TYPE'
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
exports.AdminBankAccountNameCheckDtoEntityTypeEnum = {
|
|
54
|
+
PERSONAL: 'PERSONAL',
|
|
55
|
+
COMPANY: 'COMPANY'
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the AdminBankAccountNameCheckDto interface.
|
|
59
|
+
*/
|
|
60
|
+
function instanceOfAdminBankAccountNameCheckDto(value) {
|
|
61
|
+
if (!('scheme' in value) || value['scheme'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
if (!('nameMatch' in value) || value['nameMatch'] === undefined)
|
|
66
|
+
return false;
|
|
67
|
+
if (!('resolvedAccountName' in value) || value['resolvedAccountName'] === undefined)
|
|
68
|
+
return false;
|
|
69
|
+
if (!('resolvedBankName' in value) || value['resolvedBankName'] === undefined)
|
|
70
|
+
return false;
|
|
71
|
+
if (!('checkedName' in value) || value['checkedName'] === undefined)
|
|
72
|
+
return false;
|
|
73
|
+
if (!('entityType' in value) || value['entityType'] === undefined)
|
|
74
|
+
return false;
|
|
75
|
+
if (!('checkedAt' in value) || value['checkedAt'] === undefined)
|
|
76
|
+
return false;
|
|
77
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
78
|
+
return false;
|
|
79
|
+
return true;
|
|
80
|
+
}
|
|
81
|
+
function AdminBankAccountNameCheckDtoFromJSON(json) {
|
|
82
|
+
return AdminBankAccountNameCheckDtoFromJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
function AdminBankAccountNameCheckDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
'scheme': json['scheme'],
|
|
90
|
+
'code': json['code'],
|
|
91
|
+
'nameMatch': json['nameMatch'],
|
|
92
|
+
'resolvedAccountName': json['resolvedAccountName'],
|
|
93
|
+
'resolvedBankName': json['resolvedBankName'],
|
|
94
|
+
'checkedName': json['checkedName'],
|
|
95
|
+
'entityType': json['entityType'],
|
|
96
|
+
'checkedAt': (new Date(json['checkedAt'])),
|
|
97
|
+
'error': json['error'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function AdminBankAccountNameCheckDtoToJSON(json) {
|
|
101
|
+
return AdminBankAccountNameCheckDtoToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
function AdminBankAccountNameCheckDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
104
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
'scheme': value['scheme'],
|
|
110
|
+
'code': value['code'],
|
|
111
|
+
'nameMatch': value['nameMatch'],
|
|
112
|
+
'resolvedAccountName': value['resolvedAccountName'],
|
|
113
|
+
'resolvedBankName': value['resolvedBankName'],
|
|
114
|
+
'checkedName': value['checkedName'],
|
|
115
|
+
'entityType': value['entityType'],
|
|
116
|
+
'checkedAt': ((value['checkedAt']).toISOString()),
|
|
117
|
+
'error': value['error'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
@@ -94,6 +94,7 @@ export declare const FeatureFlagListItemDtoNameEnum: {
|
|
|
94
94
|
readonly LEAD_CREATION_RECAPTCHA: "LEAD_CREATION_RECAPTCHA";
|
|
95
95
|
readonly DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: "DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU";
|
|
96
96
|
readonly DOMAIN_APPRAISAL: "DOMAIN_APPRAISAL";
|
|
97
|
+
readonly BANK_ACCOUNT_NAME_CHECK: "BANK_ACCOUNT_NAME_CHECK";
|
|
97
98
|
};
|
|
98
99
|
export type FeatureFlagListItemDtoNameEnum = typeof FeatureFlagListItemDtoNameEnum[keyof typeof FeatureFlagListItemDtoNameEnum];
|
|
99
100
|
/**
|
|
@@ -54,7 +54,8 @@ exports.FeatureFlagListItemDtoNameEnum = {
|
|
|
54
54
|
LEAD_ENRICHMENT: 'LEAD_ENRICHMENT',
|
|
55
55
|
LEAD_CREATION_RECAPTCHA: 'LEAD_CREATION_RECAPTCHA',
|
|
56
56
|
DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
|
|
57
|
-
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL'
|
|
57
|
+
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL',
|
|
58
|
+
BANK_ACCOUNT_NAME_CHECK: 'BANK_ACCOUNT_NAME_CHECK'
|
|
58
59
|
};
|
|
59
60
|
/**
|
|
60
61
|
* Check if a given object implements the FeatureFlagListItemDto interface.
|
|
@@ -137,6 +137,7 @@ export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWi
|
|
|
137
137
|
readonly LEAD_CREATION_RECAPTCHA: "LEAD_CREATION_RECAPTCHA";
|
|
138
138
|
readonly DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: "DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU";
|
|
139
139
|
readonly DOMAIN_APPRAISAL: "DOMAIN_APPRAISAL";
|
|
140
|
+
readonly BANK_ACCOUNT_NAME_CHECK: "BANK_ACCOUNT_NAME_CHECK";
|
|
140
141
|
};
|
|
141
142
|
export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
|
|
142
143
|
/**
|
package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js
CHANGED
|
@@ -61,7 +61,8 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
|
|
|
61
61
|
LEAD_ENRICHMENT: 'LEAD_ENRICHMENT',
|
|
62
62
|
LEAD_CREATION_RECAPTCHA: 'LEAD_CREATION_RECAPTCHA',
|
|
63
63
|
DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
|
|
64
|
-
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL'
|
|
64
|
+
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL',
|
|
65
|
+
BANK_ACCOUNT_NAME_CHECK: 'BANK_ACCOUNT_NAME_CHECK'
|
|
65
66
|
};
|
|
66
67
|
/**
|
|
67
68
|
* Check if a given object implements the IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto interface.
|
|
@@ -143,6 +143,7 @@ export declare const PrivateAccountGetMeResponseEnabledFeaturesEnum: {
|
|
|
143
143
|
readonly LEAD_CREATION_RECAPTCHA: "LEAD_CREATION_RECAPTCHA";
|
|
144
144
|
readonly DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: "DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU";
|
|
145
145
|
readonly DOMAIN_APPRAISAL: "DOMAIN_APPRAISAL";
|
|
146
|
+
readonly BANK_ACCOUNT_NAME_CHECK: "BANK_ACCOUNT_NAME_CHECK";
|
|
146
147
|
};
|
|
147
148
|
export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
|
|
148
149
|
/**
|
|
@@ -61,7 +61,8 @@ exports.PrivateAccountGetMeResponseEnabledFeaturesEnum = {
|
|
|
61
61
|
LEAD_ENRICHMENT: 'LEAD_ENRICHMENT',
|
|
62
62
|
LEAD_CREATION_RECAPTCHA: 'LEAD_CREATION_RECAPTCHA',
|
|
63
63
|
DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
|
|
64
|
-
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL'
|
|
64
|
+
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL',
|
|
65
|
+
BANK_ACCOUNT_NAME_CHECK: 'BANK_ACCOUNT_NAME_CHECK'
|
|
65
66
|
};
|
|
66
67
|
/**
|
|
67
68
|
* Check if a given object implements the PrivateAccountGetMeResponse interface.
|
package/dist/models/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export * from './AdminAccountSettingsInput';
|
|
|
48
48
|
export * from './AdminAuctionCommissionByDateRangeInput';
|
|
49
49
|
export * from './AdminAuctionConfigurationInput';
|
|
50
50
|
export * from './AdminBankAccountDto';
|
|
51
|
+
export * from './AdminBankAccountNameCheckDto';
|
|
51
52
|
export * from './AdminBankDepositAccountBankAccountDto';
|
|
52
53
|
export * from './AdminBankDepositAccountDto';
|
|
53
54
|
export * from './AdminBankDepositDto';
|
package/dist/models/index.js
CHANGED
|
@@ -66,6 +66,7 @@ __exportStar(require("./AdminAccountSettingsInput"), exports);
|
|
|
66
66
|
__exportStar(require("./AdminAuctionCommissionByDateRangeInput"), exports);
|
|
67
67
|
__exportStar(require("./AdminAuctionConfigurationInput"), exports);
|
|
68
68
|
__exportStar(require("./AdminBankAccountDto"), exports);
|
|
69
|
+
__exportStar(require("./AdminBankAccountNameCheckDto"), exports);
|
|
69
70
|
__exportStar(require("./AdminBankDepositAccountBankAccountDto"), exports);
|
|
70
71
|
__exportStar(require("./AdminBankDepositAccountDto"), exports);
|
|
71
72
|
__exportStar(require("./AdminBankDepositDto"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -548,6 +548,10 @@ export interface AdminApiPurgeDomainCdnCacheRequest {
|
|
|
548
548
|
domainId: string;
|
|
549
549
|
}
|
|
550
550
|
|
|
551
|
+
export interface AdminApiRefreshAdminLeadEnrichmentRequest {
|
|
552
|
+
leadId: string;
|
|
553
|
+
}
|
|
554
|
+
|
|
551
555
|
export interface AdminApiRejectAccountAliasRequest {
|
|
552
556
|
accountId: string;
|
|
553
557
|
}
|
|
@@ -3691,6 +3695,48 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
3691
3695
|
await this.purgeDomainCdnCacheRaw(requestParameters, initOverrides);
|
|
3692
3696
|
}
|
|
3693
3697
|
|
|
3698
|
+
/**
|
|
3699
|
+
* Sends the buyer inquiry of a lead to the enrichment service again, for any account. The service ignores it while what it holds for the lead is still fresh or in progress. Requires admin bearer authentication.
|
|
3700
|
+
* Request the buyer enrichment of a lead again
|
|
3701
|
+
*/
|
|
3702
|
+
async refreshAdminLeadEnrichmentRaw(requestParameters: AdminApiRefreshAdminLeadEnrichmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
3703
|
+
if (requestParameters['leadId'] == null) {
|
|
3704
|
+
throw new runtime.RequiredError(
|
|
3705
|
+
'leadId',
|
|
3706
|
+
'Required parameter "leadId" was null or undefined when calling refreshAdminLeadEnrichment().'
|
|
3707
|
+
);
|
|
3708
|
+
}
|
|
3709
|
+
|
|
3710
|
+
const queryParameters: any = {};
|
|
3711
|
+
|
|
3712
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3713
|
+
|
|
3714
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3715
|
+
const token = this.configuration.accessToken;
|
|
3716
|
+
const tokenString = await token("bearer", []);
|
|
3717
|
+
|
|
3718
|
+
if (tokenString) {
|
|
3719
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3720
|
+
}
|
|
3721
|
+
}
|
|
3722
|
+
const response = await this.request({
|
|
3723
|
+
path: `/admin/leads/{leadId}/enrichment/refresh`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
3724
|
+
method: 'POST',
|
|
3725
|
+
headers: headerParameters,
|
|
3726
|
+
query: queryParameters,
|
|
3727
|
+
}, initOverrides);
|
|
3728
|
+
|
|
3729
|
+
return new runtime.VoidApiResponse(response);
|
|
3730
|
+
}
|
|
3731
|
+
|
|
3732
|
+
/**
|
|
3733
|
+
* Sends the buyer inquiry of a lead to the enrichment service again, for any account. The service ignores it while what it holds for the lead is still fresh or in progress. Requires admin bearer authentication.
|
|
3734
|
+
* Request the buyer enrichment of a lead again
|
|
3735
|
+
*/
|
|
3736
|
+
async refreshAdminLeadEnrichment(requestParameters: AdminApiRefreshAdminLeadEnrichmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
3737
|
+
await this.refreshAdminLeadEnrichmentRaw(requestParameters, initOverrides);
|
|
3738
|
+
}
|
|
3739
|
+
|
|
3694
3740
|
/**
|
|
3695
3741
|
* Marks the account alias as rejected, so the landing pages keep the official name, and notifies the account users by email. Rejecting an already rejected alias does nothing.
|
|
3696
3742
|
* Reject account alias
|
|
@@ -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
|
+
|
|
@@ -99,7 +99,8 @@ export const FeatureFlagListItemDtoNameEnum = {
|
|
|
99
99
|
LEAD_ENRICHMENT: 'LEAD_ENRICHMENT',
|
|
100
100
|
LEAD_CREATION_RECAPTCHA: 'LEAD_CREATION_RECAPTCHA',
|
|
101
101
|
DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
|
|
102
|
-
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL'
|
|
102
|
+
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL',
|
|
103
|
+
BANK_ACCOUNT_NAME_CHECK: 'BANK_ACCOUNT_NAME_CHECK'
|
|
103
104
|
} as const;
|
|
104
105
|
export type FeatureFlagListItemDtoNameEnum = typeof FeatureFlagListItemDtoNameEnum[keyof typeof FeatureFlagListItemDtoNameEnum];
|
|
105
106
|
|
package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts
CHANGED
|
@@ -185,7 +185,8 @@ export const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatur
|
|
|
185
185
|
LEAD_ENRICHMENT: 'LEAD_ENRICHMENT',
|
|
186
186
|
LEAD_CREATION_RECAPTCHA: 'LEAD_CREATION_RECAPTCHA',
|
|
187
187
|
DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
|
|
188
|
-
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL'
|
|
188
|
+
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL',
|
|
189
|
+
BANK_ACCOUNT_NAME_CHECK: 'BANK_ACCOUNT_NAME_CHECK'
|
|
189
190
|
} as const;
|
|
190
191
|
export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
|
|
191
192
|
|
|
@@ -191,7 +191,8 @@ export const PrivateAccountGetMeResponseEnabledFeaturesEnum = {
|
|
|
191
191
|
LEAD_ENRICHMENT: 'LEAD_ENRICHMENT',
|
|
192
192
|
LEAD_CREATION_RECAPTCHA: 'LEAD_CREATION_RECAPTCHA',
|
|
193
193
|
DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
|
|
194
|
-
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL'
|
|
194
|
+
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL',
|
|
195
|
+
BANK_ACCOUNT_NAME_CHECK: 'BANK_ACCOUNT_NAME_CHECK'
|
|
195
196
|
} as const;
|
|
196
197
|
export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
|
|
197
198
|
|
package/src/models/index.ts
CHANGED
|
@@ -50,6 +50,7 @@ export * from './AdminAccountSettingsInput';
|
|
|
50
50
|
export * from './AdminAuctionCommissionByDateRangeInput';
|
|
51
51
|
export * from './AdminAuctionConfigurationInput';
|
|
52
52
|
export * from './AdminBankAccountDto';
|
|
53
|
+
export * from './AdminBankAccountNameCheckDto';
|
|
53
54
|
export * from './AdminBankDepositAccountBankAccountDto';
|
|
54
55
|
export * from './AdminBankDepositAccountDto';
|
|
55
56
|
export * from './AdminBankDepositDto';
|