-
Notifications
You must be signed in to change notification settings - Fork 572
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 support for the Person resource #1332
Conversation
public bool SsnLast4Provided { get; set; } | ||
|
||
[JsonProperty("verification")] | ||
public LegalEntityVerification Verification { 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.
Should we take this as an opportunity to rename some of those classes to not be so specific since they will soon be shared across Person and Account.
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.
I'd keep the current name for now. A person is also a legal entity.
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.
Yeah but the concept of LegalEntity is going away soon that's why I was asking since we will have to rename it
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.
Let's cross that bridge when we get to it? This PR doesn't have breaking changes, so I don't see any upside to doing this now rather than later.
38fe0e0
to
5e9b6d2
Compare
c6704cd
to
e9fd90d
Compare
f1ad803
to
43c30d1
Compare
public string Phone { get; set; } | ||
|
||
[JsonProperty("relationship")] | ||
public Relationship Relationship { 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.
Should this be named PersonRelationship
to avoid future conflicts? I'm trying to not over-prefix.
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.
Yeah, I'd rename Relationship
to PersonRelationship
and Requirements
to PersonRequirements
to match the OpenAPI names.
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.
Requirements
will be shared with Accounts
so I'd rather not prefix it Person
r? @ob-stripe |
16bc53c
to
b0fca33
Compare
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.
LGTM overall, some minor comments.
public string Phone { get; set; } | ||
|
||
[JsonProperty("relationship")] | ||
public Relationship Relationship { 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.
Yeah, I'd rename Relationship
to PersonRelationship
and Requirements
to PersonRequirements
to match the OpenAPI names.
public class RelationshipListOptions : INestedOptions | ||
{ | ||
[JsonProperty("account_opener")] | ||
public bool? AccountOpener { 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.
This property isn't present in the OpenAPI spec or supported by the API.
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.
It is, just not in this release but it was overlooked and since I know it will be supported it seemed cleaner to just release now.
@@ -19,7 +19,7 @@ public void Deserialize() | |||
|
|||
Assert.NotNull(evt.Data); | |||
Assert.NotNull(evt.Data.Object); | |||
Assert.IsType<Customer>(evt.Data.Object); | |||
Assert.IsType<Plan>(evt.Data.Object); |
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.
Maybe we should just remove this assertion and add tests with local fixtures to ensure that resources in events are correctly deserialized.
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.
fixed
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.
Thank You👌
public bool SsnLast4Provided { get; set; } | ||
|
||
[JsonProperty("verification")] | ||
public LegalEntityVerification Verification { 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.
I'd keep the current name for now. A person is also a legal entity.
b0fca33
to
ef8a5fa
Compare
@ob-stripe PTAL |
cc @stripe/api-libraries
r? @ob-stripe