Subject: | missing interval_count attribute in Net::Strip::Plan |
Date: | Mon, 3 Feb 2014 16:58:27 -0500 |
To: | bug-Net-Stripe [...] rt.cpan.org |
From: | David Houghton <dfhoughton [...] gmail.com> |
Right now the code is missing the attribute necessary to represent a
subscription which charges quarterly, say -- once every 3 months. It is a
simple matter to add this. For example:
has 'id' => ( is => 'ro', isa => 'Maybe[Str]', required => 1
);
has 'amount' => ( is => 'ro', isa => 'Maybe[Int]', required => 1
);
has 'currency' => ( is => 'ro', isa => 'Maybe[Str]', required => 1
);
has 'interval' => ( is => 'ro', isa => 'Maybe[Str]', required => 1
);
has 'interval_count' => ( is => 'ro', isa => 'Maybe[Str]', required => 1
);
has 'name' => ( is => 'ro', isa => 'Maybe[Str]', required => 1
);
has 'trial_period_days' => ( is => 'ro', isa => 'Maybe[Int]'
);
method form_fields
{
return
(
map { $_ => $self->$_
}
grep { defined $self->$_
}
qw/id amount currency interval name trial_period_days
interval_count/
);
}