pub struct CryptoPayinRequest {
pub crypto_currency: CryptoCurrencyCode,
pub crypto_amount: PositiveDecimal,
pub return_url: ReturnURL,
pub customer_id: CustomerID,
pub external_id: Option<ExternalID>,
pub customer: Option<Value>,
pub line_items: LineItems,
pub nonce: Nonce,
}Expand description
Request to create a cryptocurrency payin checkout session
This request is used to create a checkout session where customers can pay using cryptocurrency (e.g., Bitcoin, Ethereum).
§Examples
use noah_sdk::api::checkout::CryptoPayinRequest;
use noah_sdk::models::common::*;
let request = CryptoPayinRequest {
crypto_currency: CryptoCurrencyCode::Btc,
crypto_amount: "0.001".to_string(),
return_url: "https://example.com/return".to_string(),
customer_id: "customer-123".to_string(),
external_id: Some("order-456".to_string()),
customer: None,
line_items: Default::default(),
nonce: "unique-nonce-123".to_string(),
};Fields§
§crypto_currency: CryptoCurrencyCodeCryptocurrency
crypto_amount: PositiveDecimalCrypto amount
return_url: ReturnURLReturn URL
customer_id: CustomerIDCustomer ID
external_id: Option<ExternalID>External ID (optional)
customer: Option<Value>Customer (optional)
line_items: LineItemsLine items
nonce: NonceNonce
Trait Implementations§
Source§impl Clone for CryptoPayinRequest
impl Clone for CryptoPayinRequest
Source§fn clone(&self) -> CryptoPayinRequest
fn clone(&self) -> CryptoPayinRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 CryptoPayinRequest
impl Debug for CryptoPayinRequest
Auto Trait Implementations§
impl Freeze for CryptoPayinRequest
impl RefUnwindSafe for CryptoPayinRequest
impl Send for CryptoPayinRequest
impl Sync for CryptoPayinRequest
impl Unpin for CryptoPayinRequest
impl UnwindSafe for CryptoPayinRequest
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