pub struct OnrampSessionParams {
pub crypto_customer_id: OnrampSessionParamsCryptoCustomerId,
pub destination_currency: CryptoCurrencyCode,
pub destination_network: OnrampSessionParamsDestinationNetwork,
pub payment_token: OnrampSessionParamsPaymentToken,
pub source_amount: OnrampSessionParamsSourceAmount,
pub source_currency: FiatCurrencyCode,
pub wallet_address: OnrampSessionParamsWalletAddress,
}Expand description
Parameters for creating a Stripe onramp session.
JSON schema
{
"title": "OnrampSessionParams",
"description": "Parameters for creating a Stripe onramp session.",
"type": "object",
"required": [
"crypto_customer_id",
"destination_currency",
"destination_network",
"payment_token",
"source_amount",
"source_currency",
"wallet_address"
],
"properties": {
"crypto_customer_id": {
"type": "string",
"minLength": 1
},
"destination_currency": {
"$ref": "#/components/schemas/CryptoCurrencyCode"
},
"destination_network": {
"type": "string",
"minLength": 1
},
"payment_token": {
"type": "string",
"minLength": 1
},
"source_amount": {
"type": "string",
"minLength": 1
},
"source_currency": {
"$ref": "#/components/schemas/FiatCurrencyCode"
},
"wallet_address": {
"type": "string",
"maxLength": 44,
"minLength": 32,
"pattern": "^[0-9a-zA-Zx]+$"
}
},
"x-stainless-model": "onramps.onramp_session_params"
}Fields§
§crypto_customer_id: OnrampSessionParamsCryptoCustomerId§destination_currency: CryptoCurrencyCode§destination_network: OnrampSessionParamsDestinationNetwork§payment_token: OnrampSessionParamsPaymentToken§source_amount: OnrampSessionParamsSourceAmount§source_currency: FiatCurrencyCode§wallet_address: OnrampSessionParamsWalletAddressTrait Implementations§
Source§impl Clone for OnrampSessionParams
impl Clone for OnrampSessionParams
Source§fn clone(&self) -> OnrampSessionParams
fn clone(&self) -> OnrampSessionParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OnrampSessionParams
impl Debug for OnrampSessionParams
Source§impl<'de> Deserialize<'de> for OnrampSessionParams
impl<'de> Deserialize<'de> for OnrampSessionParams
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<&OnrampSessionParams> for OnrampSessionParams
impl From<&OnrampSessionParams> for OnrampSessionParams
Source§fn from(value: &OnrampSessionParams) -> Self
fn from(value: &OnrampSessionParams) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OnrampSessionParams
impl RefUnwindSafe for OnrampSessionParams
impl Send for OnrampSessionParams
impl Sync for OnrampSessionParams
impl Unpin for OnrampSessionParams
impl UnsafeUnpin for OnrampSessionParams
impl UnwindSafe for OnrampSessionParams
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