pub struct WalletRevocationRequest {
pub metadata: Option<Metadata>,
pub option_id: String,
pub reason: Option<String>,
pub signed_payloads: Vec<OnchainSignedPayload>,
}Expand description
A request to remove a mandate’s spending allowance on-chain. Submit the optionId the customer chose from Get wallet revocation options along with their signed payloads. Returns a pending revocation that resolves once the network transaction confirms.
JSON schema
{
"description": "A request to remove a mandate's spending allowance on-chain. Submit the `optionId` the customer chose from **Get wallet revocation options** along with their signed payloads. Returns a `pending` revocation that resolves once the network transaction confirms.",
"examples": [
{
"optionId": "opt_b2c3d4e5-f6a7-8901-bcde-f23456789012",
"reason": "Customer requested that the allowance be removed.",
"signedPayloads": [
{
"payloadId": "payload_bf3048c1-0957-5gf8-cgf0-ddd33e046225",
"signature": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab"
}
]
}
],
"type": "object",
"required": [
"optionId",
"signedPayloads"
],
"properties": {
"metadata": {
"$ref": "#/components/schemas/Metadata"
},
"optionId": {
"description": "The identifier of the chosen option. Must match an `optionId` from the **Get wallet revocation options** response.",
"examples": [
"opt_b2c3d4e5-f6a7-8901-bcde-f23456789012"
],
"type": "string"
},
"reason": {
"description": "An optional human-readable reason for revoking the spending allowance.",
"examples": [
"Customer requested that the allowance be removed."
],
"type": "string"
},
"signedPayloads": {
"description": "The processed payloads from the customer, corresponding to the payloads in the selected option.",
"examples": [
[
{
"payloadId": "payload_bf3048c1-0957-5gf8-cgf0-ddd33e046225",
"signature": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab"
}
]
],
"type": "array",
"items": {
"$ref": "#/components/schemas/OnchainSignedPayload"
}
}
}
}Fields§
§metadata: Option<Metadata>§option_id: StringThe identifier of the chosen option. Must match an optionId from the Get wallet revocation options response.
reason: Option<String>An optional human-readable reason for revoking the spending allowance.
signed_payloads: Vec<OnchainSignedPayload>The processed payloads from the customer, corresponding to the payloads in the selected option.
Implementations§
Source§impl WalletRevocationRequest
impl WalletRevocationRequest
pub fn builder() -> WalletRevocationRequest
Trait Implementations§
Source§impl Clone for WalletRevocationRequest
impl Clone for WalletRevocationRequest
Source§impl Debug for WalletRevocationRequest
impl Debug for WalletRevocationRequest
Source§impl<'de> Deserialize<'de> for WalletRevocationRequest
impl<'de> Deserialize<'de> for WalletRevocationRequest
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<&WalletRevocationRequest> for WalletRevocationRequest
impl From<&WalletRevocationRequest> for WalletRevocationRequest
Source§fn from(value: &WalletRevocationRequest) -> Self
fn from(value: &WalletRevocationRequest) -> Self
Converts to this type from the input type.
Source§impl From<WalletRevocationRequest> for WalletRevocationRequest
impl From<WalletRevocationRequest> for WalletRevocationRequest
Source§fn from(value: WalletRevocationRequest) -> Self
fn from(value: WalletRevocationRequest) -> Self
Converts to this type from the input type.
Source§impl Serialize for WalletRevocationRequest
impl Serialize for WalletRevocationRequest
Source§impl TryFrom<WalletRevocationRequest> for WalletRevocationRequest
impl TryFrom<WalletRevocationRequest> for WalletRevocationRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: WalletRevocationRequest) -> Result<Self, ConversionError>
fn try_from(value: WalletRevocationRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for WalletRevocationRequest
impl RefUnwindSafe for WalletRevocationRequest
impl Send for WalletRevocationRequest
impl Sync for WalletRevocationRequest
impl Unpin for WalletRevocationRequest
impl UnsafeUnpin for WalletRevocationRequest
impl UnwindSafe for WalletRevocationRequest
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