NAME
Finance::Card::Discover::Account
ACCESSORS
card
The associated Finance::Card::Discover::Card object.
credit
The remaining credit for the account.
expiration
The expiration date of the account, as a DateTime::Tiny object.
id
nickname
number
The account number.
type
METHODS
balance
$balance = $account->balance()
Requests and returns the balance for the account.
profile
$profile = $account->profile()
Requests profile data for the account and returns a Finance::Card::Discover::Account::Profile object.
soan
$soan = $account->soan()
Requests a new Secure Online Account Number and returns a Finance::Card::Discover::Account::SOAN object.
soan_transactions
@soan_transactions = $account->soan_transactions()
Requests the last 50 transactions made with SOANs and returns a list of Finance::Card::Discover::Account::SOAN::Transaction objects.
transactions
@transactions = $account->transactions()
@transactions = $account->transactions(
start => $state_date_time,
end => $end_date_time,
)
Requests a list of credit card transactions and returns the corresponding Finance::Card::Discover::Account::Transaction objects. Given no arguments, the latest transactions are returned. The optional start and end arguments requests only transactions within that time range and should be DateTime or DateTime::Tiny objects.
Notes:
Each request returns about 500 transactions when a start argument is given and 200 transactions otherwise, so multiple calls with the appropriate start and end arguments may be required to pull all desired transactions.
Several transactions may be related to each other, where additional transactions are added as notes to the original transaction. These informational transactions all have an amount of -0 and share the same date and id prefix as the original transaction.