Enum stripe::PaymentSource [−][src]
Variants
Card(Card)
Source(Source)
Methods
impl PaymentSource
[src]
impl PaymentSource
pub fn create(
client: &Client,
params: SourceParams
) -> Result<PaymentSource, Error>
[src]
pub fn create(
client: &Client,
params: SourceParams
) -> Result<PaymentSource, Error>
pub fn get(client: &Client, source_id: &str) -> Result<PaymentSource, Error>
[src]
pub fn get(client: &Client, source_id: &str) -> Result<PaymentSource, Error>
pub fn update(
client: &Client,
source_id: &str,
params: SourceParams
) -> Result<PaymentSource, Error>
[src]
pub fn update(
client: &Client,
source_id: &str,
params: SourceParams
) -> Result<PaymentSource, Error>
pub fn attach_source(
client: &Client,
customer_id: &str,
source: &str
) -> Result<PaymentSource, Error>
[src]
pub fn attach_source(
client: &Client,
customer_id: &str,
source: &str
) -> Result<PaymentSource, Error>
Attaches a source to a customer, does not change default Source for the Customer
For more details see https://stripe.com/docs/api#attach_source.
pub fn detach_source(
client: &Client,
customer_id: &str,
source_id: &str
) -> Result<PaymentSource, Error>
[src]
pub fn detach_source(
client: &Client,
customer_id: &str,
source_id: &str
) -> Result<PaymentSource, Error>
Detaches a source from a customer
For more details see https://stripe.com/docs/api#detach_source.
Trait Implementations
impl Debug for PaymentSource
[src]
impl Debug for PaymentSource
Auto Trait Implementations
impl Send for PaymentSource
impl Send for PaymentSource
impl Sync for PaymentSource
impl Sync for PaymentSource