ofx4js
Version:
A javascript OFX library, ported from OFX4J
95 lines (94 loc) • 2.74 kB
TypeScript
import { BankAccountDetails } from "../banking/BankAccountDetails";
import { CreditCardAccountDetails } from "../creditcard/CreditCardAccountDetails";
export declare class TransferInfo {
private bankAccountFrom;
private creditCardAccountFrom;
private bankAccountTo;
private creditCardAccountTo;
private amount;
private due;
/**
* The bank account to transfer from.
*
* @return The bank account to transfer from.
*/
getBankAccountFrom(): BankAccountDetails;
/**
* The bank account to transfer from.
*
* @param bankAccountFrom The bank account to transfer from.
*/
setBankAccountFrom(bankAccountFrom: BankAccountDetails): void;
/**
* The account to transfer from.
*
* @param acct The account to transfer from.
*/
setAccountFrom(acct: BankAccountDetails | CreditCardAccountDetails): void;
/**
* The credit card to transfer from.
*
* @return The credit card to transfer from.
*/
getCreditCardAccountFrom(): CreditCardAccountDetails;
/**
* The credit card to transfer from.
*
* @param creditCardAccountFrom The credit card to transfer from.
*/
setCreditCardAccountFrom(creditCardAccountFrom: CreditCardAccountDetails): void;
/**
* The bank account to transfer to.
*
* @return The bank account to transfer to.
*/
getBankAccountTo(): BankAccountDetails;
/**
* The bank account to transfer to.
*
* @param bankAccountTo The bank account to transfer to.
*/
setBankAccountTo(bankAccountTo: BankAccountDetails): void;
/**
* The bank or credit card account to transfer to.
*
* @param accountTo The account to transfer to.
*/
setAccountTo(accountTo: BankAccountDetails | CreditCardAccountDetails): void;
/**
* The credit card account to transfer to.
*
* @return The credit card account to transfer to.
*/
getCreditCardAccountTo(): CreditCardAccountDetails;
/**
* The credit card account to transfer to.
*
* @param creditCardAccountTo The credit card account to transfer to.
*/
setCreditCardAccountTo(creditCardAccountTo: CreditCardAccountDetails): void;
/**
* The amount.
*
* @return The amount.
*/
getAmount(): number;
/**
* The amount.
*
* @param amount The amount.
*/
setAmount(amount: number): void;
/**
* The due date.
*
* @return The due date.
*/
getDue(): Date;
/**
* The due date.
*
* @param due The due date.
*/
setDue(due: Date): void;
}