PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.4
Booking for Appointments and Events Calendar – Amelia v2.4.4
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 / ReceivedDebit.php
ameliabooking / vendor / stripe / stripe-php / lib / Treasury Last commit date
CreditReversal.php 6 months ago DebitReversal.php 6 months ago FinancialAccount.php 6 months ago FinancialAccountFeatures.php 6 months ago InboundTransfer.php 6 months ago OutboundPayment.php 6 months ago OutboundTransfer.php 6 months ago ReceivedCredit.php 6 months ago ReceivedDebit.php 6 months ago Transaction.php 6 months ago TransactionEntry.php 6 months ago
ReceivedDebit.php
81 lines
1 <?php
2
3 // File generated from our OpenAPI spec
4
5 namespace AmeliaVendor\Stripe\Treasury;
6
7 /**
8 * ReceivedDebits represent funds pulled from a <a href="https://stripe.com/docs/api#financial_accounts">FinancialAccount</a>. These are not initiated from the FinancialAccount.
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 string $description An arbitrary string attached to the object. Often useful for displaying to users.
16 * @property null|string $failure_code Reason for the failure. A ReceivedDebit might fail because the FinancialAccount doesn't have sufficient funds, is closed, or is frozen.
17 * @property null|string $financial_account The FinancialAccount that funds were pulled 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|(object{balance?: string, billing_details: (object{address: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&\AmeliaVendor\Stripe\StripeObject), email: null|string, name: null|string}&\AmeliaVendor\Stripe\StripeObject), financial_account?: (object{id: string, network: string}&\AmeliaVendor\Stripe\StripeObject), issuing_card?: string, type: string, us_bank_account?: (object{bank_name: null|string, last4: null|string, routing_number: null|string}&\AmeliaVendor\Stripe\StripeObject)}&\AmeliaVendor\Stripe\StripeObject) $initiating_payment_method_details
20 * @property (object{debit_reversal: null|string, inbound_transfer: null|string, issuing_authorization: null|string, issuing_transaction: null|string, payout: null|string}&\AmeliaVendor\Stripe\StripeObject) $linked_flows
21 * @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.
22 * @property string $network The network used for the ReceivedDebit.
23 * @property null|(object{deadline: null|int, restricted_reason: null|string}&\AmeliaVendor\Stripe\StripeObject) $reversal_details Details describing when a ReceivedDebit might be reversed.
24 * @property string $status Status of the ReceivedDebit. ReceivedDebits are created with a status of either <code>succeeded</code> (approved) or <code>failed</code> (declined). The failure reason can be found under the <code>failure_code</code>.
25 * @property null|string|Transaction $transaction The Transaction associated with this object.
26 */
27 class ReceivedDebit extends \AmeliaVendor\Stripe\ApiResource
28 {
29 const OBJECT_NAME = 'treasury.received_debit';
30
31 const FAILURE_CODE_ACCOUNT_CLOSED = 'account_closed';
32 const FAILURE_CODE_ACCOUNT_FROZEN = 'account_frozen';
33 const FAILURE_CODE_INSUFFICIENT_FUNDS = 'insufficient_funds';
34 const FAILURE_CODE_INTERNATIONAL_TRANSACTION = 'international_transaction';
35 const FAILURE_CODE_OTHER = 'other';
36
37 const NETWORK_ACH = 'ach';
38 const NETWORK_CARD = 'card';
39 const NETWORK_STRIPE = 'stripe';
40
41 const STATUS_FAILED = 'failed';
42 const STATUS_SUCCEEDED = 'succeeded';
43
44 /**
45 * Returns a list of ReceivedDebits.
46 *
47 * @param null|array{ending_before?: string, expand?: string[], financial_account: string, limit?: int, starting_after?: string, status?: string} $params
48 * @param null|array|string $opts
49 *
50 * @return \AmeliaVendor\Stripe\Collection<ReceivedDebit> of ApiResources
51 *
52 * @throws \AmeliaVendor\Stripe\Exception\ApiErrorException if the request fails
53 */
54 public static function all($params = null, $opts = null)
55 {
56 $url = static::classUrl();
57
58 return static::_requestPage($url, \AmeliaVendor\Stripe\Collection::class, $params, $opts);
59 }
60
61 /**
62 * Retrieves the details of an existing ReceivedDebit by passing the unique
63 * ReceivedDebit ID from the ReceivedDebit list.
64 *
65 * @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
66 * @param null|array|string $opts
67 *
68 * @return ReceivedDebit
69 *
70 * @throws \AmeliaVendor\Stripe\Exception\ApiErrorException if the request fails
71 */
72 public static function retrieve($id, $opts = null)
73 {
74 $opts = \AmeliaVendor\Stripe\Util\RequestOptions::parse($opts);
75 $instance = new static($id, $opts);
76 $instance->refresh();
77
78 return $instance;
79 }
80 }
81