@randock/nameshift-api-client 0.0.476 → 0.0.477
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/models/AccountBankAccountSummaryDto.d.ts +59 -0
- package/dist/models/AccountBankAccountSummaryDto.js +72 -0
- package/dist/models/AdminListAccountDto.d.ts +7 -0
- package/dist/models/AdminListAccountDto.js +5 -0
- package/dist/models/CustomerSuccessListAccountDto.d.ts +7 -0
- package/dist/models/CustomerSuccessListAccountDto.js +5 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/AccountBankAccountSummaryDto.ts +105 -0
- package/src/models/AdminListAccountDto.ts +16 -0
- package/src/models/CustomerSuccessListAccountDto.ts +16 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -43,6 +43,7 @@ src/models/AccountAliasDto.ts
|
|
|
43
43
|
src/models/AccountAliasInput.ts
|
|
44
44
|
src/models/AccountBankAccountDto.ts
|
|
45
45
|
src/models/AccountBankAccountDtoDetails.ts
|
|
46
|
+
src/models/AccountBankAccountSummaryDto.ts
|
|
46
47
|
src/models/AccountChallengeRewardUsageListItemDto.ts
|
|
47
48
|
src/models/AccountChallengeRewardUsageListItemDtoMetadata.ts
|
|
48
49
|
src/models/AccountCommissionByDateRangeDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.477
|
|
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.477 --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
|
+
a72adb656a4e635180141294b78db983179843d0ddbc1219d448ed096ece4b9ef4aa6653ac9c2972106d52f5e9e5d4c7
|
|
@@ -0,0 +1,59 @@
|
|
|
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 AccountBankAccountSummaryDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountBankAccountSummaryDto {
|
|
18
|
+
/**
|
|
19
|
+
* ISO 4217 currency code for the account.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AccountBankAccountSummaryDto
|
|
22
|
+
*/
|
|
23
|
+
currencyCode: string;
|
|
24
|
+
/**
|
|
25
|
+
* ISO country code of the bank.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AccountBankAccountSummaryDto
|
|
28
|
+
*/
|
|
29
|
+
countryCode: string;
|
|
30
|
+
/**
|
|
31
|
+
* Last digits of the account number or IBAN.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AccountBankAccountSummaryDto
|
|
34
|
+
*/
|
|
35
|
+
reference: string;
|
|
36
|
+
/**
|
|
37
|
+
* Verification status with the payment provider.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AccountBankAccountSummaryDto
|
|
40
|
+
*/
|
|
41
|
+
verificationStatus: AccountBankAccountSummaryDtoVerificationStatusEnum;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const AccountBankAccountSummaryDtoVerificationStatusEnum: {
|
|
47
|
+
readonly PENDING: "pending";
|
|
48
|
+
readonly VERIFIED: "verified";
|
|
49
|
+
readonly REJECTED: "rejected";
|
|
50
|
+
};
|
|
51
|
+
export type AccountBankAccountSummaryDtoVerificationStatusEnum = typeof AccountBankAccountSummaryDtoVerificationStatusEnum[keyof typeof AccountBankAccountSummaryDtoVerificationStatusEnum];
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the AccountBankAccountSummaryDto interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfAccountBankAccountSummaryDto(value: object): value is AccountBankAccountSummaryDto;
|
|
56
|
+
export declare function AccountBankAccountSummaryDtoFromJSON(json: any): AccountBankAccountSummaryDto;
|
|
57
|
+
export declare function AccountBankAccountSummaryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountBankAccountSummaryDto;
|
|
58
|
+
export declare function AccountBankAccountSummaryDtoToJSON(json: any): AccountBankAccountSummaryDto;
|
|
59
|
+
export declare function AccountBankAccountSummaryDtoToJSONTyped(value?: AccountBankAccountSummaryDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
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.AccountBankAccountSummaryDtoVerificationStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfAccountBankAccountSummaryDto = instanceOfAccountBankAccountSummaryDto;
|
|
18
|
+
exports.AccountBankAccountSummaryDtoFromJSON = AccountBankAccountSummaryDtoFromJSON;
|
|
19
|
+
exports.AccountBankAccountSummaryDtoFromJSONTyped = AccountBankAccountSummaryDtoFromJSONTyped;
|
|
20
|
+
exports.AccountBankAccountSummaryDtoToJSON = AccountBankAccountSummaryDtoToJSON;
|
|
21
|
+
exports.AccountBankAccountSummaryDtoToJSONTyped = AccountBankAccountSummaryDtoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AccountBankAccountSummaryDtoVerificationStatusEnum = {
|
|
26
|
+
PENDING: 'pending',
|
|
27
|
+
VERIFIED: 'verified',
|
|
28
|
+
REJECTED: 'rejected'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AccountBankAccountSummaryDto interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfAccountBankAccountSummaryDto(value) {
|
|
34
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('reference' in value) || value['reference'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('verificationStatus' in value) || value['verificationStatus'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function AccountBankAccountSummaryDtoFromJSON(json) {
|
|
45
|
+
return AccountBankAccountSummaryDtoFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function AccountBankAccountSummaryDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'currencyCode': json['currencyCode'],
|
|
53
|
+
'countryCode': json['countryCode'],
|
|
54
|
+
'reference': json['reference'],
|
|
55
|
+
'verificationStatus': json['verificationStatus'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function AccountBankAccountSummaryDtoToJSON(json) {
|
|
59
|
+
return AccountBankAccountSummaryDtoToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function AccountBankAccountSummaryDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
62
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'currencyCode': value['currencyCode'],
|
|
68
|
+
'countryCode': value['countryCode'],
|
|
69
|
+
'reference': value['reference'],
|
|
70
|
+
'verificationStatus': value['verificationStatus'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ListAccountMetricsDto } from './ListAccountMetricsDto';
|
|
13
13
|
import type { ChallengeRewardBalanceDto } from './ChallengeRewardBalanceDto';
|
|
14
|
+
import type { AccountBankAccountSummaryDto } from './AccountBankAccountSummaryDto';
|
|
14
15
|
import type { ListAccountPortfolioSizeDto } from './ListAccountPortfolioSizeDto';
|
|
15
16
|
import type { ListAccountUserDto } from './ListAccountUserDto';
|
|
16
17
|
/**
|
|
@@ -43,6 +44,12 @@ export interface AdminListAccountDto {
|
|
|
43
44
|
* @memberof AdminListAccountDto
|
|
44
45
|
*/
|
|
45
46
|
notesLastUpdatedAt: Date | null;
|
|
47
|
+
/**
|
|
48
|
+
* The bank accounts of the account, and their verification.
|
|
49
|
+
* @type {Array<AccountBankAccountSummaryDto>}
|
|
50
|
+
* @memberof AdminListAccountDto
|
|
51
|
+
*/
|
|
52
|
+
bankAccounts: Array<AccountBankAccountSummaryDto>;
|
|
46
53
|
/**
|
|
47
54
|
* Account creation date.
|
|
48
55
|
* @type {Date}
|
|
@@ -21,6 +21,7 @@ exports.AdminListAccountDtoToJSON = AdminListAccountDtoToJSON;
|
|
|
21
21
|
exports.AdminListAccountDtoToJSONTyped = AdminListAccountDtoToJSONTyped;
|
|
22
22
|
var ListAccountMetricsDto_1 = require("./ListAccountMetricsDto");
|
|
23
23
|
var ChallengeRewardBalanceDto_1 = require("./ChallengeRewardBalanceDto");
|
|
24
|
+
var AccountBankAccountSummaryDto_1 = require("./AccountBankAccountSummaryDto");
|
|
24
25
|
var ListAccountPortfolioSizeDto_1 = require("./ListAccountPortfolioSizeDto");
|
|
25
26
|
var ListAccountUserDto_1 = require("./ListAccountUserDto");
|
|
26
27
|
/**
|
|
@@ -57,6 +58,8 @@ function instanceOfAdminListAccountDto(value) {
|
|
|
57
58
|
return false;
|
|
58
59
|
if (!('notesLastUpdatedAt' in value) || value['notesLastUpdatedAt'] === undefined)
|
|
59
60
|
return false;
|
|
61
|
+
if (!('bankAccounts' in value) || value['bankAccounts'] === undefined)
|
|
62
|
+
return false;
|
|
60
63
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
61
64
|
return false;
|
|
62
65
|
if (!('name' in value) || value['name'] === undefined)
|
|
@@ -103,6 +106,7 @@ function AdminListAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
103
106
|
'identifier': json['identifier'],
|
|
104
107
|
'notesNumber': json['notesNumber'],
|
|
105
108
|
'notesLastUpdatedAt': (json['notesLastUpdatedAt'] == null ? null : new Date(json['notesLastUpdatedAt'])),
|
|
109
|
+
'bankAccounts': (json['bankAccounts'].map(AccountBankAccountSummaryDto_1.AccountBankAccountSummaryDtoFromJSON)),
|
|
106
110
|
'createdAt': (new Date(json['createdAt'])),
|
|
107
111
|
'name': json['name'],
|
|
108
112
|
'type': json['type'],
|
|
@@ -134,6 +138,7 @@ function AdminListAccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
134
138
|
'identifier': value['identifier'],
|
|
135
139
|
'notesNumber': value['notesNumber'],
|
|
136
140
|
'notesLastUpdatedAt': (value['notesLastUpdatedAt'] == null ? null : value['notesLastUpdatedAt'].toISOString()),
|
|
141
|
+
'bankAccounts': (value['bankAccounts'].map(AccountBankAccountSummaryDto_1.AccountBankAccountSummaryDtoToJSON)),
|
|
137
142
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
138
143
|
'name': value['name'],
|
|
139
144
|
'type': value['type'],
|
|
@@ -13,6 +13,7 @@ import type { CustomerSuccessListAccountUserDto } from './CustomerSuccessListAcc
|
|
|
13
13
|
import type { ChallengeRewardBalanceDto } from './ChallengeRewardBalanceDto';
|
|
14
14
|
import type { CustomerSuccessListAccountMetricsDto } from './CustomerSuccessListAccountMetricsDto';
|
|
15
15
|
import type { CustomerSuccessListAccountPortfolioSizeDto } from './CustomerSuccessListAccountPortfolioSizeDto';
|
|
16
|
+
import type { AccountBankAccountSummaryDto } from './AccountBankAccountSummaryDto';
|
|
16
17
|
/**
|
|
17
18
|
*
|
|
18
19
|
* @export
|
|
@@ -43,6 +44,12 @@ export interface CustomerSuccessListAccountDto {
|
|
|
43
44
|
* @memberof CustomerSuccessListAccountDto
|
|
44
45
|
*/
|
|
45
46
|
notesLastUpdatedAt: Date | null;
|
|
47
|
+
/**
|
|
48
|
+
* The bank accounts of the account, and their verification.
|
|
49
|
+
* @type {Array<AccountBankAccountSummaryDto>}
|
|
50
|
+
* @memberof CustomerSuccessListAccountDto
|
|
51
|
+
*/
|
|
52
|
+
bankAccounts: Array<AccountBankAccountSummaryDto>;
|
|
46
53
|
/**
|
|
47
54
|
* Account creation date.
|
|
48
55
|
* @type {Date}
|
|
@@ -23,6 +23,7 @@ var CustomerSuccessListAccountUserDto_1 = require("./CustomerSuccessListAccountU
|
|
|
23
23
|
var ChallengeRewardBalanceDto_1 = require("./ChallengeRewardBalanceDto");
|
|
24
24
|
var CustomerSuccessListAccountMetricsDto_1 = require("./CustomerSuccessListAccountMetricsDto");
|
|
25
25
|
var CustomerSuccessListAccountPortfolioSizeDto_1 = require("./CustomerSuccessListAccountPortfolioSizeDto");
|
|
26
|
+
var AccountBankAccountSummaryDto_1 = require("./AccountBankAccountSummaryDto");
|
|
26
27
|
/**
|
|
27
28
|
* @export
|
|
28
29
|
*/
|
|
@@ -57,6 +58,8 @@ function instanceOfCustomerSuccessListAccountDto(value) {
|
|
|
57
58
|
return false;
|
|
58
59
|
if (!('notesLastUpdatedAt' in value) || value['notesLastUpdatedAt'] === undefined)
|
|
59
60
|
return false;
|
|
61
|
+
if (!('bankAccounts' in value) || value['bankAccounts'] === undefined)
|
|
62
|
+
return false;
|
|
60
63
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
61
64
|
return false;
|
|
62
65
|
if (!('name' in value) || value['name'] === undefined)
|
|
@@ -103,6 +106,7 @@ function CustomerSuccessListAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
103
106
|
'identifier': json['identifier'],
|
|
104
107
|
'notesNumber': json['notesNumber'],
|
|
105
108
|
'notesLastUpdatedAt': (json['notesLastUpdatedAt'] == null ? null : new Date(json['notesLastUpdatedAt'])),
|
|
109
|
+
'bankAccounts': (json['bankAccounts'].map(AccountBankAccountSummaryDto_1.AccountBankAccountSummaryDtoFromJSON)),
|
|
106
110
|
'createdAt': (new Date(json['createdAt'])),
|
|
107
111
|
'name': json['name'],
|
|
108
112
|
'type': json['type'],
|
|
@@ -134,6 +138,7 @@ function CustomerSuccessListAccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
134
138
|
'identifier': value['identifier'],
|
|
135
139
|
'notesNumber': value['notesNumber'],
|
|
136
140
|
'notesLastUpdatedAt': (value['notesLastUpdatedAt'] == null ? null : value['notesLastUpdatedAt'].toISOString()),
|
|
141
|
+
'bankAccounts': (value['bankAccounts'].map(AccountBankAccountSummaryDto_1.AccountBankAccountSummaryDtoToJSON)),
|
|
137
142
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
138
143
|
'name': value['name'],
|
|
139
144
|
'type': value['type'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './AccountAliasDto';
|
|
|
2
2
|
export * from './AccountAliasInput';
|
|
3
3
|
export * from './AccountBankAccountDto';
|
|
4
4
|
export * from './AccountBankAccountDtoDetails';
|
|
5
|
+
export * from './AccountBankAccountSummaryDto';
|
|
5
6
|
export * from './AccountChallengeRewardUsageListItemDto';
|
|
6
7
|
export * from './AccountChallengeRewardUsageListItemDtoMetadata';
|
|
7
8
|
export * from './AccountCommissionByDateRangeDto';
|
package/dist/models/index.js
CHANGED
|
@@ -20,6 +20,7 @@ __exportStar(require("./AccountAliasDto"), exports);
|
|
|
20
20
|
__exportStar(require("./AccountAliasInput"), exports);
|
|
21
21
|
__exportStar(require("./AccountBankAccountDto"), exports);
|
|
22
22
|
__exportStar(require("./AccountBankAccountDtoDetails"), exports);
|
|
23
|
+
__exportStar(require("./AccountBankAccountSummaryDto"), exports);
|
|
23
24
|
__exportStar(require("./AccountChallengeRewardUsageListItemDto"), exports);
|
|
24
25
|
__exportStar(require("./AccountChallengeRewardUsageListItemDtoMetadata"), exports);
|
|
25
26
|
__exportStar(require("./AccountCommissionByDateRangeDto"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,105 @@
|
|
|
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 AccountBankAccountSummaryDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AccountBankAccountSummaryDto {
|
|
22
|
+
/**
|
|
23
|
+
* ISO 4217 currency code for the account.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AccountBankAccountSummaryDto
|
|
26
|
+
*/
|
|
27
|
+
currencyCode: string;
|
|
28
|
+
/**
|
|
29
|
+
* ISO country code of the bank.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AccountBankAccountSummaryDto
|
|
32
|
+
*/
|
|
33
|
+
countryCode: string;
|
|
34
|
+
/**
|
|
35
|
+
* Last digits of the account number or IBAN.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AccountBankAccountSummaryDto
|
|
38
|
+
*/
|
|
39
|
+
reference: string;
|
|
40
|
+
/**
|
|
41
|
+
* Verification status with the payment provider.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AccountBankAccountSummaryDto
|
|
44
|
+
*/
|
|
45
|
+
verificationStatus: AccountBankAccountSummaryDtoVerificationStatusEnum;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const AccountBankAccountSummaryDtoVerificationStatusEnum = {
|
|
53
|
+
PENDING: 'pending',
|
|
54
|
+
VERIFIED: 'verified',
|
|
55
|
+
REJECTED: 'rejected'
|
|
56
|
+
} as const;
|
|
57
|
+
export type AccountBankAccountSummaryDtoVerificationStatusEnum = typeof AccountBankAccountSummaryDtoVerificationStatusEnum[keyof typeof AccountBankAccountSummaryDtoVerificationStatusEnum];
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the AccountBankAccountSummaryDto interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfAccountBankAccountSummaryDto(value: object): value is AccountBankAccountSummaryDto {
|
|
64
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
65
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
|
|
66
|
+
if (!('reference' in value) || value['reference'] === undefined) return false;
|
|
67
|
+
if (!('verificationStatus' in value) || value['verificationStatus'] === undefined) return false;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function AccountBankAccountSummaryDtoFromJSON(json: any): AccountBankAccountSummaryDto {
|
|
72
|
+
return AccountBankAccountSummaryDtoFromJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function AccountBankAccountSummaryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountBankAccountSummaryDto {
|
|
76
|
+
if (json == null) {
|
|
77
|
+
return json;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'currencyCode': json['currencyCode'],
|
|
82
|
+
'countryCode': json['countryCode'],
|
|
83
|
+
'reference': json['reference'],
|
|
84
|
+
'verificationStatus': json['verificationStatus'],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function AccountBankAccountSummaryDtoToJSON(json: any): AccountBankAccountSummaryDto {
|
|
89
|
+
return AccountBankAccountSummaryDtoToJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function AccountBankAccountSummaryDtoToJSONTyped(value?: AccountBankAccountSummaryDto | null, ignoreDiscriminator: boolean = false): any {
|
|
93
|
+
if (value == null) {
|
|
94
|
+
return value;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return {
|
|
98
|
+
|
|
99
|
+
'currencyCode': value['currencyCode'],
|
|
100
|
+
'countryCode': value['countryCode'],
|
|
101
|
+
'reference': value['reference'],
|
|
102
|
+
'verificationStatus': value['verificationStatus'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
ChallengeRewardBalanceDtoToJSON,
|
|
28
28
|
ChallengeRewardBalanceDtoToJSONTyped,
|
|
29
29
|
} from './ChallengeRewardBalanceDto';
|
|
30
|
+
import type { AccountBankAccountSummaryDto } from './AccountBankAccountSummaryDto';
|
|
31
|
+
import {
|
|
32
|
+
AccountBankAccountSummaryDtoFromJSON,
|
|
33
|
+
AccountBankAccountSummaryDtoFromJSONTyped,
|
|
34
|
+
AccountBankAccountSummaryDtoToJSON,
|
|
35
|
+
AccountBankAccountSummaryDtoToJSONTyped,
|
|
36
|
+
} from './AccountBankAccountSummaryDto';
|
|
30
37
|
import type { ListAccountPortfolioSizeDto } from './ListAccountPortfolioSizeDto';
|
|
31
38
|
import {
|
|
32
39
|
ListAccountPortfolioSizeDtoFromJSON,
|
|
@@ -72,6 +79,12 @@ export interface AdminListAccountDto {
|
|
|
72
79
|
* @memberof AdminListAccountDto
|
|
73
80
|
*/
|
|
74
81
|
notesLastUpdatedAt: Date | null;
|
|
82
|
+
/**
|
|
83
|
+
* The bank accounts of the account, and their verification.
|
|
84
|
+
* @type {Array<AccountBankAccountSummaryDto>}
|
|
85
|
+
* @memberof AdminListAccountDto
|
|
86
|
+
*/
|
|
87
|
+
bankAccounts: Array<AccountBankAccountSummaryDto>;
|
|
75
88
|
/**
|
|
76
89
|
* Account creation date.
|
|
77
90
|
* @type {Date}
|
|
@@ -208,6 +221,7 @@ export function instanceOfAdminListAccountDto(value: object): value is AdminList
|
|
|
208
221
|
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
209
222
|
if (!('notesNumber' in value) || value['notesNumber'] === undefined) return false;
|
|
210
223
|
if (!('notesLastUpdatedAt' in value) || value['notesLastUpdatedAt'] === undefined) return false;
|
|
224
|
+
if (!('bankAccounts' in value) || value['bankAccounts'] === undefined) return false;
|
|
211
225
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
212
226
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
213
227
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
@@ -241,6 +255,7 @@ export function AdminListAccountDtoFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
241
255
|
'identifier': json['identifier'],
|
|
242
256
|
'notesNumber': json['notesNumber'],
|
|
243
257
|
'notesLastUpdatedAt': (json['notesLastUpdatedAt'] == null ? null : new Date(json['notesLastUpdatedAt'])),
|
|
258
|
+
'bankAccounts': ((json['bankAccounts'] as Array<any>).map(AccountBankAccountSummaryDtoFromJSON)),
|
|
244
259
|
'createdAt': (new Date(json['createdAt'])),
|
|
245
260
|
'name': json['name'],
|
|
246
261
|
'type': json['type'],
|
|
@@ -275,6 +290,7 @@ export function AdminListAccountDtoToJSONTyped(value?: AdminListAccountDto | nul
|
|
|
275
290
|
'identifier': value['identifier'],
|
|
276
291
|
'notesNumber': value['notesNumber'],
|
|
277
292
|
'notesLastUpdatedAt': (value['notesLastUpdatedAt'] == null ? null : (value['notesLastUpdatedAt'] as any).toISOString()),
|
|
293
|
+
'bankAccounts': ((value['bankAccounts'] as Array<any>).map(AccountBankAccountSummaryDtoToJSON)),
|
|
278
294
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
279
295
|
'name': value['name'],
|
|
280
296
|
'type': value['type'],
|
|
@@ -41,6 +41,13 @@ import {
|
|
|
41
41
|
CustomerSuccessListAccountPortfolioSizeDtoToJSON,
|
|
42
42
|
CustomerSuccessListAccountPortfolioSizeDtoToJSONTyped,
|
|
43
43
|
} from './CustomerSuccessListAccountPortfolioSizeDto';
|
|
44
|
+
import type { AccountBankAccountSummaryDto } from './AccountBankAccountSummaryDto';
|
|
45
|
+
import {
|
|
46
|
+
AccountBankAccountSummaryDtoFromJSON,
|
|
47
|
+
AccountBankAccountSummaryDtoFromJSONTyped,
|
|
48
|
+
AccountBankAccountSummaryDtoToJSON,
|
|
49
|
+
AccountBankAccountSummaryDtoToJSONTyped,
|
|
50
|
+
} from './AccountBankAccountSummaryDto';
|
|
44
51
|
|
|
45
52
|
/**
|
|
46
53
|
*
|
|
@@ -72,6 +79,12 @@ export interface CustomerSuccessListAccountDto {
|
|
|
72
79
|
* @memberof CustomerSuccessListAccountDto
|
|
73
80
|
*/
|
|
74
81
|
notesLastUpdatedAt: Date | null;
|
|
82
|
+
/**
|
|
83
|
+
* The bank accounts of the account, and their verification.
|
|
84
|
+
* @type {Array<AccountBankAccountSummaryDto>}
|
|
85
|
+
* @memberof CustomerSuccessListAccountDto
|
|
86
|
+
*/
|
|
87
|
+
bankAccounts: Array<AccountBankAccountSummaryDto>;
|
|
75
88
|
/**
|
|
76
89
|
* Account creation date.
|
|
77
90
|
* @type {Date}
|
|
@@ -208,6 +221,7 @@ export function instanceOfCustomerSuccessListAccountDto(value: object): value is
|
|
|
208
221
|
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
209
222
|
if (!('notesNumber' in value) || value['notesNumber'] === undefined) return false;
|
|
210
223
|
if (!('notesLastUpdatedAt' in value) || value['notesLastUpdatedAt'] === undefined) return false;
|
|
224
|
+
if (!('bankAccounts' in value) || value['bankAccounts'] === undefined) return false;
|
|
211
225
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
212
226
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
213
227
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
@@ -241,6 +255,7 @@ export function CustomerSuccessListAccountDtoFromJSONTyped(json: any, ignoreDisc
|
|
|
241
255
|
'identifier': json['identifier'],
|
|
242
256
|
'notesNumber': json['notesNumber'],
|
|
243
257
|
'notesLastUpdatedAt': (json['notesLastUpdatedAt'] == null ? null : new Date(json['notesLastUpdatedAt'])),
|
|
258
|
+
'bankAccounts': ((json['bankAccounts'] as Array<any>).map(AccountBankAccountSummaryDtoFromJSON)),
|
|
244
259
|
'createdAt': (new Date(json['createdAt'])),
|
|
245
260
|
'name': json['name'],
|
|
246
261
|
'type': json['type'],
|
|
@@ -275,6 +290,7 @@ export function CustomerSuccessListAccountDtoToJSONTyped(value?: CustomerSuccess
|
|
|
275
290
|
'identifier': value['identifier'],
|
|
276
291
|
'notesNumber': value['notesNumber'],
|
|
277
292
|
'notesLastUpdatedAt': (value['notesLastUpdatedAt'] == null ? null : (value['notesLastUpdatedAt'] as any).toISOString()),
|
|
293
|
+
'bankAccounts': ((value['bankAccounts'] as Array<any>).map(AccountBankAccountSummaryDtoToJSON)),
|
|
278
294
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
279
295
|
'name': value['name'],
|
|
280
296
|
'type': value['type'],
|
package/src/models/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './AccountAliasDto';
|
|
|
4
4
|
export * from './AccountAliasInput';
|
|
5
5
|
export * from './AccountBankAccountDto';
|
|
6
6
|
export * from './AccountBankAccountDtoDetails';
|
|
7
|
+
export * from './AccountBankAccountSummaryDto';
|
|
7
8
|
export * from './AccountChallengeRewardUsageListItemDto';
|
|
8
9
|
export * from './AccountChallengeRewardUsageListItemDtoMetadata';
|
|
9
10
|
export * from './AccountCommissionByDateRangeDto';
|