-
Notifications
You must be signed in to change notification settings - Fork 573
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
Conversation
There was a problem hiding this 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; } |
There was a problem hiding this comment.
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; } |
There was a problem hiding this comment.
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
.
Moved. |
@ithielnor Thanks! Do you mind squashing the commits into a single one before I pull this in? |
3ef1488
to
f50e2da
Compare
CI is red because coveralls uses a "secure variable" which doesn't work with PRs from forks, but tests are passing. |
Fixes #1473