pub struct DeletedDiscount {
pub checkout_session: Option<String>,
pub coupon: Coupon,
pub customer: Option<Expandable<Customer>>,
pub id: DiscountId,
pub invoice: Option<String>,
pub invoice_item: Option<String>,
pub promotion_code: Option<Expandable<PromotionCode>>,
pub start: Timestamp,
pub subscription: Option<String>,
pub subscription_item: Option<String>,
/* private fields */
}
Fields§
§checkout_session: Option<String>
The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode.
coupon: Coupon
§customer: Option<Expandable<Customer>>
The ID of the customer associated with this discount.
id: DiscountId
The ID of the discount object.
Discounts cannot be fetched by ID.
Use expand[]=discounts
in API calls to expand discount IDs in an array.
invoice: Option<String>
The invoice that the discount’s coupon was applied to, if it was applied directly to a particular invoice.
invoice_item: Option<String>
The invoice item id
(or invoice line item id
for invoice line items of type=‘subscription’) that the discount’s coupon was applied to, if it was applied directly to a particular invoice item or invoice line item.
promotion_code: Option<Expandable<PromotionCode>>
The promotion code applied to create this discount.
start: Timestamp
Date that the coupon was applied.
subscription: Option<String>
The subscription that this coupon is applied to, if it is applied to a particular subscription.
subscription_item: Option<String>
The subscription item that this coupon is applied to, if it is applied to a particular subscription item.
Trait Implementations§
Source§impl Clone for DeletedDiscount
impl Clone for DeletedDiscount
Source§fn clone(&self) -> DeletedDiscount
fn clone(&self) -> DeletedDiscount
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more