Module: DigitalFemsa::CustomerPaymentMethodsData
- Defined in:
- lib/digital_femsa/models/customer_payment_methods_data.rb
Class Method Summary collapse
-
.build(data) ⇒ Object
Builds the object.
-
.openapi_discriminator_mapping ⇒ Object
Discriminator’s mapping (OpenAPI v3).
-
.openapi_discriminator_name ⇒ Object
Discriminator’s property name (OpenAPI v3).
-
.openapi_one_of ⇒ Object
List of class defined in oneOf (OpenAPI v3).
Class Method Details
.build(data) ⇒ Object
Builds the object
42 43 44 45 46 47 48 49 50 |
# File 'lib/digital_femsa/models/customer_payment_methods_data.rb', line 42 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 DigitalFemsa.const_get(klass).build_from_hash(data) end |
.openapi_discriminator_mapping ⇒ Object
Discriminator’s mapping (OpenAPI v3)
32 33 34 35 36 37 |
# File 'lib/digital_femsa/models/customer_payment_methods_data.rb', line 32 def openapi_discriminator_mapping { :'cash' => :'PaymentMethodCashResponse', :'oxxo_recurrent' => :'PaymentMethodCashResponse' } end |
.openapi_discriminator_name ⇒ Object
Discriminator’s property name (OpenAPI v3)
27 28 29 |
# File 'lib/digital_femsa/models/customer_payment_methods_data.rb', line 27 def openapi_discriminator_name :'type' end |
.openapi_one_of ⇒ Object
List of class defined in oneOf (OpenAPI v3)
20 21 22 23 24 |
# File 'lib/digital_femsa/models/customer_payment_methods_data.rb', line 20 def openapi_one_of [ :'PaymentMethodCashResponse' ] end |