pub struct Redemption {
pub code: Option<String>,
pub discount_cents: Option<i32>,
pub plan: Option<String>,
pub redeemed_at: Option<i32>,
pub seats: Option<i32>,
}Fields§
§code: Option<String>Code is the promo redeemed.
discount_cents: Option<i32>DiscountCents is the month-one discount this redemption CLAIMS, in USD cents. It is a recorded figure, NOT a balance: nothing was credited and no wallet moved. An admin granting against this claim is what would make it money, and that decision happens on the admin surface, not here.
plan: Option<String>Plan is the tier redeemed against: pro, max or team. It is DERIVED from the org’s live ACTIVE/TRIALING subscription, never read from the request, so it is what the org actually holds rather than what it claimed.
redeemed_at: Option<i32>RedeemedAt is unix seconds.
seats: Option<i32>Seats is the seat count the claim was priced at, and it is ALWAYS 1. No server-side authority on this surface answers "how many seats", and the caller’s own number is exactly the input that once inflated these claims, so a redemption records the single-seat floor and an admin resolves the real count against subscription data at grant time.
Implementations§
Source§impl Redemption
impl Redemption
pub fn new() -> Redemption
Trait Implementations§
Source§impl Clone for Redemption
impl Clone for Redemption
Source§fn clone(&self) -> Redemption
fn clone(&self) -> Redemption
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more