Sha256: a7c24f3e773b27dd690a6ba4b56f7fb8d325cbdea5d0ad46ed858f7d00f5385f

Contents?: true

Size: 1.17 KB

Versions: 7

Compression:

Stored size: 1.17 KB

Contents

# KlaviyoAPI::ProfileMarketingConsentConditionConsent

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

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

KlaviyoAPI::ProfileMarketingConsentConditionConsent.openapi_one_of
# =>
# [
#   :'HasEmailMarketingConsent',
#   :'HasPushMarketingConsent',
#   :'HasSMSMarketingConsent',
#   :'NoEmailMarketingConsent',
#   :'NoPushMarketingConsent',
#   :'NoSMSMarketingConsent'
# ]
```

### build

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

#### Example

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

KlaviyoAPI::ProfileMarketingConsentConditionConsent.build(data)
# => #<HasEmailMarketingConsent:0x00007fdd4aab02a0>

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

#### Parameters

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

#### Return type

- `HasEmailMarketingConsent`
- `HasPushMarketingConsent`
- `HasSMSMarketingConsent`
- `NoEmailMarketingConsent`
- `NoPushMarketingConsent`
- `NoSMSMarketingConsent`
- `nil` (if no type matches)

Version data entries

7 entries across 7 versions & 1 rubygems

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