Sha256: 00f9ce1293f74cf827149eebf8fcf5cde9f467f90e1e7547416cf53a687d4432

Contents?: true

Size: 889 Bytes

Versions: 6

Compression:

Stored size: 889 Bytes

Contents

# Conekta::CheckoutOrderTemplateCustomerInfo

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

```ruby
require 'conekta'

Conekta::CheckoutOrderTemplateCustomerInfo.openapi_one_of
# =>
# [
#   :'CustomerInfo',
#   :'CustomerInfoJustCustomerId'
# ]
```

### build

Find the appropriate object from the `openapi_one_of` list and casts the data into it.

#### Example

```ruby
require 'conekta'

Conekta::CheckoutOrderTemplateCustomerInfo.build(data)
# => #<CustomerInfo:0x00007fdd4aab02a0>

Conekta::CheckoutOrderTemplateCustomerInfo.build(data_that_doesnt_match)
# => nil
```

#### Parameters

| Name | Type | Description |
| ---- | ---- | ----------- |
| **data** | **Mixed** | data to be matched against the list of oneOf items |

#### Return type

- `CustomerInfo`
- `CustomerInfoJustCustomerId`
- `nil` (if no type matches)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
conekta-6.0.5 docs/CheckoutOrderTemplateCustomerInfo.md
conekta-6.0.4 docs/CheckoutOrderTemplateCustomerInfo.md
conekta-6.0.3 docs/CheckoutOrderTemplateCustomerInfo.md
conekta-6.0.2 docs/CheckoutOrderTemplateCustomerInfo.md
conekta-6.0.1 docs/CheckoutOrderTemplateCustomerInfo.md
conekta-6.0.0 docs/CheckoutOrderTemplateCustomerInfo.md