<?php

declare(strict_types=1);

namespace AmazonPHP\SellingPartner\Model\Finances\FinancialTransfers;

/**
 * The Selling Partner API for Transfers.
 *
 * The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE.
 *
 * The version of the OpenAPI document: 2024-06-01
 *
 * 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 PaymentMethodType
{
    /**
     * Possible values of this enum.
     */
    final public const BANK_ACCOUNT = 'BANK_ACCOUNT';

    final public const CARD = 'CARD';

    final public const SELLER_WALLET = 'SELLER_WALLET';

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

    /**
     * Gets allowable values of the enum.
     *
     * @return string[]
     */
    public static function getAllowableEnumValues() : array
    {
        return [
            self::BANK_ACCOUNT,
            self::CARD,
            self::SELLER_WALLET,
        ];
    }

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