NAME

Business::GoCardless::PreAuthorization

DESCRIPTION

A class for a gocardless pre_authorization, extends Business::GoCardless::Resource

ATTRIBUTES

created_at
currency
description
expires_at
id
interval_length
interval_unit
max_amount
merchant_id
name
next_interval_start
remaining_amount
setup_fee
status
sub_resource_uris
uri
user_id

Operations on a pre_authorization

bill

my $Bill = $PreAuthorization->bill;

Creates a new bill, returning a Business::GoCardless::Bill object.

cancel

$PreAuthorization->cancel;

Cancels a pre_authorization.

Status checks on a pre_authorization

inactive
active
cancelled
expired

if ( $PreAuthorization->active ) {
    ...
}

AUTHOR

Lee Johnson - leejo@cpan.org

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. If you would like to contribute documentation, features, bug fixes, or anything else then please raise an issue / pull request:

https://github.com/Humanstate/business-gocardless