Skip to content

Commit 2204602

Browse files
Update generated code from sdk-codegen canary 06d09107f9e2eb89f678383ab864df92bc1c555e
1 parent 67af014 commit 2204602

169 files changed

Lines changed: 795 additions & 240 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎init.php‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,12 @@
185185
require __DIR__ . '/lib/Events/V1ApplicationFeeRefundUpdatedEventNotification.php';
186186
require __DIR__ . '/lib/Events/V1ApplicationFeeRefundedEvent.php';
187187
require __DIR__ . '/lib/Events/V1ApplicationFeeRefundedEventNotification.php';
188+
require __DIR__ . '/lib/Events/V1AppsInstallCreatedEvent.php';
189+
require __DIR__ . '/lib/Events/V1AppsInstallCreatedEventNotification.php';
190+
require __DIR__ . '/lib/Events/V1AppsInstallDeletedEvent.php';
191+
require __DIR__ . '/lib/Events/V1AppsInstallDeletedEventNotification.php';
192+
require __DIR__ . '/lib/Events/V1AppsInstallUpdatedEvent.php';
193+
require __DIR__ . '/lib/Events/V1AppsInstallUpdatedEventNotification.php';
188194
require __DIR__ . '/lib/Events/V1BalanceAvailableEvent.php';
189195
require __DIR__ . '/lib/Events/V1BalanceAvailableEventNotification.php';
190196
require __DIR__ . '/lib/Events/V1BalanceSettingsUpdatedEvent.php';
@@ -471,8 +477,6 @@
471477
require __DIR__ . '/lib/Events/V1InvoiceitemDiscountRemovedEventNotification.php';
472478
require __DIR__ . '/lib/Events/V1IssuingAuthorizationCreatedEvent.php';
473479
require __DIR__ . '/lib/Events/V1IssuingAuthorizationCreatedEventNotification.php';
474-
require __DIR__ . '/lib/Events/V1IssuingAuthorizationRequestEvent.php';
475-
require __DIR__ . '/lib/Events/V1IssuingAuthorizationRequestEventNotification.php';
476480
require __DIR__ . '/lib/Events/V1IssuingAuthorizationUpdatedEvent.php';
477481
require __DIR__ . '/lib/Events/V1IssuingAuthorizationUpdatedEventNotification.php';
478482
require __DIR__ . '/lib/Events/V1IssuingCardCreatedEvent.php';
@@ -715,8 +719,12 @@
715719
require __DIR__ . '/lib/Events/V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification.php';
716720
require __DIR__ . '/lib/Events/V2CoreAccountClosedEvent.php';
717721
require __DIR__ . '/lib/Events/V2CoreAccountClosedEventNotification.php';
722+
require __DIR__ . '/lib/Events/V2CoreAccountConnectedEvent.php';
723+
require __DIR__ . '/lib/Events/V2CoreAccountConnectedEventNotification.php';
718724
require __DIR__ . '/lib/Events/V2CoreAccountCreatedEvent.php';
719725
require __DIR__ . '/lib/Events/V2CoreAccountCreatedEventNotification.php';
726+
require __DIR__ . '/lib/Events/V2CoreAccountDisconnectedEvent.php';
727+
require __DIR__ . '/lib/Events/V2CoreAccountDisconnectedEventNotification.php';
720728
require __DIR__ . '/lib/Events/V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.php';
721729
require __DIR__ . '/lib/Events/V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification.php';
722730
require __DIR__ . '/lib/Events/V2CoreAccountIncludingConfigurationCustomerUpdatedEvent.php';
@@ -837,6 +845,7 @@
837845
require __DIR__ . '/lib/Exception/FeatureNotEnabledException.php';
838846
require __DIR__ . '/lib/Exception/FinancialAccountNotOpenException.php';
839847
require __DIR__ . '/lib/Exception/FxQuoteNeedsRefreshException.php';
848+
require __DIR__ . '/lib/Exception/InactiveApiOperationConfirmationRequiredException.php';
840849
require __DIR__ . '/lib/Exception/InsufficientFundsException.php';
841850
require __DIR__ . '/lib/Exception/InvalidPaymentMethodException.php';
842851
require __DIR__ . '/lib/Exception/InvalidPayoutMethodException.php';

‎lib/AbstractEventNotificationHandler.php‎

