diff --git a/init.php b/init.php
index d0525d1bc..5e8b0d2a1 100644
--- a/init.php
+++ b/init.php
@@ -173,6 +173,7 @@
require __DIR__ . '/lib/TransferReversal.php';
require __DIR__ . '/lib/Treasury/CreditReversal.php';
require __DIR__ . '/lib/Treasury/DebitReversal.php';
+require __DIR__ . '/lib/Treasury/Features.php';
require __DIR__ . '/lib/Treasury/FinancialAccount.php';
require __DIR__ . '/lib/Treasury/InboundTransfer.php';
require __DIR__ . '/lib/Treasury/OutboundPayment.php';
diff --git a/lib/BillingPortal/Session.php b/lib/BillingPortal/Session.php
index 5cec9a400..2f737c373 100644
--- a/lib/BillingPortal/Session.php
+++ b/lib/BillingPortal/Session.php
@@ -30,7 +30,7 @@
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
* @property null|string $locale The IETF language tag of the locale Customer Portal is displayed in. If blank or auto, the customer’s preferred_locales
or browser’s locale is used.
* @property null|string $on_behalf_of The account for which the session was created on behalf of. When specified, only subscriptions and invoices with this on_behalf_of
account appear in the portal. For more information, see the docs. Use the Accounts API to modify the on_behalf_of
account's branding settings, which the portal displays.
- * @property string $return_url The URL to redirect customers to when they click on the portal's link to return to your website.
+ * @property null|string $return_url The URL to redirect customers to when they click on the portal's link to return to your website.
* @property string $url The short-lived URL of the session that gives customers access to the customer portal.
*/
class Session extends \Stripe\ApiResource
diff --git a/lib/Treasury/Features.php b/lib/Treasury/Features.php
new file mode 100644
index 000000000..4f57946d9
--- /dev/null
+++ b/lib/Treasury/Features.php
@@ -0,0 +1,24 @@
+status enum and associated status_details
. 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 \Stripe\StripeObject $card_issuing Toggle settings for enabling/disabling a feature
+ * @property \Stripe\StripeObject $deposit_insurance Toggle settings for enabling/disabling a feature
+ * @property \Stripe\StripeObject $financial_addresses Settings related to Financial Addresses features on a Financial Account
+ * @property \Stripe\StripeObject $inbound_transfers InboundTransfers contains inbound transfers features for a FinancialAccount.
+ * @property \Stripe\StripeObject $intra_stripe_flows Toggle settings for enabling/disabling a feature
+ * @property \Stripe\StripeObject $outbound_payments Settings related to Outbound Payments features on a Financial Account
+ * @property \Stripe\StripeObject $outbound_transfers OutboundTransfers contains outbound transfers features for a FinancialAccount.
+ */
+class Features extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'treasury.financial_account.features';
+}
diff --git a/lib/Treasury/FinancialAccount.php b/lib/Treasury/FinancialAccount.php
index 409cff703..dfef94577 100644
--- a/lib/Treasury/FinancialAccount.php
+++ b/lib/Treasury/FinancialAccount.php
@@ -15,7 +15,7 @@
* @property \Stripe\StripeObject $balance Balance information for the FinancialAccount
* @property string $country Two-letter country code (ISO 3166-1 alpha-2).
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
- * @property \Stripe\StripeObject $features Encodes whether a FinancialAccount has access to a particular Feature, with a status
enum and associated status_details
. Stripe or the platform can control Features via the requested field.
+ * @property \Stripe\Treasury\Features $features Encodes whether a FinancialAccount has access to a particular Feature, with a status
enum and associated status_details
. 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 bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
* @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
diff --git a/lib/Util/ObjectTypes.php b/lib/Util/ObjectTypes.php
index 0ae600b08..72703f4f3 100644
--- a/lib/Util/ObjectTypes.php
+++ b/lib/Util/ObjectTypes.php
@@ -108,6 +108,7 @@ class ObjectTypes
\Stripe\TransferReversal::OBJECT_NAME => \Stripe\TransferReversal::class,
\Stripe\Treasury\CreditReversal::OBJECT_NAME => \Stripe\Treasury\CreditReversal::class,
\Stripe\Treasury\DebitReversal::OBJECT_NAME => \Stripe\Treasury\DebitReversal::class,
+ \Stripe\Treasury\Features::OBJECT_NAME => \Stripe\Treasury\Features::class,
\Stripe\Treasury\FinancialAccount::OBJECT_NAME => \Stripe\Treasury\FinancialAccount::class,
\Stripe\Treasury\InboundTransfer::OBJECT_NAME => \Stripe\Treasury\InboundTransfer::class,
\Stripe\Treasury\OutboundPayment::OBJECT_NAME => \Stripe\Treasury\OutboundPayment::class,
diff --git a/tests/Stripe/GeneratedExamplesTest.php b/tests/Stripe/GeneratedExamplesTest.php
index f1c288664..597a4c743 100644
--- a/tests/Stripe/GeneratedExamplesTest.php
+++ b/tests/Stripe/GeneratedExamplesTest.php
@@ -3138,7 +3138,7 @@ public function testUpdateFeaturesFinancialAccount()
'fa_xxxxxxxxxxxxx',
[]
);
- static::assertInstanceOf(\Stripe\Features::class, $result);
+ static::assertInstanceOf(\Stripe\Treasury\Features::class, $result);
}
public function testRetrieveFeaturesFinancialAccount()
@@ -3151,7 +3151,7 @@ public function testRetrieveFeaturesFinancialAccount()
'fa_xxxxxxxxxxxxx',
[]
);
- static::assertInstanceOf(\Stripe\Features::class, $result);
+ static::assertInstanceOf(\Stripe\Treasury\Features::class, $result);
}
public function testRetrieveTransaction2()