Sha256: aef8e7b2feee5927e80be3c7009b8bf0bbaaf5f389ac767a77ca4ba3bae57da7

Contents?: true

Size: 897 Bytes

Versions: 1

Compression:

Stored size: 897 Bytes

Contents

# VoucherifySdk::OrderCalculatedReferrer

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

```ruby
require 'VoucherifySdk'

VoucherifySdk::OrderCalculatedReferrer.openapi_one_of
# =>
# [
#   :'ReferrerId',
#   :'ReferrerWithSummaryLoyaltyReferrals'
# ]
```

### build

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

#### Example

```ruby
require 'VoucherifySdk'

VoucherifySdk::OrderCalculatedReferrer.build(data)
# => #<ReferrerId:0x00007fdd4aab02a0>

VoucherifySdk::OrderCalculatedReferrer.build(data_that_doesnt_match)
# => nil
```

#### Parameters

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

#### Return type

- `ReferrerId`
- `ReferrerWithSummaryLoyaltyReferrals`
- `nil` (if no type matches)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voucherify-5.0.0 docs/OrderCalculatedReferrer.md