NAME
Paymill::REST::Item::Transaction - Item class for a transaction
SYNOPSIS
my $transaction_api = Paymill::REST::Transactions->new;
$transaction = $transaction_api->find('tran_lk2j34h5lk34h5lkjh2');
say $transaction->amount; # Prints amount of the transaction
DESCRIPTION
Represents a transaction with all attributes and all sub items.
ATTRIBUTES
- id
-
String containing the identifier of the client
- amount
-
Integer containing the charged amount minus amount refunded
- origin_amount
-
String containing the initially charged amount
- currency
-
String containing the currency in which the amount has been charged
- description
-
String containing the assigned description
- status
-
String indicating the current status of the transaction. Can be one of:
open
pending
closed
failed
partial_refunded
refunded
preauth
chargeback
- livemode
-
Boolean indicating whether this transaction has been made with the live keys or not
- created_at
-
DateTime object indicating the date of the creation as returned by the API
- updated_at
-
DateTime object indicating the date of the last update as returned by the API
- response_code
-
Integer containing the response code from the API
- short_id
-
String containing the short id from the API
- invoices
-
Arrayref of invoices, if transaction has been billed yet
- fees
-
Arrayref of fees
- app_id
-
String representing the app id that issued this transaction
SUB ITEMS
- client
-
A client object.
See also Paymill::REST::Item::Client.
- payment
-
A payment object.
See also Paymill::REST::Item::Payment.
-
A preauthorization object.
See also Paymill::REST::Item::Preauthorization.
- refunds
-
A list of refund objects.
See also Paymill::REST::Item::Refund.
AVAILABLE OPERATIONS
SEE ALSO
Paymill::REST for more documentation.
AUTHOR
Matthias Dietrich <perl@rainboxx.de>
COPYRIGHT
Copyright 2013 - Matthias Dietrich
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.