7.9 KiB
YooKassa API SDK
Class: \YooKassa\Request\PosLink\CreatePosLinkRequestBuilder
Namespace: \YooKassa\Request\PosLink
Summary:
Класс, представляющий модель CreatePosLinkRequestBuilder.
Description:
Класс билдера объектов запросов к API на создание кассовой ссылки.
Constants
- No constants found
Properties
| Visibility | Name | Flag | Summary |
|---|---|---|---|
| protected | $currentObject | Собираемый объект запроса. |
Methods
| Visibility | Name | Flag | Summary |
|---|---|---|---|
| public | __construct() | Конструктор, инициализирует пустой запрос, который в будущем начнём собирать. | |
| public | build() | Осуществляет сборку объекта запроса к API. | |
| public | setOptions() | Устанавливает свойства запроса из массива. | |
| public | setPosLinkData() | Устанавливает данные кассовой ссылки. | |
| public | setRecipient() | Устанавливает получателя платежа по кассовой ссылке. | |
| protected | initCurrentObject() | Инициализирует объект запроса, который в дальнейшем будет собираться билдером. |
Details
-
Package: YooKassa\Request
-
Class Hierarchy:
- \YooKassa\Common\AbstractRequestBuilder
- \YooKassa\Request\PosLink\CreatePosLinkRequestBuilder
-
See Also:
Tags
| Tag | Version | Description |
|---|---|---|
| category | Class | |
| author | cms@yoomoney.ru |
Properties
protected $currentObject : ?\YooKassa\Common\AbstractRequestInterface
Summary
Собираемый объект запроса.
Type: AbstractRequestInterface
Details:
Methods
public __construct() : mixed
public __construct() : mixed
Summary
Конструктор, инициализирует пустой запрос, который в будущем начнём собирать.
Details:
- Inherited From: \YooKassa\Common\AbstractRequestBuilder
Returns: mixed -
public build() : \YooKassa\Request\PosLink\CreatePosLinkRequestInterface|\YooKassa\Common\AbstractRequestInterface
public build(array|null $options = null) : \YooKassa\Request\PosLink\CreatePosLinkRequestInterface|\YooKassa\Common\AbstractRequestInterface
Summary
Осуществляет сборку объекта запроса к API.
Details:
- Inherited From: \YooKassa\Request\PosLink\CreatePosLinkRequestBuilder
Parameters:
| Type | Name | Description |
|---|---|---|
array OR null |
options |
Returns: \YooKassa\Request\PosLink\CreatePosLinkRequestInterface|\YooKassa\Common\AbstractRequestInterface -
public setOptions() : \YooKassa\Common\AbstractRequestBuilder
public setOptions(iterable|null $options) : \YooKassa\Common\AbstractRequestBuilder
Summary
Устанавливает свойства запроса из массива.
Details:
- Inherited From: \YooKassa\Common\AbstractRequestBuilder
Parameters:
| Type | Name | Description |
|---|---|---|
iterable OR null |
options | Массив свойств запроса |
Throws:
| Type | Description |
|---|---|
| \InvalidArgumentException | Выбрасывается если аргумент не массив и не итерируемый объект |
| \YooKassa\Common\Exceptions\InvalidPropertyException | Выбрасывается если не удалось установить один из параметров, переданных в массиве настроек |
Returns: \YooKassa\Common\AbstractRequestBuilder - Инстанс текущего билдера запросов
public setPosLinkData() : \YooKassa\Request\PosLink\CreatePosLinkRequestBuilder
public setPosLinkData(mixed $value) : \YooKassa\Request\PosLink\CreatePosLinkRequestBuilder
Summary
Устанавливает данные кассовой ссылки.
Details:
- Inherited From: \YooKassa\Request\PosLink\CreatePosLinkRequestBuilder
Parameters:
| Type | Name | Description |
|---|---|---|
mixed |
value | Данные кассовой ссылки |
Returns: \YooKassa\Request\PosLink\CreatePosLinkRequestBuilder - Инстанс текущего билдера
public setRecipient() : \YooKassa\Request\PosLink\CreatePosLinkRequestBuilder
public setRecipient(mixed $value) : \YooKassa\Request\PosLink\CreatePosLinkRequestBuilder
Summary
Устанавливает получателя платежа по кассовой ссылке.
Details:
- Inherited From: \YooKassa\Request\PosLink\CreatePosLinkRequestBuilder
Parameters:
| Type | Name | Description |
|---|---|---|
mixed |
value | Получатель платежа по кассовой ссылке |
Returns: \YooKassa\Request\PosLink\CreatePosLinkRequestBuilder - Инстанс текущего билдера
protected initCurrentObject() : \YooKassa\Request\PosLink\CreatePosLinkRequest
protected initCurrentObject() : \YooKassa\Request\PosLink\CreatePosLinkRequest
Summary
Инициализирует объект запроса, который в дальнейшем будет собираться билдером.
Details:
- Inherited From: \YooKassa\Request\PosLink\CreatePosLinkRequestBuilder
Returns: \YooKassa\Request\PosLink\CreatePosLinkRequest - Инстанс собираемого объекта запроса к API
Top Namespaces
Reports
This document was automatically generated from source code comments on 2026-08-13 using phpDocumentor
© 2026 YooMoney