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 BECS Source Type #1568

Merged
merged 2 commits into from
Apr 5, 2019
Merged

Add BECS Source Type #1568

merged 2 commits into from
Apr 5, 2019

Conversation

shengwei-stripe
Copy link
Contributor

  1. Add support for BECS
  2. Modify Mandate Shape to support Online and Offline type

Please comment on

  1. the naming conventions and see if it makes sense.
    E.g. BecsDebit vs AuBecsDebit, SourceMandateOnlineOptions and SourceMandateOfflineOptions
  2. Testing (I have tested locally using the library; existing test passes as well)

Copy link
Contributor

@remi-stripe remi-stripe left a comment

Choose a reason for hiding this comment

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

Great work @shengwei-stripe this is looking really good! I left some minor comments about styling to try and be consistent across the library but otherwise this looks ready!

@@ -0,0 +1,19 @@
namespace Stripe
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be named SourceAuBecsDebit since that's the name of the whole type.

public string Last3 { get; set; }

[JsonProperty("fingerprint")]
public string Fingerprint { 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.

This should all be ordered alphabetically.

@@ -0,0 +1,13 @@
namespace Stripe
Copy link
Contributor

Choose a reason for hiding this comment

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

Same for naming, you're missing Au in the name (won't say it for others)

public string BsbNumber { get; set; }

[JsonProperty("account_number")]
public string AccountNumber { 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.

Order alphabetically (won't say for the other ones)

@@ -0,0 +1,12 @@
namespace Stripe
Copy link
Contributor

Choose a reason for hiding this comment

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

This and the other one should be SourceMandateAcceptanceOfflineOptions instead.

@shengwei-stripe
Copy link
Contributor Author

@remi-stripe thanks for the review. As discussed, I have made the fix

  1. BecsDebit to AuBecsDebit (class name and file names)
  2. Change the properties ordering to Alphabetical order.

Let me know if it looks ok. Thank you :)

@remi-stripe
Copy link
Contributor

Thanks for the fixes @shengwei-stripe, this looks great now. Re-assigning to @ob-stripe to vet the PR and do the release tomorrow!

@remi-stripe remi-stripe assigned ob-stripe and unassigned remi-stripe Apr 5, 2019
@ob-stripe ob-stripe merged commit 272239e into master Apr 5, 2019
@ob-stripe ob-stripe deleted the audd branch April 5, 2019 17:49
@ob-stripe
Copy link
Contributor

Released as 25.4.0.

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

Successfully merging this pull request may close these issues.

3 participants