TransactionStatusRequest
Represents a request to retrieve the status of a previously completed transaction.
Use TransactionStatusRequest.create to construct an instance from a NEXO-compliant JSON string, then pass it to com.adyen.ipp.api.InPersonPayments.getTransactionStatus to perform the lookup.
Example usage:
val nexoJson = buildNexoTransactionStatusRequest(serviceId = "abc123")
val request = TransactionStatusRequest.create(nexoJson).getOrThrow()
val result = InPersonPayments.getTransactionStatus(request).getOrThrow()Content copied to clipboard
Immutability: Instances are immutable after creation; do not attempt to modify payload.
Thread safety: Instances may be read from any thread. Construction via create is safe to call from any thread.
Failure cases for create:
The JSON string is malformed or cannot be parsed.
The NEXO structure is missing required fields (e.g.
SaleToPOIRequestwrapper).Base64 encoding of the payload fails.