Skip to content

Commit 46809e1

Browse files
author
Iulian Masar
committed
added missing typings for regulatory
1 parent 8ecfde8 commit 46809e1

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

typings/models/user.d.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { address } from "./address";
33
import { entityBase } from "./entityBase";
44

55
export namespace user {
6+
import EntityBaseData = entityBase.EntityBaseData;
67
/**
78
* Should be only one of these values:
89
* 1 - for incomes <18K€),
@@ -948,4 +949,28 @@ export namespace user {
948949
*/
949950
ValidationRules?: string[];
950951
}
952+
953+
interface RegulatoryData extends EntityBaseData {
954+
/**
955+
* Code indicating the reason for blocking the user, and steps you can take to get them unblocked.
956+
*/
957+
ActionCode: string;
958+
959+
/**
960+
* Information about which payment flows are blocked for the user.
961+
*/
962+
ScopeBlocked: ScopeBlocked;
963+
}
964+
965+
interface ScopeBlocked {
966+
/**
967+
* Whether or not the user is blocked from making pay-ins or sending or receiving transfers.
968+
*/
969+
Inflows: boolean;
970+
971+
/**
972+
* Whether or not the user is blocked from making payouts or sending or receiving transfers.
973+
*/
974+
Outflows: boolean;
975+
}
951976
}

typings/services/Users.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,4 +279,13 @@ export class Users {
279279
* @param options
280280
*/
281281
validateDataFormat: MethodOverload<user.UserDataFormatValidation, user.UserDataFormatValidation>
282+
283+
/**
284+
* Get user regulatory
285+
* @param {string} userId User identifier
286+
* @param {Function} callback Callback function
287+
* @param {Object} options Request options
288+
* @return {Object} Request promise
289+
*/
290+
getRegulatory: MethodOverload<string, user.RegulatoryData>
282291
}

0 commit comments

Comments
 (0)