class Google::Apis::GanV1beta1::Event
An EventResource.
Attributes
The ID of advertiser for this event. Corresponds to the JSON property `advertiserId` @return [String]
The name of the advertiser for this event. Corresponds to the JSON property `advertiserName` @return [String]
The charge ID for this event. Only returned for charge events. Corresponds to the JSON property `chargeId` @return [String]
Charge type of the event (other|slotting_fee|monthly_minimum|tier_bonus|debit| credit). Only returned for charge events. Corresponds to the JSON property `chargeType` @return [String]
An ApiMoneyProto. Corresponds to the JSON property `commissionableSales` @return [Google::Apis::GanV1beta1::Money]
An ApiMoneyProto. Corresponds to the JSON property `earnings` @return [Google::Apis::GanV1beta1::Money]
The date-time this event was initiated as a RFC 3339 date-time value. Corresponds to the JSON property `eventDate` @return [DateTime]
The kind for one event. Corresponds to the JSON property `kind` @return [String]
The ID of the member attached to this event. Only returned for conversion events. Corresponds to the JSON property `memberId` @return [String]
The date-time this event was last modified as a RFC 3339 date-time value. Corresponds to the JSON property `modifyDate` @return [DateTime]
An ApiMoneyProto. Corresponds to the JSON property `networkFee` @return [Google::Apis::GanV1beta1::Money]
The order ID for this event. Only returned for conversion events. Corresponds to the JSON property `orderId` @return [String]
Products associated with the event. Corresponds to the JSON property `products` @return [Array<Google::Apis::GanV1beta1::Event::Product>]
An ApiMoneyProto. Corresponds to the JSON property `publisherFee` @return [Google::Apis::GanV1beta1::Money]
The ID of the publisher for this event. Corresponds to the JSON property `publisherId` @return [String]
The name of the publisher for this event. Corresponds to the JSON property `publisherName` @return [String]
Status of the event (active|canceled). Only returned for charge and conversion events. Corresponds to the JSON property `status` @return [String]
Type of the event (action|transaction|charge). Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File generated/google/apis/gan_v1beta1/classes.rb, line 865 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/gan_v1beta1/classes.rb, line 870 def update!(**args) @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name) @charge_id = args[:charge_id] if args.key?(:charge_id) @charge_type = args[:charge_type] if args.key?(:charge_type) @commissionable_sales = args[:commissionable_sales] if args.key?(:commissionable_sales) @earnings = args[:earnings] if args.key?(:earnings) @event_date = args[:event_date] if args.key?(:event_date) @kind = args[:kind] if args.key?(:kind) @member_id = args[:member_id] if args.key?(:member_id) @modify_date = args[:modify_date] if args.key?(:modify_date) @network_fee = args[:network_fee] if args.key?(:network_fee) @order_id = args[:order_id] if args.key?(:order_id) @products = args[:products] if args.key?(:products) @publisher_fee = args[:publisher_fee] if args.key?(:publisher_fee) @publisher_id = args[:publisher_id] if args.key?(:publisher_id) @publisher_name = args[:publisher_name] if args.key?(:publisher_name) @status = args[:status] if args.key?(:status) @type = args[:type] if args.key?(:type) end