Sha256: 7bfb2ba11dc58b4ff495c43dd2c3401ecb441f22e67788a089435e03c5d863ff
Contents?: true
Size: 1.44 KB
Versions: 2
Compression:
Stored size: 1.44 KB
Contents
=begin #Conekta API #Conekta sdk The version of the OpenAPI document: 2.1.0 Contact: engineering@conekta.com Generated by: https://openapi-generator.tech Generator version: 7.5.0 =end require 'date' require 'time' module Conekta module UpdateCustomerPaymentMethodsResponse class << self # List of class defined in oneOf (OpenAPI v3) def openapi_one_of [ :'PaymentMethodCardResponse', :'PaymentMethodCashResponse', :'PaymentMethodSpeiRecurrent' ] end # Discriminator's property name (OpenAPI v3) def openapi_discriminator_name :'type' end # Discriminator's mapping (OpenAPI v3) def openapi_discriminator_mapping { :'card' => :'PaymentMethodCardResponse', :'cash' => :'PaymentMethodCashResponse', :'oxxo_recurrent' => :'PaymentMethodCashResponse', :'spei_recurrent' => :'PaymentMethodSpeiRecurrent' } 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 Conekta.const_get(klass).build_from_hash(data) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
conekta-6.0.4 | lib/conekta/models/update_customer_payment_methods_response.rb |
conekta-6.0.3 | lib/conekta/models/update_customer_payment_methods_response.rb |