Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Net-Stripe CPAN distribution.

Report information
The Basics
Id: 92701
Status: open
Priority: 0/
Queue: Net-Stripe

People
Owner: Nobody in particular
Requestors: dfhoughton [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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/ ); }
Subject: Re: [rt.cpan.org #92701] missing interval_count attribute in Net::Strip::Plan
Date: Mon, 3 Feb 2014 19:15:15 -0800
To: bug-Net-Stripe [...] rt.cpan.org
From: Luke Closs <me [...] luk.ec>
Hello, Please send me a pull request with your code + test changes. https://github.com/lukec/stripe-perl Best, Luke On Mon, Feb 3, 2014 at 1:58 PM, David Houghton via RT < bug-Net-Stripe@rt.cpan.org> wrote: Show quoted text
> Mon Feb 03 16:58:36 2014: Request 92701 was acted upon. > Transaction: Ticket created by dfhoughton@gmail.com > Queue: Net-Stripe > Subject: missing interval_count attribute in Net::Strip::Plan > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: dfhoughton@gmail.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=92701 > > > > 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/ > > ); > } > >