PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.8
Booking for Appointments and Events Calendar – Amelia v2.4.8
2.4.8 2.4.7 2.4.6 2.4.5 2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / vendor / stripe / stripe-php / lib / Treasury / DebitReversal.php
ameliabooking / vendor / stripe / stripe-php / lib / Treasury Last commit date
CreditReversal.php 7 months ago DebitReversal.php 7 months ago FinancialAccount.php 7 months ago FinancialAccountFeatures.php 7 months ago InboundTransfer.php 7 months ago OutboundPayment.php 7 months ago OutboundTransfer.php 7 months ago ReceivedCredit.php 7 months ago ReceivedDebit.php 7 months ago Transaction.php 7 months ago TransactionEntry.php 7 months ago
DebitReversal.php
95 lines
1 <?php
2
3 // File generated from our OpenAPI spec
4
5 namespace AmeliaVendor\Stripe\Treasury;
6
7 /**
8 * You can reverse some <a href="https://stripe.com/docs/api#received_debits">ReceivedDebits</a> depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal.
9 *
10 * @property string $id Unique identifier for the object.
11 * @property string $object String representing the object's type. Objects of the same type share the same value.
12 * @property int $amount Amount (in cents) transferred.
13 * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
14 * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
15 * @property null|string $financial_account The FinancialAccount to reverse funds from.
16 * @property null|string $hosted_regulatory_receipt_url A <a href="https://stripe.com/docs/treasury/moving-money/regulatory-receipts">hosted transaction receipt</a> URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
17 * @property null|(object{issuing_dispute: null|string}&\AmeliaVendor\Stripe\StripeObject) $linked_flows Other flows linked to a DebitReversal.
18 * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
19 * @property \AmeliaVendor\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
20 * @property string $network The rails used to reverse the funds.
21 * @property string $received_debit The ReceivedDebit being reversed.
22 * @property string $status Status of the DebitReversal
23 * @property (object{completed_at: null|int}&\AmeliaVendor\Stripe\StripeObject) $status_transitions
24 * @property null|string|Transaction $transaction The Transaction associated with this object.
25 */
26 class DebitReversal extends \AmeliaVendor\Stripe\ApiResource
27 {
28 const OBJECT_NAME = 'treasury.debit_reversal';
29
30 const NETWORK_ACH = 'ach';
31 const NETWORK_CARD = 'card';
32
33 const STATUS_FAILED = 'failed';
34 const STATUS_PROCESSING = 'processing';
35 const STATUS_SUCCEEDED = 'succeeded';
36
37 /**
38 * Reverses a ReceivedDebit and creates a DebitReversal object.
39 *
40 * @param null|array{expand?: string[], metadata?: array<string, string>, received_debit: string} $params
41 * @param null|array|string $options
42 *
43 * @return DebitReversal the created resource
44 *
45 * @throws \AmeliaVendor\Stripe\Exception\ApiErrorException if the request fails
46 */
47 public static function create($params = null, $options = null)
48 {
49 self::_validateParams($params);
50 $url = static::classUrl();
51
52 list($response, $opts) = static::_staticRequest('post', $url, $params, $options);
53 $obj = \AmeliaVendor\Stripe\Util\Util::convertToStripeObject($response->json, $opts);
54 $obj->setLastResponse($response);
55
56 return $obj;
57 }
58
59 /**
60 * Returns a list of DebitReversals.
61 *
62 * @param null|array{ending_before?: string, expand?: string[], financial_account: string, limit?: int, received_debit?: string, resolution?: string, starting_after?: string, status?: string} $params
63 * @param null|array|string $opts
64 *
65 * @return \AmeliaVendor\Stripe\Collection<DebitReversal> of ApiResources
66 *
67 * @throws \AmeliaVendor\Stripe\Exception\ApiErrorException if the request fails
68 */
69 public static function all($params = null, $opts = null)
70 {
71 $url = static::classUrl();
72
73 return static::_requestPage($url, \AmeliaVendor\Stripe\Collection::class, $params, $opts);
74 }
75
76 /**
77 * Retrieves a DebitReversal object.
78 *
79 * @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
80 * @param null|array|string $opts
81 *
82 * @return DebitReversal
83 *
84 * @throws \AmeliaVendor\Stripe\Exception\ApiErrorException if the request fails
85 */
86 public static function retrieve($id, $opts = null)
87 {
88 $opts = \AmeliaVendor\Stripe\Util\RequestOptions::parse($opts);
89 $instance = new static($id, $opts);
90 $instance->refresh();
91
92 return $instance;
93 }
94 }
95