Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bulk param #98

Merged
merged 1 commit into from
Aug 7, 2014
Merged

bulk param #98

merged 1 commit into from
Aug 7, 2014

Conversation

bhelx
Copy link
Contributor

@bhelx bhelx commented Aug 7, 2014

This new parameter allows you to bypass the 60 second limit on adding multiple subscriptions for the same plan to one account.

The boolean serialization to {0,1} was changed to {true,false} to match the api. It was not being used by any of the other serializers so should be backwards compatible.

Also adding a test for $account->tax_exempt to make sure false is working correctly.

$subscription->plan_code = 'gold';
$subscription->quantity = 1;
$subscription->currency = 'USD';
$subscription->bulk = 'True';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would probably make more sense as the literal rather than a string.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also might as well just put that param onto an existing test case. I don't think it really needs to duplicate the full request.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay

This new parameter allows you to bypass the 60 second limit on adding
multiple subscriptions for the same plan to one account.

The boolean serialization to {0,1} was changed to {true,false} to match
the api. It was not being used by any of the other serializers so should
be backwards compatible.

Also adding a test for $account->tax_exempt to make sure false is
working correctly.
@drewish
Copy link

drewish commented Aug 7, 2014

I'll let travis do it's thing but +1 looks great.

drewish added a commit that referenced this pull request Aug 7, 2014
@drewish drewish merged commit 872e766 into master Aug 7, 2014
@drewish drewish deleted the bulk_subscription_create_parameter branch August 7, 2014 22:07
@bhelx bhelx added the V2 V2 Client label Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V2 V2 Client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants