Sha256: ddf0ab11b711ad6f2f4f800a2f09c21413ea025d8aee9c4315d0ebf9ec28da7b

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

# VoucherifySdk::EarningRuleProportionalOrderItems

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

```ruby
require 'VoucherifySdk'

VoucherifySdk::EarningRuleProportionalOrderItems.openapi_one_of
# =>
# [
#   :'EarningRuleProportionalOrderItemsAmount',
#   :'EarningRuleProportionalOrderItemsQuantity',
#   :'EarningRuleProportionalOrderItemsSubtotalAmount'
# ]
```

### build

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

#### Example

```ruby
require 'VoucherifySdk'

VoucherifySdk::EarningRuleProportionalOrderItems.build(data)
# => #<EarningRuleProportionalOrderItemsAmount:0x00007fdd4aab02a0>

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

#### Parameters

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

#### Return type

- `EarningRuleProportionalOrderItemsAmount`
- `EarningRuleProportionalOrderItemsQuantity`
- `EarningRuleProportionalOrderItemsSubtotalAmount`
- `nil` (if no type matches)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voucherify-5.0.0 docs/EarningRuleProportionalOrderItems.md