Method: KlaviyoAPI::TriggerBranchActionData#valid?

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

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



135
136
137
138
139
140
141
142
143
144
# File 'lib/klaviyo-api-sdk/models/trigger_branch_action_data.rb', line 135

def valid?
  return false if @trigger_filter.nil?
  return false if @trigger_id.nil?
  return false if @trigger_type.nil?
  trigger_type_validator = EnumAttributeValidator.new('String', ["date", "list", "low-inventory", "metric", "price-drop", "scheduled", "segment"])
  return false unless trigger_type_validator.valid?(@trigger_type)
  trigger_subtype_validator = EnumAttributeValidator.new('String', ["custom-object", "profile-property"])
  return false unless trigger_subtype_validator.valid?(@trigger_subtype)
  true
end