Paymill::REST::Item::Transaction - Item class for a transaction
my $transaction_api = Paymill::REST::Transactions->new; $transaction = $transaction_api->find('tran_lk2j34h5lk34h5lkjh2'); say $transaction->amount; # Prints amount of the transaction
Represents a transaction with all attributes and all sub items.
String containing the identifier of the client
Integer containing the charged amount minus amount refunded
String containing the initially charged amount
String containing the currency in which the amount has been charged
String containing the assigned description
String indicating the current status of the transaction. Can be one of:
open
pending
closed
failed
partial_refunded
refunded
preauth
chargeback
Boolean indicating whether this transaction has been made with the live keys or not
DateTime object indicating the date of the creation as returned by the API
DateTime object indicating the date of the last update as returned by the API
Integer containing the response code from the API
String containing the short id from the API
Arrayref of invoices, if transaction has been billed yet
Arrayref of fees
String representing the app id that issued this transaction
A client object.
See also Paymill::REST::Item::Client.
A payment object.
See also Paymill::REST::Item::Payment.
A preauthorization object.
See also Paymill::REST::Item::Preauthorization.
A list of refund objects.
See also Paymill::REST::Item::Refund.
Paymill::REST for more documentation.
Matthias Dietrich <perl@rainboxx.de>
Copyright 2013 - Matthias Dietrich
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Paymill::REST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paymill::REST
CPAN shell
perl -MCPAN -e shell install Paymill::REST
For more information on module installation, please visit the detailed CPAN module installation guide.