<?php

declare(strict_types=1);

namespace AmazonPHP\SellingPartner\Model\VendorInvoices;

/**
 * Vendor Invoices v1.
 *
 * The Selling Partner API for Retail Procurement Payments provides programmatic access to vendors payments data.
 *
 * The version of the OpenAPI document: v1
 *
 * 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 NetCostUnitOfMeasure
{
    /**
     * Possible values of this enum.
     */
    final public const POUNDS = 'POUNDS';

    final public const OUNCES = 'OUNCES';

    final public const GRAMS = 'GRAMS';

    final public const KILOGRAMS = 'KILOGRAMS';

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

    /**
     * Gets allowable values of the enum.
     *
     * @return string[]
     */
    public static function getAllowableEnumValues() : array
    {
        return [
            self::POUNDS,
            self::OUNCES,
            self::GRAMS,
            self::KILOGRAMS,
        ];
    }

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