Enum paypal_rust::resources::enums::order_intent::OrderIntent
source · [−]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
sourceimpl OrderIntent
impl OrderIntent
Trait Implementations
sourceimpl AsRef<str> for OrderIntent
impl AsRef<str> for OrderIntent
sourceimpl Clone for OrderIntent
impl Clone for OrderIntent
sourcefn clone(&self) -> OrderIntent
fn clone(&self) -> OrderIntent
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 OrderIntent
impl Debug for OrderIntent
sourceimpl<'de> Deserialize<'de> for OrderIntent
impl<'de> Deserialize<'de> for OrderIntent
sourcefn 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
sourceimpl Display for OrderIntent
impl Display for OrderIntent
sourceimpl PartialEq<OrderIntent> for OrderIntent
impl PartialEq<OrderIntent> for OrderIntent
sourcefn eq(&self, other: &OrderIntent) -> bool
fn eq(&self, other: &OrderIntent) -> bool
sourceimpl Serialize for OrderIntent
impl Serialize for OrderIntent
impl Copy for OrderIntent
impl Eq for OrderIntent
impl StructuralEq for OrderIntent
impl StructuralPartialEq for OrderIntent
Auto Trait Implementations
impl RefUnwindSafe for OrderIntent
impl Send for OrderIntent
impl Sync for OrderIntent
impl Unpin for OrderIntent
impl UnwindSafe for OrderIntent
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.