Sha256: 95122713b51e841e7d0fda5a8632f35affbf01c41010275fb634e4bcb2db8563

Contents?: true

Size: 1.77 KB

Versions: 4

Compression:

Stored size: 1.77 KB

Contents

# SyncteraRubySdk::PatchRelationshipIn

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

```ruby
require 'synctera_ruby_sdk'

SyncteraRubySdk::PatchRelationshipIn.openapi_one_of
# =>
# [
#   :'PatchBusinessBusinessOwnerRelationship',
#   :'PatchPayerPayeeRelationship',
#   :'PatchPersonBusinessOwnerRelationship',
#   :'PatchPersonBusinessRelationship'
# ]
```

### `openapi_discriminator_name`

Returns the discriminator's property name.

#### Example

```ruby
require 'synctera_ruby_sdk'

SyncteraRubySdk::PatchRelationshipIn.openapi_discriminator_name
# => :'relationship_type'
```

### `openapi_discriminator_name`

Returns the discriminator's mapping.

#### Example

```ruby
require 'synctera_ruby_sdk'

SyncteraRubySdk::PatchRelationshipIn.openapi_discriminator_mapping
# =>
# {
#   :'BENEFICIAL_OWNER_OF' => :'PatchPersonBusinessOwnerRelationship',
#   :'MANAGING_PERSON_OF' => :'PatchPersonBusinessRelationship',
#   :'OWNER_OF' => :'PatchBusinessBusinessOwnerRelationship',
#   :'PAYER_PAYEE' => :'PatchPayerPayeeRelationship'
# }
```

### build

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

#### Example

```ruby
require 'synctera_ruby_sdk'

SyncteraRubySdk::PatchRelationshipIn.build(data)
# => #<PatchBusinessBusinessOwnerRelationship:0x00007fdd4aab02a0>

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

#### Parameters

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

#### Return type

- `PatchBusinessBusinessOwnerRelationship`
- `PatchPayerPayeeRelationship`
- `PatchPersonBusinessOwnerRelationship`
- `PatchPersonBusinessRelationship`
- `nil` (if no type matches)

Version data entries

4 entries across 4 versions & 1 rubygems

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