Method: TransferZero::AccountValidationRequest#valid?
- Defined in:
- lib/transferzero-sdk/models/account_validation_request.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
142 143 144 145 146 147 148 149 150 151 152 153 |
# File 'lib/transferzero-sdk/models/account_validation_request.rb', line 142 def valid? return false if @country.nil? country_validator = EnumAttributeValidator.new('String', ["NG", "GH"]) return false unless country_validator.valid?(@country) return false if @currency.nil? currency_validator = EnumAttributeValidator.new('String', ["NGN", "GHS"]) return false unless currency_validator.valid?(@currency) return false if @method.nil? method_validator = EnumAttributeValidator.new('String', ["bank", "mobile"]) return false unless method_validator.valid?(@method) true end |