PHP 8.2.31
Preview: Transfer.php Size: 3.62 KB
/home/nshryvcy/blissfulnepal.com/wp-content/plugins/tourmaster/include/stripe/lib/Transfer.php

<?php

namespace Stripe;

/**
 * Class Transfer
 *
 * @property string $id
 * @property string $object
 * @property int $amount
 * @property int $amount_reversed
 * @property string $balance_transaction
 * @property int $created
 * @property string $currency
 * @property string $description
 * @property string $destination
 * @property string $destination_payment
 * @property bool $livemode
 * @property StripeObject $metadata
 * @property Collection $reversals
 * @property bool $reversed
 * @property string $source_transaction
 * @property string $source_type
 * @property string $transfer_group
 *
 * @package Stripe
 */
class Transfer extends ApiResource
{

    const OBJECT_NAME = "transfer";

    use ApiOperations\All;
    use ApiOperations\Create;
    use ApiOperations\NestedResource;
    use ApiOperations\Retrieve;
    use ApiOperations\Update;

    const PATH_REVERSALS = '/reversals';

    /**
     * Possible string representations of the source type of the transfer.
     * @link https://stripe.com/docs/api/transfers/object#transfer_object-source_type
     */
    const SOURCE_TYPE_ALIPAY_ACCOUNT = 'alipay_account';
    const SOURCE_TYPE_BANK_ACCOUNT   = 'bank_account';
    const SOURCE_TYPE_CARD           = 'card';
    const SOURCE_TYPE_FINANCING      = 'financing';

    /**
     * @return TransferReversal The created transfer reversal.
     */
    public function reverse($params = null, $opts = null)
    {
        $url = $this->instanceUrl() . '/reversals';
        list($response, $opts) = $this->_request('post', $url, $params, $opts);
        $this->refreshFrom($response, $opts);
        return $this;
    }

    /**
     * @return Transfer The canceled transfer.
     */
    public function cancel()
    {
        $url = $this->instanceUrl() . '/cancel';
        list($response, $opts) = $this->_request('post', $url);
        $this->refreshFrom($response, $opts);
        return $this;
    }

    /**
     * @param string|null $id The ID of the transfer on which to create the reversal.
     * @param array|null $params
     * @param array|string|null $opts
     *
     * @return TransferReversal
     */
    public static function createReversal($id, $params = null, $opts = null)
    {
        return self::_createNestedResource($id, static::PATH_REVERSALS, $params, $opts);
    }

    /**
     * @param string|null $id The ID of the transfer to which the reversal belongs.
     * @param array|null $reversalId The ID of the reversal to retrieve.
     * @param array|null $params
     * @param array|string|null $opts
     *
     * @return TransferReversal
     */
    public static function retrieveReversal($id, $reversalId, $params = null, $opts = null)
    {
        return self::_retrieveNestedResource($id, static::PATH_REVERSALS, $reversalId, $params, $opts);
    }

    /**
     * @param string|null $id The ID of the transfer to which the reversal belongs.
     * @param array|null $reversalId The ID of the reversal to update.
     * @param array|null $params
     * @param array|string|null $opts
     *
     * @return TransferReversal
     */
    public static function updateReversal($id, $reversalId, $params = null, $opts = null)
    {
        return self::_updateNestedResource($id, static::PATH_REVERSALS, $reversalId, $params, $opts);
    }

    /**
     * @param string|null $id The ID of the transfer on which to retrieve the reversals.
     * @param array|null $params
     * @param array|string|null $opts
     *
     * @return Collection The list of reversals.
     */
    public static function allReversals($id, $params = null, $opts = null)
    {
        return self::_allNestedResources($id, static::PATH_REVERSALS, $params, $opts);
    }
}

Directory Contents

Dirs: 10 × Files: 74

