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§
Source§impl Clone for PayOrderRequest
impl Clone for PayOrderRequest
Source§fn clone(&self) -> PayOrderRequest
fn clone(&self) -> PayOrderRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PayOrderRequest
impl Debug for PayOrderRequest
Source§impl Default for PayOrderRequest
impl Default for PayOrderRequest
Source§fn default() -> PayOrderRequest
fn default() -> PayOrderRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for PayOrderRequest
impl PartialEq for PayOrderRequest
Source§impl Serialize for PayOrderRequest
impl Serialize for PayOrderRequest
impl Eq for PayOrderRequest
impl StructuralPartialEq for PayOrderRequest
Auto Trait Implementations§
impl Freeze for PayOrderRequest
impl RefUnwindSafe for PayOrderRequest
impl Send for PayOrderRequest
impl Sync for PayOrderRequest
impl Unpin for PayOrderRequest
impl UnwindSafe for PayOrderRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.