Bump stripe-php from 19.0.0 to 19.4.1

This commit is contained in:
johnnyq
2026-03-07 17:19:48 -05:00
parent 11ba077726
commit 526fa1aff5
228 changed files with 3494 additions and 1049 deletions

View File

@@ -0,0 +1,39 @@
<?php
// File generated from our OpenAPI spec
namespace Stripe\Reserve;
/**
* ReserveHolds are used to place a temporary ReserveHold on a merchant's funds.
*
* @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 reserved. A positive integer representing how much is reserved in the <a href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit</a>.
* @property null|int $amount_releasable Amount in cents that can be released from this ReserveHold
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property string $created_by Indicates which party created this ReserveHold.
* @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|bool $is_releasable Whether there are any funds available to release on this ReserveHold. Note that if the ReserveHold is in the process of being released, this could be false, even though the funds haven't been fully released yet.
* @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://docs.stripe.com/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 $reason The reason for the ReserveHold.
* @property (object{release_after: null|int, scheduled_release: null|int}&\Stripe\StripeObject) $release_schedule
* @property null|Plan|string $reserve_plan The ReservePlan which produced this ReserveHold (i.e., resplan_123)
* @property null|string|\Stripe\Charge $source_charge The Charge which funded this ReserveHold (e.g., ch_123)
* @property string $source_type Which source balance type this ReserveHold reserves funds from. One of <code>bank_account</code>, <code>card</code>, or <code>fpx</code>.
*/
class Hold extends \Stripe\ApiResource
{
const OBJECT_NAME = 'reserve.hold';
const CREATED_BY_APPLICATION = 'application';
const CREATED_BY_STRIPE = 'stripe';
const REASON_CHARGE = 'charge';
const REASON_STANDALONE = 'standalone';
const SOURCE_TYPE_BANK_ACCOUNT = 'bank_account';
const SOURCE_TYPE_CARD = 'card';
const SOURCE_TYPE_FPX = 'fpx';
}

View File

@@ -0,0 +1,37 @@
<?php
// File generated from our OpenAPI spec
namespace Stripe\Reserve;
/**
* ReservePlans are used to automatically place holds on a merchant's funds until the plan expires. It takes a portion of each incoming Charge (including those resulting from a Transfer from a platform account).
*
* @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 $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property string $created_by Indicates which party created this ReservePlan.
* @property null|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>. An unset currency indicates that the plan applies to all currencies.
* @property null|int $disabled_at Time at which the ReservePlan was disabled.
* @property null|(object{release_after: int, scheduled_release: int}&\Stripe\StripeObject) $fixed_release
* @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://docs.stripe.com/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 int $percent The percent of each Charge to reserve.
* @property null|(object{days_after_charge: int, expires_on: null|int}&\Stripe\StripeObject) $rolling_release
* @property string $status The current status of the ReservePlan. The ReservePlan only affects charges if it is <code>active</code>.
* @property string $type The type of the ReservePlan.
*/
class Plan extends \Stripe\ApiResource
{
const OBJECT_NAME = 'reserve.plan';
const CREATED_BY_APPLICATION = 'application';
const CREATED_BY_STRIPE = 'stripe';
const STATUS_ACTIVE = 'active';
const STATUS_DISABLED = 'disabled';
const STATUS_EXPIRED = 'expired';
const TYPE_FIXED_RELEASE = 'fixed_release';
const TYPE_ROLLING_RELEASE = 'rolling_release';
}

View File

@@ -0,0 +1,35 @@
<?php
// File generated from our OpenAPI spec
namespace Stripe\Reserve;
/**
* ReserveReleases represent the release of funds from a ReserveHold.
*
* @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 released. A positive integer representing how much is released in the <a href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit</a>.
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property string $created_by Indicates which party created this ReserveRelease.
* @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 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://docs.stripe.com/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 $reason The reason for the ReserveRelease, indicating why the funds were released.
* @property int $released_at The release timestamp of the funds.
* @property null|Hold|string $reserve_hold The ReserveHold this ReserveRelease is associated with.
* @property null|Plan|string $reserve_plan The ReservePlan ID this ReserveRelease is associated with. This field is only populated if a ReserveRelease is created by a ReservePlan disable operation, or from a scheduled ReservedHold expiry.
* @property null|(object{dispute?: string|\Stripe\Dispute, refund?: string|\Stripe\Refund, type: string}&\Stripe\StripeObject) $source_transaction
*/
class Release extends \Stripe\ApiResource
{
const OBJECT_NAME = 'reserve.release';
const CREATED_BY_APPLICATION = 'application';
const CREATED_BY_STRIPE = 'stripe';
const REASON_BULK_HOLD_EXPIRY = 'bulk_hold_expiry';
const REASON_HOLD_RELEASED_EARLY = 'hold_released_early';
const REASON_HOLD_REVERSED = 'hold_reversed';
const REASON_PLAN_DISABLED = 'plan_disabled';
}