Sha256: 250f955ccd0f85c4c86cf5ed9bd7f2ca8d687a28f1ae87298b598cc279e20af4

Contents?: true

Size: 897 Bytes

Versions: 1

Compression:

Stored size: 897 Bytes

Contents

# VoucherifySdk::OrderCalculatedCustomer

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

```ruby
require 'VoucherifySdk'

VoucherifySdk::OrderCalculatedCustomer.openapi_one_of
# =>
# [
#   :'CustomerId',
#   :'CustomerWithSummaryLoyaltyReferrals'
# ]
```

### build

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

#### Example

```ruby
require 'VoucherifySdk'

VoucherifySdk::OrderCalculatedCustomer.build(data)
# => #<CustomerId:0x00007fdd4aab02a0>

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

#### Parameters

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

#### Return type

- `CustomerId`
- `CustomerWithSummaryLoyaltyReferrals`
- `nil` (if no type matches)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voucherify-5.0.0 docs/OrderCalculatedCustomer.md