Name Size Perms Modified Actions
- drwxr-xr-x 2024-05-28 15:48:43
Edit Download
Checkout DIR
- drwxr-xr-x 2024-05-28 15:48:43
Edit Download
Error DIR
- drwxr-xr-x 2024-05-28 15:48:44
Edit Download
- drwxr-xr-x 2024-05-28 15:48:43
Edit Download
Issuing DIR
- drwxr-xr-x 2024-05-28 15:48:43
Edit Download
Radar DIR
- drwxr-xr-x 2024-05-28 15:48:44
Edit Download
Reporting DIR
- drwxr-xr-x 2024-05-28 15:48:43
Edit Download
Sigma DIR
- drwxr-xr-x 2024-05-28 15:48:44
Edit Download
Terminal DIR
- drwxr-xr-x 2024-05-28 15:48:43
Edit Download
Util DIR
- drwxr-xr-x 2024-05-28 15:48:44
Edit Download
12.98 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
302 B lrw-r--r-- 2024-05-28 15:48:44
Edit Download
2.22 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
15.87 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
3.22 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
549 B lrw-r--r-- 2024-05-28 15:48:43
Edit Download
550 B lrw-r--r-- 2024-05-28 15:48:44
Edit Download
2.77 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
1.29 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
505 B lrw-r--r-- 2024-05-28 15:48:43
Edit Download
2.65 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
3.48 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
1.31 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
181 B lrw-r--r-- 2024-05-28 15:48:44
Edit Download
2.26 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
4.24 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
7.87 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
2.89 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
560 B lrw-r--r-- 2024-05-28 15:48:44
Edit Download
743 B lrw-r--r-- 2024-05-28 15:48:43
Edit Download
2.05 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
9.91 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
2.83 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
320 B lrw-r--r-- 2024-05-28 15:48:44
Edit Download
2.63 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
894 B lrw-r--r-- 2024-05-28 15:48:44
Edit Download
11.00 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
223 B lrw-r--r-- 2024-05-28 15:48:44
Edit Download
1.67 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
523 B lrw-r--r-- 2024-05-28 15:48:44
Edit Download
154 B lrw-r--r-- 2024-05-28 15:48:44
Edit Download
6.42 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
870 B lrw-r--r-- 2024-05-28 15:48:44
Edit Download
705 B lrw-r--r-- 2024-05-28 15:48:44
Edit Download
436 B lrw-r--r-- 2024-05-28 15:48:43
Edit Download
236 B lrw-r--r-- 2024-05-28 15:48:43
Edit Download
3.13 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
1.61 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
355 B lrw-r--r-- 2024-05-28 15:48:44
Edit Download
471 B lrw-r--r-- 2024-05-28 15:48:44
Edit Download
3.19 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
1.44 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
3.00 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
3.06 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
871 B lrw-r--r-- 2024-05-28 15:48:44
Edit Download
1.09 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
1.04 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
919 B lrw-r--r-- 2024-05-28 15:48:43
Edit Download
1.77 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
559 B lrw-r--r-- 2024-05-28 15:48:44
Edit Download
1.61 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
2.12 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
937 B lrw-r--r-- 2024-05-28 15:48:43
Edit Download
692 B lrw-r--r-- 2024-05-28 15:48:43
Edit Download
4.38 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
415 B lrw-r--r-- 2024-05-28 15:48:44
Edit Download
6.59 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
17.34 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
2.70 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
1.09 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
3.23 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
2.15 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
2.20 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
600 B lrw-r--r-- 2024-05-28 15:48:44
Edit Download
334 B lrw-r--r-- 2024-05-28 15:48:44
Edit Download
767 B lrw-r--r-- 2024-05-28 15:48:44
Edit Download
1.52 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
3.62 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
1.42 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
1.21 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
383 B lrw-r--r-- 2024-05-28 15:48:44
Edit Download
1.46 KB lrw-r--r-- 2024-05-28 15:48:44
Edit Download
550 B lrw-r--r-- 2024-05-28 15:48:44
Edit Download
4.14 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).