Class: OpenApiSDK::Models::Operations::SaleEvent

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/open_api_sdk/models/operations/saleevent.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(event:, timestamp:, event_id:, event_name:, sale:, link:, click:, customer:, sale_amount:, invoice_id:, payment_processor:, click_id:, link_id:, domain:, key:, url:, continent:, country:, city:, device:, browser:, os:, qr:, ip:, metadata: nil) ⇒ SaleEvent

Returns a new instance of SaleEvent.



99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# File 'lib/open_api_sdk/models/operations/saleevent.rb', line 99

def initialize(event:, timestamp:, event_id:, event_name:, sale:, link:, click:, customer:, sale_amount:, invoice_id:, payment_processor:, click_id:, link_id:, domain:, key:, url:, continent:, country:, city:, device:, browser:, os:, qr:, ip:, metadata: nil)
  @event = event
  @timestamp = timestamp
  @event_id = event_id
  @event_name = event_name
  @sale = sale
  @link = link
  @click = click
  @customer = customer
  @sale_amount = sale_amount
  @invoice_id = invoice_id
  @payment_processor = payment_processor
  @click_id = click_id
  @link_id = link_id
  @domain = domain
  @key = key
  @url = url
  @continent = continent
  @country = country
  @city = city
  @device = device
  @browser = browser
  @os = os
  @qr = qr
  @ip = ip
  @metadata = 
end

Instance Method Details

#==(other) ⇒ Object



128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# File 'lib/open_api_sdk/models/operations/saleevent.rb', line 128

def ==(other)
  return false unless other.is_a? self.class
  return false unless @event == other.event
  return false unless @timestamp == other.timestamp
  return false unless @event_id == other.event_id
  return false unless @event_name == other.event_name
  return false unless @sale == other.sale
  return false unless @link == other.link
  return false unless @click == other.click
  return false unless @customer == other.customer
  return false unless @sale_amount == other.sale_amount
  return false unless @invoice_id == other.invoice_id
  return false unless @payment_processor == other.payment_processor
  return false unless @click_id == other.click_id
  return false unless @link_id == other.link_id
  return false unless @domain == other.domain
  return false unless @key == other.key
  return false unless @url == other.url
  return false unless @continent == other.continent
  return false unless @country == other.country
  return false unless @city == other.city
  return false unless @device == other.device
  return false unless @browser == other.browser
  return false unless @os == other.os
  return false unless @qr == other.qr
  return false unless @ip == other.ip
  return false unless @metadata == other.
  true
end