[][src]Struct libstripe::resources::core::customer::Customer

pub struct Customer {
    pub id: String,
    pub object: Object,
    pub account_balance: i64,
    pub address: Option<Address>,
    pub created: i64,
    pub currency: Option<Currency>,
    pub default_source: Option<Expandable<Source>>,
    pub delinquent: bool,
    pub description: Option<String>,
    pub discount: Option<Expandable<Discount>>,
    pub email: Option<String>,
    pub invoice_prefix: Option<String>,
    pub invoice_settings: InvoiceSettings,
    pub livemode: bool,
    pub metadata: HashMap<String, String>,
    pub name: Option<String>,
    pub phone: Option<String>,
    pub preferred_locales: Option<Vec<String>>,
    pub shipping: Option<CustomerShipping>,
    pub sources: Option<List<PaymentSource>>,
    pub subscription: Option<List<Subscription>>,
    pub tax_exempt: Option<TaxExempt>,
    pub tax_ids: Option<List<CustomerTaxID>>,
    pub tax_info: Option<TaxInfo>,
    pub tax_info_verification: Option<TaxInfoVerification>,
}

Fields

id: Stringobject: Objectaccount_balance: i64address: Option<Address>created: i64currency: Option<Currency>default_source: Option<Expandable<Source>>delinquent: booldescription: Option<String>discount: Option<Expandable<Discount>>email: Option<String>invoice_prefix: Option<String>invoice_settings: InvoiceSettingslivemode: boolmetadata: HashMap<String, String>name: Option<String>phone: Option<String>preferred_locales: Option<Vec<String>>shipping: Option<CustomerShipping>sources: Option<List<PaymentSource>>subscription: Option<List<Subscription>>tax_exempt: Option<TaxExempt>tax_ids: Option<List<CustomerTaxID>>tax_info: Option<TaxInfo>tax_info_verification: Option<TaxInfoVerification>

Methods

impl Customer[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 delete(client: &Client, id: &str) -> Result<Deleted>[src]

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

Trait Implementations

impl PartialEq<Customer> for Customer[src]

impl Debug for Customer[src]

impl Serialize for Customer[src]

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

Auto Trait Implementations

impl Send for Customer

impl Sync for Customer

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