28 KiB
YooKassa API SDK
Class: \YooKassa\Model\Receipt\MarkCodeInfo
Namespace: \YooKassa\Model\Receipt
Summary:
Class MarkCodeInfo
Description:
Код товара (тег в 54 ФЗ — 1163). Обязателен при использовании протокола ФФД 1.2, если товар нужно маркировать. Должно быть заполнено хотя бы одно из полей.
Constants
| Visibility | Name | Flag | Summary |
|---|---|---|---|
| public | MIN_LENGTH | ||
| public | MAX_UNKNOWN_LENGTH | ||
| public | MAX_EAN_8_LENGTH | ||
| public | MAX_EAN_13_LENGTH | ||
| public | MAX_ITF_14_LENGTH | ||
| public | MAX_GS_10_LENGTH | ||
| public | MAX_GS_1M_LENGTH | ||
| public | MAX_SHORT_LENGTH | ||
| public | MAX_FUR_LENGTH | ||
| public | MAX_EGAIS_20_LENGTH | ||
| public | MAX_EGAIS_30_LENGTH |
Properties
| Visibility | Name | Flag | Summary |
|---|---|---|---|
| public | $ean_13 | Код товара в формате EAN-13 (тег в 54 ФЗ — 1302) | |
| public | $ean_8 | Код товара в формате EAN-8 (тег в 54 ФЗ — 1301) | |
| public | $egais_20 | Код товара в формате ЕГАИС-2.0 (тег в 54 ФЗ — 1308) | |
| public | $egais_30 | Код товара в формате ЕГАИС-3.0 (тег в 54 ФЗ — 1309) | |
| public | $fur | Контрольно-идентификационный знак мехового изделия (тег в 54 ФЗ — 1307) | |
| public | $gs_10 | Код товара в формате GS1.0 (тег в 54 ФЗ — 1304) | |
| public | $gs_1m | Код товара в формате GS1.M (тег в 54 ФЗ — 1305) | |
| public | $itf_14 | Код товара в формате ITF-14 (тег в 54 ФЗ — 1303) | |
| public | $mark_code_raw | Код товара в том виде, в котором он был прочитан сканером (тег в 54 ФЗ — 2000) | |
| public | $markCodeRaw | Код товара в том виде, в котором он был прочитан сканером (тег в 54 ФЗ — 2000) | |
| public | $short | Код товара в формате короткого кода маркировки (тег в 54 ФЗ — 1306) | |
| public | $unknown | Нераспознанный код товара (тег в 54 ФЗ — 1300) |
Methods
| Visibility | Name | Flag | Summary |
|---|---|---|---|
| public | __construct() | AbstractObject constructor. | |
| public | __get() | Возвращает значение свойства | |
| public | __isset() | Проверяет наличие свойства | |
| public | __set() | Устанавливает значение свойства | |
| public | __unset() | Удаляет свойство | |
| public | fromArray() | Устанавливает значения свойств текущего объекта из массива | |
| public | getEan13() | ||
| public | getEan8() | ||
| public | getEgais20() | ||
| public | getEgais30() | ||
| public | getFur() | ||
| public | getGs10() | ||
| public | getGs1m() | ||
| public | getItf14() | ||
| public | getMarkCodeRaw() | Возвращает исходный код товара | |
| public | getShort() | ||
| public | getUnknown() | ||
| public | jsonSerialize() | ||
| public | offsetExists() | ||
| public | offsetGet() | ||
| public | offsetSet() | ||
| public | offsetUnset() | ||
| public | setEan13() | ||
| public | setEan8() | ||
| public | setEgais20() | ||
| public | setEgais30() | ||
| public | setFur() | ||
| public | setGs10() | ||
| public | setGs1m() | ||
| public | setItf14() | ||
| public | setMarkCodeRaw() | Устанавливает исходный код товара | |
| public | setShort() | ||
| public | setUnknown() | ||
| public | toArray() | Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации Является алиасом метода AbstractObject::jsonSerialize() | |
| protected | getUnknownProperties() | Возвращает массив свойств которые не существуют, но были заданы у объекта |
Details
- File: lib/Model/Receipt/MarkCodeInfo.php
- Package: YooKassa
- Class Hierarchy:
- \YooKassa\Common\AbstractObject
- \YooKassa\Model\Receipt\MarkCodeInfo
Constants
MIN_LENGTH
MIN_LENGTH = 1 : int
MAX_UNKNOWN_LENGTH
MAX_UNKNOWN_LENGTH = 32 : int
MAX_EAN_8_LENGTH
MAX_EAN_8_LENGTH = 8 : int
MAX_EAN_13_LENGTH
MAX_EAN_13_LENGTH = 13 : int
MAX_ITF_14_LENGTH
MAX_ITF_14_LENGTH = 14 : int
MAX_GS_10_LENGTH
MAX_GS_10_LENGTH = 38 : int
MAX_GS_1M_LENGTH
MAX_GS_1M_LENGTH = 150 : int
MAX_SHORT_LENGTH
MAX_SHORT_LENGTH = 38 : int
MAX_FUR_LENGTH
MAX_FUR_LENGTH = 20 : int
MAX_EGAIS_20_LENGTH
MAX_EGAIS_20_LENGTH = 23 : int
MAX_EGAIS_30_LENGTH
MAX_EGAIS_30_LENGTH = 14 : int
Properties
public $ean_13 : string
Description
Код товара в формате EAN-13 (тег в 54 ФЗ — 1302)
Type: string
Details:
public $ean_8 : string
Description
Код товара в формате EAN-8 (тег в 54 ФЗ — 1301)
Type: string
Details:
public $egais_20 : string
Description
Код товара в формате ЕГАИС-2.0 (тег в 54 ФЗ — 1308)
Type: string
Details:
public $egais_30 : string
Description
Код товара в формате ЕГАИС-3.0 (тег в 54 ФЗ — 1309)
Type: string
Details:
public $fur : string
Description
Контрольно-идентификационный знак мехового изделия (тег в 54 ФЗ — 1307)
Type: string
Details:
public $gs_10 : string
Description
Код товара в формате GS1.0 (тег в 54 ФЗ — 1304)
Type: string
Details:
public $gs_1m : string
Description
Код товара в формате GS1.M (тег в 54 ФЗ — 1305)
Type: string
Details:
public $itf_14 : string
Description
Код товара в формате ITF-14 (тег в 54 ФЗ — 1303)
Type: string
Details:
public $mark_code_raw : string
Description
Код товара в том виде, в котором он был прочитан сканером (тег в 54 ФЗ — 2000)
Type: string
Details:
public $markCodeRaw : string
Description
Код товара в том виде, в котором он был прочитан сканером (тег в 54 ФЗ — 2000)
Type: string
Details:
public $short : string
Description
Код товара в формате короткого кода маркировки (тег в 54 ФЗ — 1306)
Type: string
Details:
public $unknown : string
Description
Нераспознанный код товара (тег в 54 ФЗ — 1300)
Type: string
Details:
Methods
public __construct() : mixed
public __construct(array $data = array()) : mixed
Summary
AbstractObject constructor.
Details:
- Inherited From: \YooKassa\Common\AbstractObject
Parameters:
| Type | Name | Description |
|---|---|---|
array |
data |
Returns: mixed -
public __get() : mixed
public __get(string $propertyName) : mixed
Summary
Возвращает значение свойства
Details:
- Inherited From: \YooKassa\Common\AbstractObject
Parameters:
| Type | Name | Description |
|---|---|---|
string |
propertyName | Имя свойства |
Returns: mixed - Значение свойства
public __isset() : bool
public __isset(string $propertyName) : bool
Summary
Проверяет наличие свойства
Details:
- Inherited From: \YooKassa\Common\AbstractObject
Parameters:
| Type | Name | Description |
|---|---|---|
string |
propertyName | Имя проверяемого свойства |
Returns: bool - True если свойство имеется, false если нет
public __set() : mixed
public __set(string $propertyName, mixed $value) : mixed
Summary
Устанавливает значение свойства
Details:
- Inherited From: \YooKassa\Common\AbstractObject
Parameters:
| Type | Name | Description |
|---|---|---|
string |
propertyName | Имя свойства |
mixed |
value | Значение свойства |
Returns: mixed -
public __unset() : mixed
public __unset(string $propertyName) : mixed
Summary
Удаляет свойство
Details:
- Inherited From: \YooKassa\Common\AbstractObject
Parameters:
| Type | Name | Description |
|---|---|---|
string |
propertyName | Имя удаляемого свойства |
Returns: mixed -
public fromArray() : mixed
public fromArray(array|\Traversable $sourceArray) : mixed
Summary
Устанавливает значения свойств текущего объекта из массива
Details:
- Inherited From: \YooKassa\Common\AbstractObject
Parameters:
| Type | Name | Description |
|---|---|---|
array OR \Traversable |
sourceArray | Ассоциативный массив с настройками |
Returns: mixed -
public getEan13() : string
public getEan13() : string
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Returns: string -
public getEan8() : string
public getEan8() : string
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Returns: string -
public getEgais20() : string
public getEgais20() : string
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Returns: string -
public getEgais30() : string
public getEgais30() : string
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Returns: string -
public getFur() : string
public getFur() : string
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Returns: string -
public getGs10() : string
public getGs10() : string
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Returns: string -
public getGs1m() : string
public getGs1m() : string
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Returns: string -
public getItf14() : string
public getItf14() : string
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Returns: string -
public getMarkCodeRaw() : string
public getMarkCodeRaw() : string
Summary
Возвращает исходный код товара
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Returns: string - Исходный код товара
public getShort() : string
public getShort() : string
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Returns: string -
public getUnknown() : string
public getUnknown() : string
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Returns: string -
public jsonSerialize() : array
public jsonSerialize() : array
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Returns: array -
Tags
| Tag | Version | Description |
|---|---|---|
| inheritdoc |
public offsetExists() : mixed
public offsetExists(mixed $offset) : mixed
Details:
- Inherited From: \YooKassa\Common\AbstractObject
Parameters:
| Type | Name | Description |
|---|---|---|
mixed |
offset |
Returns: mixed -
public offsetGet() : mixed
public offsetGet(mixed $offset) : mixed
Details:
- Inherited From: \YooKassa\Common\AbstractObject
Parameters:
| Type | Name | Description |
|---|---|---|
mixed |
offset |
Returns: mixed -
public offsetSet() : mixed
public offsetSet(mixed $offset, mixed $value) : mixed
Details:
- Inherited From: \YooKassa\Common\AbstractObject
Parameters:
| Type | Name | Description |
|---|---|---|
mixed |
offset | |
mixed |
value |
Returns: mixed -
public offsetUnset() : mixed
public offsetUnset(mixed $offset) : mixed
Details:
- Inherited From: \YooKassa\Common\AbstractObject
Parameters:
| Type | Name | Description |
|---|---|---|
mixed |
offset |
Returns: mixed -
public setEan13() : \YooKassa\Model\Receipt\MarkCodeInfo
public setEan13(string $value) : \YooKassa\Model\Receipt\MarkCodeInfo
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Parameters:
| Type | Name | Description |
|---|---|---|
string |
value |
Returns: \YooKassa\Model\Receipt\MarkCodeInfo -
public setEan8() : \YooKassa\Model\Receipt\MarkCodeInfo
public setEan8(string $value) : \YooKassa\Model\Receipt\MarkCodeInfo
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Parameters:
| Type | Name | Description |
|---|---|---|
string |
value |
Returns: \YooKassa\Model\Receipt\MarkCodeInfo -
public setEgais20() : \YooKassa\Model\Receipt\MarkCodeInfo
public setEgais20($value) : \YooKassa\Model\Receipt\MarkCodeInfo
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Parameters:
| Type | Name | Description |
|---|---|---|
|
value |
Returns: \YooKassa\Model\Receipt\MarkCodeInfo -
public setEgais30() : \YooKassa\Model\Receipt\MarkCodeInfo
public setEgais30($value) : \YooKassa\Model\Receipt\MarkCodeInfo
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Parameters:
| Type | Name | Description |
|---|---|---|
|
value |
Returns: \YooKassa\Model\Receipt\MarkCodeInfo -
public setFur() : \YooKassa\Model\Receipt\MarkCodeInfo
public setFur($value) : \YooKassa\Model\Receipt\MarkCodeInfo
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Parameters:
| Type | Name | Description |
|---|---|---|
|
value |
Returns: \YooKassa\Model\Receipt\MarkCodeInfo -
public setGs10() : \YooKassa\Model\Receipt\MarkCodeInfo
public setGs10(string $value) : \YooKassa\Model\Receipt\MarkCodeInfo
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Parameters:
| Type | Name | Description |
|---|---|---|
string |
value |
Returns: \YooKassa\Model\Receipt\MarkCodeInfo -
public setGs1m() : \YooKassa\Model\Receipt\MarkCodeInfo
public setGs1m($value) : \YooKassa\Model\Receipt\MarkCodeInfo
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Parameters:
| Type | Name | Description |
|---|---|---|
|
value |
Returns: \YooKassa\Model\Receipt\MarkCodeInfo -
public setItf14() : \YooKassa\Model\Receipt\MarkCodeInfo
public setItf14(string $value) : \YooKassa\Model\Receipt\MarkCodeInfo
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Parameters:
| Type | Name | Description |
|---|---|---|
string |
value |
Returns: \YooKassa\Model\Receipt\MarkCodeInfo -
public setMarkCodeRaw() : \YooKassa\Model\Receipt\MarkCodeInfo
public setMarkCodeRaw(string $value) : \YooKassa\Model\Receipt\MarkCodeInfo
Summary
Устанавливает исходный код товара
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Parameters:
| Type | Name | Description |
|---|---|---|
string |
value | Исходный код товара |
Returns: \YooKassa\Model\Receipt\MarkCodeInfo -
public setShort() : \YooKassa\Model\Receipt\MarkCodeInfo
public setShort($value) : \YooKassa\Model\Receipt\MarkCodeInfo
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Parameters:
| Type | Name | Description |
|---|---|---|
|
value |
Returns: \YooKassa\Model\Receipt\MarkCodeInfo -
public setUnknown() : \YooKassa\Model\Receipt\MarkCodeInfo
public setUnknown($value) : \YooKassa\Model\Receipt\MarkCodeInfo
Details:
- Inherited From: \YooKassa\Model\Receipt\MarkCodeInfo
Parameters:
| Type | Name | Description |
|---|---|---|
|
value |
Returns: \YooKassa\Model\Receipt\MarkCodeInfo -
public toArray() : array
public toArray() : array
Summary
Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации Является алиасом метода AbstractObject::jsonSerialize()
Details:
- Inherited From: \YooKassa\Common\AbstractObject
Returns: array - Ассоциативный массив со свойствами текущего объекта
protected getUnknownProperties() : array
protected getUnknownProperties() : array
Summary
Возвращает массив свойств которые не существуют, но были заданы у объекта
Details:
- Inherited From: \YooKassa\Common\AbstractObject
Returns: array - Ассоциативный массив с не существующими у текущего объекта свойствами
Top Namespaces
Reports
This document was automatically generated from source code comments on 2023-04-06 using phpDocumentor
© 2023 YooMoney