# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

# FB:AUTOGEN

module FacebookAds
  # This class is auto-generated.

  # For any issues or feature requests related to this class, please let us know
  # on github and we'll fix in our codegen framework. We'll not be able to accept
  # pull request for this class.

  class AdRuleTrigger < AdObject
    OPERATOR = [
      "ALL",
      "ANY",
      "CONTAIN",
      "EQUAL",
      "GREATER_THAN",
      "IN",
      "IN_RANGE",
      "LESS_THAN",
      "NONE",
      "NOT_CONTAIN",
      "NOT_EQUAL",
      "NOT_IN",
      "NOT_IN_RANGE",
    ]

    TYPE = [
      "DELIVERY_INSIGHTS_CHANGE",
      "METADATA_CREATION",
      "METADATA_UPDATE",
      "STATS_CHANGE",
      "STATS_MILESTONE",
    ]


    field :field, 'string'
    field :operator, { enum: -> { OPERATOR }}
    field :type, { enum: -> { TYPE }}
    field :value, 'object'
    has_no_id
    has_no_get
    has_no_post
    has_no_delete

  end
end
