Skip to content
New issue

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

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

Already on GitHub? # to your account

Minor fixes #362

Merged
merged 1 commit into from
Oct 31, 2017
Merged

Minor fixes #362

merged 1 commit into from
Oct 31, 2017

Conversation

ob-stripe
Copy link
Contributor

r? @brandur-stripe
cc @stripe/api-libraries

A few random fixes:

  • removed the existing modify_external_account and modify_source class methods on Account and Customer resp. since those methods are now created by the @nested_resource_class_methods decorator (Nested resource class methods #350)

  • fixed the object name for InvoiceItem and added BalanceTransaction in util.convert_to_stripe_object. I think I broke both of these in Split resource.py #351 :/

The existing @nested_resource_class_methods tests ensure the removed methods still actually exist. Added a very basic test to avoid regression for the other fixes.

@@ -6,4 +6,4 @@

class InvoiceItem(CreateableAPIResource, UpdateableAPIResource,
ListableAPIResource, DeletableAPIResource):
OBJECT_NAME = 'invoice_item'
OBJECT_NAME = 'invoiceitem'
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably cut a new version for this or something to prevent many future instances of confusion around this bad naming ...

@brandur-stripe
Copy link
Contributor

brandur-stripe commented Oct 30, 2017

Thanks for following up with these OB! Am I good to release these changes as a patch version? (i.e. the interface of modify_external_account and modify_source is identical to previous usage)

@ob-stripe
Copy link
Contributor Author

Yep, the interface is identical.

@brandur-stripe
Copy link
Contributor

Awesome. Thanks!

@brandur-stripe brandur-stripe merged commit e4e00dd into master Oct 31, 2017
@brandur-stripe brandur-stripe deleted the ob-fix-minor-issues branch October 31, 2017 14:59
@brandur-stripe
Copy link
Contributor

Released as 1.71.2.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants