Method: KlaviyoAPI::HasPushMarketingConsent#list_invalid_properties

Defined in:
lib/klaviyo-api-sdk/models/has_push_marketing_consent.rb

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# File 'lib/klaviyo-api-sdk/models/has_push_marketing_consent.rb', line 104

def list_invalid_properties
  invalid_properties = Array.new
  if @channel.nil?
    invalid_properties.push('invalid value for "channel", channel cannot be nil.')
  end

  if @can_receive_marketing.nil?
    invalid_properties.push('invalid value for "can_receive_marketing", can_receive_marketing cannot be nil.')
  end

  if @consent_status.nil?
    invalid_properties.push('invalid value for "consent_status", consent_status cannot be nil.')
  end

  invalid_properties
end