class Google::Apis::GanV1beta1::Event::Product

Attributes

category_id[RW]

Id of the category this product belongs to. Corresponds to the JSON property `categoryId` @return [String]

category_name[RW]

Name of the category this product belongs to. Corresponds to the JSON property `categoryName` @return [String]

earnings[RW]

An ApiMoneyProto. Corresponds to the JSON property `earnings` @return [Google::Apis::GanV1beta1::Money]

network_fee[RW]

An ApiMoneyProto. Corresponds to the JSON property `networkFee` @return [Google::Apis::GanV1beta1::Money]

publisher_fee[RW]

An ApiMoneyProto. Corresponds to the JSON property `publisherFee` @return [Google::Apis::GanV1beta1::Money]

quantity[RW]

Quantity of this product bought/exchanged. Corresponds to the JSON property `quantity` @return [String]

sku[RW]

Sku of this product. Corresponds to the JSON property `sku` @return [String]

sku_name[RW]

Sku name of this product. Corresponds to the JSON property `skuName` @return [String]

unit_price[RW]

An ApiMoneyProto. Corresponds to the JSON property `unitPrice` @return [Google::Apis::GanV1beta1::Money]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/gan_v1beta1/classes.rb, line 940
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/gan_v1beta1/classes.rb, line 945
def update!(**args)
  @category_id = args[:category_id] if args.key?(:category_id)
  @category_name = args[:category_name] if args.key?(:category_name)
  @earnings = args[:earnings] if args.key?(:earnings)
  @network_fee = args[:network_fee] if args.key?(:network_fee)
  @publisher_fee = args[:publisher_fee] if args.key?(:publisher_fee)
  @quantity = args[:quantity] if args.key?(:quantity)
  @sku = args[:sku] if args.key?(:sku)
  @sku_name = args[:sku_name] if args.key?(:sku_name)
  @unit_price = args[:unit_price] if args.key?(:unit_price)
end