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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
use serde_derive::{Deserialize, Serialize};
use crate::ids::ApplicationFeeRefundId;
use crate::params::{Expandable, Metadata, Object, Timestamp};
use crate::resources::{ApplicationFee, BalanceTransaction, Currency};
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct ApplicationFeeRefund {
pub id: ApplicationFeeRefundId,
pub amount: i64,
#[serde(skip_serializing_if = "Option::is_none")]
pub balance_transaction: Option<Expandable<BalanceTransaction>>,
pub created: Timestamp,
pub currency: Currency,
pub fee: Expandable<ApplicationFee>,
#[serde(default)]
pub metadata: Metadata,
}
impl Object for ApplicationFeeRefund {
type Id = ApplicationFeeRefundId;
fn id(&self) -> Self::Id {
self.id.clone()
}
fn object(&self) -> &'static str {
"fee_refund"
}
}