class Google::Apis::GanV1beta1::Event::Product
Attributes
Id of the category this product belongs to. Corresponds to the JSON property `categoryId` @return [String]
Name of the category this product belongs to. Corresponds to the JSON property `categoryName` @return [String]
An ApiMoneyProto. Corresponds to the JSON property `earnings` @return [Google::Apis::GanV1beta1::Money]
An ApiMoneyProto. Corresponds to the JSON property `networkFee` @return [Google::Apis::GanV1beta1::Money]
An ApiMoneyProto. Corresponds to the JSON property `publisherFee` @return [Google::Apis::GanV1beta1::Money]
Quantity of this product bought/exchanged. Corresponds to the JSON property `quantity` @return [String]
Sku of this product. Corresponds to the JSON property `sku` @return [String]
Sku name of this product. Corresponds to the JSON property `skuName` @return [String]
An ApiMoneyProto. Corresponds to the JSON property `unitPrice` @return [Google::Apis::GanV1beta1::Money]
Public Class Methods
# File generated/google/apis/gan_v1beta1/classes.rb, line 940 def initialize(**args) update!(**args) end
Public Instance Methods
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