NAME

Business::GoCardless::Subscription

DESCRIPTION

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

ATTRIBUTES

amount
created_at
currency
day_of_month
description
expires_at
end_date
id
interval_length
interval_unit
interval
links
merchant_id
metadata
month
name
next_interval_start
payment_reference
setup_fee
start_at
start_date
status
sub_resource_uris
uri
user_id
upcoming_payments

Operations on a subscription

cancel

$Subscription->cancel

Cancels a subscription.

Status checks on a subscription

inactive
active
cancelled
expired

if ( $Subscription->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