Net::API::Stripe::List - Stripe List Object
my $stripe = Net::API::Stripe->new( conf_file => 'settings.json' ) || die( Net::API::Stripe->error ); my $list = $stripe->customers( 'list' ) || die( $stripe->error ); printf( "%d total customer(s) found\n", $list->count ); while( my $cust = $list->next ) { printf( "Customer %s with e-mail has a balance of %s\n", $cust->name, $cust->email, $cust->balance->format_money( 0, '¥' ) ); }
v0.200.3
This is a package with a set of useful methods to be inherited by various Stripe package, such as bellow packages. It can also be used directly in a generic way and this will find out which list of objects this is. This is the case for example when getting the list of customer tax ids in Net::API::Stripe::tax_id_list().
Creates a new Net::API::Stripe::List object. It may also take an hash like arguments, that also are method of the same name.
This is the string identifier of the type of data. Usually it is "list"
This is an array of data, usually objects, but it could vary, which is why this method should be overriden by package inheriting from this one.
This is a boolean value to indicate whether the data is buffered
This is uri to be used to access the next or previous set of data
Total size of the array i.e. number of elements
Retrieves the data at the offset specified
The size of the array
Moves to the next entry in the array
Moves to the previous entry in the array
{ "object": "list", "url": "/v1/refunds", "has_more": false, "data": [ { "id": "re_fake123456789", "object": "refund", "amount": 30200, "balance_transaction": "txn_fake123456789", "charge": "ch_fake123456789", "created": 1540736617, "currency": "jpy", "metadata": {}, "reason": null, "receipt_number": null, "source_transfer_reversal": null, "status": "succeeded", "transfer_reversal": null }, {...}, {...} ] }
Initial version
Change in version numbering
Jacques Deguest <jack@deguest.jp>
Stripe API documentation:
https://stripe.com/docs/api
Copyright (c) 2020-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.