stripe-rust 0.9.1

API bindings for the Stripe v1 HTTP API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::params::Timestamp;
use crate::resources::Coupon;
use serde_derive::{Deserialize, Serialize};

/// 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>,
}