Struct google_reseller1_sandbox::api::Subscription
source · pub struct Subscription {Show 17 fields
pub billing_method: Option<String>,
pub creation_time: Option<i64>,
pub customer_domain: Option<String>,
pub customer_id: Option<String>,
pub deal_code: Option<String>,
pub kind: Option<String>,
pub plan: Option<SubscriptionPlan>,
pub purchase_order_id: Option<String>,
pub renewal_settings: Option<RenewalSettings>,
pub resource_ui_url: Option<String>,
pub seats: Option<Seats>,
pub sku_id: Option<String>,
pub status: Option<String>,
pub subscription_id: Option<String>,
pub suspension_reasons: Option<Vec<String>>,
pub transfer_info: Option<SubscriptionTransferInfo>,
pub trial_settings: Option<SubscriptionTrialSettings>,
}
Expand description
JSON template for a subscription.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- activate subscriptions (response)
- change plan subscriptions (response)
- change renewal settings subscriptions (response)
- change seats subscriptions (response)
- delete subscriptions (none)
- get subscriptions (response)
- insert subscriptions (request|response)
- list subscriptions (none)
- start paid service subscriptions (response)
- suspend subscriptions (response)
Fields§
§billing_method: Option<String>
Billing method of this subscription.
creation_time: Option<i64>
Creation time of this subscription in milliseconds since Unix epoch.
customer_domain: Option<String>
Primary domain name of the customer
customer_id: Option<String>
The id of the customer to whom the subscription belongs.
deal_code: Option<String>
External name of the deal, if this subscription was provisioned under one. Otherwise this field will be empty.
kind: Option<String>
Identifies the resource as a Subscription.
plan: Option<SubscriptionPlan>
Plan details of the subscription
purchase_order_id: Option<String>
Purchase order id for your order tracking purposes.
renewal_settings: Option<RenewalSettings>
Renewal settings of the subscription.
resource_ui_url: Option<String>
Ui url for subscription resource.
seats: Option<Seats>
Number/Limit of seats in the new plan.
sku_id: Option<String>
Name of the sku for which this subscription is purchased.
status: Option<String>
Status of the subscription.
subscription_id: Option<String>
The id of the subscription.
suspension_reasons: Option<Vec<String>>
Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription’s STATUS is SUSPENDED until all pending suspensions are removed. Possible options include:
- PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the Google Apps Resold Terms of Services.
- RENEWAL_WITH_TYPE_CANCEL - The customer’s commitment ended and their service was cancelled at the end of their term.
- RESELLER_INITIATED - A manual suspension invoked by a Reseller.
- TRIAL_ENDED - The customer’s trial expired without a plan selected.
- OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
transfer_info: Option<SubscriptionTransferInfo>
Transfer related information for the subscription.
trial_settings: Option<SubscriptionTrialSettings>
Trial Settings of the subscription.
Trait Implementations§
source§impl Clone for Subscription
impl Clone for Subscription
source§fn clone(&self) -> Subscription
fn clone(&self) -> Subscription
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more