Sha256: 6414680d8beddbfde31647d806ad6d2403147f6060ac7b25fa8197ef2e4f3cac
Contents?: true
Size: 991 Bytes
Versions: 4
Compression:
Stored size: 991 Bytes
Contents
# Conekta::CreateCustomerPaymentMethodsRequest ## Class instance methods ### `openapi_one_of` Returns the list of classes defined in oneOf. #### Example ```ruby require 'conekta' Conekta::CreateCustomerPaymentMethodsRequest.openapi_one_of # => # [ # :'PaymentMethodCardRequest', # :'PaymentMethodCashRequest', # :'PaymentMethodSpeiRequest' # ] ``` ### build Find the appropriate object from the `openapi_one_of` list and casts the data into it. #### Example ```ruby require 'conekta' Conekta::CreateCustomerPaymentMethodsRequest.build(data) # => #<PaymentMethodCardRequest:0x00007fdd4aab02a0> Conekta::CreateCustomerPaymentMethodsRequest.build(data_that_doesnt_match) # => nil ``` #### Parameters | Name | Type | Description | | ---- | ---- | ----------- | | **data** | **Mixed** | data to be matched against the list of oneOf items | #### Return type - `PaymentMethodCardRequest` - `PaymentMethodCashRequest` - `PaymentMethodSpeiRequest` - `nil` (if no type matches)
Version data entries
4 entries across 4 versions & 1 rubygems