Bitrix API

CashboxAtolFarmV5 extends CashboxAtolFarmV4

Class CashboxAtolFarmV5

Table of Contents

Constants

CODE_CALC_VAT_10  = 'vat110'
CODE_CALC_VAT_20  = 'vat120'
CODE_CALC_VAT_5  = 'vat105'
CODE_CALC_VAT_7  = 'vat107'
CODE_VAT_0  = 'vat0'
CODE_VAT_10  = 'vat10'
CODE_VAT_20  = 'vat20'
CODE_VAT_5  = 'vat5'
CODE_VAT_7  = 'vat7'
EVENT_ON_GET_CUSTOM_CASHBOX_HANDLERS  = 'OnGetCustomCashboxHandlers'
HANDLER_MODE_ACTIVE  = 'ACTIVE'
HANDLER_MODE_TEST  = 'TEST'
OPERATION_CHECK_CHECK  = 'check'
OPERATION_CHECK_REGISTRY  = 'registry'
OPERATION_GET_TOKEN  = 'get_token'
REQUEST_TYPE_GET  = 'get'
REQUEST_TYPE_POST  = 'post'
RESPONSE_HTTP_CODE_200  = 200
RESPONSE_HTTP_CODE_401  = 401
SERVICE_TEST_URL  = 'https://testonline.atol.ru/possystem/v5'
SERVICE_URL  = 'https://online.atol.ru/possystem/v5'
TOKEN_OPTION_NAME  = 'atol_access_token'
UUID_DELIMITER  = '|'
UUID_TYPE_CHECK  = 'check'
UUID_TYPE_REPORT  = 'report'

Methods

applyCheckResult()  : Result
applyZReportResult()  : Result
buildCheckQuery()  : array<string|int, mixed>
buildCorrectionCheckQuery()  : array<string|int, mixed>
buildZReportQuery()  : array<string|int, mixed>
check()  : Result
checkCorrection()  : Result
create()  : Cashbox|null
extractSettingsFromRequest()  : array<string|int, mixed>
getCheckLink()  : string
getCode()  : mixed
getFfdVersion()  : float|null
getField()  : mixed
getGeneralRequiredFields()  : array<string|int, mixed>
getHandlerList()  : array<string|int, mixed>
getName()  : string
getOfd()  : Ofd|null
getSettings()  : array<string|int, mixed>
getSupportedKkmModels()  : array<string|int, mixed>
getValueFromSettings()  : mixed
init()  : void
isCheckable()  : bool
isCorrection()  : bool
isCorrectionOn()  : bool
isOfdSettingsNeeded()  : bool
isSupportedFFD105()  : bool
printCorrectionImmediately()  : Result
printImmediately()  : Result
validate()  : Result

Constants

EVENT_ON_GET_CUSTOM_CASHBOX_HANDLERS

public mixed EVENT_ON_GET_CUSTOM_CASHBOX_HANDLERS = 'OnGetCustomCashboxHandlers'

OPERATION_CHECK_REGISTRY

public mixed OPERATION_CHECK_REGISTRY = 'registry'

SERVICE_TEST_URL

public mixed SERVICE_TEST_URL = 'https://testonline.atol.ru/possystem/v5'

SERVICE_URL

public mixed SERVICE_URL = 'https://online.atol.ru/possystem/v5'

TOKEN_OPTION_NAME

public mixed TOKEN_OPTION_NAME = 'atol_access_token'

UUID_DELIMITER

public mixed UUID_DELIMITER = '|'

UUID_TYPE_CHECK

public mixed UUID_TYPE_CHECK = 'check'

UUID_TYPE_REPORT

public mixed UUID_TYPE_REPORT = 'report'

Methods

applyCheckResult()

public static applyCheckResult(array<string|int, mixed> $data) : Result
Parameters
$data : array<string|int, mixed>
Return values
Result

applyZReportResult()

public static applyZReportResult(array<string|int, mixed> $data) : Result
Parameters
$data : array<string|int, mixed>
Return values
Result

buildCheckQuery()

public buildCheckQuery(Check $check) : array<string|int, mixed>
Parameters
$check : Check
Return values
array<string|int, mixed>

buildZReportQuery()

public buildZReportQuery(mixed $id) : array<string|int, mixed>
Parameters
$id : mixed
Return values
array<string|int, mixed>

create()

public static create(array<string|int, mixed> $settings) : Cashbox|null
Parameters
$settings : array<string|int, mixed>
Tags
throws
LoaderException
Return values
Cashbox|null

extractSettingsFromRequest()

public static extractSettingsFromRequest(HttpRequest $request) : array<string|int, mixed>
Parameters
$request : HttpRequest
Return values
array<string|int, mixed>
public getCheckLink(array<string|int, mixed> $linkParams) : string
Parameters
$linkParams : array<string|int, mixed>
Return values
string

getCode()

public static getCode() : mixed

getFfdVersion()

public static getFfdVersion() : float|null
Tags
inheritDoc
Return values
float|null

getField()

public getField(mixed $name) : mixed
Parameters
$name : mixed

getGeneralRequiredFields()

public static getGeneralRequiredFields() : array<string|int, mixed>
Return values
array<string|int, mixed>

getHandlerList()

public static getHandlerList() : array<string|int, mixed>
Return values
array<string|int, mixed>

getName()

public static getName() : string
Tags
inheritDoc
Return values
string

getSettings()

public static getSettings([int $modelId = 0 ]) : array<string|int, mixed>
Parameters
$modelId : int = 0
Return values
array<string|int, mixed>

getSupportedKkmModels()

public static getSupportedKkmModels() : array<string|int, mixed>
Return values
array<string|int, mixed>

getValueFromSettings()

public getValueFromSettings(mixed $name, mixed $code) : mixed
Parameters
$name : mixed
$code : mixed

init()

public static init() : void
Tags
throws
LoaderException

isCheckable()

public isCheckable() : bool
Return values
bool

isCorrection()

public isCorrection() : bool
Return values
bool

isCorrectionOn()

public static isCorrectionOn() : bool
Tags
inheritDoc
Return values
bool

isOfdSettingsNeeded()

public static isOfdSettingsNeeded() : bool
Return values
bool

isSupportedFFD105()

public static isSupportedFFD105() : bool

Use \Bitrix\Sale\Cashbox\Cashbox::getFfdVersion instead

Return values
bool

printImmediately()

public printImmediately(Check $check) : Result
Parameters
$check : Check
Tags
throws
SystemException
Return values
Result

validate()

public validate() : Result
Return values
Result

        
On this page

Search results