[][src]Struct libstripe::resources::core::charges::Charge

pub struct Charge {
    pub id: String,
    pub object: Object,
    pub amount: i64,
    pub amount_refunded: i64,
    pub application: Option<String>,
    pub application_fee: Option<Expandable<ApplicationFees>>,
    pub application_fee_amount: Option<i32>,
    pub balance_transaction: Option<Expandable<BalanceTransaction>>,
    pub billing_details: BillingDetails,
    pub captured: bool,
    pub created: i64,
    pub currency: Currency,
    pub customer: Option<Expandable<Customer>>,
    pub description: Option<String>,
    pub destination: Option<String>,
    pub dispute: Option<Expandable<Dispute>>,
    pub failure_code: Option<ErrorCode>,
    pub failure_message: Option<String>,
    pub fraud_details: FraudDetails,
    pub invoice: Option<Expandable<Invoice>>,
    pub livemode: bool,
    pub metadata: HashMap<String, String>,
    pub on_behalf_of: Option<Expandable<Account>>,
    pub order: Option<Expandable<Order>>,
    pub outcome: Option<Outcome>,
    pub paid: bool,
    pub payment_intent: Option<String>,
    pub payment_method: Option<String>,
    pub payment_method_details: PaymentMethodsDetails,
    pub receipt_email: Option<String>,
    pub receipt_number: Option<String>,
    pub receipt_url: String,
    pub refunded: bool,
    pub refunds: List<Refund>,
    pub review: Option<Expandable<Reviews>>,
    pub shipping: Option<ShippingDetails>,
    pub source: Option<PaymentSource>,
    pub source_transfer: Option<Expandable<Transfer>>,
    pub statement_descriptor: Option<String>,
    pub status: ChargeStatus,
    pub transfer: Option<Expandable<Transfer>>,
    pub transfer_data: Option<TransferData>,
    pub transfer_group: Option<String>,
}

Fields

id: Stringobject: Objectamount: i64amount_refunded: i64application: Option<String>application_fee: Option<Expandable<ApplicationFees>>application_fee_amount: Option<i32>balance_transaction: Option<Expandable<BalanceTransaction>>billing_details: BillingDetailscaptured: boolcreated: i64currency: Currencycustomer: Option<Expandable<Customer>>description: Option<String>destination: Option<String>dispute: Option<Expandable<Dispute>>failure_code: Option<ErrorCode>failure_message: Option<String>fraud_details: FraudDetailsinvoice: Option<Expandable<Invoice>>livemode: boolmetadata: HashMap<String, String>on_behalf_of: Option<Expandable<Account>>order: Option<Expandable<Order>>outcome: Option<Outcome>paid: boolpayment_intent: Option<String>payment_method: Option<String>payment_method_details: PaymentMethodsDetailsreceipt_email: Option<String>receipt_number: Option<String>receipt_url: Stringrefunded: boolrefunds: List<Refund>review: Option<Expandable<Reviews>>shipping: Option<ShippingDetails>source: Option<PaymentSource>source_transfer: Option<Expandable<Transfer>>statement_descriptor: Option<String>status: ChargeStatustransfer: Option<Expandable<Transfer>>transfer_data: Option<TransferData>transfer_group: Option<String>

Methods

impl Charge[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 capture<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<Charge> for Charge[src]

impl Debug for Charge[src]

impl Serialize for Charge[src]

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

Auto Trait Implementations

impl Send for Charge

impl Sync for Charge

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