dolibarr/htdocs/includes/stripe/lib/Payout.php

48 lines
1.1 KiB
PHP
Raw Normal View History

2017-04-18 05:44:08 +02:00
<?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
2018-03-06 13:52:56 +01:00
* @property StripeObject $metadata
2017-04-18 05:44:08 +02:00
* @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
{
2018-03-06 13:52:56 +01:00
use ApiOperations\All;
use ApiOperations\Create;
use ApiOperations\Retrieve;
use ApiOperations\Update;
2017-04-18 05:44:08 +02:00
/**
* @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;
}
}