<?php

namespace YooMoney\Helpers;

/**
 * Класс enum для налоговых ставок с сортировкой
 */
class YooKassaTaxRateEnumHelper
{
    const WITHOUT_VAT = 1;
    const VAT_0 = 2;
    const VAT_10 = 3;
    const VAT_20 = 4;
    const VAT_110 = 5;
    const VAT_120 = 6;
    const VAT_5 = 7;
    const VAT_7 = 8;
    const VAT_105 = 9;
    const VAT_107 = 10;
    const VAT_22 = 11;
    const VAT_122 = 12;

    public function getTaxRate()
    {
        return array(
            self::WITHOUT_VAT => _JSHOP_YOO_WITHOUT_VAT,
            self::VAT_0 => _JSHOP_YOO_VAT_0,
            self::VAT_5 => _JSHOP_YOO_VAT_5,
            self::VAT_7 => _JSHOP_YOO_VAT_7,
            self::VAT_10 => _JSHOP_YOO_VAT_10,
            self::VAT_20 => _JSHOP_YOO_VAT_20,
            self::VAT_22 => _JSHOP_YOO_VAT_22,
            self::VAT_105 => _JSHOP_YOO_VAT_5_105,
            self::VAT_107 => _JSHOP_YOO_VAT_7_107,
            self::VAT_110 => _JSHOP_YOO_VAT_10_100,
            self::VAT_120 => _JSHOP_YOO_VAT_20_120,
            self::VAT_122 => _JSHOP_YOO_VAT_22_122,
        );
    }
}
