pub struct WalletAuthorizationRequest {
pub customer_display: Option<OperationCustomerDisplay>,
pub external_reference_id: Option<ExternalReferenceId>,
pub metadata: Option<Metadata>,
pub option_id: String,
pub signed_payloads: Vec<OnchainSignedPayload>,
}Expand description
A request to authorize a payment session using a wallet. The payer selects one of the options returned by the wallet authorization options endpoint and submits the signed payloads.
JSON schema
{
"description": "A request to authorize a payment session using a wallet. The payer selects one of the options returned by the wallet authorization options endpoint and submits the signed payloads.",
"examples": [
{
"optionId": "opt_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"signedPayloads": [
{
"payloadId": "payload_af2937b0-9846-4fe7-bfe9-ccc22d935114",
"signature": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab"
}
]
}
],
"type": "object",
"required": [
"optionId",
"signedPayloads"
],
"properties": {
"customerDisplay": {
"description": "Optional customer-facing display data for this authorization, shown to the payer. Falls back to the session's `orderCode` when `referenceCode` is omitted.",
"examples": [
{
"referenceCode": "REF-ABC123"
}
],
"allOf": [
{
"$ref": "#/components/schemas/OperationCustomerDisplay"
}
]
},
"externalReferenceId": {
"description": "An optional merchant-provided internal identifier for this wallet authorization, from the merchant's own system—not visible to the payer.",
"examples": [
"merchant-authorization-abc123"
],
"allOf": [
{
"$ref": "#/components/schemas/ExternalReferenceId"
}
]
},
"metadata": {
"$ref": "#/components/schemas/Metadata"
},
"optionId": {
"description": "The identifier of the chosen authorization option. Must match an `optionId` from the wallet authorization options response.",
"examples": [
"opt_a1b2c3d4-e5f6-7890-abcd-ef1234567890"
],
"type": "string"
},
"signedPayloads": {
"description": "The processed payloads from the payer, corresponding to the payloads in the selected authorization option.",
"examples": [
[
{
"payloadId": "payload_af2937b0-9846-4fe7-bfe9-ccc22d935114",
"signature": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab"
}
]
],
"type": "array",
"items": {
"$ref": "#/components/schemas/OnchainSignedPayload"
}
}
}
}Fields§
§customer_display: Option<OperationCustomerDisplay>Optional customer-facing display data for this authorization, shown to the payer. Falls back to the session’s orderCode when referenceCode is omitted.
external_reference_id: Option<ExternalReferenceId>An optional merchant-provided internal identifier for this wallet authorization, from the merchant’s own system—not visible to the payer.
metadata: Option<Metadata>§option_id: StringThe identifier of the chosen authorization option. Must match an optionId from the wallet authorization options response.
signed_payloads: Vec<OnchainSignedPayload>The processed payloads from the payer, corresponding to the payloads in the selected authorization option.
Implementations§
Source§impl WalletAuthorizationRequest
impl WalletAuthorizationRequest
pub fn builder() -> WalletAuthorizationRequest
Trait Implementations§
Source§impl Clone for WalletAuthorizationRequest
impl Clone for WalletAuthorizationRequest
Source§impl Debug for WalletAuthorizationRequest
impl Debug for WalletAuthorizationRequest
Source§impl<'de> Deserialize<'de> for WalletAuthorizationRequest
impl<'de> Deserialize<'de> for WalletAuthorizationRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&WalletAuthorizationRequest> for WalletAuthorizationRequest
impl From<&WalletAuthorizationRequest> for WalletAuthorizationRequest
Source§fn from(value: &WalletAuthorizationRequest) -> Self
fn from(value: &WalletAuthorizationRequest) -> Self
Converts to this type from the input type.
Source§impl From<WalletAuthorizationRequest> for WalletAuthorizationRequest
impl From<WalletAuthorizationRequest> for WalletAuthorizationRequest
Source§fn from(value: WalletAuthorizationRequest) -> Self
fn from(value: WalletAuthorizationRequest) -> Self
Converts to this type from the input type.
Source§impl TryFrom<WalletAuthorizationRequest> for WalletAuthorizationRequest
impl TryFrom<WalletAuthorizationRequest> for WalletAuthorizationRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: WalletAuthorizationRequest) -> Result<Self, ConversionError>
fn try_from(value: WalletAuthorizationRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for WalletAuthorizationRequest
impl RefUnwindSafe for WalletAuthorizationRequest
impl Send for WalletAuthorizationRequest
impl Sync for WalletAuthorizationRequest
impl Unpin for WalletAuthorizationRequest
impl UnsafeUnpin for WalletAuthorizationRequest
impl UnwindSafe for WalletAuthorizationRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more