Lines changed: 65 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,45 @@ public function onV1ApplicationFeeRefunded($handler)
277277
$this->register('v1.application_fee.refunded', $handler);
278278
}
279279

280+
/**
281+
* Registers a handler for the "v1.apps.install.created" event.
282+
*
283+
* @param callable(Events\V1AppsInstallCreatedEventNotification, StripeClient): void $handler Handles v1.apps.install.created events
284+
*
285+
* @throws Exception\InvalidArgumentException if this event type is already registered
286+
* @throws Exception\BadMethodCallException if the `.handle()` method has already been called on this handler.
287+
*/
288+
public function onV1AppsInstallCreated($handler)
289+
{
290+
$this->register('v1.apps.install.created', $handler);
291+
}
292+
293+
/**
294+
* Registers a handler for the "v1.apps.install.deleted" event.
295+
*
296+
* @param callable(Events\V1AppsInstallDeletedEventNotification, StripeClient): void $handler Handles v1.apps.install.deleted events
297+
*
298+
* @throws Exception\InvalidArgumentException if this event type is already registered
299+
* @throws Exception\BadMethodCallException if the `.handle()` method has already been called on this handler.
300+
*/
301+
public function onV1AppsInstallDeleted($handler)
302+
{
303+
$this->register('v1.apps.install.deleted', $handler);
304+
}
305+
306+
/**
307+
* Registers a handler for the "v1.apps.install.updated" event.
308+
*
309+
* @param callable(Events\V1AppsInstallUpdatedEventNotification, StripeClient): void $handler Handles v1.apps.install.updated events
310+
*
311+
* @throws Exception\InvalidArgumentException if this event type is already registered
312+
* @throws Exception\BadMethodCallException if the `.handle()` method has already been called on this handler.
313+
*/
314+
public function onV1AppsInstallUpdated($handler)
315+
{
316+
$this->register('v1.apps.install.updated', $handler);
317+
}
318+
280319
/**
281320
* Registers a handler for the "v1.balance.available" event.
282321
*
@@ -2230,19 +2269,6 @@ public function onV1IssuingAuthorizationCreated($handler)
22302269
$this->register('v1.issuing_authorization.created', $handler);
22312270
}
22322271

2233-
/**
2234-
* Registers a handler for the "v1.issuing_authorization.request" event.
2235-
*
2236-
* @param callable(Events\V1IssuingAuthorizationRequestEventNotification, StripeClient): void $handler Handles v1.issuing_authorization.request events
2237-
*
2238-
* @throws Exception\InvalidArgumentException if this event type is already registered
2239-
* @throws Exception\BadMethodCallException if the `.handle()` method has already been called on this handler.
2240-
*/
2241-
public function onV1IssuingAuthorizationRequest($handler)
2242-
{
2243-
$this->register('v1.issuing_authorization.request', $handler);
2244-
}
2245-
22462272
/**
22472273
* Registers a handler for the "v1.issuing_authorization.updated" event.
22482274
*
@@ -3832,6 +3858,19 @@ public function onV2CoreAccountClosed($handler)
38323858
$this->register('v2.core.account.closed', $handler);
38333859
}
38343860

3861+
/**
3862+
* Registers a handler for the "v2.core.account.connected" event.
3863+
*
3864+
* @param callable(Events\V2CoreAccountConnectedEventNotification, StripeClient): void $handler Handles v2.core.account.connected events
3865+
*
3866+
* @throws Exception\InvalidArgumentException if this event type is already registered
3867+
* @throws Exception\BadMethodCallException if the `.handle()` method has already been called on this handler.
3868+
*/
3869+
public function onV2CoreAccountConnected($handler)
3870+
{
3871+
$this->register('v2.core.account.connected', $handler);
3872+
}
3873+
38353874
/**
38363875
* Registers a handler for the "v2.core.account.created" event.
38373876
*
@@ -3845,6 +3884,19 @@ public function onV2CoreAccountCreated($handler)
38453884
$this->register('v2.core.account.created', $handler);
38463885
}
38473886

3887+
/**
3888+
* Registers a handler for the "v2.core.account.disconnected" event.
3889+
*
3890+
* @param callable(Events\V2CoreAccountDisconnectedEventNotification, StripeClient): void $handler Handles v2.core.account.disconnected events
3891+
*
3892+
* @throws Exception\InvalidArgumentException if this event type is already registered
3893+
* @throws Exception\BadMethodCallException if the `.handle()` method has already been called on this handler.
3894+
*/
3895+
public function onV2CoreAccountDisconnected($handler)
3896+
{
3897+
$this->register('v2.core.account.disconnected', $handler);
3898+
}
3899+
38483900
/**
38493901
* Registers a handler for the "v2.core.account.updated" event.
38503902
*

‎lib/Account.php‎

Lines changed: 5 additions & 4 deletions
Large diffs are not rendered by default.

‎lib/AccountSession.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* @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://docs.stripe.com/connect/get-started-connect-embedded-components">setup Connect embedded components</a> and learn about how <code>client_secret</code> should be handled.</p>
1919
* @property (object{account_management: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, external_account_collection: bool}&StripeObject)}&StripeObject), account_onboarding: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, external_account_collection: bool}&StripeObject)}&StripeObject), balance_report: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), 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}&StripeObject)}&StripeObject), disputes_list: (object{enabled: bool, features: (object{capture_payments: bool, destination_on_behalf_of_charge_management: bool, dispute_management: bool, refund_management: bool, smart_disputes_management: bool}&StripeObject)}&StripeObject), documents: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), financial_account: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, external_account_collection: bool, send_money: bool, transfer_balance: bool}&StripeObject)}&StripeObject), financial_account_transactions: (object{enabled: bool, features: (object{card_spend_dispute_management: bool}&StripeObject)}&StripeObject), instant_payouts_promotion: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, external_account_collection: bool, instant_payouts: bool}&StripeObject)}&StripeObject), issuing_card: (object{enabled: bool, features: (object{card_management: bool, card_spend_dispute_management: bool, cardholder_management: bool, spend_control_management: bool}&StripeObject)}&StripeObject), issuing_cards_list: (object{enabled: bool, features: (object{card_management: bool, card_spend_dispute_management: bool, cardholder_management: bool, disable_stripe_user_authentication: bool, spend_control_management: bool}&StripeObject)}&StripeObject), notification_banner: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, external_account_collection: bool}&StripeObject)}&StripeObject), payment_details: (object{enabled: bool, features: (object{capture_payments: bool, destination_on_behalf_of_charge_management: bool, dispute_management: bool, refund_management: bool, smart_disputes_management: bool}&StripeObject)}&StripeObject), payment_disputes: (object{enabled: bool, features: (object{destination_on_behalf_of_charge_management: bool, dispute_management: bool, refund_management: bool, smart_disputes_management: bool}&StripeObject)}&StripeObject), payment_method_settings: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool}&StripeObject)}&StripeObject), payments: (object{enabled: bool, features: (object{capture_payments: bool, destination_on_behalf_of_charge_management: bool, dispute_management: bool, refund_management: bool, smart_disputes_management: bool}&StripeObject)}&StripeObject), payout_details: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), payout_reconciliation_report: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), 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}&StripeObject)}&StripeObject), payouts_list: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), reporting_chart: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), tax_registrations: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), tax_settings: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), terminal_hardware_orders: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), terminal_hardware_shop: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject)}&StripeObject) $components
2020
* @property int $expires_at The timestamp at which this AccountSession will expire.
21-
* @property bool $livemode If the object exists in live mode, the value is <code>true</code>. If the object exists in test mode, the value is <code>false</code>.
21+
* @property bool $livemode If the object exists in live mode, the value is <code>true</code>. Otherwise, the value is <code>false</code>, including for objects in a sandbox.
2222
*/
2323
class AccountSession extends ApiResource
2424
{

‎lib/ApiRequestor.php‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,16 @@ private static function _specificV2APIError($rbody, $rcode, $rheaders, $resp, $e
377377
$code
378378
);
379379

380+
case 'inactive_api_operation_confirmation_required':
381+
return Exception\InactiveApiOperationConfirmationRequiredException::factory(
382+
$msg,
383+
$rcode,
384+
$rbody,
385+
$resp,
386+
$rheaders,
387+
$code
388+
);
389+
380390
case 'insufficient_funds':
381391
return Exception\InsufficientFundsException::factory(
382392
$msg,

‎lib/ApplePayDomain.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @property string $object String representing the object's type. Objects of the same type share the same value.
1010
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
1111
* @property string $domain_name
12-
* @property bool $livemode If the object exists in live mode, the value is <code>true</code>. If the object exists in test mode, the value is <code>false</code>.
12+
* @property bool $livemode If the object exists in live mode, the value is <code>true</code>. Otherwise, the value is <code>false</code>, including for objects in a sandbox.
1313
*/
1414
class ApplePayDomain extends ApiResource
1515
{

‎lib/ApplicationFee.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
2323
* @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>.
2424
* @property null|(object{charge?: string, payout?: string, type: string}&StripeObject) $fee_source Polymorphic source of the application fee. Includes the ID of the object the application fee was created from.
25-
* @property bool $livemode If the object exists in live mode, the value is <code>true</code>. If the object exists in test mode, the value is <code>false</code>.
25+
* @property bool $livemode If the object exists in live mode, the value is <code>true</code>. Otherwise, the value is <code>false</code>, including for objects in a sandbox.
2626
* @property null|Charge|string $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.
2727
* @property bool $refunded Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false.
2828
* @property Collection<ApplicationFeeRefund> $refunds A list of refunds that have been applied to the fee.

‎lib/Apps/Install.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @property null|string $created_by The ID of the embedding platform that created the install, if applicable.
2424
* @property string[] $endpoints_granted The endpoint URLs authorized by the installer.
2525
* @property string[] $endpoints_pending The endpoint URLs requested by the latest app version that the installer has not authorized.
26-
* @property bool $livemode If the object exists in live mode, the value is <code>true</code>. If the object exists in test mode, the value is <code>false</code>.
26+
* @property bool $livemode If the object exists in live mode, the value is <code>true</code>. Otherwise, the value is <code>false</code>, including for objects in a sandbox.
2727
* @property string[] $permissions_granted The permissions authorized by the installer.
2828
* @property string[] $permissions_pending The permissions requested by the latest app version that the installer has not authorized.
2929
* @property string $status The status of the app install.

‎lib/Apps/Secret.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
2121
* @property null|bool $deleted If true, indicates that this secret has been deleted
2222
* @property null|int $expires_at The Unix timestamp for the expiry time of the secret, after which the secret deletes.
23-
* @property bool $livemode If the object exists in live mode, the value is <code>true</code>. If the object exists in test mode, the value is <code>false</code>.
23+
* @property bool $livemode If the object exists in live mode, the value is <code>true</code>. Otherwise, the value is <code>false</code>, including for objects in a sandbox.
2424
* @property string $name A name for the secret that's unique within the scope.
2525
* @property null|string $payload The plaintext secret value to be stored.
2626
* @property (object{type: string, user?: string}&\Stripe\StripeObject) $scope

‎lib/Balance.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @property null|(object{amount: int, currency: string, source_types?: (object{bank_account?: int, card?: int, fpx?: int}&StripeObject)}&StripeObject)[] $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.
1818
* @property null|(object{amount: int, currency: string, net_available?: (object{amount: int, destination: string, source_types?: (object{bank_account?: int, card?: int, fpx?: int}&StripeObject)}&StripeObject)[], source_types?: (object{bank_account?: int, card?: int, fpx?: int}&StripeObject)}&StripeObject)[] $instant_available Funds that you can pay out using Instant Payouts.
1919
* @property null|(object{available: (object{amount: int, currency: string, source_types?: (object{bank_account?: int, card?: int, fpx?: int}&StripeObject)}&StripeObject)[]}&StripeObject) $issuing
20-
* @property bool $livemode If the object exists in live mode, the value is <code>true</code>. If the object exists in test mode, the value is <code>false</code>.
20+
* @property bool $livemode If the object exists in live mode, the value is <code>true</code>. Otherwise, the value is <code>false</code>, including for objects in a sandbox.
2121
* @property (object{amount: int, currency: string, source_types?: (object{bank_account?: int, card?: int, fpx?: int}&StripeObject)}&StripeObject)[] $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.
2222
* @property null|(object{available: (object{amount: int, currency: string, source_types?: (object{bank_account?: int, card?: int, fpx?: int}&StripeObject)}&StripeObject)[], pending: (object{amount: int, currency: string, source_types?: (object{bank_account?: int, card?: int, fpx?: int}&StripeObject)}&StripeObject)[]}&StripeObject) $refund_and_dispute_prefunding
2323
*/

0 commit comments

Comments
 (0)