Files
Moodle/classes/local/receipt/PaymentObject.php
T

44 lines
1.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
declare(strict_types=1);
namespace paygw_moneta\local\receipt;
/**
* Признак предмета расчёта (`po` / `paymentObject`): перечень `kassaspecification.pdf`
* плюс `composite` из `cmsspecification.pdf`.
* Внереализационный доход — `non_operating`, как у кассы, а не
* `non-operating_gain` из `cmsspecification.pdf`.
*
* @package paygw_moneta
* @copyright 2026 Moneta Labs {@link https://moneta.ru/}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
enum PaymentObject: string
{
case Commodity = 'commodity';
case Excise = 'excise';
case Job = 'job';
case Service = 'service';
case GamblingBet = 'gambling_bet';
case GamblingPrize = 'gambling_prize';
case Lottery = 'lottery';
case LotteryPrize = 'lottery_prize';
case IntellectualActivity = 'intellectual_activity';
case Payment = 'payment';
case AgentCommission = 'agent_commission';
case Composite = 'composite';
case Another = 'another';
case PropertyRight = 'property_right';
case SalesTax = 'sales_tax';
case ResortFee = 'resort_fee';
case Award = 'award';
case NonOperating = 'non_operating';
case InsurancePremium = 'insurance_premium';
public function langKey(): string
{
return 'paymentobject:' . $this->value;
}
}