Sha256: 4a31f61d04f8883ab4a88faa85b93dbae4b2eb647c0449a7d28ef759051bdf54

Contents?: true

Size: 1.47 KB

Versions: 4

Compression:

Stored size: 1.47 KB

Contents

# SyncteraRubySdk::CustomerInBody

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

```ruby
require 'synctera_ruby_sdk'

SyncteraRubySdk::CustomerInBody.openapi_one_of
# =>
# [
#   :'Customer',
#   :'Prospect'
# ]
```

### `openapi_discriminator_name`

Returns the discriminator's property name.

#### Example

```ruby
require 'synctera_ruby_sdk'

SyncteraRubySdk::CustomerInBody.openapi_discriminator_name
# => :'status'
```

### `openapi_discriminator_name`

Returns the discriminator's mapping.

#### Example

```ruby
require 'synctera_ruby_sdk'

SyncteraRubySdk::CustomerInBody.openapi_discriminator_mapping
# =>
# {
#   :'ACTIVE' => :'Customer',
#   :'DECEASED' => :'Customer',
#   :'DENIED' => :'Customer',
#   :'DORMANT' => :'Customer',
#   :'ESCHEAT' => :'Customer',
#   :'FROZEN' => :'Customer',
#   :'INACTIVE' => :'Customer',
#   :'PROSPECT' => :'Prospect',
#   :'SANCTION' => :'Customer'
# }
```

### build

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

#### Example

```ruby
require 'synctera_ruby_sdk'

SyncteraRubySdk::CustomerInBody.build(data)
# => #<Customer:0x00007fdd4aab02a0>

SyncteraRubySdk::CustomerInBody.build(data_that_doesnt_match)
# => nil
```

#### Parameters

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

#### Return type

- `Customer`
- `Prospect`
- `nil` (if no type matches)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
synctera_ruby_sdk-1.1.3 docs/CustomerInBody.md
synctera_ruby_sdk-1.1.2 docs/CustomerInBody.md
synctera_ruby_sdk-1.1.1 docs/CustomerInBody.md
synctera_ruby_sdk-1.0.0 docs/CustomerInBody.md