From 961abc4718f6d5451ffd0ffb4d01655d3d92856a Mon Sep 17 00:00:00 2001 From: Annie Li Date: Thu, 9 Mar 2023 09:33:10 -0800 Subject: [PATCH] Codegen for openapi v249 --- OPENAPI_VERSION | 2 +- lib/Service/CustomerService.php | 10 +++++----- lib/Service/SourceService.php | 2 +- lib/Service/SubscriptionService.php | 2 +- lib/Service/TestHelpers/CustomerService.php | 2 +- lib/Service/Treasury/FinancialAccountService.php | 4 ++-- lib/Subscription.php | 1 + 7 files changed, 12 insertions(+), 11 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index eb6678972..f93f657af 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v237 \ No newline at end of file +v249 \ No newline at end of file diff --git a/lib/Service/CustomerService.php b/lib/Service/CustomerService.php index 1592f04ef..c934503cf 100644 --- a/lib/Service/CustomerService.php +++ b/lib/Service/CustomerService.php @@ -81,7 +81,7 @@ public function allPaymentMethods($id, $params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection<\Stripe\BankAccount|\Stripe\Card|\Stripe\Source> + * @return \Stripe\Collection<\Stripe\Account|\Stripe\BankAccount|\Stripe\Card|\Stripe\Source> */ public function allSources($parentId, $params = null, $opts = null) { @@ -149,7 +149,7 @@ public function createBalanceTransaction($parentId, $params = null, $opts = null * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Customer + * @return \Stripe\FundingInstructions */ public function createFundingInstructions($id, $params = null, $opts = null) { @@ -171,7 +171,7 @@ public function createFundingInstructions($id, $params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\BankAccount|\Stripe\Card|\Stripe\Source + * @return \Stripe\Account|\Stripe\BankAccount|\Stripe\Card|\Stripe\Source */ public function createSource($parentId, $params = null, $opts = null) { @@ -220,7 +220,7 @@ public function delete($id, $params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Customer + * @return \Stripe\Discount */ public function deleteDiscount($id, $params = null, $opts = null) { @@ -354,7 +354,7 @@ public function retrievePaymentMethod($parentId, $id, $params = null, $opts = nu * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\BankAccount|\Stripe\Card|\Stripe\Source + * @return \Stripe\Account|\Stripe\BankAccount|\Stripe\Card|\Stripe\Source */ public function retrieveSource($parentId, $id, $params = null, $opts = null) { diff --git a/lib/Service/SourceService.php b/lib/Service/SourceService.php index b55717883..e3c2b6445 100644 --- a/lib/Service/SourceService.php +++ b/lib/Service/SourceService.php @@ -47,7 +47,7 @@ public function create($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Source + * @return \Stripe\Account|\Stripe\BankAccount|\Stripe\Card|\Stripe\Source */ public function detach($parentId, $id, $params = null, $opts = null) { diff --git a/lib/Service/SubscriptionService.php b/lib/Service/SubscriptionService.php index dcbc8e648..31e2aa51c 100644 --- a/lib/Service/SubscriptionService.php +++ b/lib/Service/SubscriptionService.php @@ -90,7 +90,7 @@ public function create($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Subscription + * @return \Stripe\Discount */ public function deleteDiscount($id, $params = null, $opts = null) { diff --git a/lib/Service/TestHelpers/CustomerService.php b/lib/Service/TestHelpers/CustomerService.php index c46b57975..b65882838 100644 --- a/lib/Service/TestHelpers/CustomerService.php +++ b/lib/Service/TestHelpers/CustomerService.php @@ -15,7 +15,7 @@ class CustomerService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Customer + * @return \Stripe\CustomerCashBalanceTransaction */ public function fundCashBalance($id, $params = null, $opts = null) { diff --git a/lib/Service/Treasury/FinancialAccountService.php b/lib/Service/Treasury/FinancialAccountService.php index f273bd9c1..7aa4791ca 100644 --- a/lib/Service/Treasury/FinancialAccountService.php +++ b/lib/Service/Treasury/FinancialAccountService.php @@ -62,7 +62,7 @@ public function retrieve($id, $params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Treasury\FinancialAccount + * @return \Stripe\Treasury\FinancialAccountFeatures */ public function retrieveFeatures($id, $params = null, $opts = null) { @@ -94,7 +94,7 @@ public function update($id, $params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Treasury\FinancialAccount + * @return \Stripe\Treasury\FinancialAccountFeatures */ public function updateFeatures($id, $params = null, $opts = null) { diff --git a/lib/Subscription.php b/lib/Subscription.php index 29dd681f9..a6b99670d 100644 --- a/lib/Subscription.php +++ b/lib/Subscription.php @@ -21,6 +21,7 @@ * @property null|int $cancel_at A date in the future at which the subscription will automatically get canceled * @property bool $cancel_at_period_end If the subscription has been canceled with the at_period_end flag set to true, cancel_at_period_end on the subscription will be true. You can use this attribute to determine whether a subscription that has a status of active is scheduled to be canceled at the end of the current period. * @property null|int $canceled_at If the subscription has been canceled, the date of that cancellation. If the subscription was canceled with cancel_at_period_end, canceled_at will reflect the time of the most recent update request, not the end of the subscription period when the subscription is automatically moved to a canceled state. + * @property null|\Stripe\StripeObject $cancellation_details Details about why this subscription was cancelled * @property string $collection_method Either charge_automatically, or send_invoice. When charging automatically, Stripe will attempt to pay this subscription at the end of the cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as active. * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.