Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload

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

Payload specific to Google One products.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload

Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload.



419
420
421
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 419

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

Instance Attribute Details

#campaignsArray<String>

Campaign attributed to sales of this subscription. Corresponds to the JSON property campaigns

Returns:

  • (Array<String>)


402
403
404
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 402

def campaigns
  @campaigns
end

#offeringString

The type of offering the subscription was sold by the partner. e.g. VAS. Corresponds to the JSON property offering

Returns:

  • (String)


407
408
409
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 407

def offering
  @offering
end

#sales_channelString

The type of sales channel through which the subscription was sold. Corresponds to the JSON property salesChannel

Returns:

  • (String)


412
413
414
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 412

def sales_channel
  @sales_channel
end

#store_idString

The identifier for the partner store where the subscription was sold. Corresponds to the JSON property storeId

Returns:

  • (String)


417
418
419
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 417

def store_id
  @store_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



424
425
426
427
428
429
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 424

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