Struct libstripe::Source
[−]
[src]
pub struct Source { pub id: String, pub object: String, pub amount: i32, pub client_secret: String, pub created: i64, pub currency: Currency, pub flow: SourceFlow, pub livemode: bool, pub metadata: HashMap<String, String>, pub owner: SourceOwner, pub receiver: Option<SourceReceiver>, pub statement_descriptior: Option<String>, pub status: SourceStatus, pub redirect: Option<SourceRedirect>, pub source_type: SourceType, pub usage: SourceUsage, pub bitcoin: Option<SourceBitcoin>, }
Fields
id: String
object: String
amount: i32
client_secret: String
created: i64
currency: Currency
flow: SourceFlow
livemode: bool
metadata: HashMap<String, String>
owner: SourceOwner
receiver: Option<SourceReceiver>
statement_descriptior: Option<String>
status: SourceStatus
redirect: Option<SourceRedirect>
source_type: SourceType
usage: SourceUsage
bitcoin: Option<SourceBitcoin>
Methods
impl Source
[src]
fn create<B: Serialize>(client: &Client, param: B) -> Result<Source, Error>
[src]
fn retrieve<B: Serialize>(
client: &Client,
id: &str,
param: B
) -> Result<Source, Error>
[src]
client: &Client,
id: &str,
param: B
) -> Result<Source, Error>
fn update<B: Serialize>(
client: &Client,
id: &str,
param: B
) -> Result<Source, Error>
[src]
client: &Client,
id: &str,
param: B
) -> Result<Source, Error>