Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ProductPayload

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

Specifies product specific payload.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1ProductPayload

Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1ProductPayload.



495
496
497
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 495

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

Instance Attribute Details

#google_one_payloadGoogle::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload

Payload specific to Google One products. Corresponds to the JSON property googleOnePayload



488
489
490
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 488

def google_one_payload
  @google_one_payload
end

#youtube_payloadGoogle::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload

Payload specific to Youtube products. Corresponds to the JSON property youtubePayload



493
494
495
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 493

def youtube_payload
  @youtube_payload
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



500
501
502
503
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 500

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