# coding: utf-8

"""
    Pinterest REST API

    Pinterest's REST API

    The version of the OpenAPI document: 5.23.0
    Contact: blah+oapicf@cliffano.com
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
"""  # noqa: E501


from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self


class CatalogsProductGroupType(str, Enum):
    """
    <p>Catalog product group type</p> <p>MERCHANT_CREATED: Product groups created by merchants. <br>ALL_PRODUCTS: Consists of every product in your latest successful feed upload. <br>BEST_DEALS: Consists of products with the deepest drop in price. <br>PINNER_FAVORITES: Consists of products that are resonating most with people on Pinterest, based on engagement. <br>TOP_SELLERS: Consists of products with the highest conversion rate, if you have the conversion tag installed. <br>BACK_IN_STOCK: Consists of products that were previously out of stock and are now in stock. <br>NEW_ARRIVALS: Consists of products that are new to your Catalog. <br>SHOPIFY_COLLECTION: Product groups created based on Shopify Product Collections. <br>I2PC: Product groups created based on predicted product category.</p>
    """

    """
    allowed enum values
    """
    MERCHANT_CREATED = 'MERCHANT_CREATED'
    ALL_PRODUCTS = 'ALL_PRODUCTS'
    BEST_DEALS = 'BEST_DEALS'
    PINNER_FAVORITES = 'PINNER_FAVORITES'
    TOP_SELLERS = 'TOP_SELLERS'
    BACK_IN_STOCK = 'BACK_IN_STOCK'
    NEW_ARRIVALS = 'NEW_ARRIVALS'
    SHOPIFY_COLLECTIONS = 'SHOPIFY_COLLECTIONS'
    I2PC = 'I2PC'

    @classmethod
    def from_json(cls, json_str: str) -> Self:
        """Create an instance of CatalogsProductGroupType from a JSON string"""
        return cls(json.loads(json_str))


