# [YooKassa API SDK](../home.md)
# Class: \YooKassa\Model\Requestor
### Namespace: [\YooKassa\Model](../namespaces/yookassa-model.md)
---
**Summary:**
Инициатор платежа или возврата.
**Description:**
Инициатором может быть магазин, подключенный к ЮKassa, `merchant` или приложение, которому владелец магазина
[разрешил](https://yookassa.ru/developers/partners-api/basics) совершать операции от своего имени `third_party_client`.
---
### Constants
* No constants found
---
### Properties
| Visibility | Name | Flag | Summary |
| ----------:| ---- | ---- | ------- |
| public | [$account_id](../classes/YooKassa-Model-Requestor.md#property_account_id) | | Идентификатор магазина |
| public | [$accountId](../classes/YooKassa-Model-Requestor.md#property_accountId) | | Идентификатор магазина |
| public | [$client_id](../classes/YooKassa-Model-Requestor.md#property_client_id) | | Идентификатор приложения |
| public | [$client_name](../classes/YooKassa-Model-Requestor.md#property_client_name) | | Название приложения (только для type = RequestorThirdPartyService) |
| public | [$clientId](../classes/YooKassa-Model-Requestor.md#property_clientId) | | Идентификатор приложения |
| public | [$clientName](../classes/YooKassa-Model-Requestor.md#property_clientName) | | Название приложения (только для type = RequestorThirdPartyService) |
| public | [$type](../classes/YooKassa-Model-Requestor.md#property_type) | | Тип инициатора |
---
### 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-Requestor.md#method_getAccountId) | | Возвращает идентификатор магазина |
| public | [getClientId()](../classes/YooKassa-Model-Requestor.md#method_getClientId) | | Возвращает идентификатор приложения |
| public | [getClientName()](../classes/YooKassa-Model-Requestor.md#method_getClientName) | | Возвращает название приложения |
| public | [getType()](../classes/YooKassa-Model-Requestor.md#method_getType) | | Возвращает тип инициатора |
| 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-Requestor.md#method_setAccountId) | | Устанавливает идентификатор магазина |
| public | [setClientId()](../classes/YooKassa-Model-Requestor.md#method_setClientId) | | Устанавливает идентификатор приложения |
| public | [setClientName()](../classes/YooKassa-Model-Requestor.md#method_setClientName) | | Устанавливает название приложения |
| public | [setType()](../classes/YooKassa-Model-Requestor.md#method_setType) | | Устанавливает тип инициатора |
| 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/Requestor.php](../../lib/Model/Requestor.php)
* Package: YooKassa
* Class Hierarchy:
* [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
* \YooKassa\Model\Requestor
* Implements:
* [\YooKassa\Model\RequestorInterface](../classes/YooKassa-Model-RequestorInterface.md)
---
### Tags
| Tag | Version | Description |
| --- | ------- | ----------- |
| deprecated | | Не используется. Будет удален в следующих версиях |
---
## Properties
#### public $account_id : string
---
***Description***
Идентификатор магазина
**Type:** string
**Details:**
#### public $accountId : string
---
***Description***
Идентификатор магазина
**Type:** string
**Details:**
#### public $client_id : string
---
***Description***
Идентификатор приложения
**Type:** string
**Details:**
#### public $client_name : string
---
***Description***
Название приложения (только для type = RequestorThirdPartyService)
**Type:** string
**Details:**
#### public $clientId : string
---
***Description***
Идентификатор приложения
**Type:** string
**Details:**
#### public $clientName : string
---
***Description***
Название приложения (только для type = RequestorThirdPartyService)
**Type:** string
**Details:**
#### public $type : string
---
***Description***
Тип инициатора
**Type:** string
**Details:**
---
## Methods
#### 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 |
| ---- | ---- | ----------- |
| array | data | |
**Returns:** mixed -
#### 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 |
| ---- | ---- | ----------- |
| string | propertyName | Имя свойства |
**Returns:** mixed - Значение свойства
#### 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 |
| ---- | ---- | ----------- |
| string | propertyName | Имя проверяемого свойства |
**Returns:** bool - True если свойство имеется, false если нет
#### 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 |
| ---- | ---- | ----------- |
| string | propertyName | Имя свойства |
| mixed | value | Значение свойства |
**Returns:** mixed -
#### 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 |
| ---- | ---- | ----------- |
| string | propertyName | Имя удаляемого свойства |
**Returns:** mixed -
#### 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 |
| ---- | ---- | ----------- |
| array OR \Traversable | sourceArray | Ассоциативный массив с настройками |
**Returns:** mixed -
#### public getAccountId() : string|null
```php
public getAccountId() : string|null
```
**Summary**
Возвращает идентификатор магазина
**Details:**
* Inherited From: [\YooKassa\Model\Requestor](../classes/YooKassa-Model-Requestor.md)
**Returns:** string|null -
##### Tags
| Tag | Version | Description |
| --- | ------- | ----------- |
| inheritdoc | | |
#### public getClientId() : string|null
```php
public getClientId() : string|null
```
**Summary**
Возвращает идентификатор приложения
**Details:**
* Inherited From: [\YooKassa\Model\Requestor](../classes/YooKassa-Model-Requestor.md)
**Returns:** string|null -
##### Tags
| Tag | Version | Description |
| --- | ------- | ----------- |
| inheritdoc | | |
#### public getClientName() : string|null
```php
public getClientName() : string|null
```
**Summary**
Возвращает название приложения
**Details:**
* Inherited From: [\YooKassa\Model\Requestor](../classes/YooKassa-Model-Requestor.md)
**Returns:** string|null -
##### Tags
| Tag | Version | Description |
| --- | ------- | ----------- |
| inheritdoc | | |
#### public getType() : string
```php
public getType() : string
```
**Summary**
Возвращает тип инициатора
**Details:**
* Inherited From: [\YooKassa\Model\Requestor](../classes/YooKassa-Model-Requestor.md)
**Returns:** string -
##### Tags
| Tag | Version | Description |
| --- | ------- | ----------- |
| inheritdoc | | |
#### public jsonSerialize() : mixed
```php
public jsonSerialize() : mixed
```
**Details:**
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
**Returns:** mixed -
#### public offsetExists() : mixed
```php
public offsetExists(mixed $offset) : mixed
```
**Details:**
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| mixed | offset | |
**Returns:** mixed -
#### public offsetGet() : mixed
```php
public offsetGet(mixed $offset) : mixed
```
**Details:**
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| mixed | offset | |
**Returns:** mixed -
#### 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 |
| ---- | ---- | ----------- |
| mixed | offset | |
| mixed | value | |
**Returns:** mixed -
#### public offsetUnset() : mixed
```php
public offsetUnset(mixed $offset) : mixed
```
**Details:**
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| mixed | offset | |
**Returns:** mixed -
#### public setAccountId() : mixed
```php
public setAccountId(string $value) : mixed
```
**Summary**
Устанавливает идентификатор магазина
**Details:**
* Inherited From: [\YooKassa\Model\Requestor](../classes/YooKassa-Model-Requestor.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| string | value | Идентификатор магазина |
**Returns:** mixed -
##### Tags
| Tag | Version | Description |
| --- | ------- | ----------- |
| inheritdoc | | |
#### public setClientId() : mixed
```php
public setClientId(string $value) : mixed
```
**Summary**
Устанавливает идентификатор приложения
**Details:**
* Inherited From: [\YooKassa\Model\Requestor](../classes/YooKassa-Model-Requestor.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| string | value | Идентификатор приложения |
**Returns:** mixed -
##### Tags
| Tag | Version | Description |
| --- | ------- | ----------- |
| inheritdoc | | |
#### public setClientName() : mixed
```php
public setClientName(string $value) : mixed
```
**Summary**
Устанавливает название приложения
**Details:**
* Inherited From: [\YooKassa\Model\Requestor](../classes/YooKassa-Model-Requestor.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| string | value | Название приложения |
**Returns:** mixed -
##### Tags
| Tag | Version | Description |
| --- | ------- | ----------- |
| inheritdoc | | |
#### public setType() : mixed
```php
public setType(string $value) : mixed
```
**Summary**
Устанавливает тип инициатора
**Details:**
* Inherited From: [\YooKassa\Model\Requestor](../classes/YooKassa-Model-Requestor.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| string | value | Тип инициатора |
**Returns:** mixed -
##### Tags
| Tag | Version | Description |
| --- | ------- | ----------- |
| inheritdoc | | |
#### public toArray() : array
```php
public toArray() : array
```
**Summary**
Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации
Является алиасом метода AbstractObject::jsonSerialize()
**Details:**
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
**Returns:** array - Ассоциативный массив со свойствами текущего объекта
#### 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