mirror of
https://github.com/itflow-org/itflow
synced 2026-03-07 14:24:50 +00:00
Bump stripe-php from 16.4.0 to 17.2.1
This commit is contained in:
@@ -19,8 +19,8 @@ namespace Stripe\Treasury;
|
||||
* @property string $network The rails used to reverse the funds.
|
||||
* @property string $received_credit The ReceivedCredit being reversed.
|
||||
* @property string $status Status of the CreditReversal
|
||||
* @property \Stripe\StripeObject $status_transitions
|
||||
* @property null|string|\Stripe\Treasury\Transaction $transaction The Transaction associated with this object.
|
||||
* @property (object{posted_at: null|int}&\Stripe\StripeObject) $status_transitions
|
||||
* @property null|string|Transaction $transaction The Transaction associated with this object.
|
||||
*/
|
||||
class CreditReversal extends \Stripe\ApiResource
|
||||
{
|
||||
@@ -36,12 +36,12 @@ class CreditReversal extends \Stripe\ApiResource
|
||||
/**
|
||||
* Reverses a ReceivedCredit and creates a CreditReversal object.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{expand?: string[], metadata?: array<string, string>, received_credit: string} $params
|
||||
* @param null|array|string $options
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return CreditReversal the created resource
|
||||
*
|
||||
* @return \Stripe\Treasury\CreditReversal the created resource
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function create($params = null, $options = null)
|
||||
{
|
||||
@@ -58,12 +58,12 @@ class CreditReversal extends \Stripe\ApiResource
|
||||
/**
|
||||
* Returns a list of CreditReversals.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{ending_before?: string, expand?: string[], financial_account: string, limit?: int, received_credit?: string, starting_after?: string, status?: string} $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return \Stripe\Collection<CreditReversal> of ApiResources
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Treasury\CreditReversal> of ApiResources
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function all($params = null, $opts = null)
|
||||
{
|
||||
@@ -80,9 +80,9 @@ class CreditReversal extends \Stripe\ApiResource
|
||||
* @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return CreditReversal
|
||||
*
|
||||
* @return \Stripe\Treasury\CreditReversal
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function retrieve($id, $opts = null)
|
||||
{
|
||||
|
||||
@@ -14,14 +14,14 @@ namespace Stripe\Treasury;
|
||||
* @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>.
|
||||
* @property null|string $financial_account The FinancialAccount to reverse funds from.
|
||||
* @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.
|
||||
* @property null|\Stripe\StripeObject $linked_flows Other flows linked to a DebitReversal.
|
||||
* @property null|(object{issuing_dispute: null|string}&\Stripe\StripeObject) $linked_flows Other flows linked to a DebitReversal.
|
||||
* @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.
|
||||
* @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.
|
||||
* @property string $network The rails used to reverse the funds.
|
||||
* @property string $received_debit The ReceivedDebit being reversed.
|
||||
* @property string $status Status of the DebitReversal
|
||||
* @property \Stripe\StripeObject $status_transitions
|
||||
* @property null|string|\Stripe\Treasury\Transaction $transaction The Transaction associated with this object.
|
||||
* @property (object{completed_at: null|int}&\Stripe\StripeObject) $status_transitions
|
||||
* @property null|string|Transaction $transaction The Transaction associated with this object.
|
||||
*/
|
||||
class DebitReversal extends \Stripe\ApiResource
|
||||
{
|
||||
@@ -37,12 +37,12 @@ class DebitReversal extends \Stripe\ApiResource
|
||||
/**
|
||||
* Reverses a ReceivedDebit and creates a DebitReversal object.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{expand?: string[], metadata?: array<string, string>, received_debit: string} $params
|
||||
* @param null|array|string $options
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return DebitReversal the created resource
|
||||
*
|
||||
* @return \Stripe\Treasury\DebitReversal the created resource
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function create($params = null, $options = null)
|
||||
{
|
||||
@@ -59,12 +59,12 @@ class DebitReversal extends \Stripe\ApiResource
|
||||
/**
|
||||
* Returns a list of DebitReversals.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{ending_before?: string, expand?: string[], financial_account: string, limit?: int, received_debit?: string, resolution?: string, starting_after?: string, status?: string} $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return \Stripe\Collection<DebitReversal> of ApiResources
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Treasury\DebitReversal> of ApiResources
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function all($params = null, $opts = null)
|
||||
{
|
||||
@@ -79,9 +79,9 @@ class DebitReversal extends \Stripe\ApiResource
|
||||
* @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return DebitReversal
|
||||
*
|
||||
* @return \Stripe\Treasury\DebitReversal
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function retrieve($id, $opts = null)
|
||||
{
|
||||
|
||||
@@ -11,18 +11,20 @@ namespace Stripe\Treasury;
|
||||
* @property string $id Unique identifier for the object.
|
||||
* @property string $object String representing the object's type. Objects of the same type share the same value.
|
||||
* @property null|string[] $active_features The array of paths to active Features in the Features hash.
|
||||
* @property \Stripe\StripeObject $balance Balance information for the FinancialAccount
|
||||
* @property (object{cash: \Stripe\StripeObject, inbound_pending: \Stripe\StripeObject, outbound_pending: \Stripe\StripeObject}&\Stripe\StripeObject) $balance Balance information for the FinancialAccount
|
||||
* @property string $country Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a>).
|
||||
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
* @property null|\Stripe\Treasury\FinancialAccountFeatures $features Encodes whether a FinancialAccount has access to a particular Feature, with a <code>status</code> enum and associated <code>status_details</code>. Stripe or the platform can control Features via the requested field.
|
||||
* @property \Stripe\StripeObject[] $financial_addresses The set of credentials that resolve to a FinancialAccount.
|
||||
* @property null|FinancialAccountFeatures $features Encodes whether a FinancialAccount has access to a particular Feature, with a <code>status</code> enum and associated <code>status_details</code>. Stripe or the platform can control Features via the requested field.
|
||||
* @property ((object{aba?: (object{account_holder_name: string, account_number?: null|string, account_number_last4: string, bank_name: string, routing_number: string}&\Stripe\StripeObject), supported_networks?: string[], type: string}&\Stripe\StripeObject))[] $financial_addresses The set of credentials that resolve to a FinancialAccount.
|
||||
* @property null|bool $is_default
|
||||
* @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.
|
||||
* @property null|\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.
|
||||
* @property null|string $nickname The nickname for the FinancialAccount.
|
||||
* @property null|string[] $pending_features The array of paths to pending Features in the Features hash.
|
||||
* @property null|\Stripe\StripeObject $platform_restrictions The set of functionalities that the platform can restrict on the FinancialAccount.
|
||||
* @property null|(object{inbound_flows: null|string, outbound_flows: null|string}&\Stripe\StripeObject) $platform_restrictions The set of functionalities that the platform can restrict on the FinancialAccount.
|
||||
* @property null|string[] $restricted_features The array of paths to restricted Features in the Features hash.
|
||||
* @property string $status Status of this FinancialAccount.
|
||||
* @property \Stripe\StripeObject $status_details
|
||||
* @property (object{closed: null|(object{reasons: string[]}&\Stripe\StripeObject)}&\Stripe\StripeObject) $status_details
|
||||
* @property string[] $supported_currencies The currencies the FinancialAccount can hold a balance in. Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase.
|
||||
*/
|
||||
class FinancialAccount extends \Stripe\ApiResource
|
||||
@@ -35,15 +37,15 @@ class FinancialAccount extends \Stripe\ApiResource
|
||||
const STATUS_OPEN = 'open';
|
||||
|
||||
/**
|
||||
* Creates a new FinancialAccount. For now, each connected account can only have
|
||||
* one FinancialAccount.
|
||||
* Creates a new FinancialAccount. Each connected account can have up to three
|
||||
* FinancialAccounts by default.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{expand?: string[], features?: array{card_issuing?: array{requested: bool}, deposit_insurance?: array{requested: bool}, financial_addresses?: array{aba?: array{requested: bool}}, inbound_transfers?: array{ach?: array{requested: bool}}, intra_stripe_flows?: array{requested: bool}, outbound_payments?: array{ach?: array{requested: bool}, us_domestic_wire?: array{requested: bool}}, outbound_transfers?: array{ach?: array{requested: bool}, us_domestic_wire?: array{requested: bool}}}, metadata?: array<string, string>, nickname?: null|string, platform_restrictions?: array{inbound_flows?: string, outbound_flows?: string}, supported_currencies: string[]} $params
|
||||
* @param null|array|string $options
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return FinancialAccount the created resource
|
||||
*
|
||||
* @return \Stripe\Treasury\FinancialAccount the created resource
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function create($params = null, $options = null)
|
||||
{
|
||||
@@ -60,12 +62,12 @@ class FinancialAccount extends \Stripe\ApiResource
|
||||
/**
|
||||
* Returns a list of FinancialAccounts.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{created?: array|int, ending_before?: string, expand?: string[], limit?: int, starting_after?: string} $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return \Stripe\Collection<FinancialAccount> of ApiResources
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Treasury\FinancialAccount> of ApiResources
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function all($params = null, $opts = null)
|
||||
{
|
||||
@@ -80,9 +82,9 @@ class FinancialAccount extends \Stripe\ApiResource
|
||||
* @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return FinancialAccount
|
||||
*
|
||||
* @return \Stripe\Treasury\FinancialAccount
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function retrieve($id, $opts = null)
|
||||
{
|
||||
@@ -97,12 +99,12 @@ class FinancialAccount extends \Stripe\ApiResource
|
||||
* Updates the details of a FinancialAccount.
|
||||
*
|
||||
* @param string $id the ID of the resource to update
|
||||
* @param null|array $params
|
||||
* @param null|array{expand?: string[], features?: array{card_issuing?: array{requested: bool}, deposit_insurance?: array{requested: bool}, financial_addresses?: array{aba?: array{requested: bool}}, inbound_transfers?: array{ach?: array{requested: bool}}, intra_stripe_flows?: array{requested: bool}, outbound_payments?: array{ach?: array{requested: bool}, us_domestic_wire?: array{requested: bool}}, outbound_transfers?: array{ach?: array{requested: bool}, us_domestic_wire?: array{requested: bool}}}, forwarding_settings?: array{financial_account?: string, payment_method?: string, type: string}, metadata?: array<string, string>, nickname?: null|string, platform_restrictions?: array{inbound_flows?: string, outbound_flows?: string}} $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return FinancialAccount the updated resource
|
||||
*
|
||||
* @return \Stripe\Treasury\FinancialAccount the updated resource
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function update($id, $params = null, $opts = null)
|
||||
{
|
||||
@@ -120,9 +122,26 @@ class FinancialAccount extends \Stripe\ApiResource
|
||||
* @param null|array $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return FinancialAccount the closed financial account
|
||||
*
|
||||
* @return \Stripe\Treasury\FinancialAccountFeatures the retrieved financial account features
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function close($params = null, $opts = null)
|
||||
{
|
||||
$url = $this->instanceUrl() . '/close';
|
||||
list($response, $opts) = $this->_request('post', $url, $params, $opts);
|
||||
$this->refreshFrom($response, $opts);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param null|array $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @return FinancialAccountFeatures the retrieved financial account features
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function retrieveFeatures($params = null, $opts = null)
|
||||
{
|
||||
@@ -138,9 +157,9 @@ class FinancialAccount extends \Stripe\ApiResource
|
||||
* @param null|array $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return FinancialAccountFeatures the updated financial account features
|
||||
*
|
||||
* @return \Stripe\Treasury\FinancialAccountFeatures the updated financial account features
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function updateFeatures($params = null, $opts = null)
|
||||
{
|
||||
|
||||
@@ -9,13 +9,13 @@ namespace Stripe\Treasury;
|
||||
* Stripe or the platform can control Features via the requested field.
|
||||
*
|
||||
* @property string $object String representing the object's type. Objects of the same type share the same value.
|
||||
* @property null|\Stripe\StripeObject $card_issuing Toggle settings for enabling/disabling a feature
|
||||
* @property null|\Stripe\StripeObject $deposit_insurance Toggle settings for enabling/disabling a feature
|
||||
* @property null|\Stripe\StripeObject $financial_addresses Settings related to Financial Addresses features on a Financial Account
|
||||
* @property null|\Stripe\StripeObject $inbound_transfers InboundTransfers contains inbound transfers features for a FinancialAccount.
|
||||
* @property null|\Stripe\StripeObject $intra_stripe_flows Toggle settings for enabling/disabling a feature
|
||||
* @property null|\Stripe\StripeObject $outbound_payments Settings related to Outbound Payments features on a Financial Account
|
||||
* @property null|\Stripe\StripeObject $outbound_transfers OutboundTransfers contains outbound transfers features for a FinancialAccount.
|
||||
* @property null|(object{requested: bool, status: string, status_details: ((object{code: string, resolution: null|string, restriction?: string}&\Stripe\StripeObject))[]}&\Stripe\StripeObject) $card_issuing Toggle settings for enabling/disabling a feature
|
||||
* @property null|(object{requested: bool, status: string, status_details: ((object{code: string, resolution: null|string, restriction?: string}&\Stripe\StripeObject))[]}&\Stripe\StripeObject) $deposit_insurance Toggle settings for enabling/disabling a feature
|
||||
* @property null|(object{aba?: (object{requested: bool, status: string, status_details: ((object{code: string, resolution: null|string, restriction?: string}&\Stripe\StripeObject))[]}&\Stripe\StripeObject)}&\Stripe\StripeObject) $financial_addresses Settings related to Financial Addresses features on a Financial Account
|
||||
* @property null|(object{ach?: (object{requested: bool, status: string, status_details: ((object{code: string, resolution: null|string, restriction?: string}&\Stripe\StripeObject))[]}&\Stripe\StripeObject)}&\Stripe\StripeObject) $inbound_transfers InboundTransfers contains inbound transfers features for a FinancialAccount.
|
||||
* @property null|(object{requested: bool, status: string, status_details: ((object{code: string, resolution: null|string, restriction?: string}&\Stripe\StripeObject))[]}&\Stripe\StripeObject) $intra_stripe_flows Toggle settings for enabling/disabling a feature
|
||||
* @property null|(object{ach?: (object{requested: bool, status: string, status_details: ((object{code: string, resolution: null|string, restriction?: string}&\Stripe\StripeObject))[]}&\Stripe\StripeObject), us_domestic_wire?: (object{requested: bool, status: string, status_details: ((object{code: string, resolution: null|string, restriction?: string}&\Stripe\StripeObject))[]}&\Stripe\StripeObject)}&\Stripe\StripeObject) $outbound_payments Settings related to Outbound Payments features on a Financial Account
|
||||
* @property null|(object{ach?: (object{requested: bool, status: string, status_details: ((object{code: string, resolution: null|string, restriction?: string}&\Stripe\StripeObject))[]}&\Stripe\StripeObject), us_domestic_wire?: (object{requested: bool, status: string, status_details: ((object{code: string, resolution: null|string, restriction?: string}&\Stripe\StripeObject))[]}&\Stripe\StripeObject)}&\Stripe\StripeObject) $outbound_transfers OutboundTransfers contains outbound transfers features for a FinancialAccount.
|
||||
*/
|
||||
class FinancialAccountFeatures extends \Stripe\ApiResource
|
||||
{
|
||||
|
||||
@@ -16,19 +16,19 @@ namespace Stripe\Treasury;
|
||||
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
* @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>.
|
||||
* @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
|
||||
* @property null|\Stripe\StripeObject $failure_details Details about this InboundTransfer's failure. Only set when status is <code>failed</code>.
|
||||
* @property null|(object{code: string}&\Stripe\StripeObject) $failure_details Details about this InboundTransfer's failure. Only set when status is <code>failed</code>.
|
||||
* @property string $financial_account The FinancialAccount that received the funds.
|
||||
* @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.
|
||||
* @property \Stripe\StripeObject $linked_flows
|
||||
* @property (object{received_debit: null|string}&\Stripe\StripeObject) $linked_flows
|
||||
* @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.
|
||||
* @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.
|
||||
* @property null|string $origin_payment_method The origin payment method to be debited for an InboundTransfer.
|
||||
* @property null|\Stripe\StripeObject $origin_payment_method_details Details about the PaymentMethod for an InboundTransfer.
|
||||
* @property null|(object{billing_details: (object{address: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&\Stripe\StripeObject), email: null|string, name: null|string}&\Stripe\StripeObject), type: string, us_bank_account?: (object{account_holder_type: null|string, account_type: null|string, bank_name: null|string, fingerprint: null|string, last4: null|string, mandate?: string|\Stripe\Mandate, network: string, routing_number: null|string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $origin_payment_method_details Details about the PaymentMethod for an InboundTransfer.
|
||||
* @property null|bool $returned Returns <code>true</code> if the funds for an InboundTransfer were returned after the InboundTransfer went to the <code>succeeded</code> state.
|
||||
* @property string $statement_descriptor Statement descriptor shown when funds are debited from the source. Not all payment networks support <code>statement_descriptor</code>.
|
||||
* @property string $status Status of the InboundTransfer: <code>processing</code>, <code>succeeded</code>, <code>failed</code>, and <code>canceled</code>. An InboundTransfer is <code>processing</code> if it is created and pending. The status changes to <code>succeeded</code> once the funds have been "confirmed" and a <code>transaction</code> is created and posted. The status changes to <code>failed</code> if the transfer fails.
|
||||
* @property \Stripe\StripeObject $status_transitions
|
||||
* @property null|string|\Stripe\Treasury\Transaction $transaction The Transaction associated with this object.
|
||||
* @property (object{canceled_at?: null|int, failed_at: null|int, succeeded_at: null|int}&\Stripe\StripeObject) $status_transitions
|
||||
* @property null|string|Transaction $transaction The Transaction associated with this object.
|
||||
*/
|
||||
class InboundTransfer extends \Stripe\ApiResource
|
||||
{
|
||||
@@ -42,12 +42,12 @@ class InboundTransfer extends \Stripe\ApiResource
|
||||
/**
|
||||
* Creates an InboundTransfer.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{amount: int, currency: string, description?: string, expand?: string[], financial_account: string, metadata?: array<string, string>, origin_payment_method: string, statement_descriptor?: string} $params
|
||||
* @param null|array|string $options
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return InboundTransfer the created resource
|
||||
*
|
||||
* @return \Stripe\Treasury\InboundTransfer the created resource
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function create($params = null, $options = null)
|
||||
{
|
||||
@@ -64,12 +64,12 @@ class InboundTransfer extends \Stripe\ApiResource
|
||||
/**
|
||||
* Returns a list of InboundTransfers sent from the specified FinancialAccount.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{ending_before?: string, expand?: string[], financial_account: string, limit?: int, starting_after?: string, status?: string} $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return \Stripe\Collection<InboundTransfer> of ApiResources
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Treasury\InboundTransfer> of ApiResources
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function all($params = null, $opts = null)
|
||||
{
|
||||
@@ -84,9 +84,9 @@ class InboundTransfer extends \Stripe\ApiResource
|
||||
* @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return InboundTransfer
|
||||
*
|
||||
* @return \Stripe\Treasury\InboundTransfer
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function retrieve($id, $opts = null)
|
||||
{
|
||||
@@ -101,9 +101,9 @@ class InboundTransfer extends \Stripe\ApiResource
|
||||
* @param null|array $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return InboundTransfer the canceled inbound transfer
|
||||
*
|
||||
* @return \Stripe\Treasury\InboundTransfer the canceled inbound transfer
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function cancel($params = null, $opts = null)
|
||||
{
|
||||
|
||||
@@ -20,19 +20,19 @@ namespace Stripe\Treasury;
|
||||
* @property null|string $customer ID of the <a href="https://stripe.com/docs/api/customers">customer</a> to whom an OutboundPayment is sent.
|
||||
* @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
|
||||
* @property null|string $destination_payment_method The PaymentMethod via which an OutboundPayment is sent. This field can be empty if the OutboundPayment was created using <code>destination_payment_method_data</code>.
|
||||
* @property null|\Stripe\StripeObject $destination_payment_method_details Details about the PaymentMethod for an OutboundPayment.
|
||||
* @property null|\Stripe\StripeObject $end_user_details Details about the end user.
|
||||
* @property null|(object{billing_details: (object{address: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&\Stripe\StripeObject), email: null|string, name: null|string}&\Stripe\StripeObject), financial_account?: (object{id: string, network: string}&\Stripe\StripeObject), type: string, us_bank_account?: (object{account_holder_type: null|string, account_type: null|string, bank_name: null|string, fingerprint: null|string, last4: null|string, mandate?: string|\Stripe\Mandate, network: string, routing_number: null|string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $destination_payment_method_details Details about the PaymentMethod for an OutboundPayment.
|
||||
* @property null|(object{ip_address: null|string, present: bool}&\Stripe\StripeObject) $end_user_details Details about the end user.
|
||||
* @property int $expected_arrival_date The date when funds are expected to arrive in the destination account.
|
||||
* @property string $financial_account The FinancialAccount that funds were pulled from.
|
||||
* @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.
|
||||
* @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.
|
||||
* @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.
|
||||
* @property null|\Stripe\StripeObject $returned_details Details about a returned OutboundPayment. Only set when the status is <code>returned</code>.
|
||||
* @property null|(object{code: string, transaction: string|Transaction}&\Stripe\StripeObject) $returned_details Details about a returned OutboundPayment. Only set when the status is <code>returned</code>.
|
||||
* @property string $statement_descriptor The description that appears on the receiving end for an OutboundPayment (for example, bank statement for external bank transfer).
|
||||
* @property string $status Current status of the OutboundPayment: <code>processing</code>, <code>failed</code>, <code>posted</code>, <code>returned</code>, <code>canceled</code>. An OutboundPayment is <code>processing</code> if it has been created and is pending. The status changes to <code>posted</code> once the OutboundPayment has been "confirmed" and funds have left the account, or to <code>failed</code> or <code>canceled</code>. If an OutboundPayment fails to arrive at its destination, its status will change to <code>returned</code>.
|
||||
* @property \Stripe\StripeObject $status_transitions
|
||||
* @property null|\Stripe\StripeObject $tracking_details Details about network-specific tracking information if available.
|
||||
* @property string|\Stripe\Treasury\Transaction $transaction The Transaction associated with this object.
|
||||
* @property (object{canceled_at: null|int, failed_at: null|int, posted_at: null|int, returned_at: null|int}&\Stripe\StripeObject) $status_transitions
|
||||
* @property null|(object{ach?: (object{trace_id: string}&\Stripe\StripeObject), type: string, us_domestic_wire?: (object{chips: null|string, imad: null|string, omad: null|string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $tracking_details Details about network-specific tracking information if available.
|
||||
* @property string|Transaction $transaction The Transaction associated with this object.
|
||||
*/
|
||||
class OutboundPayment extends \Stripe\ApiResource
|
||||
{
|
||||
@@ -47,12 +47,12 @@ class OutboundPayment extends \Stripe\ApiResource
|
||||
/**
|
||||
* Creates an OutboundPayment.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{amount: int, currency: string, customer?: string, description?: string, destination_payment_method?: string, destination_payment_method_data?: array{billing_details?: array{address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, email?: null|string, name?: null|string, phone?: null|string}, financial_account?: string, metadata?: array<string, string>, type: string, us_bank_account?: array{account_holder_type?: string, account_number?: string, account_type?: string, financial_connections_account?: string, routing_number?: string}}, destination_payment_method_options?: array{us_bank_account?: null|array{network?: string}}, end_user_details?: array{ip_address?: string, present: bool}, expand?: string[], financial_account: string, metadata?: array<string, string>, statement_descriptor?: string} $params
|
||||
* @param null|array|string $options
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return OutboundPayment the created resource
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundPayment the created resource
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function create($params = null, $options = null)
|
||||
{
|
||||
@@ -69,12 +69,12 @@ class OutboundPayment extends \Stripe\ApiResource
|
||||
/**
|
||||
* Returns a list of OutboundPayments sent from the specified FinancialAccount.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{created?: array|int, customer?: string, ending_before?: string, expand?: string[], financial_account: string, limit?: int, starting_after?: string, status?: string} $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return \Stripe\Collection<OutboundPayment> of ApiResources
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Treasury\OutboundPayment> of ApiResources
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function all($params = null, $opts = null)
|
||||
{
|
||||
@@ -91,9 +91,9 @@ class OutboundPayment extends \Stripe\ApiResource
|
||||
* @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return OutboundPayment
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundPayment
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function retrieve($id, $opts = null)
|
||||
{
|
||||
@@ -108,9 +108,9 @@ class OutboundPayment extends \Stripe\ApiResource
|
||||
* @param null|array $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return OutboundPayment the canceled outbound payment
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundPayment the canceled outbound payment
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function cancel($params = null, $opts = null)
|
||||
{
|
||||
|
||||
@@ -19,18 +19,18 @@ namespace Stripe\Treasury;
|
||||
* @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>.
|
||||
* @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
|
||||
* @property null|string $destination_payment_method The PaymentMethod used as the payment instrument for an OutboundTransfer.
|
||||
* @property \Stripe\StripeObject $destination_payment_method_details
|
||||
* @property (object{billing_details: (object{address: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&\Stripe\StripeObject), email: null|string, name: null|string}&\Stripe\StripeObject), financial_account?: (object{id: string, network: string}&\Stripe\StripeObject), type: string, us_bank_account?: (object{account_holder_type: null|string, account_type: null|string, bank_name: null|string, fingerprint: null|string, last4: null|string, mandate?: string|\Stripe\Mandate, network: string, routing_number: null|string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $destination_payment_method_details
|
||||
* @property int $expected_arrival_date The date when funds are expected to arrive in the destination account.
|
||||
* @property string $financial_account The FinancialAccount that funds were pulled from.
|
||||
* @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.
|
||||
* @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.
|
||||
* @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.
|
||||
* @property null|\Stripe\StripeObject $returned_details Details about a returned OutboundTransfer. Only set when the status is <code>returned</code>.
|
||||
* @property null|(object{code: string, transaction: string|Transaction}&\Stripe\StripeObject) $returned_details Details about a returned OutboundTransfer. Only set when the status is <code>returned</code>.
|
||||
* @property string $statement_descriptor Information about the OutboundTransfer to be sent to the recipient account.
|
||||
* @property string $status Current status of the OutboundTransfer: <code>processing</code>, <code>failed</code>, <code>canceled</code>, <code>posted</code>, <code>returned</code>. An OutboundTransfer is <code>processing</code> if it has been created and is pending. The status changes to <code>posted</code> once the OutboundTransfer has been "confirmed" and funds have left the account, or to <code>failed</code> or <code>canceled</code>. If an OutboundTransfer fails to arrive at its destination, its status will change to <code>returned</code>.
|
||||
* @property \Stripe\StripeObject $status_transitions
|
||||
* @property null|\Stripe\StripeObject $tracking_details Details about network-specific tracking information if available.
|
||||
* @property string|\Stripe\Treasury\Transaction $transaction The Transaction associated with this object.
|
||||
* @property (object{canceled_at: null|int, failed_at: null|int, posted_at: null|int, returned_at: null|int}&\Stripe\StripeObject) $status_transitions
|
||||
* @property null|(object{ach?: (object{trace_id: string}&\Stripe\StripeObject), type: string, us_domestic_wire?: (object{chips: null|string, imad: null|string, omad: null|string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $tracking_details Details about network-specific tracking information if available.
|
||||
* @property string|Transaction $transaction The Transaction associated with this object.
|
||||
*/
|
||||
class OutboundTransfer extends \Stripe\ApiResource
|
||||
{
|
||||
@@ -45,12 +45,12 @@ class OutboundTransfer extends \Stripe\ApiResource
|
||||
/**
|
||||
* Creates an OutboundTransfer.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{amount: int, currency: string, description?: string, destination_payment_method?: string, destination_payment_method_data?: array{financial_account?: string, type: string}, destination_payment_method_options?: array{us_bank_account?: null|array{network?: string}}, expand?: string[], financial_account: string, metadata?: array<string, string>, statement_descriptor?: string} $params
|
||||
* @param null|array|string $options
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return OutboundTransfer the created resource
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundTransfer the created resource
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function create($params = null, $options = null)
|
||||
{
|
||||
@@ -67,12 +67,12 @@ class OutboundTransfer extends \Stripe\ApiResource
|
||||
/**
|
||||
* Returns a list of OutboundTransfers sent from the specified FinancialAccount.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{ending_before?: string, expand?: string[], financial_account: string, limit?: int, starting_after?: string, status?: string} $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return \Stripe\Collection<OutboundTransfer> of ApiResources
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Treasury\OutboundTransfer> of ApiResources
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function all($params = null, $opts = null)
|
||||
{
|
||||
@@ -89,9 +89,9 @@ class OutboundTransfer extends \Stripe\ApiResource
|
||||
* @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return OutboundTransfer
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundTransfer
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function retrieve($id, $opts = null)
|
||||
{
|
||||
@@ -106,9 +106,9 @@ class OutboundTransfer extends \Stripe\ApiResource
|
||||
* @param null|array $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return OutboundTransfer the canceled outbound transfer
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundTransfer the canceled outbound transfer
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function cancel($params = null, $opts = null)
|
||||
{
|
||||
|
||||
@@ -16,13 +16,13 @@ namespace Stripe\Treasury;
|
||||
* @property null|string $failure_code Reason for the failure. A ReceivedCredit might fail because the receiving FinancialAccount is closed or frozen.
|
||||
* @property null|string $financial_account The FinancialAccount that received the funds.
|
||||
* @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.
|
||||
* @property \Stripe\StripeObject $initiating_payment_method_details
|
||||
* @property \Stripe\StripeObject $linked_flows
|
||||
* @property (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}&\Stripe\StripeObject), email: null|string, name: null|string}&\Stripe\StripeObject), financial_account?: (object{id: string, network: string}&\Stripe\StripeObject), issuing_card?: string, type: string, us_bank_account?: (object{bank_name: null|string, last4: null|string, routing_number: null|string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $initiating_payment_method_details
|
||||
* @property (object{credit_reversal: null|string, issuing_authorization: null|string, issuing_transaction: null|string, source_flow: null|string, source_flow_details?: null|(object{credit_reversal?: CreditReversal, outbound_payment?: OutboundPayment, outbound_transfer?: OutboundTransfer, payout?: \Stripe\Payout, type: string}&\Stripe\StripeObject), source_flow_type: null|string}&\Stripe\StripeObject) $linked_flows
|
||||
* @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.
|
||||
* @property string $network The rails used to send the funds.
|
||||
* @property null|\Stripe\StripeObject $reversal_details Details describing when a ReceivedCredit may be reversed.
|
||||
* @property null|(object{deadline: null|int, restricted_reason: null|string}&\Stripe\StripeObject) $reversal_details Details describing when a ReceivedCredit may be reversed.
|
||||
* @property string $status Status of the ReceivedCredit. ReceivedCredits are created either <code>succeeded</code> (approved) or <code>failed</code> (declined). If a ReceivedCredit is declined, the failure reason can be found in the <code>failure_code</code> field.
|
||||
* @property null|string|\Stripe\Treasury\Transaction $transaction The Transaction associated with this object.
|
||||
* @property null|string|Transaction $transaction The Transaction associated with this object.
|
||||
*/
|
||||
class ReceivedCredit extends \Stripe\ApiResource
|
||||
{
|
||||
@@ -44,12 +44,12 @@ class ReceivedCredit extends \Stripe\ApiResource
|
||||
/**
|
||||
* Returns a list of ReceivedCredits.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{ending_before?: string, expand?: string[], financial_account: string, limit?: int, linked_flows?: array{source_flow_type: string}, starting_after?: string, status?: string} $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return \Stripe\Collection<ReceivedCredit> of ApiResources
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Treasury\ReceivedCredit> of ApiResources
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function all($params = null, $opts = null)
|
||||
{
|
||||
@@ -65,9 +65,9 @@ class ReceivedCredit extends \Stripe\ApiResource
|
||||
* @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return ReceivedCredit
|
||||
*
|
||||
* @return \Stripe\Treasury\ReceivedCredit
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function retrieve($id, $opts = null)
|
||||
{
|
||||
|
||||
@@ -16,13 +16,13 @@ namespace Stripe\Treasury;
|
||||
* @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.
|
||||
* @property null|string $financial_account The FinancialAccount that funds were pulled from.
|
||||
* @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.
|
||||
* @property null|\Stripe\StripeObject $initiating_payment_method_details
|
||||
* @property \Stripe\StripeObject $linked_flows
|
||||
* @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}&\Stripe\StripeObject), email: null|string, name: null|string}&\Stripe\StripeObject), financial_account?: (object{id: string, network: string}&\Stripe\StripeObject), issuing_card?: string, type: string, us_bank_account?: (object{bank_name: null|string, last4: null|string, routing_number: null|string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $initiating_payment_method_details
|
||||
* @property (object{debit_reversal: null|string, inbound_transfer: null|string, issuing_authorization: null|string, issuing_transaction: null|string, payout: null|string}&\Stripe\StripeObject) $linked_flows
|
||||
* @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.
|
||||
* @property string $network The network used for the ReceivedDebit.
|
||||
* @property null|\Stripe\StripeObject $reversal_details Details describing when a ReceivedDebit might be reversed.
|
||||
* @property null|(object{deadline: null|int, restricted_reason: null|string}&\Stripe\StripeObject) $reversal_details Details describing when a ReceivedDebit might be reversed.
|
||||
* @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>.
|
||||
* @property null|string|\Stripe\Treasury\Transaction $transaction The Transaction associated with this object.
|
||||
* @property null|string|Transaction $transaction The Transaction associated with this object.
|
||||
*/
|
||||
class ReceivedDebit extends \Stripe\ApiResource
|
||||
{
|
||||
@@ -44,12 +44,12 @@ class ReceivedDebit extends \Stripe\ApiResource
|
||||
/**
|
||||
* Returns a list of ReceivedDebits.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{ending_before?: string, expand?: string[], financial_account: string, limit?: int, starting_after?: string, status?: string} $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return \Stripe\Collection<ReceivedDebit> of ApiResources
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Treasury\ReceivedDebit> of ApiResources
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function all($params = null, $opts = null)
|
||||
{
|
||||
@@ -65,9 +65,9 @@ class ReceivedDebit extends \Stripe\ApiResource
|
||||
* @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return ReceivedDebit
|
||||
*
|
||||
* @return \Stripe\Treasury\ReceivedDebit
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function retrieve($id, $opts = null)
|
||||
{
|
||||
|
||||
@@ -10,18 +10,18 @@ namespace Stripe\Treasury;
|
||||
* @property string $id Unique identifier for the object.
|
||||
* @property string $object String representing the object's type. Objects of the same type share the same value.
|
||||
* @property int $amount Amount (in cents) transferred.
|
||||
* @property \Stripe\StripeObject $balance_impact Change to a FinancialAccount's balance
|
||||
* @property (object{cash: int, inbound_pending: int, outbound_pending: int}&\Stripe\StripeObject) $balance_impact Change to a FinancialAccount's balance
|
||||
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
* @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>.
|
||||
* @property string $description An arbitrary string attached to the object. Often useful for displaying to users.
|
||||
* @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.
|
||||
* @property null|\Stripe\Collection<TransactionEntry> $entries A list of TransactionEntries that are part of this Transaction. This cannot be expanded in any list endpoints.
|
||||
* @property string $financial_account The FinancialAccount associated with this object.
|
||||
* @property null|string $flow ID of the flow that created the Transaction.
|
||||
* @property null|\Stripe\StripeObject $flow_details Details of the flow that created the Transaction.
|
||||
* @property null|(object{credit_reversal?: CreditReversal, debit_reversal?: DebitReversal, inbound_transfer?: InboundTransfer, issuing_authorization?: \Stripe\Issuing\Authorization, outbound_payment?: OutboundPayment, outbound_transfer?: OutboundTransfer, received_credit?: ReceivedCredit, received_debit?: ReceivedDebit, type: string}&\Stripe\StripeObject) $flow_details Details of the flow that created the Transaction.
|
||||
* @property string $flow_type Type of the flow that created the Transaction.
|
||||
* @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.
|
||||
* @property string $status Status of the Transaction.
|
||||
* @property \Stripe\StripeObject $status_transitions
|
||||
* @property (object{posted_at: null|int, void_at: null|int}&\Stripe\StripeObject) $status_transitions
|
||||
*/
|
||||
class Transaction extends \Stripe\ApiResource
|
||||
{
|
||||
@@ -44,12 +44,12 @@ class Transaction extends \Stripe\ApiResource
|
||||
/**
|
||||
* Retrieves a list of Transaction objects.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{created?: array|int, ending_before?: string, expand?: string[], financial_account: string, limit?: int, order_by?: string, starting_after?: string, status?: string, status_transitions?: array{posted_at?: array|int}} $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return \Stripe\Collection<Transaction> of ApiResources
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Treasury\Transaction> of ApiResources
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function all($params = null, $opts = null)
|
||||
{
|
||||
@@ -64,9 +64,9 @@ class Transaction extends \Stripe\ApiResource
|
||||
* @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return Transaction
|
||||
*
|
||||
* @return \Stripe\Treasury\Transaction
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function retrieve($id, $opts = null)
|
||||
{
|
||||
|
||||
@@ -9,16 +9,16 @@ namespace Stripe\Treasury;
|
||||
*
|
||||
* @property string $id Unique identifier for the object.
|
||||
* @property string $object String representing the object's type. Objects of the same type share the same value.
|
||||
* @property \Stripe\StripeObject $balance_impact Change to a FinancialAccount's balance
|
||||
* @property (object{cash: int, inbound_pending: int, outbound_pending: int}&\Stripe\StripeObject) $balance_impact Change to a FinancialAccount's balance
|
||||
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
* @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>.
|
||||
* @property int $effective_at When the TransactionEntry will impact the FinancialAccount's balance.
|
||||
* @property string $financial_account The FinancialAccount associated with this object.
|
||||
* @property null|string $flow Token of the flow associated with the TransactionEntry.
|
||||
* @property null|\Stripe\StripeObject $flow_details Details of the flow associated with the TransactionEntry.
|
||||
* @property null|(object{credit_reversal?: CreditReversal, debit_reversal?: DebitReversal, inbound_transfer?: InboundTransfer, issuing_authorization?: \Stripe\Issuing\Authorization, outbound_payment?: OutboundPayment, outbound_transfer?: OutboundTransfer, received_credit?: ReceivedCredit, received_debit?: ReceivedDebit, type: string}&\Stripe\StripeObject) $flow_details Details of the flow associated with the TransactionEntry.
|
||||
* @property string $flow_type Type of the flow associated with the TransactionEntry.
|
||||
* @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.
|
||||
* @property string|\Stripe\Treasury\Transaction $transaction The Transaction associated with this object.
|
||||
* @property string|Transaction $transaction The Transaction associated with this object.
|
||||
* @property string $type The specific money movement that generated the TransactionEntry.
|
||||
*/
|
||||
class TransactionEntry extends \Stripe\ApiResource
|
||||
@@ -59,12 +59,12 @@ class TransactionEntry extends \Stripe\ApiResource
|
||||
/**
|
||||
* Retrieves a list of TransactionEntry objects.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{created?: array|int, effective_at?: array|int, ending_before?: string, expand?: string[], financial_account: string, limit?: int, order_by?: string, starting_after?: string, transaction?: string} $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return \Stripe\Collection<TransactionEntry> of ApiResources
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Treasury\TransactionEntry> of ApiResources
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function all($params = null, $opts = null)
|
||||
{
|
||||
@@ -79,9 +79,9 @@ class TransactionEntry extends \Stripe\ApiResource
|
||||
* @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return TransactionEntry
|
||||
*
|
||||
* @return \Stripe\Treasury\TransactionEntry
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function retrieve($id, $opts = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user