class Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1RenewalSettings

Renewal settings for renewable Offers.

Attributes

disable_commitment[RW]

If true, disables commitment-based offer on renewal and switches to flexible or pay as you go. Deprecated: Use `payment_plan` instead. Corresponds to the JSON property `disableCommitment` @return [Boolean]

disable_commitment?[RW]

If true, disables commitment-based offer on renewal and switches to flexible or pay as you go. Deprecated: Use `payment_plan` instead. Corresponds to the JSON property `disableCommitment` @return [Boolean]

enable_renewal[RW]

If false, the plan will be completed at the end date. Corresponds to the JSON property `enableRenewal` @return [Boolean]

enable_renewal?[RW]

If false, the plan will be completed at the end date. Corresponds to the JSON property `enableRenewal` @return [Boolean]

payment_cycle[RW]

Represents period in days/months/years. Corresponds to the JSON property `paymentCycle` @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1Period]

payment_option[RW]

Set if enable_renewal=true. Deprecated: Use `payment_cycle` instead. Corresponds to the JSON property `paymentOption` @return [String]

payment_plan[RW]

Describes how a reseller will be billed. Corresponds to the JSON property `paymentPlan` @return [String]

resize_unit_count[RW]

If true and enable_renewal = true, the unit (for example seats or licenses) will be set to the number of active units at renewal time. Corresponds to the JSON property `resizeUnitCount` @return [Boolean]

resize_unit_count?[RW]

If true and enable_renewal = true, the unit (for example seats or licenses) will be set to the number of active units at renewal time. Corresponds to the JSON property `resizeUnitCount` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudchannel_v1/classes.rb, line 2841
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudchannel_v1/classes.rb, line 2846
def update!(**args)
  @disable_commitment = args[:disable_commitment] if args.key?(:disable_commitment)
  @enable_renewal = args[:enable_renewal] if args.key?(:enable_renewal)
  @payment_cycle = args[:payment_cycle] if args.key?(:payment_cycle)
  @payment_option = args[:payment_option] if args.key?(:payment_option)
  @payment_plan = args[:payment_plan] if args.key?(:payment_plan)
  @resize_unit_count = args[:resize_unit_count] if args.key?(:resize_unit_count)
end