Sha256: 7de01e8d6cc0e806e10d59bef761f1ac7b64bb98f0a36ceb8aea990723edb7cd

Contents?: true

Size: 1.64 KB

Versions: 6

Compression:

Stored size: 1.64 KB

Contents

# KlaviyoAPI::ProfilePropertyConditionFilter

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

```ruby
require 'klaviyo-api-sdk'

KlaviyoAPI::ProfilePropertyConditionFilter.openapi_one_of
# =>
# [
#   :'AnniversaryDateFilter',
#   :'BooleanFilter',
#   :'CalendarDateFilter',
#   :'ExistenceOperatorFilter',
#   :'ListContainsOperatorFilter',
#   :'ListLengthFilter',
#   :'NumericOperatorFilter',
#   :'RelativeAnniversaryDateFilter',
#   :'RelativeDateOperatorBaseFilter',
#   :'RelativeDateRangeFilter',
#   :'StaticDateFilter',
#   :'StaticDateRangeFilter',
#   :'StringArrayOperatorFilter',
#   :'StringOperatorFilter',
#   :'StringPhoneOperatorArrayFilter'
# ]
```

### build

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

#### Example

```ruby
require 'klaviyo-api-sdk'

KlaviyoAPI::ProfilePropertyConditionFilter.build(data)
# => #<AnniversaryDateFilter:0x00007fdd4aab02a0>

KlaviyoAPI::ProfilePropertyConditionFilter.build(data_that_doesnt_match)
# => nil
```

#### Parameters

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

#### Return type

- `AnniversaryDateFilter`
- `BooleanFilter`
- `CalendarDateFilter`
- `ExistenceOperatorFilter`
- `ListContainsOperatorFilter`
- `ListLengthFilter`
- `NumericOperatorFilter`
- `RelativeAnniversaryDateFilter`
- `RelativeDateOperatorBaseFilter`
- `RelativeDateRangeFilter`
- `StaticDateFilter`
- `StaticDateRangeFilter`
- `StringArrayOperatorFilter`
- `StringOperatorFilter`
- `StringPhoneOperatorArrayFilter`
- `nil` (if no type matches)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
klaviyo-api-sdk-12.0.0 docs/ProfilePropertyConditionFilter.md
klaviyo-api-sdk-11.1.0 docs/ProfilePropertyConditionFilter.md
klaviyo-api-sdk-11.0.0 docs/ProfilePropertyConditionFilter.md
klaviyo-api-sdk-10.0.0 docs/ProfilePropertyConditionFilter.md
klaviyo-api-sdk-9.0.0 docs/ProfilePropertyConditionFilter.md
klaviyo-api-sdk-8.0.0 docs/ProfilePropertyConditionFilter.md