Class: Google::Apis::ResellerV1::Subscription::TrialSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/reseller_v1/classes.rb,
generated/google/apis/reseller_v1/representations.rb,
generated/google/apis/reseller_v1/representations.rb

Overview

The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TrialSettings

Returns a new instance of TrialSettings



655
656
657
# File 'generated/google/apis/reseller_v1/classes.rb', line 655

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#is_in_trialBoolean Also known as: is_in_trial?

Determines if a subscription's plan is in a 30-day free trial or not:

  • true — The plan is in trial.
  • false — The plan is not in trial. Corresponds to the JSON property isInTrial

Returns:

  • (Boolean)


646
647
648
# File 'generated/google/apis/reseller_v1/classes.rb', line 646

def is_in_trial
  @is_in_trial
end

#trial_end_timeFixnum

Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter. Corresponds to the JSON property trialEndTime

Returns:

  • (Fixnum)


653
654
655
# File 'generated/google/apis/reseller_v1/classes.rb', line 653

def trial_end_time
  @trial_end_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



660
661
662
663
# File 'generated/google/apis/reseller_v1/classes.rb', line 660

def update!(**args)
  @is_in_trial = args[:is_in_trial] if args.key?(:is_in_trial)
  @trial_end_time = args[:trial_end_time] if args.key?(:trial_end_time)
end