Package com.tnsai.payment.x402
Class X402Config.Builder
java.lang.Object
com.tnsai.payment.x402.X402Config.Builder
- Enclosing class:
X402Config
Builder for
X402Config. Tracks only the four fields the
caller commonly cares about; the rest fall back to the
DEFAULT_* constants applied in the canonical constructor.-
Method Summary
Modifier and TypeMethodDescriptionauthorityScope(com.tnsai.accountability.AuthorityScope authorityScope) Attach anAuthorityScope.build()facilitator(URI facilitator) httpClient(HttpClient httpClient) liabilitySink(com.tnsai.accountability.LiabilitySink liabilitySink) Attach aLiabilitySinkthe broker writes oneAgentLiabilityRecordinto per settlement.maxSlippageBps(BigDecimal maxSlippageBps)
-
Method Details
-
wallet
-
network
-
facilitator
-
quoteTtl
-
maxSlippageBps
-
httpClient
-
liabilitySink
Attach aLiabilitySinkthe broker writes oneAgentLiabilityRecordinto per settlement. Optional — leave unset to skip emission. -
authorityScope
Attach anAuthorityScope. If itsspendCeilingUSDis present, the broker rejects anyPaymentBroker.settle(com.tnsai.payment.Quote)that would push cumulative spend past the ceiling (reads cumulative spend from the configuredLiabilitySink). -
build
-