pub struct PaymentRequest {
pub amount_cents: i64,
pub cash_register_id: Option<String>,
pub payment_type: Option<PaymentCardType>,
pub card_already_present: Option<bool>,
pub receipt_text: Option<String>,
pub tokenization: Option<TokenizationRequest>,
}Expand description
Payment / extended-payment / pre-auth request.
Fields§
§amount_cents: i64Amount in cents.
cash_register_id: Option<String>Overrides the configured cash-register id when set.
payment_type: Option<PaymentCardType>Requested card handling.
card_already_present: Option<bool>Start with the card already inserted in the terminal.
receipt_text: Option<String>Text printed at the end of the receipt (max 128 chars).
tokenization: Option<TokenizationRequest>Attach tokenization additional data (U) to this transaction.
Trait Implementations§
Source§impl Clone for PaymentRequest
impl Clone for PaymentRequest
Source§fn clone(&self) -> PaymentRequest
fn clone(&self) -> PaymentRequest
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 PaymentRequest
impl Debug for PaymentRequest
Source§impl<'de> Deserialize<'de> for PaymentRequest
impl<'de> Deserialize<'de> for PaymentRequest
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
impl Eq for PaymentRequest
Source§impl PartialEq for PaymentRequest
impl PartialEq for PaymentRequest
Source§impl Serialize for PaymentRequest
impl Serialize for PaymentRequest
impl StructuralPartialEq for PaymentRequest
Auto Trait Implementations§
impl Freeze for PaymentRequest
impl RefUnwindSafe for PaymentRequest
impl Send for PaymentRequest
impl Sync for PaymentRequest
impl Unpin for PaymentRequest
impl UnsafeUnpin for PaymentRequest
impl UnwindSafe for PaymentRequest
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