NAME

Net::API::Stripe::Event::Request - A Stripe Event Request object

SYNOPSIS

my $req = $stripe->event->request({
    id => 'req_HwlkQJshckjIsj',
    idempotency_key => '677A3112-FBAD-4804-BA61-CEF1CC13D155',
});

VERSION

v0.100.0

DESCRIPTION

This is a Stripe Event Request object.

This is instantiated by the method request in module Net::API::Stripe::Event

CONSTRUCTOR

new( %ARG )

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

METHODS

id string

ID of the API request that caused the event. If null, the event was automatic (e.g., Stripe’s automatic subscription handling). Request logs are available in the dashboard, but currently not in the API.

idempotency_key string

The idempotency key transmitted during the request, if any. Note: This property is populated only for events on or after May 23, 2017.

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.