-
Notifications
You must be signed in to change notification settings - Fork 12
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
[ACL-242] Add CreditableAt in GetPaymentResult #237
Conversation
/// </summary> | ||
/// <returns></returns> | ||
[JsonDiscriminator("authorized")] | ||
public record Authorized : PaymentDetails; | ||
public record Authorized(DateTime? CreditableAt) : PaymentDetails; |
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.
Is this correct? It does not seems so based on our public docs? I can't see the field on the authorized
payment details on the API ref
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, it's quite new, probably the docs are not updated, I'm checking with Risk
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's confirmed, we need to update docs
_httpClient = httpClient; | ||
} | ||
|
||
public async Task<Uri> AuthorisePaymentAsync( |
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.
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 was planning to do a refactor later, we can optimise several part of the tests.
The problem with this method was that returns a GetPaymentResponse.PaymentDetails and we need the specific type of the GetPaymentResponse for this test.
Added CreditableAt in
Authorized
,Executed
andSettled
case ofGetPayment
.Added test for GetPayment when status is
Settled