| 1 |
<?php |
| 2 |
|
| 3 |
// File generated from our OpenAPI spec |
| 4 |
|
| 5 |
namespace Stripe\Treasury; |
| 6 |
|
| 7 |
/** |
| 8 |
* Transactions represent changes to a <a |
| 9 |
* href="https://stripe.com/docs/api#financial_accounts">FinancialAccount's</a> |
| 10 |
* balance. |
| 11 |
* |
| 12 |
* @property string $id Unique identifier for the object. |
| 13 |
* @property string $object String representing the object's type. Objects of the same type share the same value. |
| 14 |
* @property int $amount Amount (in cents) transferred. |
| 15 |
* @property \Stripe\StripeObject $balance_impact Change to a FinancialAccount's balance |
| 16 |
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. |
| 17 |
* @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>. |
| 18 |
* @property string $description An arbitrary string attached to the object. Often useful for displaying to users. |
| 19 |
* @property null|\Stripe\Collection<\Stripe\Treasury\TransactionEntry> $entries A list of TransactionEntries that are part of this Transaction. This cannot be expanded in any list endpoints. |
| 20 |
* @property string $financial_account The FinancialAccount associated with this object. |
| 21 |
* @property null|string $flow ID of the flow that created the Transaction. |
| 22 |
* @property null|\Stripe\StripeObject $flow_details Details of the flow that created the Transaction. |
| 23 |
* @property string $flow_type Type of the flow that created the Transaction. |
| 24 |
* @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. |
| 25 |
* @property string $status Status of the Transaction. |
| 26 |
* @property \Stripe\StripeObject $status_transitions |
| 27 |
*/ |
| 28 |
class Transaction extends \Stripe\ApiResource |
| 29 |
{ |
| 30 |
const OBJECT_NAME = 'treasury.transaction'; |
| 31 |
|
| 32 |
use \Stripe\ApiOperations\All; |
| 33 |
use \Stripe\ApiOperations\Retrieve; |
| 34 |
|
| 35 |
const FLOW_TYPE_CREDIT_REVERSAL = 'credit_reversal'; |
| 36 |
const FLOW_TYPE_DEBIT_REVERSAL = 'debit_reversal'; |
| 37 |
const FLOW_TYPE_INBOUND_TRANSFER = 'inbound_transfer'; |
| 38 |
const FLOW_TYPE_ISSUING_AUTHORIZATION = 'issuing_authorization'; |
| 39 |
const FLOW_TYPE_OTHER = 'other'; |
| 40 |
const FLOW_TYPE_OUTBOUND_PAYMENT = 'outbound_payment'; |
| 41 |
const FLOW_TYPE_OUTBOUND_TRANSFER = 'outbound_transfer'; |
| 42 |
const FLOW_TYPE_RECEIVED_CREDIT = 'received_credit'; |
| 43 |
const FLOW_TYPE_RECEIVED_DEBIT = 'received_debit'; |
| 44 |
|
| 45 |
const STATUS_OPEN = 'open'; |
| 46 |
const STATUS_POSTED = 'posted'; |
| 47 |
const STATUS_VOID = 'void'; |
| 48 |
} |
| 49 |
|