1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
use params::Timestamp;
use resources::Coupon;

/// The resource representing a Stripe discount.
///
/// For more details see https://stripe.com/docs/api#discounts.
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct Discount {
    pub coupon: Coupon,
    pub customer: String,
    pub subscription: Option<String>,

    pub start: Timestamp,
    pub end: Option<Timestamp>,
}