Class: OpenApiSDK::Models::Operations::TrackSaleRequestBody

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(customer_external_id:, amount:, currency: 'usd', event_name: 'Purchase', payment_processor: Models::Operations::PaymentProcessor::CUSTOM, metadata: nil, click_id: nil, invoice_id: nil, lead_event_name: nil, customer_name: nil, customer_email: nil, customer_avatar: nil) ⇒ TrackSaleRequestBody

Returns a new instance of TrackSaleRequestBody.



41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/open_api_sdk/models/operations/tracksale_requestbody.rb', line 41

def initialize(customer_external_id:, amount:, currency: 'usd', event_name: 'Purchase', payment_processor: Models::Operations::PaymentProcessor::CUSTOM, metadata: nil, click_id: nil, invoice_id: nil, lead_event_name: nil, customer_name: nil, customer_email: nil, customer_avatar: nil)
  @customer_external_id = customer_external_id
  @amount = amount
  @currency = currency
  @event_name = event_name
  @payment_processor = payment_processor
  @metadata = 
  @click_id = click_id
  @invoice_id = invoice_id
  @lead_event_name = lead_event_name
  @customer_name = customer_name
  @customer_email = customer_email
  @customer_avatar = customer_avatar
end

Instance Method Details

#==(other) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/open_api_sdk/models/operations/tracksale_requestbody.rb', line 57

def ==(other)
  return false unless other.is_a? self.class
  return false unless @customer_external_id == other.customer_external_id
  return false unless @amount == other.amount
  return false unless @currency == other.currency
  return false unless @event_name == other.event_name
  return false unless @payment_processor == other.payment_processor
  return false unless @metadata == other.
  return false unless @click_id == other.click_id
  return false unless @invoice_id == other.invoice_id
  return false unless @lead_event_name == other.lead_event_name
  return false unless @customer_name == other.customer_name
  return false unless @customer_email == other.customer_email
  return false unless @customer_avatar == other.customer_avatar
  true
end