Interface CryptoX402PaymentInput.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CryptoX402PaymentInput.Builder,,CryptoX402PaymentInput> SdkBuilder<CryptoX402PaymentInput.Builder,,CryptoX402PaymentInput> SdkPojo
- Enclosing class:
CryptoX402PaymentInput
-
Method Summary
Modifier and TypeMethodDescriptionThe X402 payment payload.permit2AllowanceLimit(String permit2AllowanceLimit) The maximum on-chain Permit2 allowance to grant before signing the payment authorization, in the asset's smallest denomination.The version of the X402 protocol.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
version
The version of the X402 protocol.
- Parameters:
version- The version of the X402 protocol.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
The X402 payment payload.
- Parameters:
payload- The X402 payment payload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
permit2AllowanceLimit
The maximum on-chain Permit2 allowance to grant before signing the payment authorization, in the asset's smallest denomination. This field is valid only for the
upto(metered) scheme; supplying it for theexactscheme returns a validation error.When set, the service approves an ERC-20 allowance for this amount before processing the payment. The approval sets, rather than adds to, the wallet's allowance. Set this field only when the wallet needs approving, for example on its first
uptopayment, to avoid a redundant on-chain transaction. Omit the field to skip allowance handling. This is the default, and the only behavior for theexactscheme.- Parameters:
permit2AllowanceLimit- The maximum on-chain Permit2 allowance to grant before signing the payment authorization, in the asset's smallest denomination. This field is valid only for theupto(metered) scheme; supplying it for theexactscheme returns a validation error.When set, the service approves an ERC-20 allowance for this amount before processing the payment. The approval sets, rather than adds to, the wallet's allowance. Set this field only when the wallet needs approving, for example on its first
uptopayment, to avoid a redundant on-chain transaction. Omit the field to skip allowance handling. This is the default, and the only behavior for theexactscheme.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-