-
Notifications
You must be signed in to change notification settings - Fork 1
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
Refactor/unify oneofs #68
Conversation
Update report response model with new data
…d report responses
CurrencyId = "EUR" | ||
}, | ||
BillableDuration = 40 | ||
Type = IdentityType.Number, |
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.
Not related to this PR, just a thought about Identity.
Currently only number is supported.
What do you think about creating something like a dedicated NumberIdentity
class to simplify interface with this type ?
e.g. for StartVerification request:
var identity = new NumberIdentity("+123456789");
var request = .... <identity>
It will simplify type usage, hide the protocol dedicated value and in case of new identity type will be supported, it won't cause any breaking change
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, makes sense, I'll add that too after release
Unify oneof to be interface typed in a project where it makes sense
Refactor verification to specific methods
Split VerificationReport and VerificationStatus response types
Before merge should be merged: https://github.com/sinch/doppelganger/pull/22