Class: KintsugiSDK::Models::Shared::TransactionEstimateResponseAddresses

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(type:, state:, postal_code:, country:, phone: nil, street_1: nil, street_2: nil, city: nil, county: nil, full_address: nil, status: nil, enriched_fields: nil) ⇒ TransactionEstimateResponseAddresses

Returns a new instance of TransactionEstimateResponseAddresses.



45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/kintsugi_sdk/models/shared/transactionestimateresponse_addresses.rb', line 45

def initialize(type:, state:, postal_code:, country:, phone: nil, street_1: nil, street_2: nil, city: nil, county: nil, full_address: nil, status: nil, enriched_fields: nil)
  @type = type
  @state = state
  @postal_code = postal_code
  @country = country
  @phone = phone
  @street_1 = street_1
  @street_2 = street_2
  @city = city
  @county = county
  @full_address = full_address
  @status = status
  @enriched_fields = enriched_fields
end

Instance Method Details

#==(other) ⇒ Object



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/kintsugi_sdk/models/shared/transactionestimateresponse_addresses.rb', line 61

def ==(other)
  return false unless other.is_a? self.class
  return false unless @type == other.type
  return false unless @state == other.state
  return false unless @postal_code == other.postal_code
  return false unless @country == other.country
  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 @full_address == other.full_address
  return false unless @status == other.status
  return false unless @enriched_fields == other.enriched_fields
  true
end