NAME

Net::API::Stripe::Connect::Account::Capability - A Stripe Account Capability Object

SYNOPSIS

my $capa = $stripe->=capability({
    account => $account_object,
    requested => $stripe->true,
    requested_at => '2020-04-01',
    status => 'active',
});

VERSION

v0.101.0

DESCRIPTION

A hash containing the set of capabilities that was requested for this account and their associated states. Keys are names of capabilities. You can see the full list here (https://stripe.com/docs/api/capabilities/list). Values may be active, inactive, or pending.

CONSTRUCTOR

new( %ARG )

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

METHODS

id string

The identifier for the capability.

object string, value is "capability"

String representing the object’s type. Objects of the same type share the same value.

account string (expandable)

The account for which the capability enables functionality.

When expanded, this is a Net::API::Stripe::Connect::Account object.

future_requirements object

Information about the upcoming new requirements for the capability, including what information needs to be collected, and by when.

This is a Net::API::Stripe::Connect::Account::Requirements object.

requested boolean

Whether the capability has been requested.

requested_at timestamp

Time at which the capability was requested. Measured in seconds since the Unix epoch.

requirements hash

Information about the requirements for the capability, including what information needs to be collected, and by when.

This is a Net::API::Stripe::Connect::Account::Requirements object.

status string

The status of the capability. Can be active, inactive, pending, or unrequested.

API SAMPLE

{
  "id": "card_payments",
  "object": "capability",
  "account": "acct_fake123456789",
  "requested": true,
  "requested_at": 1571480455,
  "requirements": {
    "current_deadline": null,
    "currently_due": [],
    "disabled_reason": null,
    "eventually_due": [],
    "past_due": [],
    "pending_verification": []
  },
  "status": "active"
}
=head1 HISTORY

v0.1

Initial version

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

Stripe API documentation:

https://stripe.com/docs/api/accounts/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.