Method: OpenapiClient::StandInDetails#valid?
- Defined in:
- lib/openapi_client/models/stand_in_details.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 |
# File 'lib/openapi_client/models/stand_in_details.rb', line 164 def valid? return false if @stand_in_type.nil? stand_in_type_validator = EnumAttributeValidator.new('String', ["FIXED_AMOUNT", "MAXIMUM_AMOUNT"]) return false unless stand_in_type_validator.valid?(@stand_in_type) return false if @number_of_debits.nil? return false if @number_of_debits !~ Regexp.new(/(UN)|(ND)|([0-9]{2})/) return false if @si_validated.nil? return false if @maximum_transaction_amount.nil? return false if @si_hub_id.nil? return false if @si_hub_id.to_s.length > 10 return false if @frequency.nil? frequency_validator = EnumAttributeValidator.new('String', ["WEEKLY", "FORTNIGHTLY", "MONTHLY", "QUARTERLY", "HALFYEARLY", "YEARLY", "UNSCHEDULED"]) return false unless frequency_validator.valid?(@frequency) true end |