mirror of
https://git.yoomoney.ru/scm/sdk/yookassa-sdk-php.git
synced 2026-08-17 09:33:34 +00:00
2db9951ff6
Информация про чеки самозанятых в платежах и возвратах удалена - больше не поддерживаем сервисы для самозанятых Добавлена возможность выставления счета по смс и email Добавлена поддержка работы со списками выплат Обновлен Copyright
114 lines
4.9 KiB
PHP
114 lines
4.9 KiB
PHP
<?php
|
||
|
||
/*
|
||
* The MIT License
|
||
*
|
||
* Copyright (c) 2026 "YooMoney", NBСO LLC
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
* of this software and associated documentation files (the "Software"), to deal
|
||
* in the Software without restriction, including without limitation the rights
|
||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||
* copies of the Software, and to permit persons to whom the Software is
|
||
* furnished to do so, subject to the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be included in
|
||
* all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||
* THE SOFTWARE.
|
||
*/
|
||
|
||
namespace YooKassa\Request\Payments;
|
||
|
||
use YooKassa\Common\AbstractObject;
|
||
use YooKassa\Validator\Constraints as Assert;
|
||
|
||
/**
|
||
* Класс, представляющий модель FraudData.
|
||
*
|
||
* Информация для проверки операции на мошенничество
|
||
*
|
||
* @category Class
|
||
* @package YooKassa\Request
|
||
* @author cms@yoomoney.ru
|
||
* @link https://yookassa.ru/developers/api
|
||
*
|
||
* @deprecated Больше не поддерживается. Вместо него нужно использовать `receiver`.
|
||
*
|
||
* @property string|null $toppedUpPhone Номер телефона для пополнения
|
||
* @property string|null $topped_up_phone Номер телефона для пополнения
|
||
* @property MerchantCustomerBankAccount|null $merchantCustomerBankAccount Данные банковского счета, открытого в вашей системе
|
||
* @property MerchantCustomerBankAccount|null $merchant_customer_bank_account Данные банковского счета, открытого в вашей системе
|
||
*/
|
||
class FraudData extends AbstractObject
|
||
{
|
||
/**
|
||
* Номер телефона для пополнения. Не более 15 символов. Пример: ~`79110000000`.
|
||
* Необходим при [пополнении баланса телефона](/developers/payment-acceptance/scenario-extensions/top-up-phones-balance).
|
||
* @var string|null
|
||
*/
|
||
#[Assert\Type('string')]
|
||
#[Assert\Regex("/^[0-9]{4,15}$/")]
|
||
private ?string $_topped_up_phone = null;
|
||
|
||
/**
|
||
* Данные банковского счета, открытого в вашей системе.
|
||
* Необходимо передавать, если пользователь [пополняет свой счет](/developers/payment-acceptance/scenario-extensions/bank-account-in-merchant-system).
|
||
* @var MerchantCustomerBankAccount|null
|
||
*/
|
||
#[Assert\Type(MerchantCustomerBankAccount::class)]
|
||
private ?MerchantCustomerBankAccount $_merchant_customer_bank_account = null;
|
||
|
||
/**
|
||
* Возвращает номер телефона для пополнения.
|
||
*
|
||
* @return string|null
|
||
*/
|
||
public function getToppedUpPhone(): ?string
|
||
{
|
||
return $this->_topped_up_phone;
|
||
}
|
||
|
||
/**
|
||
* Устанавливает Номер телефона для пополнения.
|
||
*
|
||
* @param string|null $topped_up_phone Номер телефона для пополнения. Не более 15 символов. Пример: ~`79110000000`
|
||
*
|
||
* @return self
|
||
*/
|
||
public function setToppedUpPhone(?string $topped_up_phone = null): self
|
||
{
|
||
$this->_topped_up_phone = $this->validatePropertyValue('_topped_up_phone', $topped_up_phone);
|
||
return $this;
|
||
}
|
||
|
||
/**
|
||
* Возвращает данные банковского счета, открытого в вашей системе.
|
||
*
|
||
* @return MerchantCustomerBankAccount|null Данные банковского счета
|
||
*/
|
||
public function getMerchantCustomerBankAccount(): ?MerchantCustomerBankAccount
|
||
{
|
||
return $this->_merchant_customer_bank_account;
|
||
}
|
||
|
||
/**
|
||
* Устанавливает данные банковского счета, открытого в вашей системе.
|
||
*
|
||
* @param MerchantCustomerBankAccount|array|null $merchant_customer_bank_account Данные банковского счета
|
||
*
|
||
* @return self
|
||
*/
|
||
public function setMerchantCustomerBankAccount(mixed $merchant_customer_bank_account = null): self
|
||
{
|
||
$this->_merchant_customer_bank_account = $this->validatePropertyValue('_merchant_customer_bank_account', $merchant_customer_bank_account);
|
||
return $this;
|
||
}
|
||
}
|