Skip to content

Commit

Permalink
Fixed issue with union and intersectioned types
Browse files Browse the repository at this point in the history
  • Loading branch information
prathmesh-stripe committed Dec 11, 2024
1 parent 17c106d commit fecce93
Show file tree
Hide file tree
Showing 190 changed files with 819 additions and 819 deletions.
26 changes: 13 additions & 13 deletions lib/Account.php

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions lib/AccountNotice.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* @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 null|int $deadline When present, the deadline for sending the notice to meet the relevant regulations.
* @property null|object{plain_text: string, recipient: string, subject: string}&\Stripe\StripeObject&\stdClass $email Information about the email when sent.
* @property null|object{capability: null|string, issuing_credit_underwriting_record?: null|string, issuing_dispute: null|string}&\Stripe\StripeObject&\stdClass $linked_objects Information about objects related to the notice.
* @property null|(object{plain_text: string, recipient: string, subject: string}&\Stripe\StripeObject&\stdClass) $email Information about the email when sent.
* @property null|(object{capability: null|string, issuing_credit_underwriting_record?: null|string, issuing_dispute: null|string}&\Stripe\StripeObject&\stdClass) $linked_objects Information about objects related to the notice.
* @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|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 $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 $reason Reason the notice is being sent. The reason determines what copy the notice must contain. See the <a href="https://stripe.com/docs/issuing/compliance-us/issuing-regulated-customer-notices">regulated customer notices</a> guide. All reasons might not apply to your integration, and Stripe might add new reasons in the future, so we recommend an internal warning when you receive an unknown reason.
* @property null|int $sent_at Date when the notice was sent. When absent, you must send the notice, update the content of the email and date when it was sent.
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/AccountSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @property string $object String representing the object's type. Objects of the same type share the same value.
* @property string $account The ID of the account the AccountSession was created for
* @property string $client_secret <p>The client secret of this AccountSession. Used on the client to set up secure access to the given <code>account</code>.</p><p>The client secret can be used to provide access to <code>account</code> from your frontend. It should not be stored, logged, or exposed to anyone other than the connected account. Make sure that you have TLS enabled on any page that includes the client secret.</p><p>Refer to our docs to <a href="https://stripe.com/docs/connect/get-started-connect-embedded-components">setup Connect embedded components</a> and learn about how <code>client_secret</code> should be handled.</p>
* @property object{account_management: object{enabled: bool, features: object{disable_stripe_user_authentication: bool, external_account_collection: bool}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass, account_onboarding: object{enabled: bool, features: object{disable_stripe_user_authentication: bool, external_account_collection: bool}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass, balances: object{enabled: bool, features: object{disable_stripe_user_authentication: bool, edit_payout_schedule: bool, external_account_collection: bool, instant_payouts: bool, standard_payouts: bool}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass, capital_financing?: null|object{enabled: bool, features: object{}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass, capital_financing_application?: null|object{enabled: bool, features: object{}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass, capital_financing_promotion?: null|object{enabled: bool, features: object{}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass, documents: object{enabled: bool, features: object{}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass, notification_banner: object{enabled: bool, features: object{disable_stripe_user_authentication: bool, external_account_collection: bool}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass, payment_details: object{enabled: bool, features: object{capture_payments: bool, destination_on_behalf_of_charge_management: bool, dispute_management: bool, refund_management: bool}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass, payments: object{enabled: bool, features: object{capture_payments: bool, destination_on_behalf_of_charge_management: bool, dispute_management: bool, refund_management: bool}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass, payouts: object{enabled: bool, features: object{disable_stripe_user_authentication: bool, edit_payout_schedule: bool, external_account_collection: bool, instant_payouts: bool, standard_payouts: bool}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass, payouts_list: object{enabled: bool, features: object{}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass, tax_registrations: object{enabled: bool, features: object{}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass, tax_settings: object{enabled: bool, features: object{}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass $components
* @property (object{account_management: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, external_account_collection: bool}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass), account_onboarding: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, external_account_collection: bool}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass), balances: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, edit_payout_schedule: bool, external_account_collection: bool, instant_payouts: bool, standard_payouts: bool}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass), capital_financing?: null|(object{enabled: bool, features: (object{}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass), capital_financing_application?: null|(object{enabled: bool, features: (object{}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass), capital_financing_promotion?: null|(object{enabled: bool, features: (object{}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass), documents: (object{enabled: bool, features: (object{}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass), notification_banner: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, external_account_collection: bool}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass), payment_details: (object{enabled: bool, features: (object{capture_payments: bool, destination_on_behalf_of_charge_management: bool, dispute_management: bool, refund_management: bool}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass), payments: (object{enabled: bool, features: (object{capture_payments: bool, destination_on_behalf_of_charge_management: bool, dispute_management: bool, refund_management: bool}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass), payouts: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, edit_payout_schedule: bool, external_account_collection: bool, instant_payouts: bool, standard_payouts: bool}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass), payouts_list: (object{enabled: bool, features: (object{}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass), tax_registrations: (object{enabled: bool, features: (object{}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass), tax_settings: (object{enabled: bool, features: (object{}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass) $components
* @property int $expires_at The timestamp at which this AccountSession will expire.
* @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.
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/ApplePayDomain.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function create($params = null, $options = null)
/**
* Delete an apple pay domain.
*
* @param null|array{{}} $params
* @param null|array $params
* @param null|array|string $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
Expand Down
2 changes: 1 addition & 1 deletion lib/ApplicationFee.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @property string|\Stripe\Charge $charge ID of the charge that the application fee was taken from.
* @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|object{charge?: string, payout?: string, type: string}&\Stripe\StripeObject&\stdClass $fee_source Polymorphic source of the application fee. Includes the ID of the object the application fee was created from.
* @property null|(object{charge?: string, payout?: string, type: string}&\Stripe\StripeObject&\stdClass) $fee_source Polymorphic source of the application fee. Includes the ID of the object the application fee was created from.
* @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|string|\Stripe\Charge $originating_transaction ID of the corresponding charge on the platform account, if this fee was the result of a charge using the <code>destination</code> parameter.
* @property bool $refunded Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false.
Expand Down
2 changes: 1 addition & 1 deletion lib/ApplicationFeeRefund.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @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|\Stripe\ApplicationFee $fee ID of the application fee that was refunded.
* @property null|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 $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.
*/
class ApplicationFeeRefund extends ApiResource
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Apps/Secret.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* @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 $name A name for the secret that's unique within the scope.
* @property null|string $payload The plaintext secret value to be stored.
* @property object{type: string, user?: string}&\Stripe\StripeObject&\stdClass $scope
* @property (object{type: string, user?: string}&\Stripe\StripeObject&\stdClass) $scope
*/
class Secret extends \Stripe\ApiResource
{
Expand Down
10 changes: 5 additions & 5 deletions lib/Balance.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
* Related guide: <a href="https://stripe.com/docs/connect/account-balances">Understanding Connect account balances</a>
*
* @property string $object String representing the object's type. Objects of the same type share the same value.
* @property object{amount: int, currency: string, source_types?: object{bank_account?: int, card?: int, fpx?: int}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass[] $available Available funds that you can transfer or pay out automatically by Stripe or explicitly through the <a href="https://stripe.com/docs/api#transfers">Transfers API</a> or <a href="https://stripe.com/docs/api#payouts">Payouts API</a>. You can find the available balance for each currency and payment type in the <code>source_types</code> property.
* @property null|object{amount: int, currency: string, source_types?: object{bank_account?: int, card?: int, fpx?: int}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass[] $connect_reserved Funds held due to negative balances on connected accounts where <a href="/api/accounts/object#account_object-controller-requirement_collection">account.controller.requirement_collection</a> is <code>application</code>, which includes Custom accounts. You can find the connect reserve balance for each currency and payment type in the <code>source_types</code> property.
* @property null|object{amount: int, currency: string, net_available?: object{amount: int, destination: string, source_types?: object{bank_account?: int, card?: int, fpx?: int}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass[], source_types?: object{bank_account?: int, card?: int, fpx?: int}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass[] $instant_available Funds that you can pay out using Instant Payouts.
* @property null|object{available: object{amount: int, currency: string, source_types?: object{bank_account?: int, card?: int, fpx?: int}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass[]}&\Stripe\StripeObject&\stdClass $issuing
* @property (object{amount: int, currency: string, source_types?: (object{bank_account?: int, card?: int, fpx?: int}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass)[] $available Available funds that you can transfer or pay out automatically by Stripe or explicitly through the <a href="https://stripe.com/docs/api#transfers">Transfers API</a> or <a href="https://stripe.com/docs/api#payouts">Payouts API</a>. You can find the available balance for each currency and payment type in the <code>source_types</code> property.
* @property null|(object{amount: int, currency: string, source_types?: (object{bank_account?: int, card?: int, fpx?: int}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass)[] $connect_reserved Funds held due to negative balances on connected accounts where <a href="/api/accounts/object#account_object-controller-requirement_collection">account.controller.requirement_collection</a> is <code>application</code>, which includes Custom accounts. You can find the connect reserve balance for each currency and payment type in the <code>source_types</code> property.
* @property null|(object{amount: int, currency: string, net_available?: (object{amount: int, destination: string, source_types?: (object{bank_account?: int, card?: int, fpx?: int}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass)[], source_types?: (object{bank_account?: int, card?: int, fpx?: int}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass)[] $instant_available Funds that you can pay out using Instant Payouts.
* @property null|(object{available: (object{amount: int, currency: string, source_types?: (object{bank_account?: int, card?: int, fpx?: int}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass)[]}&\Stripe\StripeObject&\stdClass) $issuing
* @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 object{amount: int, currency: string, source_types?: object{bank_account?: int, card?: int, fpx?: int}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass[] $pending Funds that aren't available in the balance yet. You can find the pending balance for each currency and each payment type in the <code>source_types</code> property.
* @property (object{amount: int, currency: string, source_types?: (object{bank_account?: int, card?: int, fpx?: int}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass)[] $pending Funds that aren't available in the balance yet. You can find the pending balance for each currency and each payment type in the <code>source_types</code> property.
*/
class Balance extends SingletonApiResource
{
Expand Down
2 changes: 1 addition & 1 deletion lib/BalanceTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
* @property null|float $exchange_rate If applicable, this transaction uses an exchange rate. If money converts from currency A to currency B, then the <code>amount</code> in currency A, multipled by the <code>exchange_rate</code>, equals the <code>amount</code> in currency B. For example, if you charge a customer 10.00 EUR, the PaymentIntent's <code>amount</code> is <code>1000</code> and <code>currency</code> is <code>eur</code>. If this converts to 12.34 USD in your Stripe account, the BalanceTransaction's <code>amount</code> is <code>1234</code>, its <code>currency</code> is <code>usd</code>, and the <code>exchange_rate</code> is <code>1.234</code>.
* @property int $fee Fees (in cents (or local equivalent)) paid for this transaction. Represented as a positive integer when assessed.
* @property (object{amount: int, application: null|string, currency: string, description: null|string, type: string}&\Stripe\StripeObject&\stdClass)[] $fee_details Detailed breakdown of fees (in cents (or local equivalent)) paid for this transaction.
* @property ((object{amount: int, application: null|string, currency: string, description: null|string, type: string}&\Stripe\StripeObject&\stdClass))[] $fee_details Detailed breakdown of fees (in cents (or local equivalent)) paid for this transaction.
* @property int $net Net impact to a Stripe balance (in cents (or local equivalent)). A positive value represents incrementing a Stripe balance, and a negative value decrementing a Stripe balance. You can calculate the net impact of a transaction on a balance by <code>amount</code> - <code>fee</code>
* @property string $reporting_category Learn more about how <a href="https://stripe.com/docs/reports/reporting-categories">reporting categories</a> can help you understand balance transactions from an accounting perspective.
* @property null|string|\Stripe\ApplicationFee|\Stripe\ApplicationFeeRefund|\Stripe\Charge|\Stripe\ConnectCollectionTransfer|\Stripe\CustomerCashBalanceTransaction|\Stripe\Dispute|\Stripe\Issuing\Authorization|\Stripe\Issuing\Dispute|\Stripe\Issuing\Transaction|\Stripe\Payout|\Stripe\Refund|\Stripe\ReserveTransaction|\Stripe\TaxDeductedAtSource|\Stripe\Topup|\Stripe\Transfer|\Stripe\TransferReversal $source This transaction relates to the Stripe object.
Expand Down
Loading

0 comments on commit fecce93

Please sign in to comment.