pub struct CreateInvoiceParams {
pub amount: f64,
pub currency: Option<String>,
pub network: Option<String>,
pub crypto_currency: Option<String>,
pub merchant_order_id: Option<String>,
pub customer_email: Option<String>,
pub customer_name: Option<String>,
pub callback_url: Option<String>,
pub return_url: Option<String>,
pub metadata: Option<HashMap<String, Value>>,
}Expand description
Parameters for creating an invoice.
Omit network and crypto_currency for a flex invoice (customer picks
crypto on the payment page). Supply both to lock the rate at creation.
Fields§
§amount: f64§currency: Option<String>§network: Option<String>§crypto_currency: Option<String>§merchant_order_id: Option<String>§customer_email: Option<String>§customer_name: Option<String>§callback_url: Option<String>§return_url: Option<String>§metadata: Option<HashMap<String, Value>>Trait Implementations§
Source§impl Clone for CreateInvoiceParams
impl Clone for CreateInvoiceParams
Source§fn clone(&self) -> CreateInvoiceParams
fn clone(&self) -> CreateInvoiceParams
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 CreateInvoiceParams
impl Debug for CreateInvoiceParams
Source§impl Default for CreateInvoiceParams
impl Default for CreateInvoiceParams
Source§fn default() -> CreateInvoiceParams
fn default() -> CreateInvoiceParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateInvoiceParams
impl RefUnwindSafe for CreateInvoiceParams
impl Send for CreateInvoiceParams
impl Sync for CreateInvoiceParams
impl Unpin for CreateInvoiceParams
impl UnsafeUnpin for CreateInvoiceParams
impl UnwindSafe for CreateInvoiceParams
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