From c7d68d520074648510384160f5ead8835a640c77 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 25 Jan 2024 17:01:12 +0000 Subject: [PATCH 1/2] Update generated code (#1312) * Update generated code for v769 * Update generated code for v771 * Update generated code for v773 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: pakrym-stripe <99349468+pakrym-stripe@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- lib/stripe/object_types.rb | 2 +- lib/stripe/resources/account.rb | 5 ++--- lib/stripe/resources/payout.rb | 8 ++++---- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 749c898f..9fd9fd9d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v755 \ No newline at end of file +v773 \ No newline at end of file diff --git a/lib/stripe/object_types.rb b/lib/stripe/object_types.rb index 3879e9d3..ad8b5cc2 100644 --- a/lib/stripe/object_types.rb +++ b/lib/stripe/object_types.rb @@ -12,6 +12,7 @@ module Stripe SearchResultObject::OBJECT_NAME => SearchResultObject, # business objects + File::OBJECT_NAME_ALT => File, Account::OBJECT_NAME => Account, AccountLink::OBJECT_NAME => AccountLink, AccountSession::OBJECT_NAME => AccountSession, @@ -46,7 +47,6 @@ module Stripe Event::OBJECT_NAME => Event, ExchangeRate::OBJECT_NAME => ExchangeRate, File::OBJECT_NAME => File, - File::OBJECT_NAME_ALT => File, FileLink::OBJECT_NAME => FileLink, FinancialConnections::Account::OBJECT_NAME => FinancialConnections::Account, FinancialConnections::AccountOwner::OBJECT_NAME => FinancialConnections::AccountOwner, diff --git a/lib/stripe/resources/account.rb b/lib/stripe/resources/account.rb index e41b3b19..2924be37 100644 --- a/lib/stripe/resources/account.rb +++ b/lib/stripe/resources/account.rb @@ -7,9 +7,8 @@ module Stripe # enabled to make live charges or receive payouts. # # For Custom accounts, the properties below are always returned. For other accounts, some properties are returned until that - # account has started to go through Connect Onboarding. Once you create an [Account Link](https://stripe.com/docs/api/account_links) - # for a Standard or Express account, some parameters are no longer returned. These are marked as **Custom Only** or **Custom and Express** - # below. Learn about the differences [between accounts](https://stripe.com/docs/connect/accounts). + # account has started to go through Connect Onboarding. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), + # some properties are only returned for Custom accounts. Learn about the differences [between accounts](https://stripe.com/docs/connect/accounts). class Account < APIResource extend Stripe::APIOperations::Create include Stripe::APIOperations::Delete diff --git a/lib/stripe/resources/payout.rb b/lib/stripe/resources/payout.rb index e50de02e..0f4995ae 100644 --- a/lib/stripe/resources/payout.rb +++ b/lib/stripe/resources/payout.rb @@ -17,7 +17,7 @@ module Stripe OBJECT_NAME = "payout" - # You can cancel a previously created payout if it hasn't been paid out yet. Stripe refunds the funds to your available balance. You can't cancel automatic Stripe payouts. + # You can cancel a previously created payout if its status is pending. Stripe refunds the funds to your available balance. You can't cancel automatic Stripe payouts. def cancel(params = {}, opts = {}) request_stripe_object( method: :post, @@ -27,7 +27,7 @@ module Stripe ) end - # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is in the pending status, use /v1/payouts/:id/cancel instead. + # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead. # # By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required. def reverse(params = {}, opts = {}) @@ -39,7 +39,7 @@ module Stripe ) end - # You can cancel a previously created payout if it hasn't been paid out yet. Stripe refunds the funds to your available balance. You can't cancel automatic Stripe payouts. + # You can cancel a previously created payout if its status is pending. Stripe refunds the funds to your available balance. You can't cancel automatic Stripe payouts. def self.cancel(payout, params = {}, opts = {}) request_stripe_object( method: :post, @@ -49,7 +49,7 @@ module Stripe ) end - # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is in the pending status, use /v1/payouts/:id/cancel instead. + # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead. # # By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required. def self.reverse(payout, params = {}, opts = {}) From 7055e504b1676a61c778ceb2f285851dbcf6bfb2 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 25 Jan 2024 09:13:22 -0800 Subject: [PATCH 2/2] Update generated code for v793 (#1315) Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- lib/stripe/resources/account.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 9fd9fd9d..55b7a77b 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v773 \ No newline at end of file +v793 \ No newline at end of file diff --git a/lib/stripe/resources/account.rb b/lib/stripe/resources/account.rb index 2924be37..f5247ff6 100644 --- a/lib/stripe/resources/account.rb +++ b/lib/stripe/resources/account.rb @@ -10,6 +10,7 @@ module Stripe # account has started to go through Connect Onboarding. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), # some properties are only returned for Custom accounts. Learn about the differences [between accounts](https://stripe.com/docs/connect/accounts). class Account < APIResource + extend Gem::Deprecate extend Stripe::APIOperations::Create include Stripe::APIOperations::Delete extend Stripe::APIOperations::List