mirror of
https://github.com/itflow-org/itflow
synced 2026-03-25 06:45:40 +00:00
Updated Client Detail Header for better mobile fit, lots of progress on stripe pay and some other minor updates
This commit is contained in:
72
vendor/stripe-php-7.0.2/lib/Issuing/Authorization.php
vendored
Normal file
72
vendor/stripe-php-7.0.2/lib/Issuing/Authorization.php
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
namespace Stripe\Issuing;
|
||||
|
||||
/**
|
||||
* Class Authorization
|
||||
*
|
||||
* @property string $id
|
||||
* @property string $object
|
||||
* @property bool $approved
|
||||
* @property string $authorization_method
|
||||
* @property int $authorized_amount
|
||||
* @property string $authorized_currency
|
||||
* @property \Stripe\Collection $balance_transactions
|
||||
* @property Card $card
|
||||
* @property Cardholder $cardholder
|
||||
* @property int $created
|
||||
* @property int $held_amount
|
||||
* @property string $held_currency
|
||||
* @property bool $is_held_amount_controllable
|
||||
* @property bool $livemode
|
||||
* @property mixed $merchant_data
|
||||
* @property \Stripe\StripeObject $metadata
|
||||
* @property int $pending_authorized_amount
|
||||
* @property int $pending_held_amount
|
||||
* @property mixed $request_history
|
||||
* @property string $status
|
||||
* @property \Stripe\Collection $transactions
|
||||
* @property mixed $verification_data
|
||||
*
|
||||
* @package Stripe\Issuing
|
||||
*/
|
||||
class Authorization extends \Stripe\ApiResource
|
||||
{
|
||||
const OBJECT_NAME = "issuing.authorization";
|
||||
|
||||
use \Stripe\ApiOperations\All;
|
||||
use \Stripe\ApiOperations\Retrieve;
|
||||
use \Stripe\ApiOperations\Update;
|
||||
|
||||
/**
|
||||
* @param array|null $params
|
||||
* @param array|string|null $options
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return Authorization The approved authorization.
|
||||
*/
|
||||
public function approve($params = null, $options = null)
|
||||
{
|
||||
$url = $this->instanceUrl() . '/approve';
|
||||
list($response, $opts) = $this->_request('post', $url, $params, $options);
|
||||
$this->refreshFrom($response, $opts);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array|null $params
|
||||
* @param array|string|null $options
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return Authorization The declined authorization.
|
||||
*/
|
||||
public function decline($params = null, $options = null)
|
||||
{
|
||||
$url = $this->instanceUrl() . '/decline';
|
||||
list($response, $opts) = $this->_request('post', $url, $params, $options);
|
||||
$this->refreshFrom($response, $opts);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user