Net::API::Stripe::Balance::Transaction - The Balance Transaction object
my $bt = $stripe->balance_transactions({ amount => 2000, # or we could also use a unix timestamp available_on => '2019-08-15', currency => 'jpy', description => 'Customer account credit', fee_details => Net::API::Stripe::Balance::Transaction::FeeDetails->new({ amount => 40, currency => 'eur', description => 'Some transaction', type => 'application_fee', }), net => 1960, status => 'available', type => 'application_fee', }) || die( $stripe->error );
v0.101.0
Balance transactions represent funds moving through your Stripe account. They're created for every type of transaction that comes into or flows out of your Stripe account balance.
Creates a new Net::API::Stripe::Balance::Transaction object
Unique identifier for the object.
String representing the object’s type. Objects of the same type share the same value.
Gross amount of the transaction, in JPY.
The date the transaction’s net funds will become available in the Stripe balance.
Time at which the object was created. Measured in seconds since the Unix epoch.
Three-letter ISO currency code, in lowercase. Must be a supported currency (https://stripe.com/docs/currencies).
An arbitrary string attached to the object. Often useful for displaying to users.
fee integer
Fees (in JPY) paid for this transaction.
Detailed breakdown of fees (in JPY) paid for this transaction.
Amount of the fee, in cents.
Three-letter ISO currency code, in lowercase. Must be a supported currency.
Type of the fee, one of: application_fee, stripe_fee or tax.
Net amount of the transaction, in JPY.
Learn more about how reporting categories can help you understand balance transactions from an accounting perspective.
The Stripe object to which this transaction is related.
For example, a charge object. This is managed with "_set_get_scalar_or_object_variant" in Net::API::Stripe::Generic method. It will check if this is a hash, array or string, and will find out the proper associated class by peeking into the data.
This is a list of object, but according to Stripe and its support, it is deprecated.
The "sourced_transfers parameters used to include any charges or ACH payments to which the balance transfer relates and provide a link back to the 'source' of the balance transaction."
See https://stripe.com/docs/upgrades#2017-01-27
If the transaction’s net funds are available in the Stripe balance yet. Either available or pending.
Transaction type:
{ "id": "txn_fake1234567890", "object": "balance_transaction", "amount": 8000, "available_on": 1571443200, "created": 1571128827, "currency": "jpy", "description": "Invoice 409CD54-0039", "exchange_rate": null, "fee": 288, "fee_details": [ { "amount": 288, "application": null, "currency": "jpy", "description": "Stripe processing fees", "type": "stripe_fee" } ], "net": 7712, "source": "ch_fake1234567890", "status": "pending", "type": "charge" }
Initial version
Jacques Deguest <jack@deguest.jp>
Stripe API documentation:
https://stripe.com/docs/api/balance_transactions, https://stripe.com/docs/reports/balance-transaction-types
Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.
To install Net::API::Stripe, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::API::Stripe
CPAN shell
perl -MCPAN -e shell install Net::API::Stripe
For more information on module installation, please visit the detailed CPAN module installation guide.