Class: Google::Apis::GanV1beta1::Event

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_idString

The ID of advertiser for this event. Corresponds to the JSON property advertiserId

Returns:

  • (String)

775
776
777
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 775

def advertiser_id
  @advertiser_id
end

#advertiser_nameString

The name of the advertiser for this event. Corresponds to the JSON property advertiserName

Returns:

  • (String)

780
781
782
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 780

def advertiser_name
  @advertiser_name
end

#charge_idString

The charge ID for this event. Only returned for charge events. Corresponds to the JSON property chargeId

Returns:

  • (String)

785
786
787
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 785

def charge_id
  @charge_id
end

#charge_typeString

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

Returns:

  • (String)

791
792
793
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 791

def charge_type
  @charge_type
end

#commissionable_salesGoogle::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

#earningsGoogle::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_dateDateTime

The date-time this event was initiated as a RFC 3339 date-time value. Corresponds to the JSON property eventDate

Returns:

  • (DateTime)

806
807
808
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 806

def event_date
  @event_date
end

#kindString

The kind for one event. Corresponds to the JSON property kind

Returns:

  • (String)

811
812
813
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 811

def kind
  @kind
end

#member_idString

The ID of the member attached to this event. Only returned for conversion events. Corresponds to the JSON property memberId

Returns:

  • (String)

817
818
819
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 817

def member_id
  @member_id
end

#modify_dateDateTime

The date-time this event was last modified as a RFC 3339 date-time value. Corresponds to the JSON property modifyDate

Returns:

  • (DateTime)

822
823
824
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 822

def modify_date
  @modify_date
end

#network_feeGoogle::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_idString

The order ID for this event. Only returned for conversion events. Corresponds to the JSON property orderId

Returns:

  • (String)

832
833
834
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 832

def order_id
  @order_id
end

#productsArray<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_feeGoogle::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_idString

The ID of the publisher for this event. Corresponds to the JSON property publisherId

Returns:

  • (String)

847
848
849
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 847

def publisher_id
  @publisher_id
end

#publisher_nameString

The name of the publisher for this event. Corresponds to the JSON property publisherName

Returns:

  • (String)

852
853
854
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 852

def publisher_name
  @publisher_name
end

#statusString

Status of the event (active|canceled). Only returned for charge and conversion events. Corresponds to the JSON property status

Returns:

  • (String)

858
859
860
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 858

def status
  @status
end

#typeString

Type of the event (action|transaction|charge). Corresponds to the JSON property type

Returns:

  • (String)

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