Skip to content

Add support for BACS Debit as a PaymentMethod #1036

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

Merged
merged 1 commit into from
May 29, 2020

Conversation

remi-stripe
Copy link
Contributor

Add support for BACS Debit as a PaymentMethod

  • Add settings[bacs_debit_payments] on Account
  • Add bacs_debit as a type on PaymentMethod
  • Add payment_method_details[bacs_debit] on Charge
  • Add bacs_debit on Mandate

Codegen for openapi 7a853ce

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

@@ -1025,6 +1025,9 @@ public void setFrontObject(File expandableObject) {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Settings extends StripeObject {
@SerializedName("bacs_debit_payments")
BacsDebitPayments bacsDebitPayments;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one doesn't have the Settings prefix because it's nested inside the Settings class as it should. It's the other ones we missed unfortunately and would need to change in a future major

@@ -184,6 +198,9 @@ public static Mandate retrieve(
@SerializedName("au_becs_debit")
AuBecsDebit auBecsDebit;

@SerializedName("bacs_debit")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should be inside PaymentMethodDetails but... the others are not, so I'll just ignore and we'll fix in a major.

Copy link
Contributor

@cjavilla-stripe cjavilla-stripe left a comment

Choose a reason for hiding this comment

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

LGTM

@remi-stripe remi-stripe merged commit 9ac4d01 into master May 29, 2020
@remi-stripe remi-stripe deleted the remi/codegen-7a853ce branch May 29, 2020 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants