479 lines
14 KiB
Markdown
479 lines
14 KiB
Markdown
|
|
# [YooKassa API SDK](../home.md)
|
|||
|
|
|
|||
|
|
# Class: \YooKassa\Model\Recipient
|
|||
|
|
### Namespace: [\YooKassa\Model](../namespaces/yookassa-model.md)
|
|||
|
|
---
|
|||
|
|
**Summary:**
|
|||
|
|
|
|||
|
|
Класс получателя платежа.
|
|||
|
|
|
|||
|
|
**Description:**
|
|||
|
|
|
|||
|
|
Получатель платежа нужен, если вы разделяете потоки платежей в рамках одного аккаунта или создаете платеж в адрес
|
|||
|
|
другого аккаунта.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
### Constants
|
|||
|
|
* No constants found
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
### Properties
|
|||
|
|
| Visibility | Name | Flag | Summary |
|
|||
|
|
| ----------:| ---- | ---- | ------- |
|
|||
|
|
| public | [$account_id](../classes/YooKassa-Model-Recipient.md#property_account_id) | | Идентификатор магазина |
|
|||
|
|
| public | [$accountId](../classes/YooKassa-Model-Recipient.md#property_accountId) | | Идентификатор магазина |
|
|||
|
|
| public | [$gateway_id](../classes/YooKassa-Model-Recipient.md#property_gateway_id) | | Идентификатор шлюза |
|
|||
|
|
| public | [$gatewayId](../classes/YooKassa-Model-Recipient.md#property_gatewayId) | | Идентификатор шлюза |
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
### Methods
|
|||
|
|
| Visibility | Name | Flag | Summary |
|
|||
|
|
| ----------:| ---- | ---- | ------- |
|
|||
|
|
| public | [__construct()](../classes/YooKassa-Common-AbstractObject.md#method___construct) | | AbstractObject constructor. |
|
|||
|
|
| public | [__get()](../classes/YooKassa-Common-AbstractObject.md#method___get) | | Возвращает значение свойства |
|
|||
|
|
| public | [__isset()](../classes/YooKassa-Common-AbstractObject.md#method___isset) | | Проверяет наличие свойства |
|
|||
|
|
| public | [__set()](../classes/YooKassa-Common-AbstractObject.md#method___set) | | Устанавливает значение свойства |
|
|||
|
|
| public | [__unset()](../classes/YooKassa-Common-AbstractObject.md#method___unset) | | Удаляет свойство |
|
|||
|
|
| public | [fromArray()](../classes/YooKassa-Common-AbstractObject.md#method_fromArray) | | Устанавливает значения свойств текущего объекта из массива |
|
|||
|
|
| public | [getAccountId()](../classes/YooKassa-Model-Recipient.md#method_getAccountId) | | Возвращает идентификатор магазина |
|
|||
|
|
| public | [getGatewayId()](../classes/YooKassa-Model-Recipient.md#method_getGatewayId) | | Возвращает идентификатор шлюза. |
|
|||
|
|
| public | [jsonSerialize()](../classes/YooKassa-Common-AbstractObject.md#method_jsonSerialize) | | |
|
|||
|
|
| public | [offsetExists()](../classes/YooKassa-Common-AbstractObject.md#method_offsetExists) | | |
|
|||
|
|
| public | [offsetGet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetGet) | | |
|
|||
|
|
| public | [offsetSet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetSet) | | |
|
|||
|
|
| public | [offsetUnset()](../classes/YooKassa-Common-AbstractObject.md#method_offsetUnset) | | |
|
|||
|
|
| public | [setAccountId()](../classes/YooKassa-Model-Recipient.md#method_setAccountId) | | Устанавливает идентификатор магазина |
|
|||
|
|
| public | [setGatewayId()](../classes/YooKassa-Model-Recipient.md#method_setGatewayId) | | Устанавливает идентификатор шлюза |
|
|||
|
|
| public | [toArray()](../classes/YooKassa-Common-AbstractObject.md#method_toArray) | | Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации Является алиасом метода AbstractObject::jsonSerialize() |
|
|||
|
|
| protected | [getUnknownProperties()](../classes/YooKassa-Common-AbstractObject.md#method_getUnknownProperties) | | Возвращает массив свойств которые не существуют, но были заданы у объекта |
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
### Details
|
|||
|
|
* File: [lib/Model/Recipient.php](../../lib/Model/Recipient.php)
|
|||
|
|
* Package: YooKassa
|
|||
|
|
* Class Hierarchy:
|
|||
|
|
* [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
|
|||
|
|
* \YooKassa\Model\Recipient
|
|||
|
|
* Implements:
|
|||
|
|
* [\YooKassa\Model\RecipientInterface](../classes/YooKassa-Model-RecipientInterface.md)
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
## Properties
|
|||
|
|
<a name="property_account_id"></a>
|
|||
|
|
#### public $account_id : string
|
|||
|
|
---
|
|||
|
|
***Description***
|
|||
|
|
|
|||
|
|
Идентификатор магазина
|
|||
|
|
|
|||
|
|
**Type:** <a href="string"><abbr title="string">string</abbr></a>
|
|||
|
|
|
|||
|
|
**Details:**
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a name="property_accountId"></a>
|
|||
|
|
#### public $accountId : string
|
|||
|
|
---
|
|||
|
|
***Description***
|
|||
|
|
|
|||
|
|
Идентификатор магазина
|
|||
|
|
|
|||
|
|
**Type:** <a href="string"><abbr title="string">string</abbr></a>
|
|||
|
|
|
|||
|
|
**Details:**
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a name="property_gateway_id"></a>
|
|||
|
|
#### public $gateway_id : string
|
|||
|
|
---
|
|||
|
|
***Description***
|
|||
|
|
|
|||
|
|
Идентификатор шлюза
|
|||
|
|
|
|||
|
|
**Type:** <a href="string"><abbr title="string">string</abbr></a>
|
|||
|
|
|
|||
|
|
**Details:**
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a name="property_gatewayId"></a>
|
|||
|
|
#### public $gatewayId : string
|
|||
|
|
---
|
|||
|
|
***Description***
|
|||
|
|
|
|||
|
|
Идентификатор шлюза
|
|||
|
|
|
|||
|
|
**Type:** <a href="string"><abbr title="string">string</abbr></a>
|
|||
|
|
|
|||
|
|
**Details:**
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
## Methods
|
|||
|
|
<a name="method___construct" class="anchor"></a>
|
|||
|
|
#### public __construct() : mixed
|
|||
|
|
|
|||
|
|
```php
|
|||
|
|
public __construct(array $data = array()) : mixed
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**Summary**
|
|||
|
|
|
|||
|
|
AbstractObject constructor.
|
|||
|
|
|
|||
|
|
**Details:**
|
|||
|
|
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
|
|||
|
|
|
|||
|
|
##### Parameters:
|
|||
|
|
| Type | Name | Description |
|
|||
|
|
| ---- | ---- | ----------- |
|
|||
|
|
| <code lang="php">array</code> | data | |
|
|||
|
|
|
|||
|
|
**Returns:** mixed -
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a name="method___get" class="anchor"></a>
|
|||
|
|
#### public __get() : mixed
|
|||
|
|
|
|||
|
|
```php
|
|||
|
|
public __get(string $propertyName) : mixed
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**Summary**
|
|||
|
|
|
|||
|
|
Возвращает значение свойства
|
|||
|
|
|
|||
|
|
**Details:**
|
|||
|
|
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
|
|||
|
|
|
|||
|
|
##### Parameters:
|
|||
|
|
| Type | Name | Description |
|
|||
|
|
| ---- | ---- | ----------- |
|
|||
|
|
| <code lang="php">string</code> | propertyName | Имя свойства |
|
|||
|
|
|
|||
|
|
**Returns:** mixed - Значение свойства
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a name="method___isset" class="anchor"></a>
|
|||
|
|
#### public __isset() : bool
|
|||
|
|
|
|||
|
|
```php
|
|||
|
|
public __isset(string $propertyName) : bool
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**Summary**
|
|||
|
|
|
|||
|
|
Проверяет наличие свойства
|
|||
|
|
|
|||
|
|
**Details:**
|
|||
|
|
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
|
|||
|
|
|
|||
|
|
##### Parameters:
|
|||
|
|
| Type | Name | Description |
|
|||
|
|
| ---- | ---- | ----------- |
|
|||
|
|
| <code lang="php">string</code> | propertyName | Имя проверяемого свойства |
|
|||
|
|
|
|||
|
|
**Returns:** bool - True если свойство имеется, false если нет
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a name="method___set" class="anchor"></a>
|
|||
|
|
#### public __set() : mixed
|
|||
|
|
|
|||
|
|
```php
|
|||
|
|
public __set(string $propertyName, mixed $value) : mixed
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**Summary**
|
|||
|
|
|
|||
|
|
Устанавливает значение свойства
|
|||
|
|
|
|||
|
|
**Details:**
|
|||
|
|
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
|
|||
|
|
|
|||
|
|
##### Parameters:
|
|||
|
|
| Type | Name | Description |
|
|||
|
|
| ---- | ---- | ----------- |
|
|||
|
|
| <code lang="php">string</code> | propertyName | Имя свойства |
|
|||
|
|
| <code lang="php">mixed</code> | value | Значение свойства |
|
|||
|
|
|
|||
|
|
**Returns:** mixed -
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a name="method___unset" class="anchor"></a>
|
|||
|
|
#### public __unset() : mixed
|
|||
|
|
|
|||
|
|
```php
|
|||
|
|
public __unset(string $propertyName) : mixed
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**Summary**
|
|||
|
|
|
|||
|
|
Удаляет свойство
|
|||
|
|
|
|||
|
|
**Details:**
|
|||
|
|
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
|
|||
|
|
|
|||
|
|
##### Parameters:
|
|||
|
|
| Type | Name | Description |
|
|||
|
|
| ---- | ---- | ----------- |
|
|||
|
|
| <code lang="php">string</code> | propertyName | Имя удаляемого свойства |
|
|||
|
|
|
|||
|
|
**Returns:** mixed -
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a name="method_fromArray" class="anchor"></a>
|
|||
|
|
#### public fromArray() : mixed
|
|||
|
|
|
|||
|
|
```php
|
|||
|
|
public fromArray(array|\Traversable $sourceArray) : mixed
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**Summary**
|
|||
|
|
|
|||
|
|
Устанавливает значения свойств текущего объекта из массива
|
|||
|
|
|
|||
|
|
**Details:**
|
|||
|
|
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
|
|||
|
|
|
|||
|
|
##### Parameters:
|
|||
|
|
| Type | Name | Description |
|
|||
|
|
| ---- | ---- | ----------- |
|
|||
|
|
| <code lang="php">array OR \Traversable</code> | sourceArray | Ассоциативный массив с настройками |
|
|||
|
|
|
|||
|
|
**Returns:** mixed -
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a name="method_getAccountId" class="anchor"></a>
|
|||
|
|
#### public getAccountId() : string
|
|||
|
|
|
|||
|
|
```php
|
|||
|
|
public getAccountId() : string
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**Summary**
|
|||
|
|
|
|||
|
|
Возвращает идентификатор магазина
|
|||
|
|
|
|||
|
|
**Details:**
|
|||
|
|
* Inherited From: [\YooKassa\Model\Recipient](../classes/YooKassa-Model-Recipient.md)
|
|||
|
|
|
|||
|
|
**Returns:** string - Идентификатор магазина
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a name="method_getGatewayId" class="anchor"></a>
|
|||
|
|
#### public getGatewayId() : string
|
|||
|
|
|
|||
|
|
```php
|
|||
|
|
public getGatewayId() : string
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**Summary**
|
|||
|
|
|
|||
|
|
Возвращает идентификатор шлюза.
|
|||
|
|
|
|||
|
|
**Description**
|
|||
|
|
|
|||
|
|
Идентификатор шлюза используется для разделения потоков платежей в рамках одного аккаунта.
|
|||
|
|
|
|||
|
|
**Details:**
|
|||
|
|
* Inherited From: [\YooKassa\Model\Recipient](../classes/YooKassa-Model-Recipient.md)
|
|||
|
|
|
|||
|
|
**Returns:** string - Идентификатор шлюза
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a name="method_jsonSerialize" class="anchor"></a>
|
|||
|
|
#### public jsonSerialize() : mixed
|
|||
|
|
|
|||
|
|
```php
|
|||
|
|
public jsonSerialize() : mixed
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**Details:**
|
|||
|
|
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
|
|||
|
|
|
|||
|
|
**Returns:** mixed -
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a name="method_offsetExists" class="anchor"></a>
|
|||
|
|
#### public offsetExists() : mixed
|
|||
|
|
|
|||
|
|
```php
|
|||
|
|
public offsetExists(mixed $offset) : mixed
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**Details:**
|
|||
|
|
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
|
|||
|
|
|
|||
|
|
##### Parameters:
|
|||
|
|
| Type | Name | Description |
|
|||
|
|
| ---- | ---- | ----------- |
|
|||
|
|
| <code lang="php">mixed</code> | offset | |
|
|||
|
|
|
|||
|
|
**Returns:** mixed -
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a name="method_offsetGet" class="anchor"></a>
|
|||
|
|
#### public offsetGet() : mixed
|
|||
|
|
|
|||
|
|
```php
|
|||
|
|
public offsetGet(mixed $offset) : mixed
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**Details:**
|
|||
|
|
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
|
|||
|
|
|
|||
|
|
##### Parameters:
|
|||
|
|
| Type | Name | Description |
|
|||
|
|
| ---- | ---- | ----------- |
|
|||
|
|
| <code lang="php">mixed</code> | offset | |
|
|||
|
|
|
|||
|
|
**Returns:** mixed -
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a name="method_offsetSet" class="anchor"></a>
|
|||
|
|
#### public offsetSet() : mixed
|
|||
|
|
|
|||
|
|
```php
|
|||
|
|
public offsetSet(mixed $offset, mixed $value) : mixed
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**Details:**
|
|||
|
|
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
|
|||
|
|
|
|||
|
|
##### Parameters:
|
|||
|
|
| Type | Name | Description |
|
|||
|
|
| ---- | ---- | ----------- |
|
|||
|
|
| <code lang="php">mixed</code> | offset | |
|
|||
|
|
| <code lang="php">mixed</code> | value | |
|
|||
|
|
|
|||
|
|
**Returns:** mixed -
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a name="method_offsetUnset" class="anchor"></a>
|
|||
|
|
#### public offsetUnset() : mixed
|
|||
|
|
|
|||
|
|
```php
|
|||
|
|
public offsetUnset(mixed $offset) : mixed
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**Details:**
|
|||
|
|
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
|
|||
|
|
|
|||
|
|
##### Parameters:
|
|||
|
|
| Type | Name | Description |
|
|||
|
|
| ---- | ---- | ----------- |
|
|||
|
|
| <code lang="php">mixed</code> | offset | |
|
|||
|
|
|
|||
|
|
**Returns:** mixed -
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a name="method_setAccountId" class="anchor"></a>
|
|||
|
|
#### public setAccountId() : mixed
|
|||
|
|
|
|||
|
|
```php
|
|||
|
|
public setAccountId(string $value) : mixed
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**Summary**
|
|||
|
|
|
|||
|
|
Устанавливает идентификатор магазина
|
|||
|
|
|
|||
|
|
**Details:**
|
|||
|
|
* Inherited From: [\YooKassa\Model\Recipient](../classes/YooKassa-Model-Recipient.md)
|
|||
|
|
|
|||
|
|
##### Parameters:
|
|||
|
|
| Type | Name | Description |
|
|||
|
|
| ---- | ---- | ----------- |
|
|||
|
|
| <code lang="php">string</code> | value | Идентификатор магазина |
|
|||
|
|
|
|||
|
|
##### Throws:
|
|||
|
|
| Type | Description |
|
|||
|
|
| ---- | ----------- |
|
|||
|
|
| \YooKassa\Common\Exceptions\EmptyPropertyValueException | Выбрасывается если было передано пустое значение |
|
|||
|
|
| \YooKassa\Common\Exceptions\InvalidPropertyValueTypeException | Выбрасывается если было передано не строковое значение |
|
|||
|
|
|
|||
|
|
**Returns:** mixed -
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a name="method_setGatewayId" class="anchor"></a>
|
|||
|
|
#### public setGatewayId() : mixed
|
|||
|
|
|
|||
|
|
```php
|
|||
|
|
public setGatewayId(string $value) : mixed
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**Summary**
|
|||
|
|
|
|||
|
|
Устанавливает идентификатор шлюза
|
|||
|
|
|
|||
|
|
**Details:**
|
|||
|
|
* Inherited From: [\YooKassa\Model\Recipient](../classes/YooKassa-Model-Recipient.md)
|
|||
|
|
|
|||
|
|
##### Parameters:
|
|||
|
|
| Type | Name | Description |
|
|||
|
|
| ---- | ---- | ----------- |
|
|||
|
|
| <code lang="php">string</code> | value | Идентификатор шлюза |
|
|||
|
|
|
|||
|
|
##### Throws:
|
|||
|
|
| Type | Description |
|
|||
|
|
| ---- | ----------- |
|
|||
|
|
| \YooKassa\Common\Exceptions\EmptyPropertyValueException | Выбрасывается если было передано пустое значение |
|
|||
|
|
| \YooKassa\Common\Exceptions\InvalidPropertyValueTypeException | Выбрасывается если было передано не строковое значение |
|
|||
|
|
|
|||
|
|
**Returns:** mixed -
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a name="method_toArray" class="anchor"></a>
|
|||
|
|
#### public toArray() : array
|
|||
|
|
|
|||
|
|
```php
|
|||
|
|
public toArray() : array
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**Summary**
|
|||
|
|
|
|||
|
|
Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации
|
|||
|
|
Является алиасом метода AbstractObject::jsonSerialize()
|
|||
|
|
|
|||
|
|
**Details:**
|
|||
|
|
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
|
|||
|
|
|
|||
|
|
**Returns:** array - Ассоциативный массив со свойствами текущего объекта
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a name="method_getUnknownProperties" class="anchor"></a>
|
|||
|
|
#### protected getUnknownProperties() : array
|
|||
|
|
|
|||
|
|
```php
|
|||
|
|
protected getUnknownProperties() : array
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**Summary**
|
|||
|
|
|
|||
|
|
Возвращает массив свойств которые не существуют, но были заданы у объекта
|
|||
|
|
|
|||
|
|
**Details:**
|
|||
|
|
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
|
|||
|
|
|
|||
|
|
**Returns:** array - Ассоциативный массив с не существующими у текущего объекта свойствами
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
### Top Namespaces
|
|||
|
|
|
|||
|
|
* [\YooKassa](../namespaces/yookassa.md)
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
### Reports
|
|||
|
|
* [Errors - 0](../reports/errors.md)
|
|||
|
|
* [Markers - 1](../reports/markers.md)
|
|||
|
|
* [Deprecated - 25](../reports/deprecated.md)
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
This document was automatically generated from source code comments on 2023-04-06 using [phpDocumentor](http://www.phpdoc.org/)
|
|||
|
|
|
|||
|
|
© 2023 YooMoney
|