Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleOnePayload
- Inherits:
-
Object
- Object
- Google::Apis::PaymentsresellersubscriptionV1::GoogleOnePayload
- 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
Payload specific to Google One products.
Instance Attribute Summary collapse
-
#campaigns ⇒ Array<String>
Campaign attributed to sales of this subscription.
-
#offering ⇒ String
The type of offering the subscription was sold by the partner.
-
#sales_channel ⇒ String
The type of sales channel through which the subscription was sold.
-
#store_id ⇒ String
The identifier for the partner store where the subscription was sold.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleOnePayload
constructor
A new instance of GoogleOnePayload.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleOnePayload
Returns a new instance of GoogleOnePayload.
590 591 592 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 590 def initialize(**args) update!(**args) end |
Instance Attribute Details
#campaigns ⇒ Array<String>
Campaign attributed to sales of this subscription.
Corresponds to the JSON property campaigns
573 574 575 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 573 def campaigns @campaigns end |
#offering ⇒ String
The type of offering the subscription was sold by the partner. e.g. VAS.
Corresponds to the JSON property offering
578 579 580 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 578 def offering @offering end |
#sales_channel ⇒ String
The type of sales channel through which the subscription was sold.
Corresponds to the JSON property salesChannel
583 584 585 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 583 def sales_channel @sales_channel end |
#store_id ⇒ String
The identifier for the partner store where the subscription was sold.
Corresponds to the JSON property storeId
588 589 590 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 588 def store_id @store_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
595 596 597 598 599 600 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 595 def update!(**args) @campaigns = args[:campaigns] if args.key?(:campaigns) @offering = args[:offering] if args.key?(:offering) @sales_channel = args[:sales_channel] if args.key?(:sales_channel) @store_id = args[:store_id] if args.key?(:store_id) end |