Method: Bitpesa::Recipient#list_invalid_properties
- Defined in:
- lib/bitpesa-sdk/models/recipient.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
# File 'lib/bitpesa-sdk/models/recipient.rb', line 219 def list_invalid_properties invalid_properties = Array.new if @requested_amount.nil? invalid_properties.push('invalid value for "requested_amount", requested_amount cannot be nil.') end if @requested_currency.nil? invalid_properties.push('invalid value for "requested_currency", requested_currency cannot be nil.') end if @payout_method.nil? invalid_properties.push('invalid value for "payout_method", payout_method cannot be nil.') end invalid_properties end |