Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Plan
- Inherits:
-
Object
- Object
- Google::Apis::CloudchannelV1::GoogleCloudChannelV1Plan
- 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
-
#billing_account ⇒ String
Reseller Billing account to charge after an offer transaction.
-
#payment_cycle ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1Period
Represents period in days/months/years.
-
#payment_plan ⇒ String
Describes how a reseller will be billed.
-
#payment_type ⇒ String
Specifies when the payment needs to happen.
-
#trial_period ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1Period
Represents period in days/months/years.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudChannelV1Plan
constructor
A new instance of GoogleCloudChannelV1Plan.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudChannelV1Plan
Returns a new instance of GoogleCloudChannelV1Plan.
2246 2247 2248 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2246 def initialize(**args) update!(**args) end |
Instance Attribute Details
#billing_account ⇒ String
Reseller Billing account to charge after an offer transaction. Only present
for Google Cloud offers.
Corresponds to the JSON property billingAccount
2224 2225 2226 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2224 def billing_account @billing_account end |
#payment_cycle ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1Period
Represents period in days/months/years.
Corresponds to the JSON property paymentCycle
2229 2230 2231 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2229 def payment_cycle @payment_cycle end |
#payment_plan ⇒ String
Describes how a reseller will be billed.
Corresponds to the JSON property paymentPlan
2234 2235 2236 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2234 def payment_plan @payment_plan end |
#payment_type ⇒ String
Specifies when the payment needs to happen.
Corresponds to the JSON property paymentType
2239 2240 2241 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2239 def payment_type @payment_type end |
#trial_period ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1Period
Represents period in days/months/years.
Corresponds to the JSON property trialPeriod
2244 2245 2246 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2244 def trial_period @trial_period end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2251 2252 2253 2254 2255 2256 2257 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2251 def update!(**args) @billing_account = args[:billing_account] if args.key?(:billing_account) @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 |