# [YooKassa API SDK](../home.md) # Interface: CreateCaptureRequestInterface ### Namespace: [\YooKassa\Request\Payments\Payment](../namespaces/yookassa-request-payments-payment.md) --- **Summary:** Interface CreateCaptureRequestInterface --- ### Constants * No constants found --- ### Methods | Visibility | Name | Flag | Summary | | ----------:| ---- | ---- | ------- | | public | [getAmount()](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md#method_getAmount) | | Возвращает подтверждаемую сумму оплаты | | public | [getDeal()](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md#method_getDeal) | | Возвращает данные о сделке | | public | [getReceipt()](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md#method_getReceipt) | | Возвращает чек, если он есть | | public | [getTransfers()](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md#method_getTransfers) | | Возвращает данные о распределении денег | | public | [hasAmount()](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md#method_hasAmount) | | Проверяет, была ли установлена сумма оплаты | | public | [hasDeal()](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md#method_hasDeal) | | Проверяет наличие данных о сделке | | public | [hasReceipt()](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md#method_hasReceipt) | | Проверяет наличие чека в создаваемом платеже | | public | [hasTransfers()](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md#method_hasTransfers) | | Проверяет наличие данных о распределении денег | | public | [setAmount()](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md#method_setAmount) | | Устанавливает сумму оплаты | | public | [setDeal()](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md#method_setDeal) | | Устанавливает данные о сделке | | public | [setReceipt()](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md#method_setReceipt) | | Устанавливает чек | | public | [setTransfers()](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md#method_setTransfers) | | Устанавливает transfers (массив распределения денег между магазинами) | --- ### Details * File: [lib/Request/Payments/Payment/CreateCaptureRequestInterface.php](../../lib/Request/Payments/Payment/CreateCaptureRequestInterface.php) * Package: \YooKassa --- ### Tags | Tag | Version | Description | | --- | ------- | ----------- | | property-read | | Подтверждаемая сумма оплаты | | property-read | | Данные фискального чека 54-ФЗ | --- ## Methods #### public getAmount() : \YooKassa\Model\AmountInterface ```php public getAmount() : \YooKassa\Model\AmountInterface ``` **Summary** Возвращает подтверждаемую сумму оплаты **Details:** * Inherited From: [\YooKassa\Request\Payments\Payment\CreateCaptureRequestInterface](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md) **Returns:** \YooKassa\Model\AmountInterface - Подтверждаемая сумма оплаты #### public hasAmount() : bool ```php public hasAmount() : bool ``` **Summary** Проверяет, была ли установлена сумма оплаты **Details:** * Inherited From: [\YooKassa\Request\Payments\Payment\CreateCaptureRequestInterface](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md) **Returns:** bool - True если сумма оплаты была установлена, false если нет #### public setAmount() : mixed ```php public setAmount(\YooKassa\Model\AmountInterface $value) : mixed ``` **Summary** Устанавливает сумму оплаты **Details:** * Inherited From: [\YooKassa\Request\Payments\Payment\CreateCaptureRequestInterface](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\AmountInterface | value | Сумма оплаты | **Returns:** mixed - #### public getReceipt() : \YooKassa\Model\ReceiptInterface|null ```php public getReceipt() : \YooKassa\Model\ReceiptInterface|null ``` **Summary** Возвращает чек, если он есть **Details:** * Inherited From: [\YooKassa\Request\Payments\Payment\CreateCaptureRequestInterface](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md) **Returns:** \YooKassa\Model\ReceiptInterface|null - Данные фискального чека 54-ФЗ или null, если чека нет ##### Tags | Tag | Version | Description | | --- | ------- | ----------- | | since | 1.0.2 | | #### public hasReceipt() : bool ```php public hasReceipt() : bool ``` **Summary** Проверяет наличие чека в создаваемом платеже **Details:** * Inherited From: [\YooKassa\Request\Payments\Payment\CreateCaptureRequestInterface](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md) **Returns:** bool - True если чек есть, false если нет ##### Tags | Tag | Version | Description | | --- | ------- | ----------- | | since | 1.0.2 | | #### public setReceipt() : mixed ```php public setReceipt(\YooKassa\Model\ReceiptInterface|null $value) : mixed ``` **Summary** Устанавливает чек **Details:** * Inherited From: [\YooKassa\Request\Payments\Payment\CreateCaptureRequestInterface](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\ReceiptInterface OR null | value | Инстанс чека или null для удаления информации о чеке | ##### Throws: | Type | Description | | ---- | ----------- | | \YooKassa\Common\Exceptions\InvalidPropertyValueTypeException | Выбрасывается если передан не инстанс класса чека и не null | **Returns:** mixed - #### public hasTransfers() : bool ```php public hasTransfers() : bool ``` **Summary** Проверяет наличие данных о распределении денег **Details:** * Inherited From: [\YooKassa\Request\Payments\Payment\CreateCaptureRequestInterface](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md) **Returns:** bool - #### public getTransfers() : \YooKassa\Model\TransferInterface[] ```php public getTransfers() : \YooKassa\Model\TransferInterface[] ``` **Summary** Возвращает данные о распределении денег **Details:** * Inherited From: [\YooKassa\Request\Payments\Payment\CreateCaptureRequestInterface](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md) **Returns:** \YooKassa\Model\TransferInterface[] - #### public setTransfers() : mixed ```php public setTransfers(\YooKassa\Model\TransferInterface[]|array|null $value) : mixed ``` **Summary** Устанавливает transfers (массив распределения денег между магазинами) **Details:** * Inherited From: [\YooKassa\Request\Payments\Payment\CreateCaptureRequestInterface](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\TransferInterface[] OR array OR null | value | | **Returns:** mixed - #### public hasDeal() : bool ```php public hasDeal() : bool ``` **Summary** Проверяет наличие данных о сделке **Details:** * Inherited From: [\YooKassa\Request\Payments\Payment\CreateCaptureRequestInterface](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md) **Returns:** bool - #### public getDeal() : \YooKassa\Model\Deal\PaymentDealInfo ```php public getDeal() : \YooKassa\Model\Deal\PaymentDealInfo ``` **Summary** Возвращает данные о сделке **Details:** * Inherited From: [\YooKassa\Request\Payments\Payment\CreateCaptureRequestInterface](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md) **Returns:** \YooKassa\Model\Deal\PaymentDealInfo - #### public setDeal() : mixed ```php public setDeal(\YooKassa\Model\Deal\PaymentDealInfo|array|null $value) : mixed ``` **Summary** Устанавливает данные о сделке **Details:** * Inherited From: [\YooKassa\Request\Payments\Payment\CreateCaptureRequestInterface](../classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\Deal\PaymentDealInfo OR array OR null | value | | **Returns:** mixed - --- ### 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