@randock/nameshift-api-client 0.0.496 → 0.0.498
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 +14 -0
- package/dist/apis/AdminApi.js +58 -0
- package/dist/apis/BankAccountsApi.d.ts +16 -1
- package/dist/apis/BankAccountsApi.js +89 -4
- package/dist/models/AccountBankAccountDto.d.ts +6 -0
- package/dist/models/AccountBankAccountDto.js +4 -0
- package/dist/models/AdminBankAccountDto.d.ts +7 -0
- package/dist/models/AdminBankAccountDto.js +5 -0
- package/dist/models/AdminBankAccountStatementDto.d.ts +56 -0
- package/dist/models/AdminBankAccountStatementDto.js +67 -0
- 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 +55 -0
- package/src/apis/BankAccountsApi.ts +95 -8
- package/src/models/AccountBankAccountDto.ts +9 -0
- package/src/models/AdminBankAccountDto.ts +16 -0
- package/src/models/AdminBankAccountStatementDto.ts +102 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -92,6 +92,7 @@ src/models/AdminAuctionCommissionByDateRangeInput.ts
|
|
|
92
92
|
src/models/AdminAuctionConfigurationInput.ts
|
|
93
93
|
src/models/AdminBankAccountDto.ts
|
|
94
94
|
src/models/AdminBankAccountNameCheckDto.ts
|
|
95
|
+
src/models/AdminBankAccountStatementDto.ts
|
|
95
96
|
src/models/AdminBankDepositAccountBankAccountDto.ts
|
|
96
97
|
src/models/AdminBankDepositAccountDto.ts
|
|
97
98
|
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.498
|
|
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.498 --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
|
+
2d38e3b01ae4529cf1e8ab45353a5d0ddd7b4fa146af688b9b7805c62ca6557a95dc62cec92425dd034863a4ddf07f68
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -70,6 +70,10 @@ export interface AdminApiDeleteAccountNoteRequest {
|
|
|
70
70
|
export interface AdminApiDeleteChallengeRequest {
|
|
71
71
|
id: string;
|
|
72
72
|
}
|
|
73
|
+
export interface AdminApiDownloadBankAccountStatementRequest {
|
|
74
|
+
bankAccountId: string;
|
|
75
|
+
statementId: string;
|
|
76
|
+
}
|
|
73
77
|
export interface AdminApiDownloadInvoiceRequest {
|
|
74
78
|
invoiceId: string;
|
|
75
79
|
}
|
|
@@ -540,6 +544,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
540
544
|
* Delete challenge
|
|
541
545
|
*/
|
|
542
546
|
deleteChallenge(requestParameters: AdminApiDeleteChallengeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
547
|
+
/**
|
|
548
|
+
* Downloads a bank statement the seller sent to verify the bank account by.
|
|
549
|
+
* Download bank statement
|
|
550
|
+
*/
|
|
551
|
+
downloadBankAccountStatementRaw(requestParameters: AdminApiDownloadBankAccountStatementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
552
|
+
/**
|
|
553
|
+
* Downloads a bank statement the seller sent to verify the bank account by.
|
|
554
|
+
* Download bank statement
|
|
555
|
+
*/
|
|
556
|
+
downloadBankAccountStatement(requestParameters: AdminApiDownloadBankAccountStatementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
543
557
|
/**
|
|
544
558
|
* Downloads the PDF document for a specific invoice.
|
|
545
559
|
* Download invoice
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -927,6 +927,64 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
927
927
|
});
|
|
928
928
|
});
|
|
929
929
|
};
|
|
930
|
+
/**
|
|
931
|
+
* Downloads a bank statement the seller sent to verify the bank account by.
|
|
932
|
+
* Download bank statement
|
|
933
|
+
*/
|
|
934
|
+
AdminApi.prototype.downloadBankAccountStatementRaw = function (requestParameters, initOverrides) {
|
|
935
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
936
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
937
|
+
return __generator(this, function (_a) {
|
|
938
|
+
switch (_a.label) {
|
|
939
|
+
case 0:
|
|
940
|
+
if (requestParameters['bankAccountId'] == null) {
|
|
941
|
+
throw new runtime.RequiredError('bankAccountId', 'Required parameter "bankAccountId" was null or undefined when calling downloadBankAccountStatement().');
|
|
942
|
+
}
|
|
943
|
+
if (requestParameters['statementId'] == null) {
|
|
944
|
+
throw new runtime.RequiredError('statementId', 'Required parameter "statementId" was null or undefined when calling downloadBankAccountStatement().');
|
|
945
|
+
}
|
|
946
|
+
queryParameters = {};
|
|
947
|
+
headerParameters = {};
|
|
948
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
949
|
+
token = this.configuration.accessToken;
|
|
950
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
951
|
+
case 1:
|
|
952
|
+
tokenString = _a.sent();
|
|
953
|
+
if (tokenString) {
|
|
954
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
955
|
+
}
|
|
956
|
+
_a.label = 2;
|
|
957
|
+
case 2: return [4 /*yield*/, this.request({
|
|
958
|
+
path: "/admin/bank-accounts/{bankAccountId}/statements/{statementId}".replace("{".concat("bankAccountId", "}"), encodeURIComponent(String(requestParameters['bankAccountId']))).replace("{".concat("statementId", "}"), encodeURIComponent(String(requestParameters['statementId']))),
|
|
959
|
+
method: 'GET',
|
|
960
|
+
headers: headerParameters,
|
|
961
|
+
query: queryParameters,
|
|
962
|
+
}, initOverrides)];
|
|
963
|
+
case 3:
|
|
964
|
+
response = _a.sent();
|
|
965
|
+
return [2 /*return*/, new runtime.BlobApiResponse(response)];
|
|
966
|
+
}
|
|
967
|
+
});
|
|
968
|
+
});
|
|
969
|
+
};
|
|
970
|
+
/**
|
|
971
|
+
* Downloads a bank statement the seller sent to verify the bank account by.
|
|
972
|
+
* Download bank statement
|
|
973
|
+
*/
|
|
974
|
+
AdminApi.prototype.downloadBankAccountStatement = function (requestParameters, initOverrides) {
|
|
975
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
976
|
+
var response;
|
|
977
|
+
return __generator(this, function (_a) {
|
|
978
|
+
switch (_a.label) {
|
|
979
|
+
case 0: return [4 /*yield*/, this.downloadBankAccountStatementRaw(requestParameters, initOverrides)];
|
|
980
|
+
case 1:
|
|
981
|
+
response = _a.sent();
|
|
982
|
+
return [4 /*yield*/, response.value()];
|
|
983
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
984
|
+
}
|
|
985
|
+
});
|
|
986
|
+
});
|
|
987
|
+
};
|
|
930
988
|
/**
|
|
931
989
|
* Downloads the PDF document for a specific invoice.
|
|
932
990
|
* Download invoice
|
|
@@ -24,8 +24,8 @@ export interface BankAccountsApiGetBankAccountFormatRequest {
|
|
|
24
24
|
currencyCode: string;
|
|
25
25
|
}
|
|
26
26
|
export interface BankAccountsApiGetBankAccountToUseForMicrodepositRequest {
|
|
27
|
-
bankAccountId: string;
|
|
28
27
|
accountId: string;
|
|
28
|
+
bankAccountId: string;
|
|
29
29
|
}
|
|
30
30
|
export interface BankAccountsApiListBankAccountsRequest {
|
|
31
31
|
accountId: string;
|
|
@@ -39,6 +39,11 @@ export interface BankAccountsApiSearchBankAccountInstitutionsRequest {
|
|
|
39
39
|
currencyCode: string;
|
|
40
40
|
searchBankAccountInstitutionsInput: SearchBankAccountInstitutionsInput;
|
|
41
41
|
}
|
|
42
|
+
export interface BankAccountsApiSubmitBankAccountStatementRequest {
|
|
43
|
+
accountId: string;
|
|
44
|
+
bankAccountId: string;
|
|
45
|
+
file: Blob;
|
|
46
|
+
}
|
|
42
47
|
/**
|
|
43
48
|
*
|
|
44
49
|
*/
|
|
@@ -123,4 +128,14 @@ export declare class BankAccountsApi extends runtime.BaseAPI {
|
|
|
123
128
|
* Search banks or branches
|
|
124
129
|
*/
|
|
125
130
|
searchBankAccountInstitutions(requestParameters: BankAccountsApiSearchBankAccountInstitutionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<BankAccountFormatFieldOptionDto>>;
|
|
131
|
+
/**
|
|
132
|
+
* Sends a bank statement to verify a bank account by, instead of a micro-deposit. Our team checks it and verifies the account. A rejected account is pending again once a statement is sent. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
133
|
+
* Send a bank statement
|
|
134
|
+
*/
|
|
135
|
+
submitBankAccountStatementRaw(requestParameters: BankAccountsApiSubmitBankAccountStatementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
136
|
+
/**
|
|
137
|
+
* Sends a bank statement to verify a bank account by, instead of a micro-deposit. Our team checks it and verifies the account. A rejected account is pending again once a statement is sent. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
138
|
+
* Send a bank statement
|
|
139
|
+
*/
|
|
140
|
+
submitBankAccountStatement(requestParameters: BankAccountsApiSubmitBankAccountStatementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
126
141
|
}
|
|
@@ -281,12 +281,12 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
281
281
|
return __generator(this, function (_c) {
|
|
282
282
|
switch (_c.label) {
|
|
283
283
|
case 0:
|
|
284
|
-
if (requestParameters['bankAccountId'] == null) {
|
|
285
|
-
throw new runtime.RequiredError('bankAccountId', 'Required parameter "bankAccountId" was null or undefined when calling getBankAccountToUseForMicrodeposit().');
|
|
286
|
-
}
|
|
287
284
|
if (requestParameters['accountId'] == null) {
|
|
288
285
|
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getBankAccountToUseForMicrodeposit().');
|
|
289
286
|
}
|
|
287
|
+
if (requestParameters['bankAccountId'] == null) {
|
|
288
|
+
throw new runtime.RequiredError('bankAccountId', 'Required parameter "bankAccountId" was null or undefined when calling getBankAccountToUseForMicrodeposit().');
|
|
289
|
+
}
|
|
290
290
|
queryParameters = {};
|
|
291
291
|
headerParameters = {};
|
|
292
292
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
@@ -307,7 +307,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
307
307
|
}
|
|
308
308
|
_c.label = 4;
|
|
309
309
|
case 4: return [4 /*yield*/, this.request({
|
|
310
|
-
path: "/private/accounts/{accountId}/bank-accounts/{bankAccountId}/microdeposit".replace("{".concat("
|
|
310
|
+
path: "/private/accounts/{accountId}/bank-accounts/{bankAccountId}/microdeposit".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))).replace("{".concat("bankAccountId", "}"), encodeURIComponent(String(requestParameters['bankAccountId']))),
|
|
311
311
|
method: 'GET',
|
|
312
312
|
headers: headerParameters,
|
|
313
313
|
query: queryParameters,
|
|
@@ -595,6 +595,91 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
595
595
|
});
|
|
596
596
|
});
|
|
597
597
|
};
|
|
598
|
+
/**
|
|
599
|
+
* Sends a bank statement to verify a bank account by, instead of a micro-deposit. Our team checks it and verifies the account. A rejected account is pending again once a statement is sent. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
600
|
+
* Send a bank statement
|
|
601
|
+
*/
|
|
602
|
+
BankAccountsApi.prototype.submitBankAccountStatementRaw = function (requestParameters, initOverrides) {
|
|
603
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
604
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, consumes, canConsumeForm, formParams, useForm, response;
|
|
605
|
+
return __generator(this, function (_c) {
|
|
606
|
+
switch (_c.label) {
|
|
607
|
+
case 0:
|
|
608
|
+
if (requestParameters['accountId'] == null) {
|
|
609
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling submitBankAccountStatement().');
|
|
610
|
+
}
|
|
611
|
+
if (requestParameters['bankAccountId'] == null) {
|
|
612
|
+
throw new runtime.RequiredError('bankAccountId', 'Required parameter "bankAccountId" was null or undefined when calling submitBankAccountStatement().');
|
|
613
|
+
}
|
|
614
|
+
if (requestParameters['file'] == null) {
|
|
615
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling submitBankAccountStatement().');
|
|
616
|
+
}
|
|
617
|
+
queryParameters = {};
|
|
618
|
+
headerParameters = {};
|
|
619
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
620
|
+
_a = headerParameters;
|
|
621
|
+
_b = "apikey";
|
|
622
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
623
|
+
case 1:
|
|
624
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
625
|
+
_c.label = 2;
|
|
626
|
+
case 2:
|
|
627
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
628
|
+
token = this.configuration.accessToken;
|
|
629
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
630
|
+
case 3:
|
|
631
|
+
tokenString = _c.sent();
|
|
632
|
+
if (tokenString) {
|
|
633
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
634
|
+
}
|
|
635
|
+
_c.label = 4;
|
|
636
|
+
case 4:
|
|
637
|
+
consumes = [
|
|
638
|
+
{ contentType: 'multipart/form-data' },
|
|
639
|
+
];
|
|
640
|
+
canConsumeForm = runtime.canConsumeForm(consumes);
|
|
641
|
+
useForm = false;
|
|
642
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
643
|
+
useForm = canConsumeForm;
|
|
644
|
+
if (useForm) {
|
|
645
|
+
formParams = new FormData();
|
|
646
|
+
}
|
|
647
|
+
else {
|
|
648
|
+
formParams = new URLSearchParams();
|
|
649
|
+
}
|
|
650
|
+
if (requestParameters['file'] != null) {
|
|
651
|
+
formParams.append('file', requestParameters['file']);
|
|
652
|
+
}
|
|
653
|
+
return [4 /*yield*/, this.request({
|
|
654
|
+
path: "/private/accounts/{accountId}/bank-accounts/{bankAccountId}/statements".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))).replace("{".concat("bankAccountId", "}"), encodeURIComponent(String(requestParameters['bankAccountId']))),
|
|
655
|
+
method: 'POST',
|
|
656
|
+
headers: headerParameters,
|
|
657
|
+
query: queryParameters,
|
|
658
|
+
body: formParams,
|
|
659
|
+
}, initOverrides)];
|
|
660
|
+
case 5:
|
|
661
|
+
response = _c.sent();
|
|
662
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
663
|
+
}
|
|
664
|
+
});
|
|
665
|
+
});
|
|
666
|
+
};
|
|
667
|
+
/**
|
|
668
|
+
* Sends a bank statement to verify a bank account by, instead of a micro-deposit. Our team checks it and verifies the account. A rejected account is pending again once a statement is sent. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
669
|
+
* Send a bank statement
|
|
670
|
+
*/
|
|
671
|
+
BankAccountsApi.prototype.submitBankAccountStatement = function (requestParameters, initOverrides) {
|
|
672
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
673
|
+
return __generator(this, function (_a) {
|
|
674
|
+
switch (_a.label) {
|
|
675
|
+
case 0: return [4 /*yield*/, this.submitBankAccountStatementRaw(requestParameters, initOverrides)];
|
|
676
|
+
case 1:
|
|
677
|
+
_a.sent();
|
|
678
|
+
return [2 /*return*/];
|
|
679
|
+
}
|
|
680
|
+
});
|
|
681
|
+
});
|
|
682
|
+
};
|
|
598
683
|
return BankAccountsApi;
|
|
599
684
|
}(runtime.BaseAPI));
|
|
600
685
|
exports.BankAccountsApi = BankAccountsApi;
|
|
@@ -46,6 +46,12 @@ export interface AccountBankAccountDto {
|
|
|
46
46
|
* @memberof AccountBankAccountDto
|
|
47
47
|
*/
|
|
48
48
|
nameCheckStatus: AccountBankAccountDtoNameCheckStatusEnum | null;
|
|
49
|
+
/**
|
|
50
|
+
* When the seller last sent a bank statement to verify the account by, which our team then checks. Null if they never did.
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof AccountBankAccountDto
|
|
53
|
+
*/
|
|
54
|
+
bankStatementSubmittedAt: Date | null;
|
|
49
55
|
/**
|
|
50
56
|
* The bank details. Extra details such as tax IDs are never returned.
|
|
51
57
|
* @type {AccountBankAccountDetailsDto}
|
|
@@ -52,6 +52,8 @@ function instanceOfAccountBankAccountDto(value) {
|
|
|
52
52
|
return false;
|
|
53
53
|
if (!('nameCheckStatus' in value) || value['nameCheckStatus'] === undefined)
|
|
54
54
|
return false;
|
|
55
|
+
if (!('bankStatementSubmittedAt' in value) || value['bankStatementSubmittedAt'] === undefined)
|
|
56
|
+
return false;
|
|
55
57
|
if (!('details' in value) || value['details'] === undefined)
|
|
56
58
|
return false;
|
|
57
59
|
if (!('payable' in value) || value['payable'] === undefined)
|
|
@@ -71,6 +73,7 @@ function AccountBankAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
71
73
|
'currencyCode': json['currencyCode'],
|
|
72
74
|
'verificationStatus': json['verificationStatus'],
|
|
73
75
|
'nameCheckStatus': json['nameCheckStatus'],
|
|
76
|
+
'bankStatementSubmittedAt': (json['bankStatementSubmittedAt'] == null ? null : new Date(json['bankStatementSubmittedAt'])),
|
|
74
77
|
'details': (0, AccountBankAccountDetailsDto_1.AccountBankAccountDetailsDtoFromJSON)(json['details']),
|
|
75
78
|
'payable': json['payable'],
|
|
76
79
|
};
|
|
@@ -89,6 +92,7 @@ function AccountBankAccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
89
92
|
'currencyCode': value['currencyCode'],
|
|
90
93
|
'verificationStatus': value['verificationStatus'],
|
|
91
94
|
'nameCheckStatus': value['nameCheckStatus'],
|
|
95
|
+
'bankStatementSubmittedAt': (value['bankStatementSubmittedAt'] == null ? null : value['bankStatementSubmittedAt'].toISOString()),
|
|
92
96
|
'details': (0, AccountBankAccountDetailsDto_1.AccountBankAccountDetailsDtoToJSON)(value['details']),
|
|
93
97
|
'payable': value['payable'],
|
|
94
98
|
};
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { AccountBankAccountDto } from './AccountBankAccountDto';
|
|
13
13
|
import type { AdminVerificationDepositDto } from './AdminVerificationDepositDto';
|
|
14
14
|
import type { AdminBankAccountNameCheckDto } from './AdminBankAccountNameCheckDto';
|
|
15
|
+
import type { AdminBankAccountStatementDto } from './AdminBankAccountStatementDto';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
17
18
|
* @export
|
|
@@ -42,6 +43,12 @@ export interface AdminBankAccountDto {
|
|
|
42
43
|
* @memberof AdminBankAccountDto
|
|
43
44
|
*/
|
|
44
45
|
nameCheck: AdminBankAccountNameCheckDto | null;
|
|
46
|
+
/**
|
|
47
|
+
* Bank statements the seller sent to verify the account by, newest first.
|
|
48
|
+
* @type {Array<AdminBankAccountStatementDto>}
|
|
49
|
+
* @memberof AdminBankAccountDto
|
|
50
|
+
*/
|
|
51
|
+
statements: Array<AdminBankAccountStatementDto>;
|
|
45
52
|
}
|
|
46
53
|
/**
|
|
47
54
|
* Check if a given object implements the AdminBankAccountDto interface.
|
|
@@ -21,6 +21,7 @@ exports.AdminBankAccountDtoToJSONTyped = AdminBankAccountDtoToJSONTyped;
|
|
|
21
21
|
var AccountBankAccountDto_1 = require("./AccountBankAccountDto");
|
|
22
22
|
var AdminVerificationDepositDto_1 = require("./AdminVerificationDepositDto");
|
|
23
23
|
var AdminBankAccountNameCheckDto_1 = require("./AdminBankAccountNameCheckDto");
|
|
24
|
+
var AdminBankAccountStatementDto_1 = require("./AdminBankAccountStatementDto");
|
|
24
25
|
/**
|
|
25
26
|
* Check if a given object implements the AdminBankAccountDto interface.
|
|
26
27
|
*/
|
|
@@ -33,6 +34,8 @@ function instanceOfAdminBankAccountDto(value) {
|
|
|
33
34
|
return false;
|
|
34
35
|
if (!('nameCheck' in value) || value['nameCheck'] === undefined)
|
|
35
36
|
return false;
|
|
37
|
+
if (!('statements' in value) || value['statements'] === undefined)
|
|
38
|
+
return false;
|
|
36
39
|
return true;
|
|
37
40
|
}
|
|
38
41
|
function AdminBankAccountDtoFromJSON(json) {
|
|
@@ -47,6 +50,7 @@ function AdminBankAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
50
|
'bankAccount': (0, AccountBankAccountDto_1.AccountBankAccountDtoFromJSON)(json['bankAccount']),
|
|
48
51
|
'relatedVerificationDeposits': (json['relatedVerificationDeposits'].map(AdminVerificationDepositDto_1.AdminVerificationDepositDtoFromJSON)),
|
|
49
52
|
'nameCheck': (0, AdminBankAccountNameCheckDto_1.AdminBankAccountNameCheckDtoFromJSON)(json['nameCheck']),
|
|
53
|
+
'statements': (json['statements'].map(AdminBankAccountStatementDto_1.AdminBankAccountStatementDtoFromJSON)),
|
|
50
54
|
};
|
|
51
55
|
}
|
|
52
56
|
function AdminBankAccountDtoToJSON(json) {
|
|
@@ -62,5 +66,6 @@ function AdminBankAccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
62
66
|
'bankAccount': (0, AccountBankAccountDto_1.AccountBankAccountDtoToJSON)(value['bankAccount']),
|
|
63
67
|
'relatedVerificationDeposits': (value['relatedVerificationDeposits'].map(AdminVerificationDepositDto_1.AdminVerificationDepositDtoToJSON)),
|
|
64
68
|
'nameCheck': (0, AdminBankAccountNameCheckDto_1.AdminBankAccountNameCheckDtoToJSON)(value['nameCheck']),
|
|
69
|
+
'statements': (value['statements'].map(AdminBankAccountStatementDto_1.AdminBankAccountStatementDtoToJSON)),
|
|
65
70
|
};
|
|
66
71
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 AdminBankAccountStatementDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminBankAccountStatementDto {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier of the statement, to download it by from `GET /admin/bank-accounts/{bankAccountId}/statements/{statementId}`.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminBankAccountStatementDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* The file's name on the seller's device, as they sent it.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminBankAccountStatementDto
|
|
28
|
+
*/
|
|
29
|
+
fileName: string;
|
|
30
|
+
/**
|
|
31
|
+
* application/pdf, image/jpeg or image/png.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AdminBankAccountStatementDto
|
|
34
|
+
*/
|
|
35
|
+
mimeType: string;
|
|
36
|
+
/**
|
|
37
|
+
* Size of the file, in bytes.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AdminBankAccountStatementDto
|
|
40
|
+
*/
|
|
41
|
+
size: number;
|
|
42
|
+
/**
|
|
43
|
+
* When the seller sent it.
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof AdminBankAccountStatementDto
|
|
46
|
+
*/
|
|
47
|
+
submittedAt: Date;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the AdminBankAccountStatementDto interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfAdminBankAccountStatementDto(value: object): value is AdminBankAccountStatementDto;
|
|
53
|
+
export declare function AdminBankAccountStatementDtoFromJSON(json: any): AdminBankAccountStatementDto;
|
|
54
|
+
export declare function AdminBankAccountStatementDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminBankAccountStatementDto;
|
|
55
|
+
export declare function AdminBankAccountStatementDtoToJSON(json: any): AdminBankAccountStatementDto;
|
|
56
|
+
export declare function AdminBankAccountStatementDtoToJSONTyped(value?: AdminBankAccountStatementDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfAdminBankAccountStatementDto = instanceOfAdminBankAccountStatementDto;
|
|
17
|
+
exports.AdminBankAccountStatementDtoFromJSON = AdminBankAccountStatementDtoFromJSON;
|
|
18
|
+
exports.AdminBankAccountStatementDtoFromJSONTyped = AdminBankAccountStatementDtoFromJSONTyped;
|
|
19
|
+
exports.AdminBankAccountStatementDtoToJSON = AdminBankAccountStatementDtoToJSON;
|
|
20
|
+
exports.AdminBankAccountStatementDtoToJSONTyped = AdminBankAccountStatementDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminBankAccountStatementDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminBankAccountStatementDto(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('fileName' in value) || value['fileName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('size' in value) || value['size'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('submittedAt' in value) || value['submittedAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function AdminBankAccountStatementDtoFromJSON(json) {
|
|
38
|
+
return AdminBankAccountStatementDtoFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function AdminBankAccountStatementDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'fileName': json['fileName'],
|
|
47
|
+
'mimeType': json['mimeType'],
|
|
48
|
+
'size': json['size'],
|
|
49
|
+
'submittedAt': (new Date(json['submittedAt'])),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function AdminBankAccountStatementDtoToJSON(json) {
|
|
53
|
+
return AdminBankAccountStatementDtoToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function AdminBankAccountStatementDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'fileName': value['fileName'],
|
|
63
|
+
'mimeType': value['mimeType'],
|
|
64
|
+
'size': value['size'],
|
|
65
|
+
'submittedAt': ((value['submittedAt']).toISOString()),
|
|
66
|
+
};
|
|
67
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export * from './AdminAuctionCommissionByDateRangeInput';
|
|
|
49
49
|
export * from './AdminAuctionConfigurationInput';
|
|
50
50
|
export * from './AdminBankAccountDto';
|
|
51
51
|
export * from './AdminBankAccountNameCheckDto';
|
|
52
|
+
export * from './AdminBankAccountStatementDto';
|
|
52
53
|
export * from './AdminBankDepositAccountBankAccountDto';
|
|
53
54
|
export * from './AdminBankDepositAccountDto';
|
|
54
55
|
export * from './AdminBankDepositDto';
|
package/dist/models/index.js
CHANGED
|
@@ -67,6 +67,7 @@ __exportStar(require("./AdminAuctionCommissionByDateRangeInput"), exports);
|
|
|
67
67
|
__exportStar(require("./AdminAuctionConfigurationInput"), exports);
|
|
68
68
|
__exportStar(require("./AdminBankAccountDto"), exports);
|
|
69
69
|
__exportStar(require("./AdminBankAccountNameCheckDto"), exports);
|
|
70
|
+
__exportStar(require("./AdminBankAccountStatementDto"), exports);
|
|
70
71
|
__exportStar(require("./AdminBankDepositAccountBankAccountDto"), exports);
|
|
71
72
|
__exportStar(require("./AdminBankDepositAccountDto"), exports);
|
|
72
73
|
__exportStar(require("./AdminBankDepositDto"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -295,6 +295,11 @@ export interface AdminApiDeleteChallengeRequest {
|
|
|
295
295
|
id: string;
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
+
export interface AdminApiDownloadBankAccountStatementRequest {
|
|
299
|
+
bankAccountId: string;
|
|
300
|
+
statementId: string;
|
|
301
|
+
}
|
|
302
|
+
|
|
298
303
|
export interface AdminApiDownloadInvoiceRequest {
|
|
299
304
|
invoiceId: string;
|
|
300
305
|
}
|
|
@@ -1375,6 +1380,56 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1375
1380
|
await this.deleteChallengeRaw(requestParameters, initOverrides);
|
|
1376
1381
|
}
|
|
1377
1382
|
|
|
1383
|
+
/**
|
|
1384
|
+
* Downloads a bank statement the seller sent to verify the bank account by.
|
|
1385
|
+
* Download bank statement
|
|
1386
|
+
*/
|
|
1387
|
+
async downloadBankAccountStatementRaw(requestParameters: AdminApiDownloadBankAccountStatementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
1388
|
+
if (requestParameters['bankAccountId'] == null) {
|
|
1389
|
+
throw new runtime.RequiredError(
|
|
1390
|
+
'bankAccountId',
|
|
1391
|
+
'Required parameter "bankAccountId" was null or undefined when calling downloadBankAccountStatement().'
|
|
1392
|
+
);
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
if (requestParameters['statementId'] == null) {
|
|
1396
|
+
throw new runtime.RequiredError(
|
|
1397
|
+
'statementId',
|
|
1398
|
+
'Required parameter "statementId" was null or undefined when calling downloadBankAccountStatement().'
|
|
1399
|
+
);
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
const queryParameters: any = {};
|
|
1403
|
+
|
|
1404
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1405
|
+
|
|
1406
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1407
|
+
const token = this.configuration.accessToken;
|
|
1408
|
+
const tokenString = await token("bearer", []);
|
|
1409
|
+
|
|
1410
|
+
if (tokenString) {
|
|
1411
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
const response = await this.request({
|
|
1415
|
+
path: `/admin/bank-accounts/{bankAccountId}/statements/{statementId}`.replace(`{${"bankAccountId"}}`, encodeURIComponent(String(requestParameters['bankAccountId']))).replace(`{${"statementId"}}`, encodeURIComponent(String(requestParameters['statementId']))),
|
|
1416
|
+
method: 'GET',
|
|
1417
|
+
headers: headerParameters,
|
|
1418
|
+
query: queryParameters,
|
|
1419
|
+
}, initOverrides);
|
|
1420
|
+
|
|
1421
|
+
return new runtime.BlobApiResponse(response);
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* Downloads a bank statement the seller sent to verify the bank account by.
|
|
1426
|
+
* Download bank statement
|
|
1427
|
+
*/
|
|
1428
|
+
async downloadBankAccountStatement(requestParameters: AdminApiDownloadBankAccountStatementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
1429
|
+
const response = await this.downloadBankAccountStatementRaw(requestParameters, initOverrides);
|
|
1430
|
+
return await response.value();
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1378
1433
|
/**
|
|
1379
1434
|
* Downloads the PDF document for a specific invoice.
|
|
1380
1435
|
* Download invoice
|
|
@@ -59,8 +59,8 @@ export interface BankAccountsApiGetBankAccountFormatRequest {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
export interface BankAccountsApiGetBankAccountToUseForMicrodepositRequest {
|
|
62
|
-
bankAccountId: string;
|
|
63
62
|
accountId: string;
|
|
63
|
+
bankAccountId: string;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
export interface BankAccountsApiListBankAccountsRequest {
|
|
@@ -78,6 +78,12 @@ export interface BankAccountsApiSearchBankAccountInstitutionsRequest {
|
|
|
78
78
|
searchBankAccountInstitutionsInput: SearchBankAccountInstitutionsInput;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
export interface BankAccountsApiSubmitBankAccountStatementRequest {
|
|
82
|
+
accountId: string;
|
|
83
|
+
bankAccountId: string;
|
|
84
|
+
file: Blob;
|
|
85
|
+
}
|
|
86
|
+
|
|
81
87
|
/**
|
|
82
88
|
*
|
|
83
89
|
*/
|
|
@@ -251,17 +257,17 @@ export class BankAccountsApi extends runtime.BaseAPI {
|
|
|
251
257
|
* Get microdeposit bank account details
|
|
252
258
|
*/
|
|
253
259
|
async getBankAccountToUseForMicrodepositRaw(requestParameters: BankAccountsApiGetBankAccountToUseForMicrodepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AirwallexBankAccountDetailsDto>> {
|
|
254
|
-
if (requestParameters['
|
|
260
|
+
if (requestParameters['accountId'] == null) {
|
|
255
261
|
throw new runtime.RequiredError(
|
|
256
|
-
'
|
|
257
|
-
'Required parameter "
|
|
262
|
+
'accountId',
|
|
263
|
+
'Required parameter "accountId" was null or undefined when calling getBankAccountToUseForMicrodeposit().'
|
|
258
264
|
);
|
|
259
265
|
}
|
|
260
266
|
|
|
261
|
-
if (requestParameters['
|
|
267
|
+
if (requestParameters['bankAccountId'] == null) {
|
|
262
268
|
throw new runtime.RequiredError(
|
|
263
|
-
'
|
|
264
|
-
'Required parameter "
|
|
269
|
+
'bankAccountId',
|
|
270
|
+
'Required parameter "bankAccountId" was null or undefined when calling getBankAccountToUseForMicrodeposit().'
|
|
265
271
|
);
|
|
266
272
|
}
|
|
267
273
|
|
|
@@ -282,7 +288,7 @@ export class BankAccountsApi extends runtime.BaseAPI {
|
|
|
282
288
|
}
|
|
283
289
|
}
|
|
284
290
|
const response = await this.request({
|
|
285
|
-
path: `/private/accounts/{accountId}/bank-accounts/{bankAccountId}/microdeposit`.replace(`{${"
|
|
291
|
+
path: `/private/accounts/{accountId}/bank-accounts/{bankAccountId}/microdeposit`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))).replace(`{${"bankAccountId"}}`, encodeURIComponent(String(requestParameters['bankAccountId']))),
|
|
286
292
|
method: 'GET',
|
|
287
293
|
headers: headerParameters,
|
|
288
294
|
query: queryParameters,
|
|
@@ -504,4 +510,85 @@ export class BankAccountsApi extends runtime.BaseAPI {
|
|
|
504
510
|
return await response.value();
|
|
505
511
|
}
|
|
506
512
|
|
|
513
|
+
/**
|
|
514
|
+
* Sends a bank statement to verify a bank account by, instead of a micro-deposit. Our team checks it and verifies the account. A rejected account is pending again once a statement is sent. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
515
|
+
* Send a bank statement
|
|
516
|
+
*/
|
|
517
|
+
async submitBankAccountStatementRaw(requestParameters: BankAccountsApiSubmitBankAccountStatementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
518
|
+
if (requestParameters['accountId'] == null) {
|
|
519
|
+
throw new runtime.RequiredError(
|
|
520
|
+
'accountId',
|
|
521
|
+
'Required parameter "accountId" was null or undefined when calling submitBankAccountStatement().'
|
|
522
|
+
);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
if (requestParameters['bankAccountId'] == null) {
|
|
526
|
+
throw new runtime.RequiredError(
|
|
527
|
+
'bankAccountId',
|
|
528
|
+
'Required parameter "bankAccountId" was null or undefined when calling submitBankAccountStatement().'
|
|
529
|
+
);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
if (requestParameters['file'] == null) {
|
|
533
|
+
throw new runtime.RequiredError(
|
|
534
|
+
'file',
|
|
535
|
+
'Required parameter "file" was null or undefined when calling submitBankAccountStatement().'
|
|
536
|
+
);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
const queryParameters: any = {};
|
|
540
|
+
|
|
541
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
542
|
+
|
|
543
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
544
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
548
|
+
const token = this.configuration.accessToken;
|
|
549
|
+
const tokenString = await token("bearer", []);
|
|
550
|
+
|
|
551
|
+
if (tokenString) {
|
|
552
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
const consumes: runtime.Consume[] = [
|
|
556
|
+
{ contentType: 'multipart/form-data' },
|
|
557
|
+
];
|
|
558
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
559
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
560
|
+
|
|
561
|
+
let formParams: { append(param: string, value: any): any };
|
|
562
|
+
let useForm = false;
|
|
563
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
564
|
+
useForm = canConsumeForm;
|
|
565
|
+
if (useForm) {
|
|
566
|
+
formParams = new FormData();
|
|
567
|
+
} else {
|
|
568
|
+
formParams = new URLSearchParams();
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
if (requestParameters['file'] != null) {
|
|
572
|
+
formParams.append('file', requestParameters['file'] as any);
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
const response = await this.request({
|
|
576
|
+
path: `/private/accounts/{accountId}/bank-accounts/{bankAccountId}/statements`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))).replace(`{${"bankAccountId"}}`, encodeURIComponent(String(requestParameters['bankAccountId']))),
|
|
577
|
+
method: 'POST',
|
|
578
|
+
headers: headerParameters,
|
|
579
|
+
query: queryParameters,
|
|
580
|
+
body: formParams,
|
|
581
|
+
}, initOverrides);
|
|
582
|
+
|
|
583
|
+
return new runtime.VoidApiResponse(response);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Sends a bank statement to verify a bank account by, instead of a micro-deposit. Our team checks it and verifies the account. A rejected account is pending again once a statement is sent. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
588
|
+
* Send a bank statement
|
|
589
|
+
*/
|
|
590
|
+
async submitBankAccountStatement(requestParameters: BankAccountsApiSubmitBankAccountStatementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
591
|
+
await this.submitBankAccountStatementRaw(requestParameters, initOverrides);
|
|
592
|
+
}
|
|
593
|
+
|
|
507
594
|
}
|
|
@@ -57,6 +57,12 @@ export interface AccountBankAccountDto {
|
|
|
57
57
|
* @memberof AccountBankAccountDto
|
|
58
58
|
*/
|
|
59
59
|
nameCheckStatus: AccountBankAccountDtoNameCheckStatusEnum | null;
|
|
60
|
+
/**
|
|
61
|
+
* When the seller last sent a bank statement to verify the account by, which our team then checks. Null if they never did.
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof AccountBankAccountDto
|
|
64
|
+
*/
|
|
65
|
+
bankStatementSubmittedAt: Date | null;
|
|
60
66
|
/**
|
|
61
67
|
* The bank details. Extra details such as tax IDs are never returned.
|
|
62
68
|
* @type {AccountBankAccountDetailsDto}
|
|
@@ -104,6 +110,7 @@ export function instanceOfAccountBankAccountDto(value: object): value is Account
|
|
|
104
110
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
105
111
|
if (!('verificationStatus' in value) || value['verificationStatus'] === undefined) return false;
|
|
106
112
|
if (!('nameCheckStatus' in value) || value['nameCheckStatus'] === undefined) return false;
|
|
113
|
+
if (!('bankStatementSubmittedAt' in value) || value['bankStatementSubmittedAt'] === undefined) return false;
|
|
107
114
|
if (!('details' in value) || value['details'] === undefined) return false;
|
|
108
115
|
if (!('payable' in value) || value['payable'] === undefined) return false;
|
|
109
116
|
return true;
|
|
@@ -124,6 +131,7 @@ export function AccountBankAccountDtoFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
124
131
|
'currencyCode': json['currencyCode'],
|
|
125
132
|
'verificationStatus': json['verificationStatus'],
|
|
126
133
|
'nameCheckStatus': json['nameCheckStatus'],
|
|
134
|
+
'bankStatementSubmittedAt': (json['bankStatementSubmittedAt'] == null ? null : new Date(json['bankStatementSubmittedAt'])),
|
|
127
135
|
'details': AccountBankAccountDetailsDtoFromJSON(json['details']),
|
|
128
136
|
'payable': json['payable'],
|
|
129
137
|
};
|
|
@@ -145,6 +153,7 @@ export function AccountBankAccountDtoToJSONTyped(value?: AccountBankAccountDto |
|
|
|
145
153
|
'currencyCode': value['currencyCode'],
|
|
146
154
|
'verificationStatus': value['verificationStatus'],
|
|
147
155
|
'nameCheckStatus': value['nameCheckStatus'],
|
|
156
|
+
'bankStatementSubmittedAt': (value['bankStatementSubmittedAt'] == null ? null : (value['bankStatementSubmittedAt'] as any).toISOString()),
|
|
148
157
|
'details': AccountBankAccountDetailsDtoToJSON(value['details']),
|
|
149
158
|
'payable': value['payable'],
|
|
150
159
|
};
|
|
@@ -34,6 +34,13 @@ import {
|
|
|
34
34
|
AdminBankAccountNameCheckDtoToJSON,
|
|
35
35
|
AdminBankAccountNameCheckDtoToJSONTyped,
|
|
36
36
|
} from './AdminBankAccountNameCheckDto';
|
|
37
|
+
import type { AdminBankAccountStatementDto } from './AdminBankAccountStatementDto';
|
|
38
|
+
import {
|
|
39
|
+
AdminBankAccountStatementDtoFromJSON,
|
|
40
|
+
AdminBankAccountStatementDtoFromJSONTyped,
|
|
41
|
+
AdminBankAccountStatementDtoToJSON,
|
|
42
|
+
AdminBankAccountStatementDtoToJSONTyped,
|
|
43
|
+
} from './AdminBankAccountStatementDto';
|
|
37
44
|
|
|
38
45
|
/**
|
|
39
46
|
*
|
|
@@ -65,6 +72,12 @@ export interface AdminBankAccountDto {
|
|
|
65
72
|
* @memberof AdminBankAccountDto
|
|
66
73
|
*/
|
|
67
74
|
nameCheck: AdminBankAccountNameCheckDto | null;
|
|
75
|
+
/**
|
|
76
|
+
* Bank statements the seller sent to verify the account by, newest first.
|
|
77
|
+
* @type {Array<AdminBankAccountStatementDto>}
|
|
78
|
+
* @memberof AdminBankAccountDto
|
|
79
|
+
*/
|
|
80
|
+
statements: Array<AdminBankAccountStatementDto>;
|
|
68
81
|
}
|
|
69
82
|
|
|
70
83
|
/**
|
|
@@ -75,6 +88,7 @@ export function instanceOfAdminBankAccountDto(value: object): value is AdminBank
|
|
|
75
88
|
if (!('bankAccount' in value) || value['bankAccount'] === undefined) return false;
|
|
76
89
|
if (!('relatedVerificationDeposits' in value) || value['relatedVerificationDeposits'] === undefined) return false;
|
|
77
90
|
if (!('nameCheck' in value) || value['nameCheck'] === undefined) return false;
|
|
91
|
+
if (!('statements' in value) || value['statements'] === undefined) return false;
|
|
78
92
|
return true;
|
|
79
93
|
}
|
|
80
94
|
|
|
@@ -92,6 +106,7 @@ export function AdminBankAccountDtoFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
92
106
|
'bankAccount': AccountBankAccountDtoFromJSON(json['bankAccount']),
|
|
93
107
|
'relatedVerificationDeposits': ((json['relatedVerificationDeposits'] as Array<any>).map(AdminVerificationDepositDtoFromJSON)),
|
|
94
108
|
'nameCheck': AdminBankAccountNameCheckDtoFromJSON(json['nameCheck']),
|
|
109
|
+
'statements': ((json['statements'] as Array<any>).map(AdminBankAccountStatementDtoFromJSON)),
|
|
95
110
|
};
|
|
96
111
|
}
|
|
97
112
|
|
|
@@ -110,6 +125,7 @@ export function AdminBankAccountDtoToJSONTyped(value?: AdminBankAccountDto | nul
|
|
|
110
125
|
'bankAccount': AccountBankAccountDtoToJSON(value['bankAccount']),
|
|
111
126
|
'relatedVerificationDeposits': ((value['relatedVerificationDeposits'] as Array<any>).map(AdminVerificationDepositDtoToJSON)),
|
|
112
127
|
'nameCheck': AdminBankAccountNameCheckDtoToJSON(value['nameCheck']),
|
|
128
|
+
'statements': ((value['statements'] as Array<any>).map(AdminBankAccountStatementDtoToJSON)),
|
|
113
129
|
};
|
|
114
130
|
}
|
|
115
131
|
|
|
@@ -0,0 +1,102 @@
|
|
|
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 AdminBankAccountStatementDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AdminBankAccountStatementDto {
|
|
22
|
+
/**
|
|
23
|
+
* Unique identifier of the statement, to download it by from `GET /admin/bank-accounts/{bankAccountId}/statements/{statementId}`.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AdminBankAccountStatementDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The file's name on the seller's device, as they sent it.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AdminBankAccountStatementDto
|
|
32
|
+
*/
|
|
33
|
+
fileName: string;
|
|
34
|
+
/**
|
|
35
|
+
* application/pdf, image/jpeg or image/png.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AdminBankAccountStatementDto
|
|
38
|
+
*/
|
|
39
|
+
mimeType: string;
|
|
40
|
+
/**
|
|
41
|
+
* Size of the file, in bytes.
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof AdminBankAccountStatementDto
|
|
44
|
+
*/
|
|
45
|
+
size: number;
|
|
46
|
+
/**
|
|
47
|
+
* When the seller sent it.
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof AdminBankAccountStatementDto
|
|
50
|
+
*/
|
|
51
|
+
submittedAt: Date;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the AdminBankAccountStatementDto interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfAdminBankAccountStatementDto(value: object): value is AdminBankAccountStatementDto {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
60
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
61
|
+
if (!('size' in value) || value['size'] === undefined) return false;
|
|
62
|
+
if (!('submittedAt' in value) || value['submittedAt'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function AdminBankAccountStatementDtoFromJSON(json: any): AdminBankAccountStatementDto {
|
|
67
|
+
return AdminBankAccountStatementDtoFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function AdminBankAccountStatementDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminBankAccountStatementDto {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'fileName': json['fileName'],
|
|
78
|
+
'mimeType': json['mimeType'],
|
|
79
|
+
'size': json['size'],
|
|
80
|
+
'submittedAt': (new Date(json['submittedAt'])),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function AdminBankAccountStatementDtoToJSON(json: any): AdminBankAccountStatementDto {
|
|
85
|
+
return AdminBankAccountStatementDtoToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function AdminBankAccountStatementDtoToJSONTyped(value?: AdminBankAccountStatementDto | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'fileName': value['fileName'],
|
|
97
|
+
'mimeType': value['mimeType'],
|
|
98
|
+
'size': value['size'],
|
|
99
|
+
'submittedAt': ((value['submittedAt']).toISOString()),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -51,6 +51,7 @@ export * from './AdminAuctionCommissionByDateRangeInput';
|
|
|
51
51
|
export * from './AdminAuctionConfigurationInput';
|
|
52
52
|
export * from './AdminBankAccountDto';
|
|
53
53
|
export * from './AdminBankAccountNameCheckDto';
|
|
54
|
+
export * from './AdminBankAccountStatementDto';
|
|
54
55
|
export * from './AdminBankDepositAccountBankAccountDto';
|
|
55
56
|
export * from './AdminBankDepositAccountDto';
|
|
56
57
|
export * from './AdminBankDepositDto';
|