Class: KintsugiSDK::Models::Shared::CustomerBase

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/kintsugi_sdk/models/shared/customerbase.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(phone: nil, street_1: nil, street_2: nil, city: nil, county: nil, state: nil, postal_code: nil, country: nil, full_address: nil, name: nil, external_id: nil, status: nil, email: nil, address_status: nil, source: nil, registration_number: nil, connection_id: nil) ⇒ CustomerBase

Returns a new instance of CustomerBase.



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/kintsugi_sdk/models/shared/customerbase.rb', line 52

def initialize(phone: nil, street_1: nil, street_2: nil, city: nil, county: nil, state: nil, postal_code: nil, country: nil, full_address: nil, name: nil, external_id: nil, status: nil, email: nil, address_status: nil, source: nil, registration_number: nil, connection_id: nil)
  @phone = phone
  @street_1 = street_1
  @street_2 = street_2
  @city = city
  @county = county
  @state = state
  @postal_code = postal_code
  @country = country
  @full_address = full_address
  @name = name
  @external_id = external_id
  @status = status
  @email = email
  @address_status = address_status
  @source = source
  @registration_number = registration_number
  @connection_id = connection_id
end

Instance Method Details

#==(other) ⇒ Object



73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# File 'lib/kintsugi_sdk/models/shared/customerbase.rb', line 73

def ==(other)
  return false unless other.is_a? self.class
  return false unless @phone == other.phone
  return false unless @street_1 == other.street_1
  return false unless @street_2 == other.street_2
  return false unless @city == other.city
  return false unless @county == other.county
  return false unless @state == other.state
  return false unless @postal_code == other.postal_code
  return false unless @country == other.country
  return false unless @full_address == other.full_address
  return false unless @name == other.name
  return false unless @external_id == other.external_id
  return false unless @status == other.status
  return false unless @email == other.email
  return false unless @address_status == other.address_status
  return false unless @source == other.source
  return false unless @registration_number == other.registration_number
  return false unless @connection_id == other.connection_id
  true
end