1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use params::{Identifiable, List, Timestamp};
use resources::{Currency, Refund};
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct ApplicationFee {
pub id: String,
pub object: String,
pub account: String,
pub amount: u64,
pub amount_refunded: i64,
pub application: String,
pub balance_transaction: String,
pub charge: String,
pub created: Timestamp,
pub currency: Currency,
pub livemode: bool,
pub originating_transaction: Option<String>,
pub refunded: bool,
pub refunds: List<Refund>,
}
impl Identifiable for ApplicationFee {
fn id(&self) -> &str {
&self.id
}
}