Sha256: 50da07abd4186b0c19ad2f39152b23c7f5d11bf1ec24cb318ead5c8d422def7e
Contents?: true
Size: 1.91 KB
Versions: 4
Compression:
Stored size: 1.91 KB
Contents
=begin #Synctera API #<h2>Let's build something great.</h2><p>Welcome to the official reference documentation for Synctera APIs. Our APIs are the best way to automate your company's banking needs and are designed to be easy to understand and implement.</p><p>We're continuously growing this library and what you see here is just the start, but if you need something specific or have a question, <a class='text-blue-600' href='https://synctera.com/contact' target='_blank' rel='noreferrer'>contact us</a>.</p> The version of the OpenAPI document: 0.60.0 Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.5.0 =end require 'date' require 'time' module SyncteraRubySdk module CustomerInBody class << self # List of class defined in oneOf (OpenAPI v3) def openapi_one_of [ :'Customer', :'Prospect' ] end # Discriminator's property name (OpenAPI v3) def openapi_discriminator_name :'status' end # Discriminator's mapping (OpenAPI v3) def openapi_discriminator_mapping { :'ACTIVE' => :'Customer', :'DECEASED' => :'Customer', :'DENIED' => :'Customer', :'DORMANT' => :'Customer', :'ESCHEAT' => :'Customer', :'FROZEN' => :'Customer', :'INACTIVE' => :'Customer', :'PROSPECT' => :'Prospect', :'SANCTION' => :'Customer' } end # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself def build(data) discriminator_value = data[openapi_discriminator_name] return nil if discriminator_value.nil? klass = openapi_discriminator_mapping[discriminator_value.to_s.to_sym] return nil unless klass SyncteraRubySdk.const_get(klass).build_from_hash(data) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems