atol-online/src/Enums/AgentTypes.php

68 lines
1.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
/*
* Copyright (c) 2020-2021 Антон Аксенов (Anthony Axenov)
*
* This code is licensed under MIT.
* Этот код распространяется по лицензии MIT.
* https://github.com/anthonyaxenov/atol-online/blob/master/LICENSE
*/
declare(strict_types = 1);
namespace AtolOnline\Enums;
use AtolOnline\Enum;
/**
* Константы, определяющие типы агента
*
* Тег ФФД - 1057
*
* @see https://online.atol.ru/files/API_atol_online_v4.pdf Документация, стр 18 (agent_info)
*/
final class AgentTypes extends Enum
{
/**
* Банковский платежный агент
*/
const BANK_PAYING_AGENT = 'bank_paying_agent';
/**
* Банковский платежный субагент
*/
const BANK_PAYING_SUBAGENT = 'bank_paying_subagent';
/**
* Платежный агент
*/
const PAYING_AGENT = 'paying_agent';
/**
* Платежный субагент
*/
const PAYING_SUBAGENT = 'paying_subagent';
/**
* Поверенный
*/
const ATTRONEY = 'attorney';
/**
* Комиссионер
*/
const COMMISSION_AGENT = 'commission_agent';
/**
* Другой тип агента
*/
const ANOTHER = 'another';
/**
* @return int[] Возвращает массив тегов ФФД
*/
public static function getFfdTags(): array
{
return [1057];
}
}