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

Add new invoice methods and fixes to the Issuing Cardholder resource #707

Merged
merged 1 commit into from
Nov 8, 2018

Conversation

remi-stripe
Copy link
Contributor

@remi-stripe remi-stripe commented Oct 18, 2018

This PR ships multiple breaking changes

  • Move to 2018-11-08 as the new API version
  • Updates the Invoice resource to support new properties, parameters and methods
  • Add support for default_source on Subscription.

cc @stripe/api-libraries

@remi-stripe
Copy link
Contributor Author

Flagging that this is a breaking change and we'll need the new API version too before we can release.

@remi-stripe remi-stripe force-pushed the remi-add-invoice-methods branch 2 times, most recently from 4007edd to 1ad0a49 Compare October 19, 2018 22:57
@remi-stripe remi-stripe force-pushed the remi-add-invoice-methods branch 2 times, most recently from 8aca394 to e751aa0 Compare November 7, 2018 20:38
@remi-stripe remi-stripe changed the base branch from master to remi-integration-53 November 7, 2018 20:39
@remi-stripe remi-stripe force-pushed the remi-add-invoice-methods branch from e751aa0 to 8073509 Compare November 8, 2018 20:58
@remi-stripe remi-stripe changed the title [WIP] Add new invoice methods and fixes to the Issuing Cardholder resource Add new invoice methods and fixes to the Issuing Cardholder resource Nov 8, 2018
@remi-stripe
Copy link
Contributor Author

r? @brandur-stripe

Copy link
Contributor

@brandur-stripe brandur-stripe left a comment

Choose a reason for hiding this comment

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

A couple minor comments, but largely LGTM.

ptal @remi-stripe

@@ -47,11 +60,13 @@ type InvoiceUpcomingInvoiceItemParams struct {
// For more details see https://stripe.com/docs/api#create_invoice, https://stripe.com/docs/api#update_invoice.
type InvoiceParams struct {
Params `form:"*"`
AutoAdvance *bool `form:"auto_advance"`
Copy link
Contributor

Choose a reason for hiding this comment

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

I think auto_advance is just a "finalize" parameter.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Where did you see that one? auto_advance is the new world and has been planned for months. Just confirmed with the team internally that it's auto_advance and finalize does not exist as a parameter (but is a method)

Copy link
Contributor

Choose a reason for hiding this comment

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

(Spoke with Remi offline: this seems to be a documentation problem in that auto_advance isn't showing up in some places at the moment. Fine by me if we know it's supposed to be here.)

ApplicationFee *int64 `form:"application_fee"`
Billing *string `form:"billing"`
Closed *bool `form:"closed"`
Customer *string `form:"customer"`
DaysUntilDue *int64 `form:"days_until_due"`
DefaultSource *string `form:"default_source"`
Copy link
Contributor

Choose a reason for hiding this comment

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

I notice that DefaultSource on invoice and subscription are marked as expandable. Should we support that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice catch, fixed! PTAL

Changes to the Issuing Cardholder resource
- add a pending status
- name is not updatable anymore so switched the test to use metadata

Fix tests for Order Return as stripe-mock does not handle `items`.

Add support for new methods and properties on the Invoice resource.

Moved from API version 2018-09-24 to 2018-11-08
@remi-stripe remi-stripe force-pushed the remi-add-invoice-methods branch from 8073509 to 933e774 Compare November 8, 2018 22:53
@brandur-stripe
Copy link
Contributor

LGTM.

@remi-stripe remi-stripe merged commit 8d2dd19 into remi-integration-53 Nov 8, 2018
@remi-stripe remi-stripe deleted the remi-add-invoice-methods branch November 8, 2018 23:27
nadaismail-stripe pushed a commit that referenced this pull request Oct 18, 2024
* remove rubocop todo

* Sentry error fixes

* sf dev tip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants