<?php

declare(strict_types=1);

namespace AmazonPHP\SellingPartner\Model\ProductPricing;

/**
 * Selling Partner API for Pricing.
 *
 * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
 *
 * The version of the OpenAPI document: v0
 *
 * This class was auto-generated by https://openapi-generator.tech
 * Do not change it, it will be overwritten with next execution of /bin/generate.sh
 */
class HttpMethod
{
    /**
     * Possible values of this enum.
     */
    final public const GET = 'GET';

    final public const PUT = 'PUT';

    final public const PATCH = 'PATCH';

    final public const DELETE = 'DELETE';

    final public const POST = 'POST';

    public function __construct(private readonly string $value)
    {
    }

    /**
     * Gets allowable values of the enum.
     *
     * @return string[]
     */
    public static function getAllowableEnumValues() : array
    {
        return [
            self::GET,
            self::PUT,
            self::PATCH,
            self::DELETE,
            self::POST,
        ];
    }

    public function toString() : string
    {
        return $this->value;
    }
}
