pub struct CoinbaseAuthorizationRequest {
pub customer_display: Option<OperationCustomerDisplay>,
pub external_reference_id: Option<ExternalReferenceId>,
pub metadata: Option<Metadata>,
}Expand description
A request to authorize a payment session using the payer’s Coinbase account authenticated via OAuth.
JSON schema
{
"description": "A request to authorize a payment session using the payer's Coinbase account authenticated via OAuth.",
"type": "object",
"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 Coinbase 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"
}
}
}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 Coinbase authorization, from the merchant’s own system—not visible to the payer.
metadata: Option<Metadata>Implementations§
Trait Implementations§
Source§impl Clone for CoinbaseAuthorizationRequest
impl Clone for CoinbaseAuthorizationRequest
Source§impl Debug for CoinbaseAuthorizationRequest
impl Debug for CoinbaseAuthorizationRequest
Source§impl<'de> Deserialize<'de> for CoinbaseAuthorizationRequest
impl<'de> Deserialize<'de> for CoinbaseAuthorizationRequest
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<&CoinbaseAuthorizationRequest> for CoinbaseAuthorizationRequest
impl From<&CoinbaseAuthorizationRequest> for CoinbaseAuthorizationRequest
Source§fn from(value: &CoinbaseAuthorizationRequest) -> Self
fn from(value: &CoinbaseAuthorizationRequest) -> Self
Converts to this type from the input type.
Source§impl From<CoinbaseAuthorizationRequest> for CoinbaseAuthorizationRequest
impl From<CoinbaseAuthorizationRequest> for CoinbaseAuthorizationRequest
Source§fn from(value: CoinbaseAuthorizationRequest) -> Self
fn from(value: CoinbaseAuthorizationRequest) -> Self
Converts to this type from the input type.
Source§impl TryFrom<CoinbaseAuthorizationRequest> for CoinbaseAuthorizationRequest
impl TryFrom<CoinbaseAuthorizationRequest> for CoinbaseAuthorizationRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: CoinbaseAuthorizationRequest,
) -> Result<Self, ConversionError>
fn try_from( value: CoinbaseAuthorizationRequest, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CoinbaseAuthorizationRequest
impl RefUnwindSafe for CoinbaseAuthorizationRequest
impl Send for CoinbaseAuthorizationRequest
impl Sync for CoinbaseAuthorizationRequest
impl Unpin for CoinbaseAuthorizationRequest
impl UnsafeUnpin for CoinbaseAuthorizationRequest
impl UnwindSafe for CoinbaseAuthorizationRequest
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