stripe-rust 0.12.3

API bindings for the Stripe HTTP API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mod mock;

#[test]
fn is_account_listable() {
    mock::with_client(|client| {
        let result = stripe::Account::list(client, stripe::ListAccounts::new());
        let list = match result {
            Err(err) => panic!("{}", err),
            Ok(ok) => ok,
        };

        // Check to ensure we are deserializing _something_ and this test
        // actually validates something worthwhile.
        assert!(list.data.len() > 0);
    });
}