Module: Conekta::UpdateCustomerPaymentMethodsResponse
- Defined in:
- lib/conekta/models/update_customer_payment_methods_response.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
46 47 48 49 50 51 52 53 54 |
# File 'lib/conekta/models/update_customer_payment_methods_response.rb', line 46 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 |
.openapi_discriminator_mapping ⇒ Object
Discriminator’s mapping (OpenAPI v3)
34 35 36 37 38 39 40 41 |
# File 'lib/conekta/models/update_customer_payment_methods_response.rb', line 34 def openapi_discriminator_mapping { :'card' => :'PaymentMethodCardResponse', :'cash' => :'PaymentMethodCashResponse', :'oxxo_recurrent' => :'PaymentMethodCashResponse', :'spei_recurrent' => :'PaymentMethodSpeiRecurrent' } end |
.openapi_discriminator_name ⇒ Object
Discriminator’s property name (OpenAPI v3)
29 30 31 |
# File 'lib/conekta/models/update_customer_payment_methods_response.rb', line 29 def openapi_discriminator_name :'type' end |
.openapi_one_of ⇒ Object
List of class defined in oneOf (OpenAPI v3)
20 21 22 23 24 25 26 |
# File 'lib/conekta/models/update_customer_payment_methods_response.rb', line 20 def openapi_one_of [ :'PaymentMethodCardResponse', :'PaymentMethodCashResponse', :'PaymentMethodSpeiRecurrent' ] end |