# 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 AdCreativeLinkDataImageOverlaySpec < AdObject
    CUSTOM_TEXT_TYPE = [
      "free_shipping",
      "popular",
      "sale",
    ]

    OVERLAY_TEMPLATE = [
      "circle_with_text",
      "pill_with_text",
      "triangle_with_text",
    ]

    POSITION = [
      "bottom_left",
      "bottom_right",
      "top_left",
      "top_right",
    ]

    TEXT_FONT = [
      "droid_serif_regular",
      "dynads_hybrid_bold",
      "lato_regular",
      "noto_sans_regular",
      "nunito_sans_bold",
      "open_sans_bold",
      "open_sans_condensed_bold",
      "pt_serif_bold",
      "roboto_condensed_regular",
      "roboto_medium",
    ]

    TEXT_TYPE = [
      "automated_personalize",
      "custom",
      "disclaimer",
      "from_price",
      "guest_rating",
      "percentage_off",
      "price",
      "star_rating",
      "strikethrough_price",
      "sustainable",
    ]

    THEME_COLOR = [
      "background_000000_text_ffffff",
      "background_0090ff_text_ffffff",
      "background_00af4c_text_ffffff",
      "background_595959_text_ffffff",
      "background_755dde_text_ffffff",
      "background_e50900_text_ffffff",
      "background_f23474_text_ffffff",
      "background_f78400_text_ffffff",
      "background_ffffff_text_000000",
      "background_ffffff_text_007ad0",
      "background_ffffff_text_009c2a",
      "background_ffffff_text_646464",
      "background_ffffff_text_755dde",
      "background_ffffff_text_c91b00",
      "background_ffffff_text_f23474",
      "background_ffffff_text_f78400",
    ]


    field :custom_text_type, { enum: -> { CUSTOM_TEXT_TYPE }}
    field :float_with_margin, 'bool'
    field :overlay_template, { enum: -> { OVERLAY_TEMPLATE }}
    field :position, { enum: -> { POSITION }}
    field :text_font, { enum: -> { TEXT_FONT }}
    field :text_template_tags, { list: 'string' }
    field :text_type, { enum: -> { TEXT_TYPE }}
    field :theme_color, { enum: -> { THEME_COLOR }}
    has_no_id
    has_no_get
    has_no_post
    has_no_delete

  end
end
