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.



2401
2402
2403
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2401

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

Instance Attribute Details

#billing_accountString

Reseller Billing account to charge after an offer transaction. Only present for Google Cloud offers. Corresponds to the JSON property billingAccount

Returns:

  • (String)


2379
2380
2381
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2379

def 
  @billing_account
end

#payment_cycleGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1Period

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



2384
2385
2386
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2384

def payment_cycle
  @payment_cycle
end

#payment_planString

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

Returns:

  • (String)


2389
2390
2391
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2389

def payment_plan
  @payment_plan
end

#payment_typeString

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

Returns:

  • (String)


2394
2395
2396
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2394

def payment_type
  @payment_type
end

#trial_periodGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1Period

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



2399
2400
2401
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2399

def trial_period
  @trial_period
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2406
2407
2408
2409
2410
2411
2412
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2406

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