Dave Cross: Still Munging Data With Perl: Online event - Mar 17 Learn more

NAME

Net::API::Stripe::Issuing::Card::AuthorizationsControl - An interface to Stripe API

SYNOPSIS

my $auth = $stripe->card_holder->authorization_controls({
allowed_categories => [],
blocked_categories => [],
spending_limits =>
[
{
amount => 2000000,
categories => '',
interval => 'monthly',
},
{
amount => 200000,
categories => '',
interval => 'weekly',
},
],
spending_limits_currency => 'jpy',
});

VERSION

v0.100.0

DESCRIPTION

This is instantiated by method authorization_controls in module Net::API::Stripe::Issuing::Card::Holder

CONSTRUCTOR

new( %ARG )

Creates a new Net::API::Stripe::Issuing::Card::AuthorizationsControl object.

METHODS

allowed_categories array

Array of strings containing categories of authorizations permitted on this card.

blocked_categories array

Array of strings containing categories of authorizations to always decline on this card.

spending_limits array of hashes

Limit the spending with rules based on time intervals and categories.

This is an array of Net::API::Stripe::Issuing::Card::AuthorizationsControl::SpendingLimit objects.

spending_limits_currency currency

Currency for the amounts within spending_limits.

API SAMPLE

{
"id": "ich_fake123456789",
"object": "issuing.cardholder",
"authorization_controls": {
"allowed_categories": [],
"blocked_categories": [],
"spending_limits": [],
"spending_limits_currency": null
},
"billing": {
"address": {
"city": "Beverly Hills",
"country": "US",
"line1": "123 Fake St",
"line2": "Apt 3",
"postal_code": "90210",
"state": "CA"
},
"name": "Jenny Rosen"
},
"company": null,
"created": 1540111055,
"email": "jenny@example.com",
"individual": null,
"is_default": false,
"livemode": false,
"metadata": {},
"name": "Jenny Rosen",
"phone_number": "+18008675309",
"requirements": {
"disabled_reason": null,
"past_due": []
},
"status": "active",
"type": "individual"
}

HISTORY

v0.1

Initial version

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

Stripe API documentation:

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