Sha256: 87fa3f9ff40143d8a59bfbaa2c6926c9dba362be9ac3568c83621a873ca95341

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

Contents

# VoucherifySdk::EarningRuleProportionalOrder

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

```ruby
require 'VoucherifySdk'

VoucherifySdk::EarningRuleProportionalOrder.openapi_one_of
# =>
# [
#   :'EarningRuleProportionalOrderAmount',
#   :'EarningRuleProportionalOrderMetadata',
#   :'EarningRuleProportionalOrderTotalAmount'
# ]
```

### build

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

#### Example

```ruby
require 'VoucherifySdk'

VoucherifySdk::EarningRuleProportionalOrder.build(data)
# => #<EarningRuleProportionalOrderAmount:0x00007fdd4aab02a0>

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

#### Parameters

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

#### Return type

- `EarningRuleProportionalOrderAmount`
- `EarningRuleProportionalOrderMetadata`
- `EarningRuleProportionalOrderTotalAmount`
- `nil` (if no type matches)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voucherify-5.0.0 docs/EarningRuleProportionalOrder.md