NAME
Net::API::Stripe::Event::Data - A Stripe Event Data Object
SYNOPSIS
my
$event_data
=
$stripe
->event->data({
# The type of object is variable. In this example we use an invoice object
object
=>
$invoice_object
,
});
VERSION
v0.100.0
DESCRIPTION
This is a Stripe Event Data Object.
This is instantiated by the method data in module Net::API::Stripe::Event
CONSTRUCTOR
- new( %ARG )
-
Creates a new Net::API::Stripe::Event::Data object. It may also take an hash like arguments, that also are method of the same name.
METHODS
- object hash
-
Object containing the API resource relevant to the event. For example, an invoice.created event will have a full invoice object as the value of the object key.
- previous_attributes hash
-
Object containing the names of the attributes that have changed, and their previous values (sent along only with *.updated events).
API SAMPLE
{
"id"
:
"evt_fake123456789"
,
"object"
:
"event"
,
"api_version"
:
"2017-02-14"
,
"created"
: 1528914645,
"data"
: {
"object"
: {
"object"
:
"balance"
,
"available"
: [
{
"currency"
:
"jpy"
,
"amount"
: 1025751,
"source_types"
: {
"card"
: 1025751
}
}
],
"connect_reserved"
: [
{
"currency"
:
"jpy"
,
"amount"
: 0
}
],
"livemode"
: false,
"pending"
: [
{
"currency"
:
"jpy"
,
"amount"
: 0,
"source_types"
: {
"card"
: 0
}
}
]
}
},
"livemode"
: false,
"pending_webhooks"
: 0,
"request"
: {
"id"
: null,
"idempotency_key"
: null
},
"type"
:
"balance.available"
}
HISTORY
v0.1
Initial version
AUTHOR
Jacques Deguest <jack@deguest.jp>
SEE ALSO
Stripe API documentation:
https://stripe.com/docs/api/events/object
COPYRIGHT & LICENSE
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.