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 the ability to create a SEPA debit source from an Ideal one. #1154

Merged
merged 2 commits into from
Apr 16, 2018

Conversation

remi-stripe
Copy link
Contributor

@remi-stripe remi-stripe commented Apr 13, 2018

Fixes #1153

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

@@ -44,6 +44,9 @@ public class StripeSourceCreateOptions : StripeBaseOptions, ISupportMetadata
[JsonProperty("sepa_debit[iban]")]
public string SepaDebitIban { get; set; }

[JsonProperty("sepa_debit[ideal]")]
public string SepaDebitIdealSource { get; set; }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I chose to add "Source" at the end as it takes a source id and in the future we might add an ideal hash so wanted to protect future us

@@ -44,6 +44,9 @@ public class StripeSourceCreateOptions : StripeBaseOptions, ISupportMetadata
[JsonProperty("sepa_debit[iban]")]
public string SepaDebitIban { get; set; }

[JsonProperty("sepa_debit[ideal]")]
public string SepaDebitIdealSource { get; set; }
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 this should be named SepaDebitIdealSourceId in order to be consistent with other parameters that expect an ID.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed, sorry for the delay

@remi-stripe remi-stripe force-pushed the remi-add-sepa-ideal branch from c04746b to d3111f2 Compare April 16, 2018 13:20
@remi-stripe
Copy link
Contributor Author

@ob-stripe PTAL

Those tests do not work anymore as the Charge created on that token is not
put in Review by Radar anymore.

Comment those out so that we can look it up as needed in the future.
@remi-stripe remi-stripe force-pushed the remi-add-sepa-ideal branch from b2903f7 to ee9c2be Compare April 16, 2018 14:09
Copy link
Contributor

@ob-stripe ob-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!

@ob-stripe ob-stripe merged commit 7dd208b into master Apr 16, 2018
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