Class: Moov::Models::Errors::CreateAccountError

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/errors/createaccounterror.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(account_type: nil, profile: nil, metadata: nil, terms_of_service: nil, foreign_id: nil, customer_support: nil, settings: nil, capabilities: nil, raw_response: nil) ⇒ CreateAccountError

Returns a new instance of CreateAccountError.



36
37
38
39
40
41
42
43
44
45
46
# File 'lib/moov/models/errors/createaccounterror.rb', line 36

def initialize(account_type: nil, profile: nil, metadata: nil, terms_of_service: nil, foreign_id: nil, customer_support: nil, settings: nil, capabilities: nil, raw_response: nil)
  @account_type = 
  @profile = profile
   = 
  @terms_of_service = terms_of_service
  @foreign_id = foreign_id
  @customer_support = customer_support
  @settings = settings
  @capabilities = capabilities
  @raw_response = raw_response
end

Instance Method Details

#==(other) ⇒ Object



49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/moov/models/errors/createaccounterror.rb', line 49

def ==(other)
  return false unless other.is_a? self.class
  return false unless @account_type == other.
  return false unless @profile == other.profile
  return false unless  == other.
  return false unless @terms_of_service == other.terms_of_service
  return false unless @foreign_id == other.foreign_id
  return false unless @customer_support == other.customer_support
  return false unless @settings == other.settings
  return false unless @capabilities == other.capabilities
  return false unless @raw_response == other.raw_response
  true
end