Package net.finmath.pontes.erc7573
Class PontesBuyerPaymentCoordinator
java.lang.Object
net.finmath.pontes.erc7573.PontesBuyerPaymentCoordinator
UUID-level payment coordinator shared by all buyer event deliveries.
A fresh, safely unexpired claim creates a durable POST_DISPATCHING boundary and may
issue one POST without a payment-status preflight: Pontes documents that GET only after a
payment request exists. Once any claim exists, all automatic work is GET-only, including work
triggered by a different Web3j event or process restart. A second POST requires explicit
operator proof that the prior attempt did not commit.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Constructor Summary
ConstructorsConstructorDescriptionPontesBuyerPaymentCoordinator(PontesPaymentClaimStore store, PontesGateway gateway, PontesPaymentGateway paymentGateway, PontesResponseValidator validator, com.fasterxml.jackson.databind.ObjectMapper mapper, Duration dispatchSafetyMargin) PontesBuyerPaymentCoordinator(PontesPaymentClaimStore store, PontesGateway gateway, PontesPaymentGateway paymentGateway, PontesResponseValidator validator, com.fasterxml.jackson.databind.ObjectMapper mapper, Duration dispatchSafetyMargin, Runnable authenticationPreflight) PontesBuyerPaymentCoordinator(PontesPaymentClaimStore store, PontesGateway gateway, PontesPaymentGateway paymentGateway, PontesResponseValidator validator, com.fasterxml.jackson.databind.ObjectMapper mapper, Duration dispatchSafetyMargin, Runnable authenticationPreflight, Runnable authenticationValidityCheck) -
Method Summary
Modifier and TypeMethodDescriptiondispatch(PontesReference reference, PontesBuyerPaymentCoordinator.PaymentRequestFactory requestFactory) Execute the sole eligible POST, or reuse/reconcile a claim created by any other event.reconcile(PontesReference reference) GET-only recovery used by uncertain bridge jobs.
-
Constructor Details
-
PontesBuyerPaymentCoordinator
public PontesBuyerPaymentCoordinator(PontesPaymentClaimStore store, PontesGateway gateway, PontesPaymentGateway paymentGateway, PontesResponseValidator validator, com.fasterxml.jackson.databind.ObjectMapper mapper, Duration dispatchSafetyMargin) -
PontesBuyerPaymentCoordinator
public PontesBuyerPaymentCoordinator(PontesPaymentClaimStore store, PontesGateway gateway, PontesPaymentGateway paymentGateway, PontesResponseValidator validator, com.fasterxml.jackson.databind.ObjectMapper mapper, Duration dispatchSafetyMargin, Runnable authenticationPreflight) -
PontesBuyerPaymentCoordinator
public PontesBuyerPaymentCoordinator(PontesPaymentClaimStore store, PontesGateway gateway, PontesPaymentGateway paymentGateway, PontesResponseValidator validator, com.fasterxml.jackson.databind.ObjectMapper mapper, Duration dispatchSafetyMargin, Runnable authenticationPreflight, Runnable authenticationValidityCheck)
-
-
Method Details
-
dispatch
public PontesRawHttpResponse dispatch(PontesReference reference, PontesBuyerPaymentCoordinator.PaymentRequestFactory requestFactory) throws Exception Execute the sole eligible POST, or reuse/reconcile a claim created by any other event.- Throws:
Exception
-
reconcile
GET-only recovery used by uncertain bridge jobs.- Throws:
Exception
-