braintree / braintree_java

Braintree Java library
https://developer.paypal.com/braintree/docs/start/overview
MIT License
158 stars 99 forks source link

Add settledAt to Transaction Search response object #70

Closed codeniko closed 5 years ago

codeniko commented 5 years ago

General information

Issue description

When I search for transactions, I'm interested in the settledAt time. Why are createdAt and updatedAt times exposed but not settledAt?

Alternatively, if I do a search for transactions and one of my request conditions is settledAt().lessThanOrEqualTo(cal), is it safe to assume that the result transactions I get back are ALWAYS settled and updatedAt time actually reflects settledAt? If not, please consider exposing settledAt time in the transaction response object.

hollabaq86 commented 5 years ago

Hi @codeniko, to determine when a transaction was settled, check the response object's status history. It contains events with details such as the timestamp a transaction received the Settled status.