Class: Google::Apis::GanV1beta1::Event
- Inherits:
-
Object
- Object
- Google::Apis::GanV1beta1::Event
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/gan_v1beta1/classes.rb,
generated/google/apis/gan_v1beta1/representations.rb,
generated/google/apis/gan_v1beta1/representations.rb
Overview
An EventResource.
Defined Under Namespace
Classes: Product
Instance Attribute Summary collapse
-
#advertiser_id ⇒ String
The ID of advertiser for this event.
-
#advertiser_name ⇒ String
The name of the advertiser for this event.
-
#charge_id ⇒ String
The charge ID for this event.
-
#charge_type ⇒ String
Charge type of the event (other|slotting_fee|monthly_minimum|tier_bonus|debit| credit).
-
#commissionable_sales ⇒ Google::Apis::GanV1beta1::Money
An ApiMoneyProto.
-
#earnings ⇒ Google::Apis::GanV1beta1::Money
An ApiMoneyProto.
-
#event_date ⇒ DateTime
The date-time this event was initiated as a RFC 3339 date-time value.
-
#kind ⇒ String
The kind for one event.
-
#member_id ⇒ String
The ID of the member attached to this event.
-
#modify_date ⇒ DateTime
The date-time this event was last modified as a RFC 3339 date-time value.
-
#network_fee ⇒ Google::Apis::GanV1beta1::Money
An ApiMoneyProto.
-
#order_id ⇒ String
The order ID for this event.
-
#products ⇒ Array<Google::Apis::GanV1beta1::Event::Product>
Products associated with the event.
-
#publisher_fee ⇒ Google::Apis::GanV1beta1::Money
An ApiMoneyProto.
-
#publisher_id ⇒ String
The ID of the publisher for this event.
-
#publisher_name ⇒ String
The name of the publisher for this event.
-
#status ⇒ String
Status of the event (active|canceled).
-
#type ⇒ String
Type of the event (action|transaction|charge).
Instance Method Summary collapse
-
#initialize(**args) ⇒ Event
constructor
A new instance of Event.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Event
Returns a new instance of Event
865 866 867 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 865 def initialize(**args) update!(**args) end |
Instance Attribute Details
#advertiser_id ⇒ String
The ID of advertiser for this event.
Corresponds to the JSON property advertiserId
775 776 777 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 775 def advertiser_id @advertiser_id end |
#advertiser_name ⇒ String
The name of the advertiser for this event.
Corresponds to the JSON property advertiserName
780 781 782 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 780 def advertiser_name @advertiser_name end |
#charge_id ⇒ String
The charge ID for this event. Only returned for charge events.
Corresponds to the JSON property chargeId
785 786 787 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 785 def charge_id @charge_id end |
#charge_type ⇒ 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
791 792 793 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 791 def charge_type @charge_type end |
#commissionable_sales ⇒ Google::Apis::GanV1beta1::Money
An ApiMoneyProto.
Corresponds to the JSON property commissionableSales
796 797 798 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 796 def commissionable_sales @commissionable_sales end |
#earnings ⇒ Google::Apis::GanV1beta1::Money
An ApiMoneyProto.
Corresponds to the JSON property earnings
801 802 803 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 801 def earnings @earnings end |
#event_date ⇒ DateTime
The date-time this event was initiated as a RFC 3339 date-time value.
Corresponds to the JSON property eventDate
806 807 808 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 806 def event_date @event_date end |
#kind ⇒ String
The kind for one event.
Corresponds to the JSON property kind
811 812 813 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 811 def kind @kind end |
#member_id ⇒ String
The ID of the member attached to this event. Only returned for conversion
events.
Corresponds to the JSON property memberId
817 818 819 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 817 def member_id @member_id end |
#modify_date ⇒ DateTime
The date-time this event was last modified as a RFC 3339 date-time value.
Corresponds to the JSON property modifyDate
822 823 824 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 822 def modify_date @modify_date end |
#network_fee ⇒ Google::Apis::GanV1beta1::Money
An ApiMoneyProto.
Corresponds to the JSON property networkFee
827 828 829 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 827 def network_fee @network_fee end |
#order_id ⇒ String
The order ID for this event. Only returned for conversion events.
Corresponds to the JSON property orderId
832 833 834 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 832 def order_id @order_id end |
#products ⇒ Array<Google::Apis::GanV1beta1::Event::Product>
Products associated with the event.
Corresponds to the JSON property products
837 838 839 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 837 def products @products end |
#publisher_fee ⇒ Google::Apis::GanV1beta1::Money
An ApiMoneyProto.
Corresponds to the JSON property publisherFee
842 843 844 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 842 def publisher_fee @publisher_fee end |
#publisher_id ⇒ String
The ID of the publisher for this event.
Corresponds to the JSON property publisherId
847 848 849 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 847 def publisher_id @publisher_id end |
#publisher_name ⇒ String
The name of the publisher for this event.
Corresponds to the JSON property publisherName
852 853 854 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 852 def publisher_name @publisher_name end |
#status ⇒ String
Status of the event (active|canceled). Only returned for charge and conversion
events.
Corresponds to the JSON property status
858 859 860 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 858 def status @status end |
#type ⇒ String
Type of the event (action|transaction|charge).
Corresponds to the JSON property type
863 864 865 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 863 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 |
# 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 |