| 1 |
<?php |
| 2 |
|
| 3 |
// File generated from our OpenAPI spec |
| 4 |
|
| 5 |
namespace Stripe\Treasury; |
| 6 |
|
| 7 |
/** |
| 8 |
* You can reverse some <a |
| 9 |
* href="https://stripe.com/docs/api#received_debits">ReceivedDebits</a> depending |
| 10 |
* on their network and source flow. Reversing a ReceivedDebit leads to the |
| 11 |
* creation of a new object known as a DebitReversal. |
| 12 |
* |
| 13 |
* @property string $id Unique identifier for the object. |
| 14 |
* @property string $object String representing the object's type. Objects of the same type share the same value. |
| 15 |
* @property int $amount Amount (in cents) transferred. |
| 16 |
* @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>. |
| 17 |
* @property null|string $financial_account The FinancialAccount to reverse funds from. |
| 18 |
* @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. |
| 19 |
* @property null|\Stripe\StripeObject $linked_flows Other flows linked to a DebitReversal. |
| 20 |
* @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. |
| 21 |
* @property \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. |
| 22 |
* @property string $network The rails used to reverse the funds. |
| 23 |
* @property string $received_debit The ReceivedDebit being reversed. |
| 24 |
* @property string $status Status of the DebitReversal |
| 25 |
* @property \Stripe\StripeObject $status_transitions |
| 26 |
* @property null|string|\Stripe\Treasury\Transaction $transaction The Transaction associated with this object. |
| 27 |
*/ |
| 28 |
class DebitReversal extends \Stripe\ApiResource |
| 29 |
{ |
| 30 |
const OBJECT_NAME = 'treasury.debit_reversal'; |
| 31 |
|
| 32 |
use \Stripe\ApiOperations\All; |
| 33 |
use \Stripe\ApiOperations\Create; |
| 34 |
use \Stripe\ApiOperations\Retrieve; |
| 35 |
|
| 36 |
const NETWORK_ACH = 'ach'; |
| 37 |
const NETWORK_CARD = 'card'; |
| 38 |
|
| 39 |
const STATUS_FAILED = 'failed'; |
| 40 |
const STATUS_PROCESSING = 'processing'; |
| 41 |
const STATUS_SUCCEEDED = 'succeeded'; |
| 42 |
} |
| 43 |
|