New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

connect-react-native

Package Overview
Dependencies
Maintainers
6
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-react-native - npm Package Compare versions

Comparing version 2.27.0 to 2.28.0

android/.gradle/7.0.2/dependencies-accessors/dependencies-accessors.lock

92

lib/commonjs/index.js

@@ -12,2 +12,3 @@ "use strict";

DapiBeneficiary: true,
DapiWireBeneficiary: true,
DapiAccount: true,

@@ -17,3 +18,3 @@ DapiCardBalance: true,

};
exports.default = exports.DapiPair = exports.DapiLineAddress = exports.DapiConnection = exports.DapiConfigurations = exports.DapiCardBalance = exports.DapiCard = exports.DapiBeneficiary = exports.DapiAccount = void 0;
exports.default = exports.DapiWireBeneficiary = exports.DapiPair = exports.DapiLineAddress = exports.DapiConnection = exports.DapiConfigurations = exports.DapiCardBalance = exports.DapiCard = exports.DapiBeneficiary = exports.DapiAccount = void 0;

@@ -217,6 +218,2 @@ var _nativeInterface = _interopRequireDefault(require("./internal/nativeInterface"));

createBeneficiary(beneficiary) {
return _nativeInterface.default.createBeneficiary(this.userID, beneficiary);
}
getIdentity() {

@@ -230,2 +227,6 @@ return _nativeInterface.default.getIdentity(this.userID);

getCards() {
return _nativeInterface.default.getCards(this.userID);
}
getTransactionsForAccount(account, startDate, endDate) {

@@ -247,2 +248,6 @@ return _nativeInterface.default.getTransactionsForAccount(this.userID, account.id, startDate.getTime(), endDate.getTime());

createBeneficiary(beneficiary) {
return _nativeInterface.default.createBeneficiary(this.userID, beneficiary);
}
getBeneficiaries() {

@@ -252,6 +257,2 @@ return _nativeInterface.default.getBeneficiaries(this.userID);

getCards() {
return _nativeInterface.default.getCards(this.userID);
}
async createTransfer(fromAccount, toBeneficiary, amount, remark) {

@@ -275,2 +276,28 @@ let transferResponse = await _nativeInterface.default.createTransfer(this.userID, fromAccount ? fromAccount.id : null, toBeneficiary, amount, remark);

createWireBeneficiary(beneficiary) {
return _nativeInterface.default.createWireBeneficiary(this.userID, beneficiary);
}
getWireBeneficiaries() {
return _nativeInterface.default.getWireBeneficiaries(this.userID);
}
async createWireTransfer(toBeneficiary, fromAccount, amount, remark) {
let transferResponse = await _nativeInterface.default.createWireTransfer(this.userID, toBeneficiary, fromAccount ? fromAccount.id : null, amount, remark);
let accountID = transferResponse.account;
let amnt = transferResponse.amount;
let operationID = transferResponse.operationID;
let sendingAccount = this.getAccount(accountID);
return new TransferResponse(amnt, operationID, sendingAccount);
}
async createWireTransferToExistingBeneficiary(fromAccount, toBeneficiaryID, amount, remark) {
let transferResponse = await _nativeInterface.default.createWireTransferToExistingBeneficiary(this.userID, fromAccount.id, toBeneficiaryID, amount, remark);
let accountID = transferResponse.account;
let amnt = transferResponse.amount;
let operationID = transferResponse.operationID;
let sendingAccount = this.getAccount(accountID);
return new TransferResponse(amnt, operationID, sendingAccount);
}
getAccount(accountID) {

@@ -364,2 +391,49 @@ var account = undefined;

class DapiWireBeneficiary {
constructor(linesAddress, name, firstName, lastName, nickname, city, state, country, zipCode, receiverType, receiverAccountType, routingNumber, accountNumber) {
_defineProperty(this, "linesAddress", void 0);
_defineProperty(this, "name", void 0);
_defineProperty(this, "firstName", void 0);
_defineProperty(this, "lastName", void 0);
_defineProperty(this, "nickname", void 0);
_defineProperty(this, "city", void 0);
_defineProperty(this, "state", void 0);
_defineProperty(this, "country", void 0);
_defineProperty(this, "zipCode", void 0);
_defineProperty(this, "receiverType", void 0);
_defineProperty(this, "receiverAccountType", void 0);
_defineProperty(this, "routingNumber", void 0);
_defineProperty(this, "accountNumber", void 0);
this.linesAddress = linesAddress;
this.name = name;
this.firstName = firstName;
this.lastName = lastName;
this.nickname = nickname;
this.city = city;
this.state = state;
this.country = country;
this.zipCode = zipCode;
this.receiverType = receiverType;
this.receiverAccountType = receiverAccountType;
this.routingNumber = routingNumber;
this.accountNumber = accountNumber;
}
}
exports.DapiWireBeneficiary = DapiWireBeneficiary;
class DapiAccount {

@@ -366,0 +440,0 @@ constructor(balance, iban, number, currency, type, id, name) {

@@ -28,2 +28,6 @@ "use strict";

DapiEndpoint["createTransferToExistingBeneficiary"] = "payment/transfer/autoflow";
DapiEndpoint["getWireBeneficiaries"] = "wire/beneficiaries/get";
DapiEndpoint["createWireBeneficiary"] = "wire/beneficiaries/create";
DapiEndpoint["createWireTransfer"] = "wire/transfer/autoflow";
DapiEndpoint["createWireTransferToExistingBeneficiary"] = "wire/transfer/create";
DapiEndpoint["delete"] = "users/DelinkUser";

@@ -30,0 +34,0 @@ })(DapiEndpoint || (exports.DapiEndpoint = DapiEndpoint = {}));

@@ -180,6 +180,2 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

createBeneficiary(beneficiary) {
return NativeInterface.createBeneficiary(this.userID, beneficiary);
}
getIdentity() {

@@ -193,2 +189,6 @@ return NativeInterface.getIdentity(this.userID);

getCards() {
return NativeInterface.getCards(this.userID);
}
getTransactionsForAccount(account, startDate, endDate) {

@@ -210,2 +210,6 @@ return NativeInterface.getTransactionsForAccount(this.userID, account.id, startDate.getTime(), endDate.getTime());

createBeneficiary(beneficiary) {
return NativeInterface.createBeneficiary(this.userID, beneficiary);
}
getBeneficiaries() {

@@ -215,6 +219,2 @@ return NativeInterface.getBeneficiaries(this.userID);

getCards() {
return NativeInterface.getCards(this.userID);
}
async createTransfer(fromAccount, toBeneficiary, amount, remark) {

@@ -238,2 +238,28 @@ let transferResponse = await NativeInterface.createTransfer(this.userID, fromAccount ? fromAccount.id : null, toBeneficiary, amount, remark);

createWireBeneficiary(beneficiary) {
return NativeInterface.createWireBeneficiary(this.userID, beneficiary);
}
getWireBeneficiaries() {
return NativeInterface.getWireBeneficiaries(this.userID);
}
async createWireTransfer(toBeneficiary, fromAccount, amount, remark) {
let transferResponse = await NativeInterface.createWireTransfer(this.userID, toBeneficiary, fromAccount ? fromAccount.id : null, amount, remark);
let accountID = transferResponse.account;
let amnt = transferResponse.amount;
let operationID = transferResponse.operationID;
let sendingAccount = this.getAccount(accountID);
return new TransferResponse(amnt, operationID, sendingAccount);
}
async createWireTransferToExistingBeneficiary(fromAccount, toBeneficiaryID, amount, remark) {
let transferResponse = await NativeInterface.createWireTransferToExistingBeneficiary(this.userID, fromAccount.id, toBeneficiaryID, amount, remark);
let accountID = transferResponse.account;
let amnt = transferResponse.amount;
let operationID = transferResponse.operationID;
let sendingAccount = this.getAccount(accountID);
return new TransferResponse(amnt, operationID, sendingAccount);
}
getAccount(accountID) {

@@ -315,2 +341,46 @@ var account = undefined;

}
export class DapiWireBeneficiary {
constructor(linesAddress, name, firstName, lastName, nickname, city, state, country, zipCode, receiverType, receiverAccountType, routingNumber, accountNumber) {
_defineProperty(this, "linesAddress", void 0);
_defineProperty(this, "name", void 0);
_defineProperty(this, "firstName", void 0);
_defineProperty(this, "lastName", void 0);
_defineProperty(this, "nickname", void 0);
_defineProperty(this, "city", void 0);
_defineProperty(this, "state", void 0);
_defineProperty(this, "country", void 0);
_defineProperty(this, "zipCode", void 0);
_defineProperty(this, "receiverType", void 0);
_defineProperty(this, "receiverAccountType", void 0);
_defineProperty(this, "routingNumber", void 0);
_defineProperty(this, "accountNumber", void 0);
this.linesAddress = linesAddress;
this.name = name;
this.firstName = firstName;
this.lastName = lastName;
this.nickname = nickname;
this.city = city;
this.state = state;
this.country = country;
this.zipCode = zipCode;
this.receiverType = receiverType;
this.receiverAccountType = receiverAccountType;
this.routingNumber = routingNumber;
this.accountNumber = accountNumber;
}
}
export class DapiAccount {

@@ -317,0 +387,0 @@ constructor(balance, iban, number, currency, type, id, name) {

@@ -20,2 +20,6 @@ export let DapiEnvironment;

DapiEndpoint["createTransferToExistingBeneficiary"] = "payment/transfer/autoflow";
DapiEndpoint["getWireBeneficiaries"] = "wire/beneficiaries/get";
DapiEndpoint["createWireBeneficiary"] = "wire/beneficiaries/create";
DapiEndpoint["createWireTransfer"] = "wire/transfer/autoflow";
DapiEndpoint["createWireTransferToExistingBeneficiary"] = "wire/transfer/create";
DapiEndpoint["delete"] = "users/DelinkUser";

@@ -22,0 +26,0 @@ })(DapiEndpoint || (DapiEndpoint = {}));

@@ -1,2 +0,2 @@

import { IDapiConfigurations, IAccount, ICard, IBeneficiary, IDapiConnection, IPair, IAccountResponse, IIdentityResponse, ITransactionResponse, IAccountsMetadataResponse, DapiEnvironment, IBankBeneficiaryResponse, IDapiResult, DapiEndpoint, IDapiQueryParameter, ITransferResponse, ICardResponse, ICardBalance, ILineAddress, IAccountBalance } from './internal/types';
import { IDapiConfigurations, IAccount, ICard, IBeneficiary, IWireBeneficiary, IDapiConnection, IPair, IAccountResponse, IIdentityResponse, ITransactionResponse, IAccountsMetadataResponse, DapiEnvironment, IBankBeneficiaryResponse, IBankWireBeneficiaryResponse, IDapiResult, DapiEndpoint, IDapiQueryParameter, ITransferResponse, ICardResponse, ICardBalance, ILineAddress, IAccountBalance } from './internal/types';
export declare class DapiConfigurations implements IDapiConfigurations {

@@ -44,5 +44,5 @@ environment?: DapiEnvironment;

getParameters(): Promise<string>;
createBeneficiary(beneficiary: IBeneficiary): Promise<IDapiResult>;
getIdentity(): Promise<IIdentityResponse>;
getAccounts(): Promise<IAccountResponse>;
getCards(): Promise<ICardResponse>;
getTransactionsForAccount(account: IAccount, startDate: Date, endDate: Date): Promise<ITransactionResponse>;

@@ -52,6 +52,10 @@ getTransactionsForCard(card: ICard, startDate: Date, endDate: Date): Promise<ITransactionResponse>;

delete(): Promise<void>;
createBeneficiary(beneficiary: IBeneficiary): Promise<IDapiResult>;
getBeneficiaries(): Promise<IBankBeneficiaryResponse>;
getCards(): Promise<ICardResponse>;
createTransfer(fromAccount: IAccount | null, toBeneficiary: IBeneficiary | null, amount: number, remark: string | null): Promise<ITransferResponse>;
createTransferToExistingBeneficiary(fromAccount: IAccount, toBeneficiaryID: string, amount: number, remark: string | null): Promise<ITransferResponse>;
createWireBeneficiary(beneficiary: IWireBeneficiary): Promise<IDapiResult>;
getWireBeneficiaries(): Promise<IBankWireBeneficiaryResponse>;
createWireTransfer(toBeneficiary: IWireBeneficiary, fromAccount: IAccount | null, amount: number, remark: string | null): Promise<ITransferResponse>;
createWireTransferToExistingBeneficiary(fromAccount: IAccount, toBeneficiaryID: string, amount: number, remark: string | null): Promise<ITransferResponse>;
private getAccount;

@@ -84,2 +88,18 @@ }

}
export declare class DapiWireBeneficiary implements IWireBeneficiary {
linesAddress: ILineAddress;
name: string;
firstName: string;
lastName: string;
nickname: string;
city: string;
state: string;
country: string;
zipCode: string;
receiverType: string;
receiverAccountType: string;
routingNumber: string;
accountNumber: string;
constructor(linesAddress: ILineAddress, name: string, firstName: string, lastName: string, nickname: string, city: string, state: string, country: string, zipCode: string, receiverType: string, receiverAccountType: string, routingNumber: string, accountNumber: string);
}
export declare class DapiAccount implements IAccount {

@@ -86,0 +106,0 @@ balance: IAccountBalance;

8

lib/typescript/internal/privateTypes.d.ts
import { DapiConnection } from '..';
import { IDapiConfigurations, ICardResponse, IBeneficiary, IDapiConnection, IAccountResponse, IIdentityResponse, IAccountsMetadataResponse, ITransactionResponse, IBankBeneficiaryResponse, IDapiResult } from './types';
import { IDapiConfigurations, ICardResponse, IBeneficiary, IWireBeneficiary, IDapiConnection, IAccountResponse, IIdentityResponse, IAccountsMetadataResponse, ITransactionResponse, IBankBeneficiaryResponse, IBankWireBeneficiaryResponse, IDapiResult } from './types';
export interface DapiConnectNativeModule {

@@ -14,2 +14,3 @@ start(appKey: string, clientUserID: string, configurations: IDapiConfigurations): Promise<void>;

getAccounts(userID: string): Promise<IAccountResponse>;
getCards(userID: string): Promise<ICardResponse>;
getTransactionsForAccount(userID: string, accountID: string, startDateMilliseconds: number, endDateMilliseconds: number): Promise<ITransactionResponse>;

@@ -23,6 +24,9 @@ getTransactionsForCard(userID: string, cardID: string, startDateMilliseconds: number, endDateMilliseconds: number): Promise<ITransactionResponse>;

createBeneficiary(userID: string, beneficiary: IBeneficiary): Promise<IDapiResult>;
createWireTransfer(userID: string, toBeneficiary: IWireBeneficiary, accountID: string | null, amount: number, remark: string | null): Promise<any>;
createWireTransferToExistingBeneficiary(userID: string, accountID: string, toBeneficiaryID: string, amount: number, remark: string | null): Promise<any>;
getWireBeneficiaries(userID: string): Promise<IBankWireBeneficiaryResponse>;
createWireBeneficiary(userID: string, beneficiary: IWireBeneficiary): Promise<IDapiResult>;
isStarted(): Promise<boolean>;
createConnection(jsonConnectionDetails: string): Promise<DapiConnection>;
getConnectionParameters(userID: string): Promise<string>;
getCards(userID: string): Promise<ICardResponse>;
}

@@ -50,2 +50,6 @@ export interface IDapiConfigurations {

createTransferToExistingBeneficiary = "payment/transfer/autoflow",
getWireBeneficiaries = "wire/beneficiaries/get",
createWireBeneficiary = "wire/beneficiaries/create",
createWireTransfer = "wire/transfer/autoflow",
createWireTransferToExistingBeneficiary = "wire/transfer/create",
delete = "users/DelinkUser"

@@ -75,2 +79,17 @@ }

}
export interface IWireBeneficiary {
linesAddress: ILineAddress;
name: string;
firstName: string;
lastName: string;
nickname: string;
city: string;
state: string;
country: string;
zipCode: string;
receiverType: string;
receiverAccountType: string;
routingNumber: string;
accountNumber: string;
}
export interface IPair {

@@ -108,2 +127,20 @@ code: string;

}
export interface IRoutingNumbers {
readonly type: string;
readonly value: string;
}
export interface IBankWireBeneficiary {
readonly name: string;
readonly accountNumber: string | null;
readonly status: string | null;
readonly type: string;
readonly id: string;
readonly address: IAddress;
readonly routingNumbers: IRoutingNumbers;
}
export interface IBankWireBeneficiaryResponse {
readonly operationID: string;
readonly success: boolean;
readonly beneficiaries: IBankWireBeneficiary[];
}
export interface IAccount {

@@ -252,2 +289,3 @@ readonly balance: IAccountBalance;

getAccounts(): Promise<IAccountResponse>;
getCards(): Promise<ICardResponse>;
getTransactionsForAccount(account: IAccount, startDate: Date, endDate: Date): Promise<ITransactionResponse>;

@@ -261,6 +299,9 @@ getTransactionsForCard(card: ICard, startDate: Date, endDate: Date): Promise<ITransactionResponse>;

createTransferToExistingBeneficiary(fromAccount: IAccount, toBeneficiaryID: string, amount: number, remark: string | null): Promise<ITransferResponse>;
createWireTransfer(toBeneficiary: IWireBeneficiary, fromAccount: IAccount | null, amount: number, remark: string | null): Promise<any>;
createWireTransferToExistingBeneficiary(fromAccount: IAccount | null, toBeneficiaryID: string, amount: number, remark: string | null): Promise<any>;
getWireBeneficiaries(): Promise<IBankWireBeneficiaryResponse>;
createWireBeneficiary(beneficiary: IWireBeneficiary): Promise<IDapiResult>;
getParameters(): Promise<string>;
getCards(): Promise<ICardResponse>;
}
export declare type IAddress = IAddressGeneral;
export {};
{
"name": "connect-react-native",
"version": "2.27.0",
"version": "2.28.0",
"description": "Financial APIs to connect users' bank accounts",

@@ -5,0 +5,0 @@ "react-native": "src/index.ts",

@@ -7,2 +7,3 @@ import NativeInterface from './internal/nativeInterface';

IBeneficiary,
IWireBeneficiary,
IDapiConnection,

@@ -16,2 +17,3 @@ IPair,

IBankBeneficiaryResponse,
IBankWireBeneficiaryResponse,
IDapiResult,

@@ -182,7 +184,2 @@ DapiEndpoint,

createBeneficiary(beneficiary: IBeneficiary): Promise<IDapiResult> {
return NativeInterface.createBeneficiary(this.userID, beneficiary);
}
getIdentity(): Promise<IIdentityResponse> {

@@ -197,2 +194,6 @@ return NativeInterface.getIdentity(this.userID);

getCards(): Promise<ICardResponse> {
return NativeInterface.getCards(this.userID);
}
getTransactionsForAccount(

@@ -232,2 +233,6 @@ account: IAccount,

createBeneficiary(beneficiary: IBeneficiary): Promise<IDapiResult> {
return NativeInterface.createBeneficiary(this.userID, beneficiary);
}
getBeneficiaries(): Promise<IBankBeneficiaryResponse> {

@@ -237,6 +242,2 @@ return NativeInterface.getBeneficiaries(this.userID);

getCards(): Promise<ICardResponse> {
return NativeInterface.getCards(this.userID);
}
async createTransfer(fromAccount: IAccount | null, toBeneficiary: IBeneficiary | null, amount: number, remark: string | null): Promise<ITransferResponse> {

@@ -277,2 +278,46 @@ let transferResponse = await NativeInterface.createTransfer(

createWireBeneficiary(beneficiary: IWireBeneficiary): Promise<IDapiResult> {
return NativeInterface.createWireBeneficiary(this.userID, beneficiary);
}
getWireBeneficiaries(): Promise<IBankWireBeneficiaryResponse> {
return NativeInterface.getWireBeneficiaries(this.userID);
}
async createWireTransfer(toBeneficiary: IWireBeneficiary, fromAccount: IAccount | null, amount: number, remark: string | null): Promise<ITransferResponse> {
let transferResponse = await NativeInterface.createWireTransfer(
this.userID,
toBeneficiary,
fromAccount ? fromAccount.id : null,
amount,
remark,
);
let accountID = transferResponse.account;
let amnt = transferResponse.amount;
let operationID = transferResponse.operationID;
let sendingAccount = this.getAccount(accountID);
return new TransferResponse(amnt, operationID, sendingAccount);
}
async createWireTransferToExistingBeneficiary(
fromAccount: IAccount,
toBeneficiaryID: string,
amount: number,
remark: string | null,
): Promise<ITransferResponse> {
let transferResponse = await NativeInterface.createWireTransferToExistingBeneficiary(
this.userID,
fromAccount.id,
toBeneficiaryID,
amount,
remark,
);
let accountID = transferResponse.account;
let amnt = transferResponse.amount;
let operationID = transferResponse.operationID;
let sendingAccount = this.getAccount(accountID);
return new TransferResponse(amnt, operationID, sendingAccount);
}
private getAccount(accountID: string): IAccount | undefined {

@@ -287,2 +332,3 @@ var account: IAccount | undefined = undefined;

}
}

@@ -358,3 +404,50 @@

export class DapiWireBeneficiary implements IWireBeneficiary {
linesAddress: ILineAddress;
name: string
firstName: string
lastName: string
nickname: string
city: string
state: string
country: string
zipCode: string
receiverType: string
receiverAccountType: string
routingNumber: string
accountNumber: string
constructor(
linesAddress: ILineAddress,
name: string,
firstName: string,
lastName: string,
nickname: string,
city: string,
state: string,
country: string,
zipCode: string,
receiverType: string,
receiverAccountType: string,
routingNumber: string,
accountNumber: string,
) {
this.linesAddress = linesAddress
this.name = name
this.firstName = firstName
this.lastName = lastName
this.nickname = nickname
this.city = city
this.state = state
this.country = country
this.zipCode = zipCode
this.receiverType = receiverType
this.receiverAccountType = receiverAccountType
this.routingNumber = routingNumber
this.accountNumber = accountNumber
}
}
export class DapiAccount implements IAccount {

@@ -361,0 +454,0 @@ balance: IAccountBalance;

@@ -6,2 +6,3 @@ import { DapiConnection } from '..';

IBeneficiary,
IWireBeneficiary,
IDapiConnection,

@@ -13,2 +14,3 @@ IAccountResponse,

IBankBeneficiaryResponse,
IBankWireBeneficiaryResponse,
IDapiResult,

@@ -24,10 +26,21 @@ } from './types';

presentConnect(bankID? : string | null): void;
setClientUserID(clientUserID: string): void;
clientUserID(): Promise<string>;
setConfigurations(configurations: IDapiConfigurations): void;
configurations(): Promise<IDapiConfigurations>;
dismissConnect(): void;
getConnections(): Promise<IDapiConnection[]>;
getIdentity(userID: string): Promise<IIdentityResponse>;
getAccounts(userID: string): Promise<IAccountResponse>;
getCards(userID: string): Promise<ICardResponse>;
getTransactionsForAccount(

@@ -39,2 +52,3 @@ userID: string,

): Promise<ITransactionResponse>;
getTransactionsForCard(

@@ -46,4 +60,7 @@ userID: string,

): Promise<ITransactionResponse>;
delete(userID: string): Promise<any>;
getAccountsMetadata(userID: string): Promise<IAccountsMetadataResponse>;
createTransfer(

@@ -66,11 +83,31 @@ userID: string,

getBeneficiaries(userID: string): Promise<IBankBeneficiaryResponse>;
createBeneficiary(userID: string, beneficiary: IBeneficiary): Promise<IDapiResult>;
createWireTransfer(
userID: string,
toBeneficiary: IWireBeneficiary,
accountID: string | null,
amount: number,
remark: string | null,
): Promise<any>;
createWireTransferToExistingBeneficiary(
userID: string,
accountID: string,
toBeneficiaryID: string,
amount: number,
remark: string | null,
): Promise<any>;
getWireBeneficiaries(userID: string): Promise<IBankWireBeneficiaryResponse>;
createWireBeneficiary(userID: string, beneficiary: IWireBeneficiary): Promise<IDapiResult>;
isStarted() : Promise<boolean>;
createConnection(jsonConnectionDetails : string) : Promise<DapiConnection>;
getConnectionParameters(userID : string) : Promise<string>
getCards(userID: string): Promise<ICardResponse>;
}

@@ -32,3 +32,3 @@ export interface IDapiConfigurations {

*/
showCloseButton?: boolean;
showCloseButton?: boolean;

@@ -39,7 +39,7 @@ /**

*/
showAddButton?: boolean;
showAddButton?: boolean;
showExperimentalBanks?: boolean;
showExperimentalBanks?: boolean;
postSuccessfulConnectionLoadingText?: string
postSuccessfulConnectionLoadingText?: string
}

@@ -62,2 +62,6 @@

createTransferToExistingBeneficiary = 'payment/transfer/autoflow',
getWireBeneficiaries = 'wire/beneficiaries/get',
createWireBeneficiary = 'wire/beneficiaries/create',
createWireTransfer = 'wire/transfer/autoflow',
createWireTransferToExistingBeneficiary = 'wire/transfer/create',
delete = 'users/DelinkUser',

@@ -88,5 +92,21 @@ }

branchName: string;
nickname? : string | null;
nickname?: string | null;
}
export interface IWireBeneficiary {
linesAddress: ILineAddress;
name: string;
firstName: string;
lastName: string;
nickname: string;
city: string;
state: string;
country: string;
zipCode: string;
receiverType: string;
receiverAccountType: string;
routingNumber: string;
accountNumber: string;
}
export interface IPair {

@@ -130,2 +150,24 @@ code: string;

export interface IRoutingNumbers {
readonly type: string;
readonly value: string;
}
export interface IBankWireBeneficiary {
readonly name: string;
readonly accountNumber: string | null;
readonly status: string | null;
readonly type: string;
readonly id: string;
readonly address: IAddress;
readonly routingNumbers: IRoutingNumbers;
}
export interface IBankWireBeneficiaryResponse {
readonly operationID: string;
readonly success: boolean;
readonly beneficiaries: IBankWireBeneficiary[];
}
export interface IAccount {

@@ -155,8 +197,8 @@ readonly balance: IAccountBalance;

readonly cardNumber: string;
readonly creditLimit : string;
readonly creditLimit: string;
readonly currency: IPair;
readonly expiryDate : string;
readonly expiryDate: string;
readonly id: string;
readonly name: string;
readonly status : string;
readonly status: string;
readonly type: string;

@@ -294,3 +336,7 @@ }

getIdentity(): Promise<IIdentityResponse>;
getAccounts(): Promise<IAccountResponse>;
getCards(): Promise<ICardResponse>;
getTransactionsForAccount(

@@ -301,2 +347,3 @@ account: IAccount,

): Promise<ITransactionResponse>;
getTransactionsForCard(

@@ -307,6 +354,11 @@ card: ICard,

): Promise<ITransactionResponse>;
getAccountsMetadata(): Promise<IAccountsMetadataResponse>;
delete(): Promise<void>;
getBeneficiaries(): Promise<IBankBeneficiaryResponse>;
createBeneficiary(beneficiary: IBeneficiary): Promise<IDapiResult>;
createTransfer(

@@ -326,7 +378,23 @@ fromAccount: IAccount | null,

getParameters() : Promise<string>
createWireTransfer(
toBeneficiary: IWireBeneficiary,
fromAccount: IAccount | null,
amount: number,
remark: string | null,
): Promise<any>;
getCards(): Promise<ICardResponse>;
createWireTransferToExistingBeneficiary(
fromAccount: IAccount | null,
toBeneficiaryID: string,
amount: number,
remark: string | null,
): Promise<any>;
getWireBeneficiaries(): Promise<IBankWireBeneficiaryResponse>;
createWireBeneficiary(beneficiary: IWireBeneficiary): Promise<IDapiResult>;
getParameters(): Promise<string>
}
export type IAddress = IAddressGeneral;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc