Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Plan

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

Overview

The payment plan for the Offer. Describes how to make a payment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1Plan

Returns a new instance of GoogleCloudChannelV1Plan.



1589
1590
1591
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1589

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

Instance Attribute Details

#payment_cycleGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1Period

Represents period in days/months/years. Corresponds to the JSON property paymentCycle



1572
1573
1574
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1572

def payment_cycle
  @payment_cycle
end

#payment_planString

Describes how a reseller will be billed. Corresponds to the JSON property paymentPlan

Returns:

  • (String)


1577
1578
1579
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1577

def payment_plan
  @payment_plan
end

#payment_typeString

Specifies when the payment needs to happen. Corresponds to the JSON property paymentType

Returns:

  • (String)


1582
1583
1584
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1582

def payment_type
  @payment_type
end

#trial_periodGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1Period

Represents period in days/months/years. Corresponds to the JSON property trialPeriod



1587
1588
1589
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1587

def trial_period
  @trial_period
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1594
1595
1596
1597
1598
1599
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1594

def update!(**args)
  @payment_cycle = args[:payment_cycle] if args.key?(:payment_cycle)
  @payment_plan = args[:payment_plan] if args.key?(:payment_plan)
  @payment_type = args[:payment_type] if args.key?(:payment_type)
  @trial_period = args[:trial_period] if args.key?(:trial_period)
end