Method: OpenapiClient::SubMerchantSplit#list_invalid_properties
- Defined in:
- lib/openapi_client/models/sub_merchant_split.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/openapi_client/models/sub_merchant_split.rb', line 66 def list_invalid_properties invalid_properties = Array.new if @merchant_id.nil? invalid_properties.push('invalid value for "merchant_id", merchant_id cannot be nil.') end if @merchant_id.to_s.length > 15 invalid_properties.push('invalid value for "merchant_id", the character length must be smaller than or equal to 15.') end pattern = Regexp.new(/[0-9]{1,15}/) if @merchant_id !~ pattern invalid_properties.push("invalid value for \"merchant_id\", must conform to the pattern #{pattern}.") end if @amount.nil? invalid_properties.push('invalid value for "amount", amount cannot be nil.') end invalid_properties end |