Server : Apache System : Linux 145.162.205.92.host.secureserver.net 5.14.0-611.45.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Apr 1 05:56:53 EDT 2026 x86_64 User : tradze ( 1001) PHP Version : 8.1.34 Disable Function : NONE Directory : /home/tradze/public_html/test.tradze.com/vendor/stripe-php/lib/ |
<?php
namespace Stripe;
/**
* Class Payout
*
* @property string $id
* @property string $object
* @property int $amount
* @property string $balance_transaction
* @property string $cancellation_balance_transaction
* @property int $created
* @property string $currency
* @property int $arrival_date
* @property string $destination
* @property string $failure_code
* @property string $failure_message
* @property bool $livemode
* @property AttachedObject $metadata
* @property string $method
* @property string $recipient
* @property string $source_type
* @property string $statement_descriptor
* @property string $status
* @property string $type
*
* @package Stripe
*/
class Payout extends ApiResource
{
/**
* @param array|string $id The ID of the payout to retrieve, or an options
* array containing an `id` key.
* @param array|string|null $opts
*
* @return Payout
*/
public static function retrieve($id, $opts = null)
{
return self::_retrieve($id, $opts);
}
/**
* @param array|null $params
* @param array|string|null $opts
*
* @return Collection of Payouts
*/
public static function all($params = null, $opts = null)
{
return self::_all($params, $opts);
}
/**
* @param array|null $params
* @param array|string|null $opts
*
* @return Payout The created payout.
*/
public static function create($params = null, $opts = null)
{
return self::_create($params, $opts);
}
/**
* @param string $id The ID of the payout to update.
* @param array|null $params
* @param array|string|null $options
*
* @return Payout The updated payout.
*/
public static function update($id, $params = null, $options = null)
{
return self::_update($id, $params, $options);
}
/**
* @return Payout The canceled payout.
*/
public function cancel()
{
$url = $this->instanceUrl() . '/cancel';
list($response, $opts) = $this->_request('post', $url);
$this->refreshFrom($response, $opts);
return $this;
}
/**
* @param array|string|null $opts
*
* @return Payout The saved payout.
*/
public function save($opts = null)
{
return $this->_save($opts);
}
}