NAME

Net::API::Stripe::List - Stripe List Object

SYNOPSIS

VERSION

0.2

DESCRIPTION

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().

Net::API::Stripe::Billing::Invoice::Lines
Net::API::Stripe::Billing::Subscription::Items
Net::API::Stripe::Charge::Refunds
Net::API::Stripe::Connect::Account::ExternalAccounts
Net::API::Stripe::Connect::ApplicationFee::Refunds
Net::API::Stripe::Connect::Transfer::Reversals
Net::API::Stripe::Customer::Sources
Net::API::Stripe::Customer::Subscription
Net::API::Stripe::Customer::TaxIds
Net::API::Stripe::Order::Return
Net::API::Stripe::Payment::Intent::Charges

CONSTRUCTOR

new( %ARG )

Creates a new Net::API::Stripe objects. It may also take an hash like arguments, that also are method of the same name.

verbose

Toggles verbose mode on/off

debug

Toggles debug mode on/off

METHODS

object string

This is the string identifier of the type of data. Usually it is "list"

data array

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.

has_more boolean

This is a boolean value to indicate whether the data is buffered

url URI

This is uri to be used to access the next or previous set of data

total_count integer

Total size of the array i.e. number of elements

get offset

Retrieves the data at the offset specified

length integer

The size of the array

next

Moves to the next entry in the array

prev

Moves to the previous entry in the array

API SAMPLE

{
  "object": "list",
  "url": "/v1/refunds",
  "has_more": false,
  "data": [
	{
	  "id": "re_1DQFAzCeyNCl6fY2Ntw9eath",
	  "object": "refund",
	  "amount": 30200,
	  "balance_transaction": "txn_1DQFAzCeyNCl6fY2VBP8MxtZ",
	  "charge": "ch_1DQFAHCeyNCl6fY2ugNKel6w",
	  "created": 1540736617,
	  "currency": "jpy",
	  "metadata": {},
	  "reason": null,
	  "receipt_number": null,
	  "source_transfer_reversal": null,
	  "status": "succeeded",
	  "transfer_reversal": null
	},
	{...},
	{...}
  ]
}

HISTORY

v0.1

Initial version

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

Stripe API documentation:

https://stripe.com/docs/api

COPYRIGHT & LICENSE

Copyright (c) 2018-2019 DEGUEST Pte. Ltd.

You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 325:

You forgot a '=back' before '=head1'