Loading...
public final TrxRes financialRequest(FinancialReqrequest, Durationtimeout)
Process a financial request through the Orchestrator service (suspend version).
This method handles all the complexity of service binding, JSON serialization, and unbinding. The method suspends until a response is received or timeout occurs.
Flow:
TrxRes containing the transaction response. This will be either: - FinancialRes (SaleRes, RefundRes, etc.) if successful - ErrorRes if an error occurred (service unavailable, timeout, processing error, etc.) Never returns null - always returns a response object.
Orchestrator API
| request | The financial request from the original API (SaleReq, RefundReq, ReversalReq, etc. from cz.gpe.orchestrator.api.request package) |
| timeout | Maximum time to wait for response (default: 5 minutes) |