pub struct PreAuthRequest {
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
Pre-auth request (p).
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.
receipt_text: Option<String>Receipt text.
tokenization: Option<TokenizationRequest>Attach tokenization additional data (U).
Trait Implementations§
Source§impl Clone for PreAuthRequest
impl Clone for PreAuthRequest
Source§fn clone(&self) -> PreAuthRequest
fn clone(&self) -> PreAuthRequest
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 PreAuthRequest
impl Debug for PreAuthRequest
Source§impl<'de> Deserialize<'de> for PreAuthRequest
impl<'de> Deserialize<'de> for PreAuthRequest
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 PreAuthRequest
Source§impl PartialEq for PreAuthRequest
impl PartialEq for PreAuthRequest
Source§impl Serialize for PreAuthRequest
impl Serialize for PreAuthRequest
impl StructuralPartialEq for PreAuthRequest
Auto Trait Implementations§
impl Freeze for PreAuthRequest
impl RefUnwindSafe for PreAuthRequest
impl Send for PreAuthRequest
impl Sync for PreAuthRequest
impl Unpin for PreAuthRequest
impl UnsafeUnpin for PreAuthRequest
impl UnwindSafe for PreAuthRequest
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