Class: Google::Apis::PaymentsresellersubscriptionV1::CycleOptions

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

Overview

The cycle options when starting and resuming a subscription.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CycleOptions

Returns a new instance of CycleOptions.



166
167
168
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 166

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

Instance Attribute Details

#initial_cycle_durationGoogle::Apis::PaymentsresellersubscriptionV1::Duration

Describes the length of a period of a time. Corresponds to the JSON property initialCycleDuration



164
165
166
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 164

def initial_cycle_duration
  @initial_cycle_duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



171
172
173
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 171

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