[−][src]Struct stripe::PaymentIntent
The resource representing a Stripe PaymentIntent object.
For more details see https://stripe.com/docs/api/payment_intents.
Fields
id: String
object: String
allowed_source_types: Vec<String>
amount: u64
amount_capturable: u64
amount_received: u64
application: Option<String>
application_fee_amount: Option<u64>
canceled_at: Option<Timestamp>
cancellation_reason: Option<CancellationReason>
capture_method: CaptureMethod
charges: List<Charge>
client_secret: Option<String>
confirmation_method: Option<ConfirmationMethod>
created: Timestamp
currency: Currency
customer: Option<String>
description: Option<String>
last_payment_error: Option<PaymentError>
livemode: bool
metadata: Metadata
next_source_action: Option<NextSourceAction>
on_behalf_of: Option<String>
receipt_email: Option<String>
review: Option<String>
shipping: Option<ShippingDetails>
source: String
statement_descriptor: Option<String>
status: PaymentIntentStatus
transfer_data: Option<TransferData>
transfer_group: Option<String>
Methods
impl PaymentIntent
[src]
impl PaymentIntent
pub fn create( | [src] |
Creates a new payment_intent.
For more details see https://stripe.com/docs/api/payment_intents/create.
pub fn retrieve( | [src] |
Retrieves the details of a payment_intent.
For more details see https://stripe.com/docs/api/payment_intents/retrieve.
pub fn update( | [src] |
Updates a payment_intent's properties.
For more details see https://stripe.com/docs/api/payment_intents/update.
pub fn confirm( | [src] |
Confirm that customer intends to pay with current or provided source. Upon confirmation, the PaymentIntent will attempt to initiate a payment.
For more details see https://stripe.com/docs/api/payment_intents/confirm.
pub fn capture( | [src] |
Capture the funds of an existing uncaptured PaymentIntent where required_action="requires_capture".
For more details see https://stripe.com/docs/api/payment_intents/capture.
pub fn cancel( | [src] |
A PaymentIntent object can be canceled when it is in one of these statuses: requires_source, requires_capture, requires_confirmation, requires_source_action.
For more details see https://stripe.com/docs/api/payment_intents/cancel.
pub fn list( | [src] |
List all payment_intents.
For more details see https://stripe.com/docs/api/payment_intents/list.
Trait Implementations
impl Clone for PaymentIntent
[src]
impl Clone for PaymentIntent
fn clone(&self) -> PaymentIntent | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Debug for PaymentIntent
[src]
impl Debug for PaymentIntent
impl Serialize for PaymentIntent
[src]
impl Serialize for PaymentIntent
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where | [src] |
impl<'de> Deserialize<'de> for PaymentIntent
[src]
impl<'de> Deserialize<'de> for PaymentIntent
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where | [src] |
Auto Trait Implementations
impl Send for PaymentIntent
impl Send for PaymentIntent
impl Sync for PaymentIntent
impl Sync for PaymentIntent
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
impl<T> Erased for T
impl<T> Erased for T
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self