pub enum OrderIntent {
Capture,
Authorize,
}
Expand description
The intent to either capture payment immediately or authorize a payment for an order after order creation.
Variants§
Capture
The merchant intends to capture payment immediately after the customer makes a payment.
Authorize
The merchant intends to authorize a payment and place funds on hold after the customer makes a payment.
Authorized payments are best captured within three days of authorization but are available to capture for up to 29 days.
After the three-day honor period, the original authorized payment expires and you must re-authorize the payment.
You must make a separate request to capture payments on demand. This intent is not supported when you have more than one
purchase_unit
within your order.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for OrderIntent
impl AsRef<str> for OrderIntent
Source§impl Clone for OrderIntent
impl Clone for OrderIntent
Source§fn clone(&self) -> OrderIntent
fn clone(&self) -> OrderIntent
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 OrderIntent
impl Debug for OrderIntent
Source§impl Default for OrderIntent
impl Default for OrderIntent
Source§fn default() -> OrderIntent
fn default() -> OrderIntent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OrderIntent
impl<'de> Deserialize<'de> for OrderIntent
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
Source§impl Display for OrderIntent
impl Display for OrderIntent
Source§impl PartialEq for OrderIntent
impl PartialEq for OrderIntent
Source§impl Serialize for OrderIntent
impl Serialize for OrderIntent
impl Copy for OrderIntent
impl Eq for OrderIntent
impl StructuralPartialEq for OrderIntent
Auto Trait Implementations§
impl Freeze for OrderIntent
impl RefUnwindSafe for OrderIntent
impl Send for OrderIntent
impl Sync for OrderIntent
impl Unpin for OrderIntent
impl UnwindSafe for OrderIntent
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.