Method: KlaviyoAPI::CouponCreateQueryResourceObjectAttributes#list_invalid_properties

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

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



77
78
79
80
81
82
83
84
# File 'lib/klaviyo-api-sdk/models/coupon_create_query_resource_object_attributes.rb', line 77

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

  invalid_properties
end