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§
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 copy of the value. Read more
1.0.0 · 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 OrderIntent
impl Debug for OrderIntent
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<OrderIntent> for OrderIntent
impl PartialEq<OrderIntent> for OrderIntent
source§fn eq(&self, other: &OrderIntent) -> bool
fn eq(&self, other: &OrderIntent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl 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§
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.