Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .hark/changes/2026-11-03_stripe-openapi_ddc95e66.change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Update generated code
pr_url: https://github.com/stripe/stripe-php/pull/2188
semver_level: minor
is_stripe_api_change: true
---

* Add support for `business_profile_management` on `V2.Core.AccountSession.components` and `V2\Core\AccountSession.create().$params.component`
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
305a4cda5bfda341d0099795803d0af4637923c0
fcd36ef9298b7a9e8a2a18bc4f6162b100aa8bbc
6 changes: 3 additions & 3 deletions lib/BaseStripeClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,9 @@ public function requestCollection($method, $path, $params, $opts)
*/
public function requestSearchResult($method, $path, $params, $opts)
{
$obj = $this->request($method, $path, $params, $opts);
$apiMode = Util::getApiMode($path);
if ('v1' === $apiMode) {
$obj = $this->request($method, $path, $params, $opts);
if (!$obj instanceof SearchResult) {
$received_class = \get_class($obj);
$msg = "Expected to receive `Stripe\\SearchResult` object from Stripe API. Instead received `{$received_class}`.";
Expand All @@ -401,9 +401,9 @@ public function requestSearchResult($method, $path, $params, $opts)
} else {
$params = null === $params ? [] : $params;
$filters = $params;
$path = \explode('?', $path, 2)[0];
if (\array_key_exists('limit', $params)) {
$separator = false === \strpos($path, '?') ? '?' : '&';
$path .= $separator . 'limit=' . \rawurlencode((string) $params['limit']);
$path .= '?limit=' . \rawurlencode((string) $params['limit']);
unset($params['limit']);
}
$obj = $this->request($method, $path, $params, $opts);
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/V2/Core/AccountSessionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class AccountSessionService extends \Stripe\Service\AbstractService
/**
* Create an Account Session.
*
* @param null|array{account: string, components: array{account_management?: array{enabled: bool}, account_onboarding?: array{enabled: bool}, agentic_commerce_settings?: array{enabled: bool}, app_install?: array{enabled: bool}, app_viewport?: array{enabled: bool}, balance_report?: array{enabled: bool}, balances?: array{enabled: bool}, bills?: array{enabled: bool}, capital_financing?: array{enabled: bool}, capital_financing_application?: array{enabled: bool}, capital_financing_promotion?: array{enabled: bool}, check_scanning?: array{enabled: bool}, disputes_list?: array{enabled: bool}, documents?: array{enabled: bool}, export_tax_transactions?: array{enabled: bool}, financial_account_rewards?: array{enabled: bool}, financial_accounts?: array{enabled: bool}, financial_accounts_transactions?: array{enabled: bool}, instant_payouts_promotion?: array{enabled: bool}, invoice_history?: array{enabled: bool}, issuing_card?: array{enabled: bool}, issuing_cards_list?: array{enabled: bool}, network_cost_passthrough_report?: array{enabled: bool}, notification_banner?: array{enabled: bool}, payment_details?: array{enabled: bool}, payment_disputes?: array{enabled: bool}, payment_method_settings?: array{enabled: bool}, payments?: array{enabled: bool}, payout_details?: array{enabled: bool}, payout_reconciliation_report?: array{enabled: bool}, payouts?: array{enabled: bool}, payouts_list?: array{enabled: bool}, product_tax_code_selector?: array{enabled: bool}, reporting_chart?: array{enabled: bool}, tax_registrations?: array{enabled: bool}, tax_settings?: array{enabled: bool}, tax_threshold_monitoring?: array{enabled: bool}, terminal_hardware_orders?: array{enabled: bool}, terminal_hardware_shop?: array{enabled: bool}}, scopes?: array{allowed_stripe_app_ids?: string[], capture_payments?: string, create_instant_payouts?: string, create_outbound_payments?: string, create_payout_schedule?: string, create_standard_payouts?: string, create_us_paper_check_on_application?: string, disable_stripe_user_authentication?: string, manage_bills?: string, manage_destination_on_behalf_of_charges?: string, manage_issuing_cardholders?: string, manage_issuing_cards?: string, manage_issuing_disputes?: string, manage_issuing_spending_controls?: string, manage_payment_disputes?: string, manage_payout_methods?: string, manage_refund_payments?: string, manage_smart_disputes?: string}} $params
* @param null|array{account: string, components: array{account_management?: array{enabled: bool}, account_onboarding?: array{enabled: bool}, agentic_commerce_settings?: array{enabled: bool}, app_install?: array{enabled: bool}, app_viewport?: array{enabled: bool}, balance_report?: array{enabled: bool}, balances?: array{enabled: bool}, bills?: array{enabled: bool}, business_profile_management?: array{enabled: bool}, capital_financing?: array{enabled: bool}, capital_financing_application?: array{enabled: bool}, capital_financing_promotion?: array{enabled: bool}, check_scanning?: array{enabled: bool}, disputes_list?: array{enabled: bool}, documents?: array{enabled: bool}, export_tax_transactions?: array{enabled: bool}, financial_account_rewards?: array{enabled: bool}, financial_accounts?: array{enabled: bool}, financial_accounts_transactions?: array{enabled: bool}, instant_payouts_promotion?: array{enabled: bool}, invoice_history?: array{enabled: bool}, issuing_card?: array{enabled: bool}, issuing_cards_list?: array{enabled: bool}, network_cost_passthrough_report?: array{enabled: bool}, notification_banner?: array{enabled: bool}, payment_details?: array{enabled: bool}, payment_disputes?: array{enabled: bool}, payment_method_settings?: array{enabled: bool}, payments?: array{enabled: bool}, payout_details?: array{enabled: bool}, payout_reconciliation_report?: array{enabled: bool}, payouts?: array{enabled: bool}, payouts_list?: array{enabled: bool}, product_tax_code_selector?: array{enabled: bool}, reporting_chart?: array{enabled: bool}, tax_registrations?: array{enabled: bool}, tax_settings?: array{enabled: bool}, tax_threshold_monitoring?: array{enabled: bool}, terminal_hardware_orders?: array{enabled: bool}, terminal_hardware_shop?: array{enabled: bool}}, scopes?: array{allowed_stripe_app_ids?: string[], capture_payments?: string, create_instant_payouts?: string, create_outbound_payments?: string, create_payout_schedule?: string, create_standard_payouts?: string, create_us_paper_check_on_application?: string, disable_stripe_user_authentication?: string, manage_bills?: string, manage_destination_on_behalf_of_charges?: string, manage_issuing_cardholders?: string, manage_issuing_cards?: string, manage_issuing_disputes?: string, manage_issuing_spending_controls?: string, manage_payment_disputes?: string, manage_payout_methods?: string, manage_refund_payments?: string, manage_smart_disputes?: string}} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\V2\Core\AccountSession
Expand Down
Loading
Loading