[][src]Struct libstripe::resources::core::paymentintents::PaymentIntent

pub struct PaymentIntent {
    pub id: String,
    pub object: Object,
    pub amount: i32,
    pub amount_capturable: i32,
    pub amount_received: i32,
    pub application: Option<String>,
    pub application_fee_amount: Option<i64>,
    pub canceled_at: Option<i64>,
    pub cancellation_reason: Option<CancellationReason>,
    pub capture_method: CaptureMethod,
    pub charges: List<Charge>,
    pub client_secret: Option<String>,
    pub confirmation_method: ConfirmationMethod,
    pub created: i64,
    pub currency: Currency,
    pub customer: Option<Expandable<Customer>>,
    pub description: Option<String>,
    pub invoice: Option<Expandable<Invoice>>,
    pub last_payment_error: Option<LastPaymentError>,
    pub livemode: bool,
    pub metadata: HashMap<String, String>,
    pub next_source: Option<NextSourceAction>,
    pub on_behalf_of: Option<String>,
    pub payment_method: Option<PaymentMethods>,
    pub payment_method_type: Option<PaymentMethodsType>,
    pub receipt_email: Option<String>,
    pub review: Option<Expandable<Reviews>>,
    pub shipping: Option<IssuingShipping>,
    pub source: Option<Expandable<Source>>,
    pub statement_descriptor: Option<String>,
    pub status: PaymentIntentsStatus,
    pub transfer_data: Option<TransferData>,
    pub transfer_group: Option<String>,
}

Fields

id: Stringobject: Objectamount: i32amount_capturable: i32amount_received: i32application: Option<String>application_fee_amount: Option<i64>canceled_at: Option<i64>cancellation_reason: Option<CancellationReason>capture_method: CaptureMethodcharges: List<Charge>client_secret: Option<String>confirmation_method: ConfirmationMethodcreated: i64currency: Currencycustomer: Option<Expandable<Customer>>description: Option<String>invoice: Option<Expandable<Invoice>>last_payment_error: Option<LastPaymentError>livemode: boolmetadata: HashMap<String, String>next_source: Option<NextSourceAction>on_behalf_of: Option<String>payment_method: Option<PaymentMethods>payment_method_type: Option<PaymentMethodsType>receipt_email: Option<String>review: Option<Expandable<Reviews>>shipping: Option<IssuingShipping>source: Option<Expandable<Source>>statement_descriptor: Option<String>status: PaymentIntentsStatustransfer_data: Option<TransferData>transfer_group: Option<String>

Methods

impl PaymentIntent[src]

pub fn create<B: Serialize>(client: &Client, param: B) -> Result<Self>[src]

pub fn retrieve(client: &Client, id: &str) -> Result<Self>[src]

pub fn update<B: Serialize>(client: &Client, id: &str, param: B) -> Result<Self>[src]

pub fn confirm<B: Serialize>(
    client: &Client,
    id: &str,
    param: B
) -> Result<Self>
[src]

pub fn capture<B: Serialize>(
    client: &Client,
    id: &str,
    param: B
) -> Result<Self>
[src]

pub fn cancel<B: Serialize>(client: &Client, id: &str, param: B) -> Result<Self>[src]

pub fn list<B: Serialize>(client: &Client, param: B) -> Result<List<Self>>[src]

Trait Implementations

impl PartialEq<PaymentIntent> for PaymentIntent[src]

impl Debug for PaymentIntent[src]

impl Serialize for PaymentIntent[src]

impl<'de> Deserialize<'de> for PaymentIntent[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err