moip-sdk-node-ts
Version:
Moip v2 API wrapper
39 lines (38 loc) • 906 B
TypeScript
export declare type Transfer = {
ownId?: string;
amount: number;
description?: string;
transferInstrument: {
method: 'BANK_ACCOUNT' | 'MOIP_ACCOUNT';
bankAccount?: BankAccount;
moipAccount: {
id: string;
};
};
};
declare type BankAccount = StoredBankAccount | NewBankAccount;
declare type StoredBankAccount = {
id: string;
};
declare type NewBankAccount = {
type: 'CHECKING' | 'SAVING';
bankNumber: number;
agencyNumber: number;
agencyCheckNumber?: number;
accountNumber: number;
accountCheckNumber?: number;
holder: {
fullname: string;
birthDate?: string;
taxDocument: {
type: 'CPF' | 'CNPJ';
number: string;
};
phone?: {
countryCode: string;
areaCode: string;
number: string;
};
};
};
export {};