Method: OpenapiClient::ChinaDomesticPaymentMethod#valid?
- Defined in:
- lib/openapi_client/models/china_domestic_payment_method.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
109 110 111 112 113 114 115 |
# File 'lib/openapi_client/models/china_domestic_payment_method.rb', line 109 def valid? return false if @china_domestic.nil? return false if @brand.nil? brand_validator = EnumAttributeValidator.new('String', ["ALIPAY_DOMESTIC", "CUP_DOMESTIC", "WECHAT_DOMESTIC"]) return false unless brand_validator.valid?(@brand) true end |