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 OperatorAccount to terminal options #1475

Merged
merged 1 commit into from
Jan 18, 2019

Conversation

ithielnor
Copy link
Contributor

Fixes #1473

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.

Thanks for the PR! Can you make the changes I requested?

@@ -4,5 +4,7 @@ namespace Stripe.Terminal

public class LocationCreateOptions : LocationSharedOptions
{
[JsonProperty("operator_account")]
public string OperatorAccount { 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.

operator_account can also be used in Location update requests, therefore it should be declared in LocationSharedOptions rather than LocationCreateOptions.

@@ -9,5 +9,8 @@ public class ReaderCreateOptions : ReaderSharedOptions

[JsonProperty("registration_code")]
public string RegistrationCode { get; set; }

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

Same here, operator_account can be used in Reader update requests and should be declared in ReaderSharedOptions rather than ReaderCreateOptions.

@ithielnor
Copy link
Contributor Author

Moved.

@ob-stripe
Copy link
Contributor

@ithielnor Thanks! Do you mind squashing the commits into a single one before I pull this in?

@ob-stripe ob-stripe self-assigned this Jan 17, 2019
@ob-stripe
Copy link
Contributor

CI is red because coveralls uses a "secure variable" which doesn't work with PRs from forks, but tests are passing.

@remi-stripe remi-stripe merged commit 3c8f938 into stripe:master Jan 18, 2019
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