Package net.finmath.pontes.erc7573
Class PontesDirectPaymentCoordinator
java.lang.Object
net.finmath.pontes.erc7573.PontesDirectPaymentCoordinator
- All Implemented Interfaces:
AutoCloseable
Durable, single-POST cash payments. An ambiguous outcome is reconciled by the same UUID.
-
Constructor Summary
ConstructorsConstructorDescriptionPontesDirectPaymentCoordinator(Path journal, RawHttpPontesDirectPaymentGateway gateway, PaymentSigner signer, PontesAccessTokenProvider tokens, Duration tokenMinimumValidity, com.fasterxml.jackson.databind.ObjectMapper mapper) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()dispatch(PontesDirectPaymentRequest request) Returns only on proven settlement; no failure or uncertainty fulfills the on-chain request.
-
Constructor Details
-
PontesDirectPaymentCoordinator
public PontesDirectPaymentCoordinator(Path journal, RawHttpPontesDirectPaymentGateway gateway, PaymentSigner signer, PontesAccessTokenProvider tokens, Duration tokenMinimumValidity, com.fasterxml.jackson.databind.ObjectMapper mapper) throws IOException - Throws:
IOException
-
-
Method Details
-
dispatch
public PontesDirectPaymentRequest dispatch(PontesDirectPaymentRequest request) throws IOException, PontesGatewayException Returns only on proven settlement; no failure or uncertainty fulfills the on-chain request.- Throws:
IOExceptionPontesGatewayException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-