pub struct SubscriptionDetails {
pub base_plan_id: Option<String>,
pub offer_id: Option<String>,
pub offer_phase: Option<String>,
pub offer_phase_details: Option<OfferPhaseDetails>,
pub service_period_end_time: Option<DateTime<Utc>>,
pub service_period_start_time: Option<DateTime<Utc>>,
}Expand description
Details of a subscription purchase.
This type is not used in any activity, and only used as part of another schema.
Fields§
§base_plan_id: Option<String>The base plan ID of the subscription.
offer_id: Option<String>The offer ID for the current subscription offer.
offer_phase: Option<String>The pricing phase for the billing period funded by this order. Deprecated. Use offer_phase_details instead.
offer_phase_details: Option<OfferPhaseDetails>The pricing phase details for the entitlement period funded by this order.
service_period_end_time: Option<DateTime<Utc>>The end of the billing period funded by this order. This is a snapshot of the billing/service period end time at the moment the order was processed, and should be used only for accounting. To get the current end time of the subscription service period, use purchases.subscriptionsv2.get.
service_period_start_time: Option<DateTime<Utc>>The start of the billing period funded by this order. This is a snapshot of the billing/service period start time at the moment the order was processed, and should be used only for accounting.
Trait Implementations§
Source§impl Clone for SubscriptionDetails
impl Clone for SubscriptionDetails
Source§fn clone(&self) -> SubscriptionDetails
fn clone(&self) -> SubscriptionDetails
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more