Method: OpenapiClient::StandInDetails#list_invalid_properties

Defined in:
lib/openapi_client/models/stand_in_details.rb

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?



124
125
126
127
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
157
158
159
160
# File 'lib/openapi_client/models/stand_in_details.rb', line 124

def list_invalid_properties
  invalid_properties = Array.new
  if @stand_in_type.nil?
    invalid_properties.push('invalid value for "stand_in_type", stand_in_type cannot be nil.')
  end

  if @number_of_debits.nil?
    invalid_properties.push('invalid value for "number_of_debits", number_of_debits cannot be nil.')
  end

  pattern = Regexp.new(/(UN)|(ND)|([0-9]{2})/)
  if @number_of_debits !~ pattern
    invalid_properties.push("invalid value for \"number_of_debits\", must conform to the pattern #{pattern}.")
  end

  if @si_validated.nil?
    invalid_properties.push('invalid value for "si_validated", si_validated cannot be nil.')
  end

  if @maximum_transaction_amount.nil?
    invalid_properties.push('invalid value for "maximum_transaction_amount", maximum_transaction_amount cannot be nil.')
  end

  if @si_hub_id.nil?
    invalid_properties.push('invalid value for "si_hub_id", si_hub_id cannot be nil.')
  end

  if @si_hub_id.to_s.length > 10
    invalid_properties.push('invalid value for "si_hub_id", the character length must be smaller than or equal to 10.')
  end

  if @frequency.nil?
    invalid_properties.push('invalid value for "frequency", frequency cannot be nil.')
  end

  invalid_properties
end