Struct square_api_client::models::PayOrderRequest
source · [−]pub struct PayOrderRequest {
pub idempotency_key: String,
pub order_version: Option<i32>,
pub payment_ids: Option<Vec<String>>,
}
Expand description
This is a model struct for PayOrderRequest type
Fields
idempotency_key: String
A value you specify that uniquely identifies this request among requests you have sent. If you are unsure whether a particular payment request was completed successfully, you can reattempt it with the same idempotency key without worrying about duplicate payments.
For more information, see Idempotency.
order_version: Option<i32>
The version of the order being paid. If not supplied, the latest version will be paid.
payment_ids: Option<Vec<String>>
The IDs of the [Payment]s to collect. The payment total must match the order total.
Trait Implementations
sourceimpl Clone for PayOrderRequest
impl Clone for PayOrderRequest
sourcefn clone(&self) -> PayOrderRequest
fn clone(&self) -> PayOrderRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PayOrderRequest
impl Debug for PayOrderRequest
sourceimpl Default for PayOrderRequest
impl Default for PayOrderRequest
sourcefn default() -> PayOrderRequest
fn default() -> PayOrderRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<PayOrderRequest> for PayOrderRequest
impl PartialEq<PayOrderRequest> for PayOrderRequest
sourcefn eq(&self, other: &PayOrderRequest) -> bool
fn eq(&self, other: &PayOrderRequest) -> bool
sourceimpl Serialize for PayOrderRequest
impl Serialize for PayOrderRequest
impl Eq for PayOrderRequest
impl StructuralEq for PayOrderRequest
impl StructuralPartialEq for PayOrderRequest
Auto Trait Implementations
impl RefUnwindSafe for PayOrderRequest
impl Send for PayOrderRequest
impl Sync for PayOrderRequest
impl Unpin for PayOrderRequest
impl UnwindSafe for PayOrderRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.