Skip to content

Commit

Permalink
Regenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed May 17, 2022
1 parent 6c42512 commit 7cda52d
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 4 deletions.
1 change: 1 addition & 0 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion lib/BillingPortal/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,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 null|string $locale The IETF language tag of the locale Customer Portal is displayed in. If blank or auto, the customer’s <code>preferred_locales</code> 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 <code>on_behalf_of</code> account appear in the portal. For more information, see the <a href="https://stripe.com/docs/connect/charges-transfers#on-behalf-of">docs</a>. Use the <a href="https://stripe.com/docs/api/accounts/object#account_object-settings-branding">Accounts API</a> to modify the <code>on_behalf_of</code> 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
Expand Down
24 changes: 24 additions & 0 deletions lib/Treasury/Features.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

// File generated from our OpenAPI spec

namespace Stripe\Treasury;

/**
* Encodes whether a FinancialAccount has access to a particular Feature, with a
* <code>status</code> enum and associated <code>status_details</code>. 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';
}
2 changes: 1 addition & 1 deletion lib/Treasury/FinancialAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @property \Stripe\StripeObject $balance Balance information for the FinancialAccount
* @property string $country Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a>).
* @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 <code>status</code> enum and associated <code>status_details</code>. 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 <code>status</code> enum and associated <code>status_details</code>. 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 <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://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.
Expand Down
1 change: 1 addition & 0 deletions lib/Util/ObjectTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions tests/Stripe/GeneratedExamplesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit 7cda52d

Please sign in to comment.