From 467e0346766705ae3762965a7ddf770106a393f9 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 10 Jan 2025 03:16:59 +0000 Subject: [PATCH 01/18] Update generated code for v1439 --- OPENAPI_VERSION | 2 +- .../resources/terminal/configuration.rb | 49 ++++++++++++++++ .../terminal/configuration_service.rb | 38 +++++++++++++ .../resources/terminal/configuration.rbi | 56 ++++++++++++++++++- .../terminal/configuration_service.rbi | 42 +++++++++++++- 5 files changed, 182 insertions(+), 5 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 115863e95..1de7c5643 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1436 \ No newline at end of file +v1439 \ No newline at end of file diff --git a/lib/stripe/resources/terminal/configuration.rb b/lib/stripe/resources/terminal/configuration.rb index 91ca5eefa..ca86719fd 100644 --- a/lib/stripe/resources/terminal/configuration.rb +++ b/lib/stripe/resources/terminal/configuration.rb @@ -110,6 +110,15 @@ class Hkd < Stripe::StripeObject attr_reader :smart_tip_threshold end + class Jpy < Stripe::StripeObject + # Fixed amounts displayed when collecting a tip + attr_reader :fixed_amounts + # Percentages displayed when collecting a tip + attr_reader :percentages + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + attr_reader :smart_tip_threshold + end + class Myr < Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts @@ -188,6 +197,8 @@ class Usd < Stripe::StripeObject attr_reader :gbp # Attribute for field hkd attr_reader :hkd + # Attribute for field jpy + attr_reader :jpy # Attribute for field myr attr_reader :myr # Attribute for field nok @@ -382,6 +393,21 @@ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil) end end + class Jpy < Stripe::RequestParams + # Fixed amounts displayed when collecting a tip + attr_accessor :fixed_amounts + # Percentages displayed when collecting a tip + attr_accessor :percentages + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + attr_accessor :smart_tip_threshold + + def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil) + @fixed_amounts = fixed_amounts + @percentages = percentages + @smart_tip_threshold = smart_tip_threshold + end + end + class Myr < Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts @@ -502,6 +528,8 @@ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil) attr_accessor :gbp # Tipping configuration for HKD attr_accessor :hkd + # Tipping configuration for JPY + attr_accessor :jpy # Tipping configuration for MYR attr_accessor :myr # Tipping configuration for NOK @@ -526,6 +554,7 @@ def initialize( eur: nil, gbp: nil, hkd: nil, + jpy: nil, myr: nil, nok: nil, nzd: nil, @@ -542,6 +571,7 @@ def initialize( @eur = eur @gbp = gbp @hkd = hkd + @jpy = jpy @myr = myr @nok = nok @nzd = nzd @@ -786,6 +816,21 @@ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil) end end + class Jpy < Stripe::RequestParams + # Fixed amounts displayed when collecting a tip + attr_accessor :fixed_amounts + # Percentages displayed when collecting a tip + attr_accessor :percentages + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + attr_accessor :smart_tip_threshold + + def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil) + @fixed_amounts = fixed_amounts + @percentages = percentages + @smart_tip_threshold = smart_tip_threshold + end + end + class Myr < Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts @@ -906,6 +951,8 @@ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil) attr_accessor :gbp # Tipping configuration for HKD attr_accessor :hkd + # Tipping configuration for JPY + attr_accessor :jpy # Tipping configuration for MYR attr_accessor :myr # Tipping configuration for NOK @@ -930,6 +977,7 @@ def initialize( eur: nil, gbp: nil, hkd: nil, + jpy: nil, myr: nil, nok: nil, nzd: nil, @@ -946,6 +994,7 @@ def initialize( @eur = eur @gbp = gbp @hkd = hkd + @jpy = jpy @myr = myr @nok = nok @nzd = nzd diff --git a/lib/stripe/services/terminal/configuration_service.rb b/lib/stripe/services/terminal/configuration_service.rb index 3633d1f31..602570e70 100644 --- a/lib/stripe/services/terminal/configuration_service.rb +++ b/lib/stripe/services/terminal/configuration_service.rb @@ -177,6 +177,21 @@ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil) end end + class Jpy < Stripe::RequestParams + # Fixed amounts displayed when collecting a tip + attr_accessor :fixed_amounts + # Percentages displayed when collecting a tip + attr_accessor :percentages + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + attr_accessor :smart_tip_threshold + + def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil) + @fixed_amounts = fixed_amounts + @percentages = percentages + @smart_tip_threshold = smart_tip_threshold + end + end + class Myr < Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts @@ -297,6 +312,8 @@ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil) attr_accessor :gbp # Tipping configuration for HKD attr_accessor :hkd + # Tipping configuration for JPY + attr_accessor :jpy # Tipping configuration for MYR attr_accessor :myr # Tipping configuration for NOK @@ -321,6 +338,7 @@ def initialize( eur: nil, gbp: nil, hkd: nil, + jpy: nil, myr: nil, nok: nil, nzd: nil, @@ -337,6 +355,7 @@ def initialize( @eur = eur @gbp = gbp @hkd = hkd + @jpy = jpy @myr = myr @nok = nok @nzd = nzd @@ -581,6 +600,21 @@ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil) end end + class Jpy < Stripe::RequestParams + # Fixed amounts displayed when collecting a tip + attr_accessor :fixed_amounts + # Percentages displayed when collecting a tip + attr_accessor :percentages + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + attr_accessor :smart_tip_threshold + + def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil) + @fixed_amounts = fixed_amounts + @percentages = percentages + @smart_tip_threshold = smart_tip_threshold + end + end + class Myr < Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts @@ -701,6 +735,8 @@ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil) attr_accessor :gbp # Tipping configuration for HKD attr_accessor :hkd + # Tipping configuration for JPY + attr_accessor :jpy # Tipping configuration for MYR attr_accessor :myr # Tipping configuration for NOK @@ -725,6 +761,7 @@ def initialize( eur: nil, gbp: nil, hkd: nil, + jpy: nil, myr: nil, nok: nil, nzd: nil, @@ -741,6 +778,7 @@ def initialize( @eur = eur @gbp = gbp @hkd = hkd + @jpy = jpy @myr = myr @nok = nok @nzd = nzd diff --git a/rbi/stripe/resources/terminal/configuration.rbi b/rbi/stripe/resources/terminal/configuration.rbi index 1a56872ab..bcb14c265 100644 --- a/rbi/stripe/resources/terminal/configuration.rbi +++ b/rbi/stripe/resources/terminal/configuration.rbi @@ -118,6 +118,17 @@ module Stripe sig { returns(Integer) } attr_reader :smart_tip_threshold end + class Jpy < Stripe::StripeObject + # Fixed amounts displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + attr_reader :fixed_amounts + # Percentages displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + attr_reader :percentages + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + sig { returns(Integer) } + attr_reader :smart_tip_threshold + end class Myr < Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } @@ -219,6 +230,9 @@ module Stripe # Attribute for field hkd sig { returns(Hkd) } attr_reader :hkd + # Attribute for field jpy + sig { returns(Jpy) } + attr_reader :jpy # Attribute for field myr sig { returns(Myr) } attr_reader :myr @@ -445,6 +459,21 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end + class Jpy < Stripe::RequestParams + # Fixed amounts displayed when collecting a tip + sig { returns(T::Array[Integer]) } + attr_accessor :fixed_amounts + # Percentages displayed when collecting a tip + sig { returns(T::Array[Integer]) } + attr_accessor :percentages + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + sig { returns(Integer) } + attr_accessor :smart_tip_threshold + sig { + params(fixed_amounts: T::Array[Integer], percentages: T::Array[Integer], smart_tip_threshold: Integer).void + } + def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end + end class Myr < Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T::Array[Integer]) } @@ -574,6 +603,9 @@ module Stripe # Tipping configuration for HKD sig { returns(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Hkd) } attr_accessor :hkd + # Tipping configuration for JPY + sig { returns(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Jpy) } + attr_accessor :jpy # Tipping configuration for MYR sig { returns(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Myr) } attr_accessor :myr @@ -596,7 +628,7 @@ module Stripe sig { returns(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Usd) } attr_accessor :usd sig { - params(aud: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Aud, cad: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Cad, chf: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Chf, czk: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Czk, dkk: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Dkk, eur: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Eur, gbp: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Gbp, hkd: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Hkd, myr: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Myr, nok: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Nok, nzd: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Nzd, pln: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Pln, sek: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Sek, sgd: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Sgd, usd: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Usd).void + params(aud: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Aud, cad: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Cad, chf: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Chf, czk: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Czk, dkk: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Dkk, eur: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Eur, gbp: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Gbp, hkd: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Hkd, jpy: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Jpy, myr: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Myr, nok: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Nok, nzd: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Nzd, pln: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Pln, sek: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Sek, sgd: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Sgd, usd: ::Stripe::Terminal::Configuration::UpdateParams::Tipping::Usd).void } def initialize( aud: nil, @@ -607,6 +639,7 @@ module Stripe eur: nil, gbp: nil, hkd: nil, + jpy: nil, myr: nil, nok: nil, nzd: nil, @@ -841,6 +874,21 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end + class Jpy < Stripe::RequestParams + # Fixed amounts displayed when collecting a tip + sig { returns(T::Array[Integer]) } + attr_accessor :fixed_amounts + # Percentages displayed when collecting a tip + sig { returns(T::Array[Integer]) } + attr_accessor :percentages + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + sig { returns(Integer) } + attr_accessor :smart_tip_threshold + sig { + params(fixed_amounts: T::Array[Integer], percentages: T::Array[Integer], smart_tip_threshold: Integer).void + } + def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end + end class Myr < Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T::Array[Integer]) } @@ -970,6 +1018,9 @@ module Stripe # Tipping configuration for HKD sig { returns(::Stripe::Terminal::Configuration::CreateParams::Tipping::Hkd) } attr_accessor :hkd + # Tipping configuration for JPY + sig { returns(::Stripe::Terminal::Configuration::CreateParams::Tipping::Jpy) } + attr_accessor :jpy # Tipping configuration for MYR sig { returns(::Stripe::Terminal::Configuration::CreateParams::Tipping::Myr) } attr_accessor :myr @@ -992,7 +1043,7 @@ module Stripe sig { returns(::Stripe::Terminal::Configuration::CreateParams::Tipping::Usd) } attr_accessor :usd sig { - params(aud: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Aud, cad: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Cad, chf: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Chf, czk: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Czk, dkk: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Dkk, eur: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Eur, gbp: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Gbp, hkd: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Hkd, myr: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Myr, nok: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Nok, nzd: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Nzd, pln: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Pln, sek: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Sek, sgd: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Sgd, usd: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Usd).void + params(aud: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Aud, cad: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Cad, chf: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Chf, czk: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Czk, dkk: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Dkk, eur: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Eur, gbp: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Gbp, hkd: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Hkd, jpy: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Jpy, myr: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Myr, nok: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Nok, nzd: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Nzd, pln: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Pln, sek: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Sek, sgd: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Sgd, usd: ::Stripe::Terminal::Configuration::CreateParams::Tipping::Usd).void } def initialize( aud: nil, @@ -1003,6 +1054,7 @@ module Stripe eur: nil, gbp: nil, hkd: nil, + jpy: nil, myr: nil, nok: nil, nzd: nil, diff --git a/rbi/stripe/services/terminal/configuration_service.rbi b/rbi/stripe/services/terminal/configuration_service.rbi index c3b85dc2b..2ec70106c 100644 --- a/rbi/stripe/services/terminal/configuration_service.rbi +++ b/rbi/stripe/services/terminal/configuration_service.rbi @@ -168,6 +168,21 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end + class Jpy < Stripe::RequestParams + # Fixed amounts displayed when collecting a tip + sig { returns(T::Array[Integer]) } + attr_accessor :fixed_amounts + # Percentages displayed when collecting a tip + sig { returns(T::Array[Integer]) } + attr_accessor :percentages + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + sig { returns(Integer) } + attr_accessor :smart_tip_threshold + sig { + params(fixed_amounts: T::Array[Integer], percentages: T::Array[Integer], smart_tip_threshold: Integer).void + } + def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end + end class Myr < Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T::Array[Integer]) } @@ -297,6 +312,9 @@ module Stripe # Tipping configuration for HKD sig { returns(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Hkd) } attr_accessor :hkd + # Tipping configuration for JPY + sig { returns(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Jpy) } + attr_accessor :jpy # Tipping configuration for MYR sig { returns(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Myr) } attr_accessor :myr @@ -319,7 +337,7 @@ module Stripe sig { returns(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Usd) } attr_accessor :usd sig { - params(aud: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Aud, cad: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Cad, chf: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Chf, czk: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Czk, dkk: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Dkk, eur: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Eur, gbp: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Gbp, hkd: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Hkd, myr: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Myr, nok: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Nok, nzd: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Nzd, pln: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Pln, sek: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Sek, sgd: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Sgd, usd: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Usd).void + params(aud: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Aud, cad: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Cad, chf: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Chf, czk: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Czk, dkk: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Dkk, eur: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Eur, gbp: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Gbp, hkd: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Hkd, jpy: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Jpy, myr: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Myr, nok: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Nok, nzd: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Nzd, pln: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Pln, sek: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Sek, sgd: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Sgd, usd: ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Usd).void } def initialize( aud: nil, @@ -330,6 +348,7 @@ module Stripe eur: nil, gbp: nil, hkd: nil, + jpy: nil, myr: nil, nok: nil, nzd: nil, @@ -572,6 +591,21 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end + class Jpy < Stripe::RequestParams + # Fixed amounts displayed when collecting a tip + sig { returns(T::Array[Integer]) } + attr_accessor :fixed_amounts + # Percentages displayed when collecting a tip + sig { returns(T::Array[Integer]) } + attr_accessor :percentages + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + sig { returns(Integer) } + attr_accessor :smart_tip_threshold + sig { + params(fixed_amounts: T::Array[Integer], percentages: T::Array[Integer], smart_tip_threshold: Integer).void + } + def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end + end class Myr < Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T::Array[Integer]) } @@ -701,6 +735,9 @@ module Stripe # Tipping configuration for HKD sig { returns(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Hkd) } attr_accessor :hkd + # Tipping configuration for JPY + sig { returns(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Jpy) } + attr_accessor :jpy # Tipping configuration for MYR sig { returns(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Myr) } attr_accessor :myr @@ -723,7 +760,7 @@ module Stripe sig { returns(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Usd) } attr_accessor :usd sig { - params(aud: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Aud, cad: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Cad, chf: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Chf, czk: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Czk, dkk: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Dkk, eur: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Eur, gbp: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Gbp, hkd: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Hkd, myr: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Myr, nok: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Nok, nzd: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Nzd, pln: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Pln, sek: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Sek, sgd: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Sgd, usd: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Usd).void + params(aud: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Aud, cad: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Cad, chf: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Chf, czk: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Czk, dkk: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Dkk, eur: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Eur, gbp: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Gbp, hkd: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Hkd, jpy: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Jpy, myr: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Myr, nok: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Nok, nzd: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Nzd, pln: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Pln, sek: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Sek, sgd: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Sgd, usd: ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Usd).void } def initialize( aud: nil, @@ -734,6 +771,7 @@ module Stripe eur: nil, gbp: nil, hkd: nil, + jpy: nil, myr: nil, nok: nil, nzd: nil, From 463efa561b5991e53988a4e79e19b2babb89dd1c Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 10 Jan 2025 22:02:31 +0000 Subject: [PATCH 02/18] Update generated code for v1441 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/account_session.rb | 80 +++++++++++++- .../services/account_session_service.rb | 8 +- rbi/stripe/resources/account_session.rbi | 102 +++++++++++++++++- .../services/account_session_service.rbi | 8 +- 5 files changed, 183 insertions(+), 17 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 1de7c5643..9aa5de967 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1439 \ No newline at end of file +v1441 \ No newline at end of file diff --git a/lib/stripe/resources/account_session.rb b/lib/stripe/resources/account_session.rb index 81cbf4c63..da4e5e94d 100644 --- a/lib/stripe/resources/account_session.rb +++ b/lib/stripe/resources/account_session.rb @@ -95,6 +95,70 @@ class Features < Stripe::StripeObject; end attr_reader :features end + class FinancialAccount < Stripe::StripeObject + class Features < Stripe::StripeObject + # Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don’t set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. + attr_reader :disable_stripe_user_authentication + # Whether to allow external accounts to be linked for money transfer. + attr_reader :external_account_collection + # Whether to allow sending money. + attr_reader :send_money + # Whether to allow transferring balance. + attr_reader :transfer_balance + end + # Whether the embedded component is enabled. + attr_reader :enabled + # Attribute for field features + attr_reader :features + end + + class FinancialAccountTransactions < Stripe::StripeObject + class Features < Stripe::StripeObject + # Whether to allow card spend dispute management features. + attr_reader :card_spend_dispute_management + end + # Whether the embedded component is enabled. + attr_reader :enabled + # Attribute for field features + attr_reader :features + end + + class IssuingCard < Stripe::StripeObject + class Features < Stripe::StripeObject + # Whether to allow card management features. + attr_reader :card_management + # Whether to allow card spend dispute management features. + attr_reader :card_spend_dispute_management + # Whether to allow cardholder management features. + attr_reader :cardholder_management + # Whether to allow spend control management features. + attr_reader :spend_control_management + end + # Whether the embedded component is enabled. + attr_reader :enabled + # Attribute for field features + attr_reader :features + end + + class IssuingCardsList < Stripe::StripeObject + class Features < Stripe::StripeObject + # Whether to allow card management features. + attr_reader :card_management + # Whether to allow card spend dispute management features. + attr_reader :card_spend_dispute_management + # Whether to allow cardholder management features. + attr_reader :cardholder_management + # Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you’re responsible for collecting updated information when requirements are due or change, like custom accounts. + attr_reader :disable_stripe_user_authentication + # Whether to allow spend control management features. + attr_reader :spend_control_management + end + # Whether the embedded component is enabled. + attr_reader :enabled + # Attribute for field features + attr_reader :features + end + class NotificationBanner < Stripe::StripeObject class Features < Stripe::StripeObject # Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don’t set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. @@ -198,6 +262,14 @@ class Features < Stripe::StripeObject; end attr_reader :capital_financing_promotion # Attribute for field documents attr_reader :documents + # Attribute for field financial_account + attr_reader :financial_account + # Attribute for field financial_account_transactions + attr_reader :financial_account_transactions + # Attribute for field issuing_card + attr_reader :issuing_card + # Attribute for field issuing_cards_list + attr_reader :issuing_cards_list # Attribute for field notification_banner attr_reader :notification_banner # Attribute for field payment_details @@ -783,13 +855,13 @@ def initialize(enabled: nil, features: nil) attr_accessor :capital_overview # Configuration for the documents embedded component. attr_accessor :documents - # Configuration for the financial account component. + # Configuration for the financial account embedded component. attr_accessor :financial_account - # Configuration for the financial account transactions component. + # Configuration for the financial account transactions embedded component. attr_accessor :financial_account_transactions - # Configuration for the issuing card component. + # Configuration for the issuing card embedded component. attr_accessor :issuing_card - # Configuration for the issuing cards list component. + # Configuration for the issuing cards list embedded component. attr_accessor :issuing_cards_list # Configuration for the notification banner embedded component. attr_accessor :notification_banner diff --git a/lib/stripe/services/account_session_service.rb b/lib/stripe/services/account_session_service.rb index e9eb59b6d..e0b9413d3 100644 --- a/lib/stripe/services/account_session_service.rb +++ b/lib/stripe/services/account_session_service.rb @@ -572,13 +572,13 @@ def initialize(enabled: nil, features: nil) attr_accessor :capital_overview # Configuration for the documents embedded component. attr_accessor :documents - # Configuration for the financial account component. + # Configuration for the financial account embedded component. attr_accessor :financial_account - # Configuration for the financial account transactions component. + # Configuration for the financial account transactions embedded component. attr_accessor :financial_account_transactions - # Configuration for the issuing card component. + # Configuration for the issuing card embedded component. attr_accessor :issuing_card - # Configuration for the issuing cards list component. + # Configuration for the issuing cards list embedded component. attr_accessor :issuing_cards_list # Configuration for the notification banner embedded component. attr_accessor :notification_banner diff --git a/rbi/stripe/resources/account_session.rbi b/rbi/stripe/resources/account_session.rbi index ddfd5fd44..9f96e84d9 100644 --- a/rbi/stripe/resources/account_session.rbi +++ b/rbi/stripe/resources/account_session.rbi @@ -105,6 +105,88 @@ module Stripe sig { returns(Features) } attr_reader :features end + class FinancialAccount < Stripe::StripeObject + class Features < Stripe::StripeObject + # Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don’t set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. + sig { returns(T::Boolean) } + attr_reader :disable_stripe_user_authentication + # Whether to allow external accounts to be linked for money transfer. + sig { returns(T::Boolean) } + attr_reader :external_account_collection + # Whether to allow sending money. + sig { returns(T::Boolean) } + attr_reader :send_money + # Whether to allow transferring balance. + sig { returns(T::Boolean) } + attr_reader :transfer_balance + end + # Whether the embedded component is enabled. + sig { returns(T::Boolean) } + attr_reader :enabled + # Attribute for field features + sig { returns(Features) } + attr_reader :features + end + class FinancialAccountTransactions < Stripe::StripeObject + class Features < Stripe::StripeObject + # Whether to allow card spend dispute management features. + sig { returns(T::Boolean) } + attr_reader :card_spend_dispute_management + end + # Whether the embedded component is enabled. + sig { returns(T::Boolean) } + attr_reader :enabled + # Attribute for field features + sig { returns(Features) } + attr_reader :features + end + class IssuingCard < Stripe::StripeObject + class Features < Stripe::StripeObject + # Whether to allow card management features. + sig { returns(T::Boolean) } + attr_reader :card_management + # Whether to allow card spend dispute management features. + sig { returns(T::Boolean) } + attr_reader :card_spend_dispute_management + # Whether to allow cardholder management features. + sig { returns(T::Boolean) } + attr_reader :cardholder_management + # Whether to allow spend control management features. + sig { returns(T::Boolean) } + attr_reader :spend_control_management + end + # Whether the embedded component is enabled. + sig { returns(T::Boolean) } + attr_reader :enabled + # Attribute for field features + sig { returns(Features) } + attr_reader :features + end + class IssuingCardsList < Stripe::StripeObject + class Features < Stripe::StripeObject + # Whether to allow card management features. + sig { returns(T::Boolean) } + attr_reader :card_management + # Whether to allow card spend dispute management features. + sig { returns(T::Boolean) } + attr_reader :card_spend_dispute_management + # Whether to allow cardholder management features. + sig { returns(T::Boolean) } + attr_reader :cardholder_management + # Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you’re responsible for collecting updated information when requirements are due or change, like custom accounts. + sig { returns(T::Boolean) } + attr_reader :disable_stripe_user_authentication + # Whether to allow spend control management features. + sig { returns(T::Boolean) } + attr_reader :spend_control_management + end + # Whether the embedded component is enabled. + sig { returns(T::Boolean) } + attr_reader :enabled + # Attribute for field features + sig { returns(Features) } + attr_reader :features + end class NotificationBanner < Stripe::StripeObject class Features < Stripe::StripeObject # Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don’t set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. @@ -238,6 +320,18 @@ module Stripe # Attribute for field documents sig { returns(Documents) } attr_reader :documents + # Attribute for field financial_account + sig { returns(FinancialAccount) } + attr_reader :financial_account + # Attribute for field financial_account_transactions + sig { returns(FinancialAccountTransactions) } + attr_reader :financial_account_transactions + # Attribute for field issuing_card + sig { returns(IssuingCard) } + attr_reader :issuing_card + # Attribute for field issuing_cards_list + sig { returns(IssuingCardsList) } + attr_reader :issuing_cards_list # Attribute for field notification_banner sig { returns(NotificationBanner) } attr_reader :notification_banner @@ -910,18 +1004,18 @@ module Stripe # Configuration for the documents embedded component. sig { returns(::Stripe::AccountSession::CreateParams::Components::Documents) } attr_accessor :documents - # Configuration for the financial account component. + # Configuration for the financial account embedded component. sig { returns(::Stripe::AccountSession::CreateParams::Components::FinancialAccount) } attr_accessor :financial_account - # Configuration for the financial account transactions component. + # Configuration for the financial account transactions embedded component. sig { returns(::Stripe::AccountSession::CreateParams::Components::FinancialAccountTransactions) } attr_accessor :financial_account_transactions - # Configuration for the issuing card component. + # Configuration for the issuing card embedded component. sig { returns(::Stripe::AccountSession::CreateParams::Components::IssuingCard) } attr_accessor :issuing_card - # Configuration for the issuing cards list component. + # Configuration for the issuing cards list embedded component. sig { returns(::Stripe::AccountSession::CreateParams::Components::IssuingCardsList) } attr_accessor :issuing_cards_list # Configuration for the notification banner embedded component. diff --git a/rbi/stripe/services/account_session_service.rbi b/rbi/stripe/services/account_session_service.rbi index 73b5b16b1..f93e2f2d4 100644 --- a/rbi/stripe/services/account_session_service.rbi +++ b/rbi/stripe/services/account_session_service.rbi @@ -656,18 +656,18 @@ module Stripe # Configuration for the documents embedded component. sig { returns(::Stripe::AccountSessionService::CreateParams::Components::Documents) } attr_accessor :documents - # Configuration for the financial account component. + # Configuration for the financial account embedded component. sig { returns(::Stripe::AccountSessionService::CreateParams::Components::FinancialAccount) } attr_accessor :financial_account - # Configuration for the financial account transactions component. + # Configuration for the financial account transactions embedded component. sig { returns(::Stripe::AccountSessionService::CreateParams::Components::FinancialAccountTransactions) } attr_accessor :financial_account_transactions - # Configuration for the issuing card component. + # Configuration for the issuing card embedded component. sig { returns(::Stripe::AccountSessionService::CreateParams::Components::IssuingCard) } attr_accessor :issuing_card - # Configuration for the issuing cards list component. + # Configuration for the issuing cards list embedded component. sig { returns(::Stripe::AccountSessionService::CreateParams::Components::IssuingCardsList) } attr_accessor :issuing_cards_list # Configuration for the notification banner embedded component. From da191661734320fbb65f9e0728b8a82df950968f Mon Sep 17 00:00:00 2001 From: jar-stripe Date: Mon, 13 Jan 2025 13:36:48 -0800 Subject: [PATCH 03/18] pinned the ubuntu version in the Test action, to ensure support for jruby 9.4.0.0 (#1518) --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e813ebe4..af0234135 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,8 @@ jobs: test: name: Test (${{ matrix.ruby-version }}) - runs-on: ubuntu-latest + # this is needed because our JRuby test version isnt supported on ubuntu-24 (which is now ubuntu-latest) + runs-on: ubuntu-22.04 strategy: matrix: ruby-version: [2.3, 2.4, 2.5, 2.6, 2.7, '3.0', 3.1, 3.2, '3.3', jruby-9.4.0.0, truffleruby-head] From 36b1c7c8f00433b998008af1bfb8012eea04c223 Mon Sep 17 00:00:00 2001 From: jar-stripe Date: Mon, 13 Jan 2025 14:04:14 -0800 Subject: [PATCH 04/18] ThinEvent reason and livemode (#1516) * added test for parsing v2 thin events with livemode and reason * added attr_reader to ThinEvent for livemode and reason * added EventReason and EventReasonRequest type to thin_event.rb --- lib/stripe/thin_event.rb | 24 ++++++++++++++++++++++-- test/stripe/v2_event_test.rb | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 2 deletions(-) diff --git a/lib/stripe/thin_event.rb b/lib/stripe/thin_event.rb index 0612af469..9e2978662 100644 --- a/lib/stripe/thin_event.rb +++ b/lib/stripe/thin_event.rb @@ -1,8 +1,26 @@ # frozen_string_literal: true module Stripe + class EventReasonRequest + attr_reader :id, :idempotency_key + + def initialize(event_reason_request_payload = {}) + @id = event_reason_request_payload[:id] + @idempotency_key = event_reason_request_payload[:idempotency_key] + end + end + + class EventReason + attr_reader :type, :request + + def initialize(event_reason_payload = {}) + @type = event_reason_payload[:type] + @request = EventReasonRequest.new(event_reason_payload[:request]) + end + end + class ThinEvent - attr_reader :id, :type, :created, :context, :related_object + attr_reader :id, :type, :created, :context, :related_object, :livemode, :reason def initialize(event_payload = {}) @id = event_payload[:id] @@ -11,7 +29,9 @@ def initialize(event_payload = {}) @context = event_payload[:context] @livemode = event_payload[:livemode] @related_object = event_payload[:related_object] - @reason = event_payload[:reason] + return if event_payload[:reason].nil? + + @reason = EventReason.new(event_payload[:reason]) end end end diff --git a/test/stripe/v2_event_test.rb b/test/stripe/v2_event_test.rb index e53cdcb27..130e659f2 100644 --- a/test/stripe/v2_event_test.rb +++ b/test/stripe/v2_event_test.rb @@ -36,6 +36,26 @@ def retrieve_event(evt_id) }, }.to_json + @v2_push_payload_with_livemode_and_reason = { + "id" => "evt_234", + "object" => "v2.core.event", + "type" => "v1.billing.meter.error_report_triggered", + "created" => "2022-02-15T00:27:45.330Z", + "related_object" => { + "id" => "mtr_123", + "type" => "billing.meter", + "url" => "/v1/billing/meters/mtr_123", + }, + "livemode" => true, + "reason" => { + "type" => "a.b.c", + "request" => { + "id" => "r_123", + "idempotency_key" => "key", + }, + }, + }.to_json + @v2_pull_payload = { "id" => "evt_234", "object" => "v2.core.event", @@ -76,6 +96,20 @@ def retrieve_event(evt_id) assert_equal "evt_234", event.id assert_equal "v1.billing.meter.error_report_triggered", event.type assert_equal "2022-02-15T00:27:45.330Z", event.created + assert_nil event.reason + end + + should "parse v2 events with livemode and reason" do + event = parse_signed_event(@v2_push_payload_with_livemode_and_reason) + assert event.is_a?(Stripe::ThinEvent) + assert_equal "evt_234", event.id + assert_equal "v1.billing.meter.error_report_triggered", event.type + assert_equal "2022-02-15T00:27:45.330Z", event.created + assert_true event.livemode + assert_not_nil event.reason + assert_equal "a.b.c", event.reason.type + assert_equal "r_123", event.reason.request.id + assert_equal "key", event.reason.request.idempotency_key end should "raise a JSON::ParserError from an invalid JSON payload" do From 6e3950536a5f15d8bf7b63df3af373ab57e50edb Mon Sep 17 00:00:00 2001 From: helenye-stripe <111009531+helenye-stripe@users.noreply.github.com> Date: Mon, 13 Jan 2025 14:23:32 -0800 Subject: [PATCH 05/18] Import global configuration for options not available on StripeClient options (#1512) * Fix client options not importing global config * update tests and fix bugs * lint * catch NotImplementedError and map for older Ruby * rubocop todo --- lib/stripe.rb | 22 ++++++++++++ lib/stripe/stripe_client.rb | 7 +++- lib/stripe/stripe_configuration.rb | 22 +++++++++++- test/stripe/stripe_client_test.rb | 27 ++++++++++++++- test/stripe/stripe_configuration_test.rb | 44 ++++++++++++++++++++++++ 5 files changed, 119 insertions(+), 3 deletions(-) diff --git a/lib/stripe.rb b/lib/stripe.rb index d05f13d0a..7fb7a0cd1 100644 --- a/lib/stripe.rb +++ b/lib/stripe.rb @@ -74,6 +74,28 @@ module Stripe DEFAULT_UPLOAD_BASE = "https://files.stripe.com" DEFAULT_METER_EVENTS_BASE = "https://meter-events.stripe.com" + # Options that can be configured globally by users + USER_CONFIGURABLE_GLOBAL_OPTIONS = Set.new(%i[ + api_key + api_version + stripe_account + api_base + uploads_base + connect_base + meter_events_base + open_timeout + read_timeout + write_timeout + proxy + verify_ssl_certs + ca_bundle_path + log_level + logger + max_network_retries + enable_telemetry + client_id + ]) + @app_info = nil @config = Stripe::StripeConfiguration.setup diff --git a/lib/stripe/stripe_client.rb b/lib/stripe/stripe_client.rb index 782b862a4..d5eda6739 100644 --- a/lib/stripe/stripe_client.rb +++ b/lib/stripe/stripe_client.rb @@ -10,6 +10,10 @@ class StripeClient # attr_readers: The end of the section generated from our OpenAPI spec + # For internal use only. Does not provide a stable API and may be broken + # with future non-major changes. + CLIENT_OPTIONS = Set.new(%i[api_key stripe_account stripe_context api_version api_base uploads_base connect_base meter_events_base client_id]) + # Initializes a new StripeClient def initialize(api_key, # rubocop:todo Metrics/ParameterLists stripe_account: nil, @@ -40,7 +44,8 @@ def initialize(api_key, # rubocop:todo Metrics/ParameterLists client_id: client_id, }.reject { |_k, v| v.nil? } - @requestor = APIRequestor.new(config_opts) + config = StripeConfiguration.client_init(config_opts) + @requestor = APIRequestor.new(config) # top-level services: The beginning of the section generated from our OpenAPI spec @v1 = Stripe::V1Services.new(@requestor) diff --git a/lib/stripe/stripe_configuration.rb b/lib/stripe/stripe_configuration.rb index 175691662..52c348074 100644 --- a/lib/stripe/stripe_configuration.rb +++ b/lib/stripe/stripe_configuration.rb @@ -37,6 +37,25 @@ def self.setup end end + # Set options to the StripeClient configured options, if valid as a client option and provided + # Otherwise, for user configurable global options, set them to the global configuration + # For all other options, set them to the StripeConfiguration default value + def self.client_init(config_opts) + global_config = Stripe.config + imported_options = USER_CONFIGURABLE_GLOBAL_OPTIONS - StripeClient::CLIENT_OPTIONS + client_config = StripeConfiguration.setup do |instance| + imported_options.each do |key| + begin + instance.public_send("#{key}=", global_config.public_send(key)) if global_config.respond_to?(key) + rescue NotImplementedError => e + # In Ruby <= 2.5, we can't set write_timeout on Net::HTTP, log an error and continue + Util.log_error("Failed to set #{key} on client configuration: #{e}") + end + end + end + client_config.reverse_duplicate_merge(config_opts) + end + # Create a new config based off an existing one. This is useful when the # caller wants to override the global configuration def reverse_duplicate_merge(hash) @@ -68,7 +87,8 @@ def initialize @connect_base = DEFAULT_CONNECT_BASE @uploads_base = DEFAULT_UPLOAD_BASE @meter_events_base = DEFAULT_METER_EVENTS_BASE - @base_addresses = { api: @api_base, connect: @connect_base, files: @uploads_base, events: @meter_events_base } + @base_addresses = { api: @api_base, connect: @connect_base, files: @uploads_base, + meter_events: @meter_events_base, } end def log_level=(val) diff --git a/test/stripe/stripe_client_test.rb b/test/stripe/stripe_client_test.rb index 056182c9c..5ae5963fc 100644 --- a/test/stripe/stripe_client_test.rb +++ b/test/stripe/stripe_client_test.rb @@ -20,6 +20,7 @@ class StripeClientTest < Test::Unit::TestCase @orig_api_key = Stripe.api_key @orig_stripe_account = Stripe.stripe_account @orig_open_timeout = Stripe.open_timeout + @orig_api_version = Stripe.api_version Stripe.api_key = "DONT_USE_THIS_KEY" Stripe.stripe_account = "DONT_USE_THIS_ACCOUNT" @@ -30,6 +31,7 @@ class StripeClientTest < Test::Unit::TestCase Stripe.api_key = @orig_api_key Stripe.stripe_account = @orig_stripe_account Stripe.open_timeout = @orig_open_timeout + Stripe.api_version = @orig_api_version end should "use default config options" do @@ -45,7 +47,6 @@ class StripeClientTest < Test::Unit::TestCase client = StripeClient.new("test_123") assert_equal "test_123", client.instance_variable_get(:@requestor).config.api_key assert_nil client.instance_variable_get(:@requestor).config.stripe_account - assert_equal 30, client.instance_variable_get(:@requestor).config.open_timeout end should "use client config options" do @@ -67,6 +68,30 @@ class StripeClientTest < Test::Unit::TestCase assert_equal "2022-11-15", req.headers["Stripe-Version"] end + should "use global config options for options unavailable in client" do + Stripe.api_key = "NOT_THIS_KEY" + Stripe.stripe_account = "NOT_THIS_ACCOUNT" + Stripe.api_version = "2022-11-15" + client = StripeClient.new("test_123", stripe_account: "acct_123") + # Imported from global options + assert_equal 30_000, client.instance_variable_get(:@requestor).config.open_timeout + # Not set in client options, not imported from global + assert_equal client.instance_variable_get(:@requestor).config.api_base, Stripe::DEFAULT_API_BASE + assert_equal client.instance_variable_get(:@requestor).config.api_version, Stripe::ApiVersion::CURRENT + + req = nil + stub_request(:get, "#{Stripe::DEFAULT_API_BASE}/v1/customers/cus_123") + .with { |request| req = request } + .to_return(body: JSON.generate(object: "customer")) + + client.v1.customers.retrieve("cus_123") + + # Set in client options + assert_equal "Bearer test_123", req.headers["Authorization"] + assert_equal "acct_123", req.headers["Stripe-Account"] + assert_requested(:get, "#{Stripe::DEFAULT_API_BASE}/v1/customers/cus_123") + end + should "request options overrides client config options" do client = StripeClient.new("test_123", stripe_version: "2022-11-15", stripe_account: "acct_123") diff --git a/test/stripe/stripe_configuration_test.rb b/test/stripe/stripe_configuration_test.rb index 5f1e71bb4..22d4c3bf7 100644 --- a/test/stripe/stripe_configuration_test.rb +++ b/test/stripe/stripe_configuration_test.rb @@ -97,6 +97,50 @@ class StripeConfigurationTest < Test::Unit::TestCase end end + context "client_init" do + setup do + @client_opts = Hash[StripeClient::CLIENT_OPTIONS.map { |k| [k, nil] }] # rubocop:todo Style/HashConversion - necessary for Ruby <= 2.5 + @old_api_key = Stripe.api_key + @old_stripe_account = Stripe.stripe_account + @old_enable_telemetry = Stripe.instance_variable_get(:@enable_telemetry) + @old_open_timeout = Stripe.open_timeout + @old_uploads_base = Stripe.uploads_base + end + + teardown do + Stripe.api_key = @old_api_key + Stripe.stripe_account = @old_stripe_account + Stripe.enable_telemetry = @old_enable_telemetry + Stripe.open_timeout = @old_open_timeout + Stripe.uploads_base = @old_uploads_base + end + + should "correctly set options for the client" do + # mix of default, global, client options + Stripe.api_key = "global_test_123" + Stripe.stripe_account = "global_acct_123" + Stripe.enable_telemetry = false + Stripe.open_timeout = 30_000 + Stripe.uploads_base = "global_uploads_base.stripe.com" + + @client_opts[:api_key] = "client_test_123" + @client_opts[:stripe_account] = "client_acct_123" + @client_opts[:uploads_base] = "client_uploads_base.stripe.com" + @client_opts.reject! { |_k, v| v.nil? } + + client_config = Stripe::StripeConfiguration.client_init(@client_opts) + + assert_equal("client_test_123", client_config.api_key) # client api key + assert_equal("client_acct_123", client_config.stripe_account) # client stripe account + assert_equal(false, client_config.enable_telemetry) # global telemetry + assert_equal(30_000, client_config.open_timeout) # global timeout + assert_equal("client_uploads_base.stripe.com", client_config.base_addresses[:files]) # client uploads base + assert_equal(Stripe::DEFAULT_API_BASE, client_config.base_addresses[:api]) # default api base + assert_equal(ApiVersion::CURRENT, client_config.api_version) # default api version + assert_equal(Stripe::DEFAULT_CA_BUNDLE_PATH, client_config.ca_bundle_path) # default ca bundle path + end + end + context "#max_network_retries=" do should "coerce the option into an integer" do config = Stripe::StripeConfiguration.setup From 57dd25a8d74da35135ffad7cdef8eb9f6a04ecec Mon Sep 17 00:00:00 2001 From: Helen Ye Date: Mon, 13 Jan 2025 17:28:34 -0500 Subject: [PATCH 06/18] Bump version to 13.3.1 --- CHANGELOG.md | 8 ++++++++ VERSION | 2 +- lib/stripe/version.rb | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44eac2f56..3b9220d11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,12 @@ # Changelog +## 13.3.1 - 2025-01-13 +* [#1512](https://github.com/stripe/stripe-ruby/pull/1512) Import global configuration for options not available on StripeClient options + * Fixes bug where `StripeClient` was not falling back to global options for options that are not available to be set per-client +* [#1516](https://github.com/stripe/stripe-ruby/pull/1516) ThinEvent reason and livemode + - Add `livemode` and optional `reason` fields to ThinEvent +* [#1518](https://github.com/stripe/stripe-ruby/pull/1518) Pin ubuntu version in Test action +* [#1508](https://github.com/stripe/stripe-ruby/pull/1508) Added pull request template + ## 13.3.0 - 2024-12-18 * [#1500](https://github.com/stripe/stripe-ruby/pull/1500) This release changes the pinned API version to `2024-12-18.acacia`. diff --git a/VERSION b/VERSION index ac565bc1c..c3d10c59d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -13.3.0 +13.3.1 diff --git a/lib/stripe/version.rb b/lib/stripe/version.rb index 61a3cc63e..fb3712104 100644 --- a/lib/stripe/version.rb +++ b/lib/stripe/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Stripe - VERSION = "13.3.0" + VERSION = "13.3.1" end From 9d54b5cfdf8f8ce3b760a24e89209f5de7a2fdfb Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 14 Jan 2025 10:55:30 +0000 Subject: [PATCH 07/18] Update generated code for v1443 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/account.rb | 28 ++++++++++++++++++++++++ lib/stripe/services/account_service.rb | 26 ++++++++++++++++++++++ rbi/stripe/resources/account.rbi | 29 +++++++++++++++++++++++-- rbi/stripe/services/account_service.rbi | 26 ++++++++++++++++++++-- 5 files changed, 106 insertions(+), 5 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index d618ca7df..023992bf5 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1442 \ No newline at end of file +v1443 \ No newline at end of file diff --git a/lib/stripe/resources/account.rb b/lib/stripe/resources/account.rb index 069db3b93..b9e60d474 100644 --- a/lib/stripe/resources/account.rb +++ b/lib/stripe/resources/account.rb @@ -172,6 +172,8 @@ class Capabilities < Stripe::StripeObject attr_reader :oxxo_payments # The status of the P24 payments capability of the account, or whether the account can directly process P24 charges. attr_reader :p24_payments + # The status of the pay_by_bank payments capability of the account, or whether the account can directly process pay_by_bank charges. + attr_reader :pay_by_bank_payments # The status of the Payco capability of the account, or whether the account can directly process Payco payments. attr_reader :payco_payments # The status of the paynow payments capability of the account, or whether the account can directly process paynow charges. @@ -1178,6 +1180,15 @@ def initialize(requested: nil) end end + class PayByBankPayments < Stripe::RequestParams + # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + attr_accessor :requested + + def initialize(requested: nil) + @requested = requested + end + end + class PaycoPayments < Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -1484,6 +1495,8 @@ def initialize(requested: nil) attr_accessor :oxxo_payments # The p24_payments capability. attr_accessor :p24_payments + # The pay_by_bank_payments capability. + attr_accessor :pay_by_bank_payments # The payco_payments capability. attr_accessor :payco_payments # The paynow_payments capability. @@ -1577,6 +1590,7 @@ def initialize( naver_pay_payments: nil, oxxo_payments: nil, p24_payments: nil, + pay_by_bank_payments: nil, payco_payments: nil, paynow_payments: nil, paypal_payments: nil, @@ -1644,6 +1658,7 @@ def initialize( @naver_pay_payments = naver_pay_payments @oxxo_payments = oxxo_payments @p24_payments = p24_payments + @pay_by_bank_payments = pay_by_bank_payments @payco_payments = payco_payments @paynow_payments = paynow_payments @paypal_payments = paypal_payments @@ -3316,6 +3331,15 @@ def initialize(requested: nil) end end + class PayByBankPayments < Stripe::RequestParams + # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + attr_accessor :requested + + def initialize(requested: nil) + @requested = requested + end + end + class PaycoPayments < Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -3622,6 +3646,8 @@ def initialize(requested: nil) attr_accessor :oxxo_payments # The p24_payments capability. attr_accessor :p24_payments + # The pay_by_bank_payments capability. + attr_accessor :pay_by_bank_payments # The payco_payments capability. attr_accessor :payco_payments # The paynow_payments capability. @@ -3715,6 +3741,7 @@ def initialize( naver_pay_payments: nil, oxxo_payments: nil, p24_payments: nil, + pay_by_bank_payments: nil, payco_payments: nil, paynow_payments: nil, paypal_payments: nil, @@ -3782,6 +3809,7 @@ def initialize( @naver_pay_payments = naver_pay_payments @oxxo_payments = oxxo_payments @p24_payments = p24_payments + @pay_by_bank_payments = pay_by_bank_payments @payco_payments = payco_payments @paynow_payments = paynow_payments @paypal_payments = paypal_payments diff --git a/lib/stripe/services/account_service.rb b/lib/stripe/services/account_service.rb index e3efc7955..534276e19 100644 --- a/lib/stripe/services/account_service.rb +++ b/lib/stripe/services/account_service.rb @@ -539,6 +539,15 @@ def initialize(requested: nil) end end + class PayByBankPayments < Stripe::RequestParams + # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + attr_accessor :requested + + def initialize(requested: nil) + @requested = requested + end + end + class PaycoPayments < Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -845,6 +854,8 @@ def initialize(requested: nil) attr_accessor :oxxo_payments # The p24_payments capability. attr_accessor :p24_payments + # The pay_by_bank_payments capability. + attr_accessor :pay_by_bank_payments # The payco_payments capability. attr_accessor :payco_payments # The paynow_payments capability. @@ -938,6 +949,7 @@ def initialize( naver_pay_payments: nil, oxxo_payments: nil, p24_payments: nil, + pay_by_bank_payments: nil, payco_payments: nil, paynow_payments: nil, paypal_payments: nil, @@ -1005,6 +1017,7 @@ def initialize( @naver_pay_payments = naver_pay_payments @oxxo_payments = oxxo_payments @p24_payments = p24_payments + @pay_by_bank_payments = pay_by_bank_payments @payco_payments = payco_payments @paynow_payments = paynow_payments @paypal_payments = paypal_payments @@ -2686,6 +2699,15 @@ def initialize(requested: nil) end end + class PayByBankPayments < Stripe::RequestParams + # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + attr_accessor :requested + + def initialize(requested: nil) + @requested = requested + end + end + class PaycoPayments < Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -2992,6 +3014,8 @@ def initialize(requested: nil) attr_accessor :oxxo_payments # The p24_payments capability. attr_accessor :p24_payments + # The pay_by_bank_payments capability. + attr_accessor :pay_by_bank_payments # The payco_payments capability. attr_accessor :payco_payments # The paynow_payments capability. @@ -3085,6 +3109,7 @@ def initialize( naver_pay_payments: nil, oxxo_payments: nil, p24_payments: nil, + pay_by_bank_payments: nil, payco_payments: nil, paynow_payments: nil, paypal_payments: nil, @@ -3152,6 +3177,7 @@ def initialize( @naver_pay_payments = naver_pay_payments @oxxo_payments = oxxo_payments @p24_payments = p24_payments + @pay_by_bank_payments = pay_by_bank_payments @payco_payments = payco_payments @paynow_payments = paynow_payments @paypal_payments = paypal_payments diff --git a/rbi/stripe/resources/account.rbi b/rbi/stripe/resources/account.rbi index cb93a6c17..1cd1e3737 100644 --- a/rbi/stripe/resources/account.rbi +++ b/rbi/stripe/resources/account.rbi @@ -214,6 +214,9 @@ module Stripe # The status of the P24 payments capability of the account, or whether the account can directly process P24 charges. sig { returns(String) } attr_reader :p24_payments + # The status of the pay_by_bank payments capability of the account, or whether the account can directly process pay_by_bank charges. + sig { returns(String) } + attr_reader :pay_by_bank_payments # The status of the Payco capability of the account, or whether the account can directly process Payco payments. sig { returns(String) } attr_reader :payco_payments @@ -1359,6 +1362,13 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end + class PayByBankPayments < Stripe::RequestParams + # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + sig { returns(T::Boolean) } + attr_accessor :requested + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); end + end class PaycoPayments < Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T::Boolean) } @@ -1657,6 +1667,9 @@ module Stripe # The p24_payments capability. sig { returns(::Stripe::Account::UpdateParams::Capabilities::P24Payments) } attr_accessor :p24_payments + # The pay_by_bank_payments capability. + sig { returns(::Stripe::Account::UpdateParams::Capabilities::PayByBankPayments) } + attr_accessor :pay_by_bank_payments # The payco_payments capability. sig { returns(::Stripe::Account::UpdateParams::Capabilities::PaycoPayments) } attr_accessor :payco_payments @@ -1733,7 +1746,7 @@ module Stripe sig { returns(::Stripe::Account::UpdateParams::Capabilities::ZipPayments) } attr_accessor :zip_payments sig { - params(acss_debit_payments: ::Stripe::Account::UpdateParams::Capabilities::AcssDebitPayments, affirm_payments: ::Stripe::Account::UpdateParams::Capabilities::AffirmPayments, afterpay_clearpay_payments: ::Stripe::Account::UpdateParams::Capabilities::AfterpayClearpayPayments, alma_payments: ::Stripe::Account::UpdateParams::Capabilities::AlmaPayments, amazon_pay_payments: ::Stripe::Account::UpdateParams::Capabilities::AmazonPayPayments, au_becs_debit_payments: ::Stripe::Account::UpdateParams::Capabilities::AuBecsDebitPayments, automatic_indirect_tax: ::Stripe::Account::UpdateParams::Capabilities::AutomaticIndirectTax, bacs_debit_payments: ::Stripe::Account::UpdateParams::Capabilities::BacsDebitPayments, bancontact_payments: ::Stripe::Account::UpdateParams::Capabilities::BancontactPayments, bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::BankTransferPayments, blik_payments: ::Stripe::Account::UpdateParams::Capabilities::BlikPayments, boleto_payments: ::Stripe::Account::UpdateParams::Capabilities::BoletoPayments, card_issuing: ::Stripe::Account::UpdateParams::Capabilities::CardIssuing, card_payments: ::Stripe::Account::UpdateParams::Capabilities::CardPayments, cartes_bancaires_payments: ::Stripe::Account::UpdateParams::Capabilities::CartesBancairesPayments, cashapp_payments: ::Stripe::Account::UpdateParams::Capabilities::CashappPayments, eps_payments: ::Stripe::Account::UpdateParams::Capabilities::EpsPayments, fpx_payments: ::Stripe::Account::UpdateParams::Capabilities::FpxPayments, gb_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::GbBankTransferPayments, giropay_payments: ::Stripe::Account::UpdateParams::Capabilities::GiropayPayments, gopay_payments: ::Stripe::Account::UpdateParams::Capabilities::GopayPayments, grabpay_payments: ::Stripe::Account::UpdateParams::Capabilities::GrabpayPayments, id_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::IdBankTransferPayments, id_bank_transfer_payments_bca: ::Stripe::Account::UpdateParams::Capabilities::IdBankTransferPaymentsBca, ideal_payments: ::Stripe::Account::UpdateParams::Capabilities::IdealPayments, india_international_payments: ::Stripe::Account::UpdateParams::Capabilities::IndiaInternationalPayments, jcb_payments: ::Stripe::Account::UpdateParams::Capabilities::JcbPayments, jp_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::JpBankTransferPayments, kakao_pay_payments: ::Stripe::Account::UpdateParams::Capabilities::KakaoPayPayments, klarna_payments: ::Stripe::Account::UpdateParams::Capabilities::KlarnaPayments, konbini_payments: ::Stripe::Account::UpdateParams::Capabilities::KonbiniPayments, kr_card_payments: ::Stripe::Account::UpdateParams::Capabilities::KrCardPayments, legacy_payments: ::Stripe::Account::UpdateParams::Capabilities::LegacyPayments, link_payments: ::Stripe::Account::UpdateParams::Capabilities::LinkPayments, mb_way_payments: ::Stripe::Account::UpdateParams::Capabilities::MbWayPayments, mobilepay_payments: ::Stripe::Account::UpdateParams::Capabilities::MobilepayPayments, multibanco_payments: ::Stripe::Account::UpdateParams::Capabilities::MultibancoPayments, mx_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::MxBankTransferPayments, naver_pay_payments: ::Stripe::Account::UpdateParams::Capabilities::NaverPayPayments, oxxo_payments: ::Stripe::Account::UpdateParams::Capabilities::OxxoPayments, p24_payments: ::Stripe::Account::UpdateParams::Capabilities::P24Payments, payco_payments: ::Stripe::Account::UpdateParams::Capabilities::PaycoPayments, paynow_payments: ::Stripe::Account::UpdateParams::Capabilities::PaynowPayments, paypal_payments: ::Stripe::Account::UpdateParams::Capabilities::PaypalPayments, payto_payments: ::Stripe::Account::UpdateParams::Capabilities::PaytoPayments, promptpay_payments: ::Stripe::Account::UpdateParams::Capabilities::PromptpayPayments, qris_payments: ::Stripe::Account::UpdateParams::Capabilities::QrisPayments, rechnung_payments: ::Stripe::Account::UpdateParams::Capabilities::RechnungPayments, revolut_pay_payments: ::Stripe::Account::UpdateParams::Capabilities::RevolutPayPayments, samsung_pay_payments: ::Stripe::Account::UpdateParams::Capabilities::SamsungPayPayments, sepa_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::SepaBankTransferPayments, sepa_debit_payments: ::Stripe::Account::UpdateParams::Capabilities::SepaDebitPayments, shopeepay_payments: ::Stripe::Account::UpdateParams::Capabilities::ShopeepayPayments, sofort_payments: ::Stripe::Account::UpdateParams::Capabilities::SofortPayments, swish_payments: ::Stripe::Account::UpdateParams::Capabilities::SwishPayments, tax_reporting_us_1099_k: ::Stripe::Account::UpdateParams::Capabilities::TaxReportingUs1099K, tax_reporting_us_1099_misc: ::Stripe::Account::UpdateParams::Capabilities::TaxReportingUs1099Misc, transfers: ::Stripe::Account::UpdateParams::Capabilities::Transfers, treasury: ::Stripe::Account::UpdateParams::Capabilities::Treasury, treasury_evolve: ::Stripe::Account::UpdateParams::Capabilities::TreasuryEvolve, treasury_fifth_third: ::Stripe::Account::UpdateParams::Capabilities::TreasuryFifthThird, treasury_goldman_sachs: ::Stripe::Account::UpdateParams::Capabilities::TreasuryGoldmanSachs, twint_payments: ::Stripe::Account::UpdateParams::Capabilities::TwintPayments, us_bank_account_ach_payments: ::Stripe::Account::UpdateParams::Capabilities::UsBankAccountAchPayments, us_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::UsBankTransferPayments, zip_payments: ::Stripe::Account::UpdateParams::Capabilities::ZipPayments).void + params(acss_debit_payments: ::Stripe::Account::UpdateParams::Capabilities::AcssDebitPayments, affirm_payments: ::Stripe::Account::UpdateParams::Capabilities::AffirmPayments, afterpay_clearpay_payments: ::Stripe::Account::UpdateParams::Capabilities::AfterpayClearpayPayments, alma_payments: ::Stripe::Account::UpdateParams::Capabilities::AlmaPayments, amazon_pay_payments: ::Stripe::Account::UpdateParams::Capabilities::AmazonPayPayments, au_becs_debit_payments: ::Stripe::Account::UpdateParams::Capabilities::AuBecsDebitPayments, automatic_indirect_tax: ::Stripe::Account::UpdateParams::Capabilities::AutomaticIndirectTax, bacs_debit_payments: ::Stripe::Account::UpdateParams::Capabilities::BacsDebitPayments, bancontact_payments: ::Stripe::Account::UpdateParams::Capabilities::BancontactPayments, bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::BankTransferPayments, blik_payments: ::Stripe::Account::UpdateParams::Capabilities::BlikPayments, boleto_payments: ::Stripe::Account::UpdateParams::Capabilities::BoletoPayments, card_issuing: ::Stripe::Account::UpdateParams::Capabilities::CardIssuing, card_payments: ::Stripe::Account::UpdateParams::Capabilities::CardPayments, cartes_bancaires_payments: ::Stripe::Account::UpdateParams::Capabilities::CartesBancairesPayments, cashapp_payments: ::Stripe::Account::UpdateParams::Capabilities::CashappPayments, eps_payments: ::Stripe::Account::UpdateParams::Capabilities::EpsPayments, fpx_payments: ::Stripe::Account::UpdateParams::Capabilities::FpxPayments, gb_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::GbBankTransferPayments, giropay_payments: ::Stripe::Account::UpdateParams::Capabilities::GiropayPayments, gopay_payments: ::Stripe::Account::UpdateParams::Capabilities::GopayPayments, grabpay_payments: ::Stripe::Account::UpdateParams::Capabilities::GrabpayPayments, id_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::IdBankTransferPayments, id_bank_transfer_payments_bca: ::Stripe::Account::UpdateParams::Capabilities::IdBankTransferPaymentsBca, ideal_payments: ::Stripe::Account::UpdateParams::Capabilities::IdealPayments, india_international_payments: ::Stripe::Account::UpdateParams::Capabilities::IndiaInternationalPayments, jcb_payments: ::Stripe::Account::UpdateParams::Capabilities::JcbPayments, jp_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::JpBankTransferPayments, kakao_pay_payments: ::Stripe::Account::UpdateParams::Capabilities::KakaoPayPayments, klarna_payments: ::Stripe::Account::UpdateParams::Capabilities::KlarnaPayments, konbini_payments: ::Stripe::Account::UpdateParams::Capabilities::KonbiniPayments, kr_card_payments: ::Stripe::Account::UpdateParams::Capabilities::KrCardPayments, legacy_payments: ::Stripe::Account::UpdateParams::Capabilities::LegacyPayments, link_payments: ::Stripe::Account::UpdateParams::Capabilities::LinkPayments, mb_way_payments: ::Stripe::Account::UpdateParams::Capabilities::MbWayPayments, mobilepay_payments: ::Stripe::Account::UpdateParams::Capabilities::MobilepayPayments, multibanco_payments: ::Stripe::Account::UpdateParams::Capabilities::MultibancoPayments, mx_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::MxBankTransferPayments, naver_pay_payments: ::Stripe::Account::UpdateParams::Capabilities::NaverPayPayments, oxxo_payments: ::Stripe::Account::UpdateParams::Capabilities::OxxoPayments, p24_payments: ::Stripe::Account::UpdateParams::Capabilities::P24Payments, pay_by_bank_payments: ::Stripe::Account::UpdateParams::Capabilities::PayByBankPayments, payco_payments: ::Stripe::Account::UpdateParams::Capabilities::PaycoPayments, paynow_payments: ::Stripe::Account::UpdateParams::Capabilities::PaynowPayments, paypal_payments: ::Stripe::Account::UpdateParams::Capabilities::PaypalPayments, payto_payments: ::Stripe::Account::UpdateParams::Capabilities::PaytoPayments, promptpay_payments: ::Stripe::Account::UpdateParams::Capabilities::PromptpayPayments, qris_payments: ::Stripe::Account::UpdateParams::Capabilities::QrisPayments, rechnung_payments: ::Stripe::Account::UpdateParams::Capabilities::RechnungPayments, revolut_pay_payments: ::Stripe::Account::UpdateParams::Capabilities::RevolutPayPayments, samsung_pay_payments: ::Stripe::Account::UpdateParams::Capabilities::SamsungPayPayments, sepa_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::SepaBankTransferPayments, sepa_debit_payments: ::Stripe::Account::UpdateParams::Capabilities::SepaDebitPayments, shopeepay_payments: ::Stripe::Account::UpdateParams::Capabilities::ShopeepayPayments, sofort_payments: ::Stripe::Account::UpdateParams::Capabilities::SofortPayments, swish_payments: ::Stripe::Account::UpdateParams::Capabilities::SwishPayments, tax_reporting_us_1099_k: ::Stripe::Account::UpdateParams::Capabilities::TaxReportingUs1099K, tax_reporting_us_1099_misc: ::Stripe::Account::UpdateParams::Capabilities::TaxReportingUs1099Misc, transfers: ::Stripe::Account::UpdateParams::Capabilities::Transfers, treasury: ::Stripe::Account::UpdateParams::Capabilities::Treasury, treasury_evolve: ::Stripe::Account::UpdateParams::Capabilities::TreasuryEvolve, treasury_fifth_third: ::Stripe::Account::UpdateParams::Capabilities::TreasuryFifthThird, treasury_goldman_sachs: ::Stripe::Account::UpdateParams::Capabilities::TreasuryGoldmanSachs, twint_payments: ::Stripe::Account::UpdateParams::Capabilities::TwintPayments, us_bank_account_ach_payments: ::Stripe::Account::UpdateParams::Capabilities::UsBankAccountAchPayments, us_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::UsBankTransferPayments, zip_payments: ::Stripe::Account::UpdateParams::Capabilities::ZipPayments).void } def initialize( acss_debit_payments: nil, @@ -1777,6 +1790,7 @@ module Stripe naver_pay_payments: nil, oxxo_payments: nil, p24_payments: nil, + pay_by_bank_payments: nil, payco_payments: nil, paynow_payments: nil, paypal_payments: nil, @@ -3349,6 +3363,13 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end + class PayByBankPayments < Stripe::RequestParams + # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + sig { returns(T::Boolean) } + attr_accessor :requested + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); end + end class PaycoPayments < Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T::Boolean) } @@ -3647,6 +3668,9 @@ module Stripe # The p24_payments capability. sig { returns(::Stripe::Account::CreateParams::Capabilities::P24Payments) } attr_accessor :p24_payments + # The pay_by_bank_payments capability. + sig { returns(::Stripe::Account::CreateParams::Capabilities::PayByBankPayments) } + attr_accessor :pay_by_bank_payments # The payco_payments capability. sig { returns(::Stripe::Account::CreateParams::Capabilities::PaycoPayments) } attr_accessor :payco_payments @@ -3723,7 +3747,7 @@ module Stripe sig { returns(::Stripe::Account::CreateParams::Capabilities::ZipPayments) } attr_accessor :zip_payments sig { - params(acss_debit_payments: ::Stripe::Account::CreateParams::Capabilities::AcssDebitPayments, affirm_payments: ::Stripe::Account::CreateParams::Capabilities::AffirmPayments, afterpay_clearpay_payments: ::Stripe::Account::CreateParams::Capabilities::AfterpayClearpayPayments, alma_payments: ::Stripe::Account::CreateParams::Capabilities::AlmaPayments, amazon_pay_payments: ::Stripe::Account::CreateParams::Capabilities::AmazonPayPayments, au_becs_debit_payments: ::Stripe::Account::CreateParams::Capabilities::AuBecsDebitPayments, automatic_indirect_tax: ::Stripe::Account::CreateParams::Capabilities::AutomaticIndirectTax, bacs_debit_payments: ::Stripe::Account::CreateParams::Capabilities::BacsDebitPayments, bancontact_payments: ::Stripe::Account::CreateParams::Capabilities::BancontactPayments, bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::BankTransferPayments, blik_payments: ::Stripe::Account::CreateParams::Capabilities::BlikPayments, boleto_payments: ::Stripe::Account::CreateParams::Capabilities::BoletoPayments, card_issuing: ::Stripe::Account::CreateParams::Capabilities::CardIssuing, card_payments: ::Stripe::Account::CreateParams::Capabilities::CardPayments, cartes_bancaires_payments: ::Stripe::Account::CreateParams::Capabilities::CartesBancairesPayments, cashapp_payments: ::Stripe::Account::CreateParams::Capabilities::CashappPayments, eps_payments: ::Stripe::Account::CreateParams::Capabilities::EpsPayments, fpx_payments: ::Stripe::Account::CreateParams::Capabilities::FpxPayments, gb_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::GbBankTransferPayments, giropay_payments: ::Stripe::Account::CreateParams::Capabilities::GiropayPayments, gopay_payments: ::Stripe::Account::CreateParams::Capabilities::GopayPayments, grabpay_payments: ::Stripe::Account::CreateParams::Capabilities::GrabpayPayments, id_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::IdBankTransferPayments, id_bank_transfer_payments_bca: ::Stripe::Account::CreateParams::Capabilities::IdBankTransferPaymentsBca, ideal_payments: ::Stripe::Account::CreateParams::Capabilities::IdealPayments, india_international_payments: ::Stripe::Account::CreateParams::Capabilities::IndiaInternationalPayments, jcb_payments: ::Stripe::Account::CreateParams::Capabilities::JcbPayments, jp_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::JpBankTransferPayments, kakao_pay_payments: ::Stripe::Account::CreateParams::Capabilities::KakaoPayPayments, klarna_payments: ::Stripe::Account::CreateParams::Capabilities::KlarnaPayments, konbini_payments: ::Stripe::Account::CreateParams::Capabilities::KonbiniPayments, kr_card_payments: ::Stripe::Account::CreateParams::Capabilities::KrCardPayments, legacy_payments: ::Stripe::Account::CreateParams::Capabilities::LegacyPayments, link_payments: ::Stripe::Account::CreateParams::Capabilities::LinkPayments, mb_way_payments: ::Stripe::Account::CreateParams::Capabilities::MbWayPayments, mobilepay_payments: ::Stripe::Account::CreateParams::Capabilities::MobilepayPayments, multibanco_payments: ::Stripe::Account::CreateParams::Capabilities::MultibancoPayments, mx_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::MxBankTransferPayments, naver_pay_payments: ::Stripe::Account::CreateParams::Capabilities::NaverPayPayments, oxxo_payments: ::Stripe::Account::CreateParams::Capabilities::OxxoPayments, p24_payments: ::Stripe::Account::CreateParams::Capabilities::P24Payments, payco_payments: ::Stripe::Account::CreateParams::Capabilities::PaycoPayments, paynow_payments: ::Stripe::Account::CreateParams::Capabilities::PaynowPayments, paypal_payments: ::Stripe::Account::CreateParams::Capabilities::PaypalPayments, payto_payments: ::Stripe::Account::CreateParams::Capabilities::PaytoPayments, promptpay_payments: ::Stripe::Account::CreateParams::Capabilities::PromptpayPayments, qris_payments: ::Stripe::Account::CreateParams::Capabilities::QrisPayments, rechnung_payments: ::Stripe::Account::CreateParams::Capabilities::RechnungPayments, revolut_pay_payments: ::Stripe::Account::CreateParams::Capabilities::RevolutPayPayments, samsung_pay_payments: ::Stripe::Account::CreateParams::Capabilities::SamsungPayPayments, sepa_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::SepaBankTransferPayments, sepa_debit_payments: ::Stripe::Account::CreateParams::Capabilities::SepaDebitPayments, shopeepay_payments: ::Stripe::Account::CreateParams::Capabilities::ShopeepayPayments, sofort_payments: ::Stripe::Account::CreateParams::Capabilities::SofortPayments, swish_payments: ::Stripe::Account::CreateParams::Capabilities::SwishPayments, tax_reporting_us_1099_k: ::Stripe::Account::CreateParams::Capabilities::TaxReportingUs1099K, tax_reporting_us_1099_misc: ::Stripe::Account::CreateParams::Capabilities::TaxReportingUs1099Misc, transfers: ::Stripe::Account::CreateParams::Capabilities::Transfers, treasury: ::Stripe::Account::CreateParams::Capabilities::Treasury, treasury_evolve: ::Stripe::Account::CreateParams::Capabilities::TreasuryEvolve, treasury_fifth_third: ::Stripe::Account::CreateParams::Capabilities::TreasuryFifthThird, treasury_goldman_sachs: ::Stripe::Account::CreateParams::Capabilities::TreasuryGoldmanSachs, twint_payments: ::Stripe::Account::CreateParams::Capabilities::TwintPayments, us_bank_account_ach_payments: ::Stripe::Account::CreateParams::Capabilities::UsBankAccountAchPayments, us_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::UsBankTransferPayments, zip_payments: ::Stripe::Account::CreateParams::Capabilities::ZipPayments).void + params(acss_debit_payments: ::Stripe::Account::CreateParams::Capabilities::AcssDebitPayments, affirm_payments: ::Stripe::Account::CreateParams::Capabilities::AffirmPayments, afterpay_clearpay_payments: ::Stripe::Account::CreateParams::Capabilities::AfterpayClearpayPayments, alma_payments: ::Stripe::Account::CreateParams::Capabilities::AlmaPayments, amazon_pay_payments: ::Stripe::Account::CreateParams::Capabilities::AmazonPayPayments, au_becs_debit_payments: ::Stripe::Account::CreateParams::Capabilities::AuBecsDebitPayments, automatic_indirect_tax: ::Stripe::Account::CreateParams::Capabilities::AutomaticIndirectTax, bacs_debit_payments: ::Stripe::Account::CreateParams::Capabilities::BacsDebitPayments, bancontact_payments: ::Stripe::Account::CreateParams::Capabilities::BancontactPayments, bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::BankTransferPayments, blik_payments: ::Stripe::Account::CreateParams::Capabilities::BlikPayments, boleto_payments: ::Stripe::Account::CreateParams::Capabilities::BoletoPayments, card_issuing: ::Stripe::Account::CreateParams::Capabilities::CardIssuing, card_payments: ::Stripe::Account::CreateParams::Capabilities::CardPayments, cartes_bancaires_payments: ::Stripe::Account::CreateParams::Capabilities::CartesBancairesPayments, cashapp_payments: ::Stripe::Account::CreateParams::Capabilities::CashappPayments, eps_payments: ::Stripe::Account::CreateParams::Capabilities::EpsPayments, fpx_payments: ::Stripe::Account::CreateParams::Capabilities::FpxPayments, gb_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::GbBankTransferPayments, giropay_payments: ::Stripe::Account::CreateParams::Capabilities::GiropayPayments, gopay_payments: ::Stripe::Account::CreateParams::Capabilities::GopayPayments, grabpay_payments: ::Stripe::Account::CreateParams::Capabilities::GrabpayPayments, id_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::IdBankTransferPayments, id_bank_transfer_payments_bca: ::Stripe::Account::CreateParams::Capabilities::IdBankTransferPaymentsBca, ideal_payments: ::Stripe::Account::CreateParams::Capabilities::IdealPayments, india_international_payments: ::Stripe::Account::CreateParams::Capabilities::IndiaInternationalPayments, jcb_payments: ::Stripe::Account::CreateParams::Capabilities::JcbPayments, jp_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::JpBankTransferPayments, kakao_pay_payments: ::Stripe::Account::CreateParams::Capabilities::KakaoPayPayments, klarna_payments: ::Stripe::Account::CreateParams::Capabilities::KlarnaPayments, konbini_payments: ::Stripe::Account::CreateParams::Capabilities::KonbiniPayments, kr_card_payments: ::Stripe::Account::CreateParams::Capabilities::KrCardPayments, legacy_payments: ::Stripe::Account::CreateParams::Capabilities::LegacyPayments, link_payments: ::Stripe::Account::CreateParams::Capabilities::LinkPayments, mb_way_payments: ::Stripe::Account::CreateParams::Capabilities::MbWayPayments, mobilepay_payments: ::Stripe::Account::CreateParams::Capabilities::MobilepayPayments, multibanco_payments: ::Stripe::Account::CreateParams::Capabilities::MultibancoPayments, mx_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::MxBankTransferPayments, naver_pay_payments: ::Stripe::Account::CreateParams::Capabilities::NaverPayPayments, oxxo_payments: ::Stripe::Account::CreateParams::Capabilities::OxxoPayments, p24_payments: ::Stripe::Account::CreateParams::Capabilities::P24Payments, pay_by_bank_payments: ::Stripe::Account::CreateParams::Capabilities::PayByBankPayments, payco_payments: ::Stripe::Account::CreateParams::Capabilities::PaycoPayments, paynow_payments: ::Stripe::Account::CreateParams::Capabilities::PaynowPayments, paypal_payments: ::Stripe::Account::CreateParams::Capabilities::PaypalPayments, payto_payments: ::Stripe::Account::CreateParams::Capabilities::PaytoPayments, promptpay_payments: ::Stripe::Account::CreateParams::Capabilities::PromptpayPayments, qris_payments: ::Stripe::Account::CreateParams::Capabilities::QrisPayments, rechnung_payments: ::Stripe::Account::CreateParams::Capabilities::RechnungPayments, revolut_pay_payments: ::Stripe::Account::CreateParams::Capabilities::RevolutPayPayments, samsung_pay_payments: ::Stripe::Account::CreateParams::Capabilities::SamsungPayPayments, sepa_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::SepaBankTransferPayments, sepa_debit_payments: ::Stripe::Account::CreateParams::Capabilities::SepaDebitPayments, shopeepay_payments: ::Stripe::Account::CreateParams::Capabilities::ShopeepayPayments, sofort_payments: ::Stripe::Account::CreateParams::Capabilities::SofortPayments, swish_payments: ::Stripe::Account::CreateParams::Capabilities::SwishPayments, tax_reporting_us_1099_k: ::Stripe::Account::CreateParams::Capabilities::TaxReportingUs1099K, tax_reporting_us_1099_misc: ::Stripe::Account::CreateParams::Capabilities::TaxReportingUs1099Misc, transfers: ::Stripe::Account::CreateParams::Capabilities::Transfers, treasury: ::Stripe::Account::CreateParams::Capabilities::Treasury, treasury_evolve: ::Stripe::Account::CreateParams::Capabilities::TreasuryEvolve, treasury_fifth_third: ::Stripe::Account::CreateParams::Capabilities::TreasuryFifthThird, treasury_goldman_sachs: ::Stripe::Account::CreateParams::Capabilities::TreasuryGoldmanSachs, twint_payments: ::Stripe::Account::CreateParams::Capabilities::TwintPayments, us_bank_account_ach_payments: ::Stripe::Account::CreateParams::Capabilities::UsBankAccountAchPayments, us_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::UsBankTransferPayments, zip_payments: ::Stripe::Account::CreateParams::Capabilities::ZipPayments).void } def initialize( acss_debit_payments: nil, @@ -3767,6 +3791,7 @@ module Stripe naver_pay_payments: nil, oxxo_payments: nil, p24_payments: nil, + pay_by_bank_payments: nil, payco_payments: nil, paynow_payments: nil, paypal_payments: nil, diff --git a/rbi/stripe/services/account_service.rbi b/rbi/stripe/services/account_service.rbi index 5c2f3ef6f..f5be74b8c 100644 --- a/rbi/stripe/services/account_service.rbi +++ b/rbi/stripe/services/account_service.rbi @@ -449,6 +449,13 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end + class PayByBankPayments < Stripe::RequestParams + # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + sig { returns(T::Boolean) } + attr_accessor :requested + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); end + end class PaycoPayments < Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T::Boolean) } @@ -763,6 +770,9 @@ module Stripe # The p24_payments capability. sig { returns(::Stripe::AccountService::UpdateParams::Capabilities::P24Payments) } attr_accessor :p24_payments + # The pay_by_bank_payments capability. + sig { returns(::Stripe::AccountService::UpdateParams::Capabilities::PayByBankPayments) } + attr_accessor :pay_by_bank_payments # The payco_payments capability. sig { returns(::Stripe::AccountService::UpdateParams::Capabilities::PaycoPayments) } attr_accessor :payco_payments @@ -847,7 +857,7 @@ module Stripe sig { returns(::Stripe::AccountService::UpdateParams::Capabilities::ZipPayments) } attr_accessor :zip_payments sig { - params(acss_debit_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AcssDebitPayments, affirm_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AffirmPayments, afterpay_clearpay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AfterpayClearpayPayments, alma_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AlmaPayments, amazon_pay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AmazonPayPayments, au_becs_debit_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AuBecsDebitPayments, automatic_indirect_tax: ::Stripe::AccountService::UpdateParams::Capabilities::AutomaticIndirectTax, bacs_debit_payments: ::Stripe::AccountService::UpdateParams::Capabilities::BacsDebitPayments, bancontact_payments: ::Stripe::AccountService::UpdateParams::Capabilities::BancontactPayments, bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::BankTransferPayments, blik_payments: ::Stripe::AccountService::UpdateParams::Capabilities::BlikPayments, boleto_payments: ::Stripe::AccountService::UpdateParams::Capabilities::BoletoPayments, card_issuing: ::Stripe::AccountService::UpdateParams::Capabilities::CardIssuing, card_payments: ::Stripe::AccountService::UpdateParams::Capabilities::CardPayments, cartes_bancaires_payments: ::Stripe::AccountService::UpdateParams::Capabilities::CartesBancairesPayments, cashapp_payments: ::Stripe::AccountService::UpdateParams::Capabilities::CashappPayments, eps_payments: ::Stripe::AccountService::UpdateParams::Capabilities::EpsPayments, fpx_payments: ::Stripe::AccountService::UpdateParams::Capabilities::FpxPayments, gb_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::GbBankTransferPayments, giropay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::GiropayPayments, gopay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::GopayPayments, grabpay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::GrabpayPayments, id_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::IdBankTransferPayments, id_bank_transfer_payments_bca: ::Stripe::AccountService::UpdateParams::Capabilities::IdBankTransferPaymentsBca, ideal_payments: ::Stripe::AccountService::UpdateParams::Capabilities::IdealPayments, india_international_payments: ::Stripe::AccountService::UpdateParams::Capabilities::IndiaInternationalPayments, jcb_payments: ::Stripe::AccountService::UpdateParams::Capabilities::JcbPayments, jp_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::JpBankTransferPayments, kakao_pay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::KakaoPayPayments, klarna_payments: ::Stripe::AccountService::UpdateParams::Capabilities::KlarnaPayments, konbini_payments: ::Stripe::AccountService::UpdateParams::Capabilities::KonbiniPayments, kr_card_payments: ::Stripe::AccountService::UpdateParams::Capabilities::KrCardPayments, legacy_payments: ::Stripe::AccountService::UpdateParams::Capabilities::LegacyPayments, link_payments: ::Stripe::AccountService::UpdateParams::Capabilities::LinkPayments, mb_way_payments: ::Stripe::AccountService::UpdateParams::Capabilities::MbWayPayments, mobilepay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::MobilepayPayments, multibanco_payments: ::Stripe::AccountService::UpdateParams::Capabilities::MultibancoPayments, mx_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::MxBankTransferPayments, naver_pay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::NaverPayPayments, oxxo_payments: ::Stripe::AccountService::UpdateParams::Capabilities::OxxoPayments, p24_payments: ::Stripe::AccountService::UpdateParams::Capabilities::P24Payments, payco_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PaycoPayments, paynow_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PaynowPayments, paypal_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PaypalPayments, payto_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PaytoPayments, promptpay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PromptpayPayments, qris_payments: ::Stripe::AccountService::UpdateParams::Capabilities::QrisPayments, rechnung_payments: ::Stripe::AccountService::UpdateParams::Capabilities::RechnungPayments, revolut_pay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::RevolutPayPayments, samsung_pay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::SamsungPayPayments, sepa_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::SepaBankTransferPayments, sepa_debit_payments: ::Stripe::AccountService::UpdateParams::Capabilities::SepaDebitPayments, shopeepay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::ShopeepayPayments, sofort_payments: ::Stripe::AccountService::UpdateParams::Capabilities::SofortPayments, swish_payments: ::Stripe::AccountService::UpdateParams::Capabilities::SwishPayments, tax_reporting_us_1099_k: ::Stripe::AccountService::UpdateParams::Capabilities::TaxReportingUs1099K, tax_reporting_us_1099_misc: ::Stripe::AccountService::UpdateParams::Capabilities::TaxReportingUs1099Misc, transfers: ::Stripe::AccountService::UpdateParams::Capabilities::Transfers, treasury: ::Stripe::AccountService::UpdateParams::Capabilities::Treasury, treasury_evolve: ::Stripe::AccountService::UpdateParams::Capabilities::TreasuryEvolve, treasury_fifth_third: ::Stripe::AccountService::UpdateParams::Capabilities::TreasuryFifthThird, treasury_goldman_sachs: ::Stripe::AccountService::UpdateParams::Capabilities::TreasuryGoldmanSachs, twint_payments: ::Stripe::AccountService::UpdateParams::Capabilities::TwintPayments, us_bank_account_ach_payments: ::Stripe::AccountService::UpdateParams::Capabilities::UsBankAccountAchPayments, us_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::UsBankTransferPayments, zip_payments: ::Stripe::AccountService::UpdateParams::Capabilities::ZipPayments).void + params(acss_debit_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AcssDebitPayments, affirm_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AffirmPayments, afterpay_clearpay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AfterpayClearpayPayments, alma_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AlmaPayments, amazon_pay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AmazonPayPayments, au_becs_debit_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AuBecsDebitPayments, automatic_indirect_tax: ::Stripe::AccountService::UpdateParams::Capabilities::AutomaticIndirectTax, bacs_debit_payments: ::Stripe::AccountService::UpdateParams::Capabilities::BacsDebitPayments, bancontact_payments: ::Stripe::AccountService::UpdateParams::Capabilities::BancontactPayments, bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::BankTransferPayments, blik_payments: ::Stripe::AccountService::UpdateParams::Capabilities::BlikPayments, boleto_payments: ::Stripe::AccountService::UpdateParams::Capabilities::BoletoPayments, card_issuing: ::Stripe::AccountService::UpdateParams::Capabilities::CardIssuing, card_payments: ::Stripe::AccountService::UpdateParams::Capabilities::CardPayments, cartes_bancaires_payments: ::Stripe::AccountService::UpdateParams::Capabilities::CartesBancairesPayments, cashapp_payments: ::Stripe::AccountService::UpdateParams::Capabilities::CashappPayments, eps_payments: ::Stripe::AccountService::UpdateParams::Capabilities::EpsPayments, fpx_payments: ::Stripe::AccountService::UpdateParams::Capabilities::FpxPayments, gb_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::GbBankTransferPayments, giropay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::GiropayPayments, gopay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::GopayPayments, grabpay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::GrabpayPayments, id_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::IdBankTransferPayments, id_bank_transfer_payments_bca: ::Stripe::AccountService::UpdateParams::Capabilities::IdBankTransferPaymentsBca, ideal_payments: ::Stripe::AccountService::UpdateParams::Capabilities::IdealPayments, india_international_payments: ::Stripe::AccountService::UpdateParams::Capabilities::IndiaInternationalPayments, jcb_payments: ::Stripe::AccountService::UpdateParams::Capabilities::JcbPayments, jp_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::JpBankTransferPayments, kakao_pay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::KakaoPayPayments, klarna_payments: ::Stripe::AccountService::UpdateParams::Capabilities::KlarnaPayments, konbini_payments: ::Stripe::AccountService::UpdateParams::Capabilities::KonbiniPayments, kr_card_payments: ::Stripe::AccountService::UpdateParams::Capabilities::KrCardPayments, legacy_payments: ::Stripe::AccountService::UpdateParams::Capabilities::LegacyPayments, link_payments: ::Stripe::AccountService::UpdateParams::Capabilities::LinkPayments, mb_way_payments: ::Stripe::AccountService::UpdateParams::Capabilities::MbWayPayments, mobilepay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::MobilepayPayments, multibanco_payments: ::Stripe::AccountService::UpdateParams::Capabilities::MultibancoPayments, mx_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::MxBankTransferPayments, naver_pay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::NaverPayPayments, oxxo_payments: ::Stripe::AccountService::UpdateParams::Capabilities::OxxoPayments, p24_payments: ::Stripe::AccountService::UpdateParams::Capabilities::P24Payments, pay_by_bank_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PayByBankPayments, payco_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PaycoPayments, paynow_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PaynowPayments, paypal_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PaypalPayments, payto_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PaytoPayments, promptpay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PromptpayPayments, qris_payments: ::Stripe::AccountService::UpdateParams::Capabilities::QrisPayments, rechnung_payments: ::Stripe::AccountService::UpdateParams::Capabilities::RechnungPayments, revolut_pay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::RevolutPayPayments, samsung_pay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::SamsungPayPayments, sepa_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::SepaBankTransferPayments, sepa_debit_payments: ::Stripe::AccountService::UpdateParams::Capabilities::SepaDebitPayments, shopeepay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::ShopeepayPayments, sofort_payments: ::Stripe::AccountService::UpdateParams::Capabilities::SofortPayments, swish_payments: ::Stripe::AccountService::UpdateParams::Capabilities::SwishPayments, tax_reporting_us_1099_k: ::Stripe::AccountService::UpdateParams::Capabilities::TaxReportingUs1099K, tax_reporting_us_1099_misc: ::Stripe::AccountService::UpdateParams::Capabilities::TaxReportingUs1099Misc, transfers: ::Stripe::AccountService::UpdateParams::Capabilities::Transfers, treasury: ::Stripe::AccountService::UpdateParams::Capabilities::Treasury, treasury_evolve: ::Stripe::AccountService::UpdateParams::Capabilities::TreasuryEvolve, treasury_fifth_third: ::Stripe::AccountService::UpdateParams::Capabilities::TreasuryFifthThird, treasury_goldman_sachs: ::Stripe::AccountService::UpdateParams::Capabilities::TreasuryGoldmanSachs, twint_payments: ::Stripe::AccountService::UpdateParams::Capabilities::TwintPayments, us_bank_account_ach_payments: ::Stripe::AccountService::UpdateParams::Capabilities::UsBankAccountAchPayments, us_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::UsBankTransferPayments, zip_payments: ::Stripe::AccountService::UpdateParams::Capabilities::ZipPayments).void } def initialize( acss_debit_payments: nil, @@ -891,6 +901,7 @@ module Stripe naver_pay_payments: nil, oxxo_payments: nil, p24_payments: nil, + pay_by_bank_payments: nil, payco_payments: nil, paynow_payments: nil, paypal_payments: nil, @@ -2480,6 +2491,13 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end + class PayByBankPayments < Stripe::RequestParams + # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + sig { returns(T::Boolean) } + attr_accessor :requested + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); end + end class PaycoPayments < Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T::Boolean) } @@ -2794,6 +2812,9 @@ module Stripe # The p24_payments capability. sig { returns(::Stripe::AccountService::CreateParams::Capabilities::P24Payments) } attr_accessor :p24_payments + # The pay_by_bank_payments capability. + sig { returns(::Stripe::AccountService::CreateParams::Capabilities::PayByBankPayments) } + attr_accessor :pay_by_bank_payments # The payco_payments capability. sig { returns(::Stripe::AccountService::CreateParams::Capabilities::PaycoPayments) } attr_accessor :payco_payments @@ -2878,7 +2899,7 @@ module Stripe sig { returns(::Stripe::AccountService::CreateParams::Capabilities::ZipPayments) } attr_accessor :zip_payments sig { - params(acss_debit_payments: ::Stripe::AccountService::CreateParams::Capabilities::AcssDebitPayments, affirm_payments: ::Stripe::AccountService::CreateParams::Capabilities::AffirmPayments, afterpay_clearpay_payments: ::Stripe::AccountService::CreateParams::Capabilities::AfterpayClearpayPayments, alma_payments: ::Stripe::AccountService::CreateParams::Capabilities::AlmaPayments, amazon_pay_payments: ::Stripe::AccountService::CreateParams::Capabilities::AmazonPayPayments, au_becs_debit_payments: ::Stripe::AccountService::CreateParams::Capabilities::AuBecsDebitPayments, automatic_indirect_tax: ::Stripe::AccountService::CreateParams::Capabilities::AutomaticIndirectTax, bacs_debit_payments: ::Stripe::AccountService::CreateParams::Capabilities::BacsDebitPayments, bancontact_payments: ::Stripe::AccountService::CreateParams::Capabilities::BancontactPayments, bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::BankTransferPayments, blik_payments: ::Stripe::AccountService::CreateParams::Capabilities::BlikPayments, boleto_payments: ::Stripe::AccountService::CreateParams::Capabilities::BoletoPayments, card_issuing: ::Stripe::AccountService::CreateParams::Capabilities::CardIssuing, card_payments: ::Stripe::AccountService::CreateParams::Capabilities::CardPayments, cartes_bancaires_payments: ::Stripe::AccountService::CreateParams::Capabilities::CartesBancairesPayments, cashapp_payments: ::Stripe::AccountService::CreateParams::Capabilities::CashappPayments, eps_payments: ::Stripe::AccountService::CreateParams::Capabilities::EpsPayments, fpx_payments: ::Stripe::AccountService::CreateParams::Capabilities::FpxPayments, gb_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::GbBankTransferPayments, giropay_payments: ::Stripe::AccountService::CreateParams::Capabilities::GiropayPayments, gopay_payments: ::Stripe::AccountService::CreateParams::Capabilities::GopayPayments, grabpay_payments: ::Stripe::AccountService::CreateParams::Capabilities::GrabpayPayments, id_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::IdBankTransferPayments, id_bank_transfer_payments_bca: ::Stripe::AccountService::CreateParams::Capabilities::IdBankTransferPaymentsBca, ideal_payments: ::Stripe::AccountService::CreateParams::Capabilities::IdealPayments, india_international_payments: ::Stripe::AccountService::CreateParams::Capabilities::IndiaInternationalPayments, jcb_payments: ::Stripe::AccountService::CreateParams::Capabilities::JcbPayments, jp_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::JpBankTransferPayments, kakao_pay_payments: ::Stripe::AccountService::CreateParams::Capabilities::KakaoPayPayments, klarna_payments: ::Stripe::AccountService::CreateParams::Capabilities::KlarnaPayments, konbini_payments: ::Stripe::AccountService::CreateParams::Capabilities::KonbiniPayments, kr_card_payments: ::Stripe::AccountService::CreateParams::Capabilities::KrCardPayments, legacy_payments: ::Stripe::AccountService::CreateParams::Capabilities::LegacyPayments, link_payments: ::Stripe::AccountService::CreateParams::Capabilities::LinkPayments, mb_way_payments: ::Stripe::AccountService::CreateParams::Capabilities::MbWayPayments, mobilepay_payments: ::Stripe::AccountService::CreateParams::Capabilities::MobilepayPayments, multibanco_payments: ::Stripe::AccountService::CreateParams::Capabilities::MultibancoPayments, mx_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::MxBankTransferPayments, naver_pay_payments: ::Stripe::AccountService::CreateParams::Capabilities::NaverPayPayments, oxxo_payments: ::Stripe::AccountService::CreateParams::Capabilities::OxxoPayments, p24_payments: ::Stripe::AccountService::CreateParams::Capabilities::P24Payments, payco_payments: ::Stripe::AccountService::CreateParams::Capabilities::PaycoPayments, paynow_payments: ::Stripe::AccountService::CreateParams::Capabilities::PaynowPayments, paypal_payments: ::Stripe::AccountService::CreateParams::Capabilities::PaypalPayments, payto_payments: ::Stripe::AccountService::CreateParams::Capabilities::PaytoPayments, promptpay_payments: ::Stripe::AccountService::CreateParams::Capabilities::PromptpayPayments, qris_payments: ::Stripe::AccountService::CreateParams::Capabilities::QrisPayments, rechnung_payments: ::Stripe::AccountService::CreateParams::Capabilities::RechnungPayments, revolut_pay_payments: ::Stripe::AccountService::CreateParams::Capabilities::RevolutPayPayments, samsung_pay_payments: ::Stripe::AccountService::CreateParams::Capabilities::SamsungPayPayments, sepa_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::SepaBankTransferPayments, sepa_debit_payments: ::Stripe::AccountService::CreateParams::Capabilities::SepaDebitPayments, shopeepay_payments: ::Stripe::AccountService::CreateParams::Capabilities::ShopeepayPayments, sofort_payments: ::Stripe::AccountService::CreateParams::Capabilities::SofortPayments, swish_payments: ::Stripe::AccountService::CreateParams::Capabilities::SwishPayments, tax_reporting_us_1099_k: ::Stripe::AccountService::CreateParams::Capabilities::TaxReportingUs1099K, tax_reporting_us_1099_misc: ::Stripe::AccountService::CreateParams::Capabilities::TaxReportingUs1099Misc, transfers: ::Stripe::AccountService::CreateParams::Capabilities::Transfers, treasury: ::Stripe::AccountService::CreateParams::Capabilities::Treasury, treasury_evolve: ::Stripe::AccountService::CreateParams::Capabilities::TreasuryEvolve, treasury_fifth_third: ::Stripe::AccountService::CreateParams::Capabilities::TreasuryFifthThird, treasury_goldman_sachs: ::Stripe::AccountService::CreateParams::Capabilities::TreasuryGoldmanSachs, twint_payments: ::Stripe::AccountService::CreateParams::Capabilities::TwintPayments, us_bank_account_ach_payments: ::Stripe::AccountService::CreateParams::Capabilities::UsBankAccountAchPayments, us_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::UsBankTransferPayments, zip_payments: ::Stripe::AccountService::CreateParams::Capabilities::ZipPayments).void + params(acss_debit_payments: ::Stripe::AccountService::CreateParams::Capabilities::AcssDebitPayments, affirm_payments: ::Stripe::AccountService::CreateParams::Capabilities::AffirmPayments, afterpay_clearpay_payments: ::Stripe::AccountService::CreateParams::Capabilities::AfterpayClearpayPayments, alma_payments: ::Stripe::AccountService::CreateParams::Capabilities::AlmaPayments, amazon_pay_payments: ::Stripe::AccountService::CreateParams::Capabilities::AmazonPayPayments, au_becs_debit_payments: ::Stripe::AccountService::CreateParams::Capabilities::AuBecsDebitPayments, automatic_indirect_tax: ::Stripe::AccountService::CreateParams::Capabilities::AutomaticIndirectTax, bacs_debit_payments: ::Stripe::AccountService::CreateParams::Capabilities::BacsDebitPayments, bancontact_payments: ::Stripe::AccountService::CreateParams::Capabilities::BancontactPayments, bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::BankTransferPayments, blik_payments: ::Stripe::AccountService::CreateParams::Capabilities::BlikPayments, boleto_payments: ::Stripe::AccountService::CreateParams::Capabilities::BoletoPayments, card_issuing: ::Stripe::AccountService::CreateParams::Capabilities::CardIssuing, card_payments: ::Stripe::AccountService::CreateParams::Capabilities::CardPayments, cartes_bancaires_payments: ::Stripe::AccountService::CreateParams::Capabilities::CartesBancairesPayments, cashapp_payments: ::Stripe::AccountService::CreateParams::Capabilities::CashappPayments, eps_payments: ::Stripe::AccountService::CreateParams::Capabilities::EpsPayments, fpx_payments: ::Stripe::AccountService::CreateParams::Capabilities::FpxPayments, gb_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::GbBankTransferPayments, giropay_payments: ::Stripe::AccountService::CreateParams::Capabilities::GiropayPayments, gopay_payments: ::Stripe::AccountService::CreateParams::Capabilities::GopayPayments, grabpay_payments: ::Stripe::AccountService::CreateParams::Capabilities::GrabpayPayments, id_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::IdBankTransferPayments, id_bank_transfer_payments_bca: ::Stripe::AccountService::CreateParams::Capabilities::IdBankTransferPaymentsBca, ideal_payments: ::Stripe::AccountService::CreateParams::Capabilities::IdealPayments, india_international_payments: ::Stripe::AccountService::CreateParams::Capabilities::IndiaInternationalPayments, jcb_payments: ::Stripe::AccountService::CreateParams::Capabilities::JcbPayments, jp_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::JpBankTransferPayments, kakao_pay_payments: ::Stripe::AccountService::CreateParams::Capabilities::KakaoPayPayments, klarna_payments: ::Stripe::AccountService::CreateParams::Capabilities::KlarnaPayments, konbini_payments: ::Stripe::AccountService::CreateParams::Capabilities::KonbiniPayments, kr_card_payments: ::Stripe::AccountService::CreateParams::Capabilities::KrCardPayments, legacy_payments: ::Stripe::AccountService::CreateParams::Capabilities::LegacyPayments, link_payments: ::Stripe::AccountService::CreateParams::Capabilities::LinkPayments, mb_way_payments: ::Stripe::AccountService::CreateParams::Capabilities::MbWayPayments, mobilepay_payments: ::Stripe::AccountService::CreateParams::Capabilities::MobilepayPayments, multibanco_payments: ::Stripe::AccountService::CreateParams::Capabilities::MultibancoPayments, mx_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::MxBankTransferPayments, naver_pay_payments: ::Stripe::AccountService::CreateParams::Capabilities::NaverPayPayments, oxxo_payments: ::Stripe::AccountService::CreateParams::Capabilities::OxxoPayments, p24_payments: ::Stripe::AccountService::CreateParams::Capabilities::P24Payments, pay_by_bank_payments: ::Stripe::AccountService::CreateParams::Capabilities::PayByBankPayments, payco_payments: ::Stripe::AccountService::CreateParams::Capabilities::PaycoPayments, paynow_payments: ::Stripe::AccountService::CreateParams::Capabilities::PaynowPayments, paypal_payments: ::Stripe::AccountService::CreateParams::Capabilities::PaypalPayments, payto_payments: ::Stripe::AccountService::CreateParams::Capabilities::PaytoPayments, promptpay_payments: ::Stripe::AccountService::CreateParams::Capabilities::PromptpayPayments, qris_payments: ::Stripe::AccountService::CreateParams::Capabilities::QrisPayments, rechnung_payments: ::Stripe::AccountService::CreateParams::Capabilities::RechnungPayments, revolut_pay_payments: ::Stripe::AccountService::CreateParams::Capabilities::RevolutPayPayments, samsung_pay_payments: ::Stripe::AccountService::CreateParams::Capabilities::SamsungPayPayments, sepa_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::SepaBankTransferPayments, sepa_debit_payments: ::Stripe::AccountService::CreateParams::Capabilities::SepaDebitPayments, shopeepay_payments: ::Stripe::AccountService::CreateParams::Capabilities::ShopeepayPayments, sofort_payments: ::Stripe::AccountService::CreateParams::Capabilities::SofortPayments, swish_payments: ::Stripe::AccountService::CreateParams::Capabilities::SwishPayments, tax_reporting_us_1099_k: ::Stripe::AccountService::CreateParams::Capabilities::TaxReportingUs1099K, tax_reporting_us_1099_misc: ::Stripe::AccountService::CreateParams::Capabilities::TaxReportingUs1099Misc, transfers: ::Stripe::AccountService::CreateParams::Capabilities::Transfers, treasury: ::Stripe::AccountService::CreateParams::Capabilities::Treasury, treasury_evolve: ::Stripe::AccountService::CreateParams::Capabilities::TreasuryEvolve, treasury_fifth_third: ::Stripe::AccountService::CreateParams::Capabilities::TreasuryFifthThird, treasury_goldman_sachs: ::Stripe::AccountService::CreateParams::Capabilities::TreasuryGoldmanSachs, twint_payments: ::Stripe::AccountService::CreateParams::Capabilities::TwintPayments, us_bank_account_ach_payments: ::Stripe::AccountService::CreateParams::Capabilities::UsBankAccountAchPayments, us_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::UsBankTransferPayments, zip_payments: ::Stripe::AccountService::CreateParams::Capabilities::ZipPayments).void } def initialize( acss_debit_payments: nil, @@ -2922,6 +2943,7 @@ module Stripe naver_pay_payments: nil, oxxo_payments: nil, p24_payments: nil, + pay_by_bank_payments: nil, payco_payments: nil, paynow_payments: nil, paypal_payments: nil, From 39283a358d5c940520089b2ca9b6269c93475693 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 14 Jan 2025 16:12:12 +0000 Subject: [PATCH 08/18] Update generated code for v1444 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/checkout/session.rb | 2 +- rbi/stripe/resources/checkout/session.rbi | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 023992bf5..53bf35301 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1443 \ No newline at end of file +v1444 \ No newline at end of file diff --git a/lib/stripe/resources/checkout/session.rb b/lib/stripe/resources/checkout/session.rb index 1438ff9a6..8ed7ba1eb 100644 --- a/lib/stripe/resources/checkout/session.rb +++ b/lib/stripe/resources/checkout/session.rb @@ -955,7 +955,7 @@ class SavedPaymentMethodOptions < Stripe::StripeObject class ShippingAddressCollection < Stripe::StripeObject # An array of two-letter ISO country codes representing which countries Checkout should provide as options for - # shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI`. + # shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SY, UM, VI`. attr_reader :allowed_countries end diff --git a/rbi/stripe/resources/checkout/session.rbi b/rbi/stripe/resources/checkout/session.rbi index c104b595d..08ef67263 100644 --- a/rbi/stripe/resources/checkout/session.rbi +++ b/rbi/stripe/resources/checkout/session.rbi @@ -1120,7 +1120,7 @@ module Stripe end class ShippingAddressCollection < Stripe::StripeObject # An array of two-letter ISO country codes representing which countries Checkout should provide as options for - # shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI`. + # shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SY, UM, VI`. sig { returns(T::Array[String]) } attr_reader :allowed_countries end From f21e023bb261151f8a72ae6d61c303b620436e8b Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 14 Jan 2025 20:50:46 +0000 Subject: [PATCH 09/18] Update generated code for v1446 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/checkout/session.rb | 9 +++++++++ rbi/stripe/resources/checkout/session.rbi | 11 +++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 53bf35301..0e6ebdfc2 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1444 \ No newline at end of file +v1446 \ No newline at end of file diff --git a/lib/stripe/resources/checkout/session.rb b/lib/stripe/resources/checkout/session.rb index 8ed7ba1eb..4c25e37d9 100644 --- a/lib/stripe/resources/checkout/session.rb +++ b/lib/stripe/resources/checkout/session.rb @@ -273,6 +273,13 @@ class TaxId < Stripe::StripeObject attr_reader :tax_ids end + class Discount < Stripe::StripeObject + # Coupon attached to the Checkout Session. + attr_reader :coupon + # Promotion code attached to the Checkout Session. + attr_reader :promotion_code + end + class InvoiceCreation < Stripe::StripeObject class InvoiceData < Stripe::StripeObject class CustomField < Stripe::StripeObject @@ -3600,6 +3607,8 @@ def initialize(expand: nil) # on file. To access information about the customer once the payment flow is # complete, use the `customer` attribute. attr_reader :customer_email + # List of coupons and promotion codes attached to the Checkout Session. + attr_reader :discounts # The timestamp at which the Checkout Session will expire. attr_reader :expires_at # Unique identifier for the object. diff --git a/rbi/stripe/resources/checkout/session.rbi b/rbi/stripe/resources/checkout/session.rbi index 08ef67263..09652833d 100644 --- a/rbi/stripe/resources/checkout/session.rbi +++ b/rbi/stripe/resources/checkout/session.rbi @@ -330,6 +330,14 @@ module Stripe sig { returns(T.nilable(T::Array[TaxId])) } attr_reader :tax_ids end + class Discount < Stripe::StripeObject + # Coupon attached to the Checkout Session. + sig { returns(T.nilable(T.any(String, Stripe::Coupon))) } + attr_reader :coupon + # Promotion code attached to the Checkout Session. + sig { returns(T.nilable(T.any(String, Stripe::PromotionCode))) } + attr_reader :promotion_code + end class InvoiceCreation < Stripe::StripeObject class InvoiceData < Stripe::StripeObject class CustomField < Stripe::StripeObject @@ -1335,6 +1343,9 @@ module Stripe # complete, use the `customer` attribute. sig { returns(T.nilable(String)) } attr_reader :customer_email + # List of coupons and promotion codes attached to the Checkout Session. + sig { returns(T.nilable(T::Array[Discount])) } + attr_reader :discounts # The timestamp at which the Checkout Session will expire. sig { returns(Integer) } attr_reader :expires_at From 4c7a2891f1ef7afcb7f5e0d8852e011d40d7e4fd Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 15 Jan 2025 19:15:15 +0000 Subject: [PATCH 10/18] Update generated code for v1448 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/charge.rb | 4 ++ lib/stripe/resources/checkout/session.rb | 7 ++ lib/stripe/resources/confirmation_token.rb | 10 +++ lib/stripe/resources/payment_intent.rb | 46 ++++++++++++ lib/stripe/resources/payment_method.rb | 17 +++++ .../resources/payment_method_configuration.rb | 59 ++++++++++++++++ lib/stripe/resources/setup_intent.rb | 21 ++++++ .../services/checkout/session_service.rb | 7 ++ lib/stripe/services/payment_intent_service.rb | 42 +++++++++++ .../payment_method_configuration_service.rb | 42 +++++++++++ lib/stripe/services/payment_method_service.rb | 14 ++++ lib/stripe/services/setup_intent_service.rb | 21 ++++++ .../confirmation_token_service.rb | 7 ++ rbi/stripe/resources/charge.rbi | 4 ++ rbi/stripe/resources/checkout/session.rbi | 11 ++- rbi/stripe/resources/confirmation_token.rbi | 13 +++- rbi/stripe/resources/payment_intent.rbi | 64 +++++++++++++++-- rbi/stripe/resources/payment_method.rbi | 22 +++++- .../payment_method_configuration.rbi | 70 ++++++++++++++++++- rbi/stripe/resources/setup_intent.rbi | 27 ++++++- .../services/checkout/session_service.rbi | 11 ++- .../services/payment_intent_service.rbi | 60 ++++++++++++++-- .../payment_method_configuration_service.rbi | 48 ++++++++++++- .../services/payment_method_service.rbi | 18 ++++- rbi/stripe/services/setup_intent_service.rbi | 27 ++++++- .../confirmation_token_service.rbi | 11 ++- 27 files changed, 654 insertions(+), 31 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 0e6ebdfc2..41237ba54 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1446 \ No newline at end of file +v1448 \ No newline at end of file diff --git a/lib/stripe/resources/charge.rb b/lib/stripe/resources/charge.rb index 47b1b2f10..8fe489eaf 100644 --- a/lib/stripe/resources/charge.rb +++ b/lib/stripe/resources/charge.rb @@ -831,6 +831,8 @@ class P24 < Stripe::StripeObject attr_reader :verified_name end + class PayByBank < Stripe::StripeObject; end + class Payco < Stripe::StripeObject # A unique identifier for the buyer as determined by the local payment processor. attr_reader :buyer_id @@ -1125,6 +1127,8 @@ class Zip < Stripe::StripeObject; end attr_reader :oxxo # Attribute for field p24 attr_reader :p24 + # Attribute for field pay_by_bank + attr_reader :pay_by_bank # Attribute for field payco attr_reader :payco # Attribute for field paynow diff --git a/lib/stripe/resources/checkout/session.rb b/lib/stripe/resources/checkout/session.rb index 4c25e37d9..f335fe410 100644 --- a/lib/stripe/resources/checkout/session.rb +++ b/lib/stripe/resources/checkout/session.rb @@ -2326,6 +2326,9 @@ def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method @@ -2638,6 +2641,8 @@ def initialize(app_id: nil, client: nil, setup_future_usage: nil) attr_accessor :oxxo # contains details about the P24 payment method options. attr_accessor :p24 + # contains details about the Pay By Bank payment method options. + attr_accessor :pay_by_bank # contains details about the PAYCO payment method options. attr_accessor :payco # contains details about the PayNow payment method options. @@ -2691,6 +2696,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -2731,6 +2737,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal diff --git a/lib/stripe/resources/confirmation_token.rb b/lib/stripe/resources/confirmation_token.rb index b98d89618..65d015872 100644 --- a/lib/stripe/resources/confirmation_token.rb +++ b/lib/stripe/resources/confirmation_token.rb @@ -566,6 +566,7 @@ class P24 < Stripe::StripeObject attr_reader :bank end + class PayByBank < Stripe::StripeObject; end class Payco < Stripe::StripeObject; end class Paynow < Stripe::StripeObject; end @@ -760,6 +761,8 @@ class Zip < Stripe::StripeObject; end attr_reader :oxxo # Attribute for field p24 attr_reader :p24 + # Attribute for field pay_by_bank + attr_reader :pay_by_bank # Attribute for field payco attr_reader :payco # Attribute for field paynow @@ -1073,6 +1076,9 @@ def initialize(bank: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams end @@ -1273,6 +1279,8 @@ class Zip < Stripe::RequestParams attr_accessor :oxxo # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. attr_accessor :payco # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. @@ -1350,6 +1358,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -1406,6 +1415,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal diff --git a/lib/stripe/resources/payment_intent.rb b/lib/stripe/resources/payment_intent.rb index 5e4c4ed47..942ed05fa 100644 --- a/lib/stripe/resources/payment_intent.rb +++ b/lib/stripe/resources/payment_intent.rb @@ -1416,6 +1416,8 @@ class P24 < Stripe::StripeObject attr_reader :setup_future_usage end + class PayByBank < Stripe::StripeObject; end + class Payco < Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method @@ -1768,6 +1770,8 @@ class Zip < Stripe::StripeObject attr_reader :oxxo # Attribute for field p24 attr_reader :p24 + # Attribute for field pay_by_bank + attr_reader :pay_by_bank # Attribute for field payco attr_reader :payco # Attribute for field paynow @@ -2890,6 +2894,9 @@ def initialize(bank: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams end @@ -3090,6 +3097,8 @@ class Zip < Stripe::RequestParams attr_accessor :oxxo # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. attr_accessor :payco # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. @@ -3167,6 +3176,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -3223,6 +3233,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal @@ -4265,6 +4276,9 @@ def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams # Controls when the funds are captured from the customer's account. # @@ -4848,6 +4862,8 @@ def initialize(setup_future_usage: nil) attr_accessor :oxxo # If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. attr_accessor :payco # If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. @@ -4920,6 +4936,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -4973,6 +4990,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal @@ -6211,6 +6229,9 @@ def initialize(bank: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams end @@ -6411,6 +6432,8 @@ class Zip < Stripe::RequestParams attr_accessor :oxxo # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. attr_accessor :payco # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. @@ -6488,6 +6511,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -6544,6 +6568,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal @@ -7586,6 +7611,9 @@ def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams # Controls when the funds are captured from the customer's account. # @@ -8169,6 +8197,8 @@ def initialize(setup_future_usage: nil) attr_accessor :oxxo # If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. attr_accessor :payco # If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. @@ -8241,6 +8271,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -8294,6 +8325,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal @@ -10252,6 +10284,9 @@ def initialize(bank: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams end @@ -10452,6 +10487,8 @@ class Zip < Stripe::RequestParams attr_accessor :oxxo # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. attr_accessor :payco # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. @@ -10529,6 +10566,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -10585,6 +10623,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal @@ -11627,6 +11666,9 @@ def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams # Controls when the funds are captured from the customer's account. # @@ -12210,6 +12252,8 @@ def initialize(setup_future_usage: nil) attr_accessor :oxxo # If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. attr_accessor :payco # If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. @@ -12282,6 +12326,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -12335,6 +12380,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal diff --git a/lib/stripe/resources/payment_method.rb b/lib/stripe/resources/payment_method.rb index 318b77454..780e7e931 100644 --- a/lib/stripe/resources/payment_method.rb +++ b/lib/stripe/resources/payment_method.rb @@ -541,6 +541,7 @@ class P24 < Stripe::StripeObject attr_reader :bank end + class PayByBank < Stripe::StripeObject; end class Payco < Stripe::StripeObject; end class Paynow < Stripe::StripeObject; end @@ -977,6 +978,9 @@ def initialize(bank: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams end @@ -1183,6 +1187,8 @@ class Zip < Stripe::RequestParams attr_accessor :oxxo # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. attr_accessor :payco # The PaymentMethod to share. @@ -1265,6 +1271,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, payment_method: nil, paynow: nil, @@ -1325,6 +1332,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @payment_method = payment_method @paynow = paynow @@ -1442,6 +1450,9 @@ def initialize(funding: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payto < Stripe::RequestParams # The account number for the bank account. attr_accessor :account_number @@ -1482,6 +1493,8 @@ def initialize(account_holder_type: nil, account_type: nil) attr_accessor :metadata # If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. attr_accessor :naver_pay + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + attr_accessor :pay_by_bank # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. attr_accessor :payto # If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. @@ -1495,6 +1508,7 @@ def initialize( link: nil, metadata: nil, naver_pay: nil, + pay_by_bank: nil, payto: nil, us_bank_account: nil ) @@ -1505,6 +1519,7 @@ def initialize( @link = link @metadata = metadata @naver_pay = naver_pay + @pay_by_bank = pay_by_bank @payto = payto @us_bank_account = us_bank_account end @@ -1614,6 +1629,8 @@ def initialize(expand: nil) attr_reader :oxxo # Attribute for field p24 attr_reader :p24 + # Attribute for field pay_by_bank + attr_reader :pay_by_bank # Attribute for field payco attr_reader :payco # Attribute for field paynow diff --git a/lib/stripe/resources/payment_method_configuration.rb b/lib/stripe/resources/payment_method_configuration.rb index 3715e0bf8..22ec18aa4 100644 --- a/lib/stripe/resources/payment_method_configuration.rb +++ b/lib/stripe/resources/payment_method_configuration.rb @@ -506,6 +506,21 @@ class DisplayPreference < Stripe::StripeObject attr_reader :display_preference end + class PayByBank < Stripe::StripeObject + class DisplayPreference < Stripe::StripeObject + # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + attr_reader :overridable + # The account's display preference. + attr_reader :preference + # The effective display preference value. + attr_reader :value + end + # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + attr_reader :available + # Attribute for field display_preference + attr_reader :display_preference + end + class Paynow < Stripe::StripeObject class DisplayPreference < Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. @@ -1305,6 +1320,23 @@ def initialize(display_preference: nil) end end + class PayByBank < Stripe::RequestParams + class DisplayPreference < Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + attr_accessor :preference + + def initialize(preference: nil) + @preference = preference + end + end + # Whether or not the payment method should be displayed. + attr_accessor :display_preference + + def initialize(display_preference: nil) + @display_preference = display_preference + end + end + class Paynow < Stripe::RequestParams class DisplayPreference < Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -1614,6 +1646,8 @@ def initialize(display_preference: nil) attr_accessor :p24 # Configuration's parent configuration. Specify to create a child configuration. attr_accessor :parent + # Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments. + attr_accessor :pay_by_bank # PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://stripe.com/docs/payments/paynow) for more details. attr_accessor :paynow # PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://stripe.com/docs/payments/paypal) for more details. @@ -1680,6 +1714,7 @@ def initialize( oxxo: nil, p24: nil, parent: nil, + pay_by_bank: nil, paynow: nil, paypal: nil, payto: nil, @@ -1731,6 +1766,7 @@ def initialize( @oxxo = oxxo @p24 = p24 @parent = parent + @pay_by_bank = pay_by_bank @paynow = paynow @paypal = paypal @payto = payto @@ -2319,6 +2355,23 @@ def initialize(display_preference: nil) end end + class PayByBank < Stripe::RequestParams + class DisplayPreference < Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + attr_accessor :preference + + def initialize(preference: nil) + @preference = preference + end + end + # Whether or not the payment method should be displayed. + attr_accessor :display_preference + + def initialize(display_preference: nil) + @display_preference = display_preference + end + end + class Paynow < Stripe::RequestParams class DisplayPreference < Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -2628,6 +2681,8 @@ def initialize(display_preference: nil) attr_accessor :oxxo # Przelewy24 is a Poland-based payment method aggregator that allows customers to complete transactions online using bank transfers and other methods. Bank transfers account for 30% of online payments in Poland and Przelewy24 provides a way for customers to pay with over 165 banks. Check this [page](https://stripe.com/docs/payments/p24) for more details. attr_accessor :p24 + # Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments. + attr_accessor :pay_by_bank # PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://stripe.com/docs/payments/paynow) for more details. attr_accessor :paynow # PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://stripe.com/docs/payments/paypal) for more details. @@ -2694,6 +2749,7 @@ def initialize( name: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, paynow: nil, paypal: nil, payto: nil, @@ -2745,6 +2801,7 @@ def initialize( @name = name @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @paynow = paynow @paypal = paypal @payto = payto @@ -2841,6 +2898,8 @@ def initialize( attr_reader :p24 # For child configs, the configuration's parent configuration. attr_reader :parent + # Attribute for field pay_by_bank + attr_reader :pay_by_bank # Attribute for field paynow attr_reader :paynow # Attribute for field paypal diff --git a/lib/stripe/resources/setup_intent.rb b/lib/stripe/resources/setup_intent.rb index 226c11abd..29e96d82d 100644 --- a/lib/stripe/resources/setup_intent.rb +++ b/lib/stripe/resources/setup_intent.rb @@ -684,6 +684,9 @@ def initialize(bank: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams end @@ -884,6 +887,8 @@ class Zip < Stripe::RequestParams attr_accessor :oxxo # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. attr_accessor :payco # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. @@ -961,6 +966,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -1017,6 +1023,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal @@ -1829,6 +1836,9 @@ def initialize(bank: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams end @@ -2029,6 +2039,8 @@ class Zip < Stripe::RequestParams attr_accessor :oxxo # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. attr_accessor :payco # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. @@ -2106,6 +2118,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -2162,6 +2175,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal @@ -2964,6 +2978,9 @@ def initialize(bank: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams end @@ -3164,6 +3181,8 @@ class Zip < Stripe::RequestParams attr_accessor :oxxo # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. attr_accessor :payco # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. @@ -3241,6 +3260,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -3297,6 +3317,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal diff --git a/lib/stripe/services/checkout/session_service.rb b/lib/stripe/services/checkout/session_service.rb index d376ae811..ce29180f0 100644 --- a/lib/stripe/services/checkout/session_service.rb +++ b/lib/stripe/services/checkout/session_service.rb @@ -1266,6 +1266,9 @@ def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method @@ -1578,6 +1581,8 @@ def initialize(app_id: nil, client: nil, setup_future_usage: nil) attr_accessor :oxxo # contains details about the P24 payment method options. attr_accessor :p24 + # contains details about the Pay By Bank payment method options. + attr_accessor :pay_by_bank # contains details about the PAYCO payment method options. attr_accessor :payco # contains details about the PayNow payment method options. @@ -1631,6 +1636,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -1671,6 +1677,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal diff --git a/lib/stripe/services/payment_intent_service.rb b/lib/stripe/services/payment_intent_service.rb index c4c881228..552851efd 100644 --- a/lib/stripe/services/payment_intent_service.rb +++ b/lib/stripe/services/payment_intent_service.rb @@ -1034,6 +1034,9 @@ def initialize(bank: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams end @@ -1234,6 +1237,8 @@ class Zip < Stripe::RequestParams attr_accessor :oxxo # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. attr_accessor :payco # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. @@ -1311,6 +1316,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -1367,6 +1373,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal @@ -2409,6 +2416,9 @@ def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams # Controls when the funds are captured from the customer's account. # @@ -2992,6 +3002,8 @@ def initialize(setup_future_usage: nil) attr_accessor :oxxo # If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. attr_accessor :payco # If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. @@ -3064,6 +3076,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -3117,6 +3130,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal @@ -4355,6 +4369,9 @@ def initialize(bank: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams end @@ -4555,6 +4572,8 @@ class Zip < Stripe::RequestParams attr_accessor :oxxo # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. attr_accessor :payco # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. @@ -4632,6 +4651,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -4688,6 +4708,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal @@ -5730,6 +5751,9 @@ def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams # Controls when the funds are captured from the customer's account. # @@ -6313,6 +6337,8 @@ def initialize(setup_future_usage: nil) attr_accessor :oxxo # If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. attr_accessor :payco # If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. @@ -6385,6 +6411,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -6438,6 +6465,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal @@ -8396,6 +8424,9 @@ def initialize(bank: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams end @@ -8596,6 +8627,8 @@ class Zip < Stripe::RequestParams attr_accessor :oxxo # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. attr_accessor :payco # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. @@ -8673,6 +8706,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -8729,6 +8763,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal @@ -9771,6 +9806,9 @@ def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams # Controls when the funds are captured from the customer's account. # @@ -10354,6 +10392,8 @@ def initialize(setup_future_usage: nil) attr_accessor :oxxo # If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. attr_accessor :payco # If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. @@ -10426,6 +10466,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -10479,6 +10520,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal diff --git a/lib/stripe/services/payment_method_configuration_service.rb b/lib/stripe/services/payment_method_configuration_service.rb index 201a05926..74c07e104 100644 --- a/lib/stripe/services/payment_method_configuration_service.rb +++ b/lib/stripe/services/payment_method_configuration_service.rb @@ -592,6 +592,23 @@ def initialize(display_preference: nil) end end + class PayByBank < Stripe::RequestParams + class DisplayPreference < Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + attr_accessor :preference + + def initialize(preference: nil) + @preference = preference + end + end + # Whether or not the payment method should be displayed. + attr_accessor :display_preference + + def initialize(display_preference: nil) + @display_preference = display_preference + end + end + class Paynow < Stripe::RequestParams class DisplayPreference < Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -901,6 +918,8 @@ def initialize(display_preference: nil) attr_accessor :p24 # Configuration's parent configuration. Specify to create a child configuration. attr_accessor :parent + # Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments. + attr_accessor :pay_by_bank # PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://stripe.com/docs/payments/paynow) for more details. attr_accessor :paynow # PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://stripe.com/docs/payments/paypal) for more details. @@ -967,6 +986,7 @@ def initialize( oxxo: nil, p24: nil, parent: nil, + pay_by_bank: nil, paynow: nil, paypal: nil, payto: nil, @@ -1018,6 +1038,7 @@ def initialize( @oxxo = oxxo @p24 = p24 @parent = parent + @pay_by_bank = pay_by_bank @paynow = paynow @paypal = paypal @payto = payto @@ -1606,6 +1627,23 @@ def initialize(display_preference: nil) end end + class PayByBank < Stripe::RequestParams + class DisplayPreference < Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + attr_accessor :preference + + def initialize(preference: nil) + @preference = preference + end + end + # Whether or not the payment method should be displayed. + attr_accessor :display_preference + + def initialize(display_preference: nil) + @display_preference = display_preference + end + end + class Paynow < Stripe::RequestParams class DisplayPreference < Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -1915,6 +1953,8 @@ def initialize(display_preference: nil) attr_accessor :oxxo # Przelewy24 is a Poland-based payment method aggregator that allows customers to complete transactions online using bank transfers and other methods. Bank transfers account for 30% of online payments in Poland and Przelewy24 provides a way for customers to pay with over 165 banks. Check this [page](https://stripe.com/docs/payments/p24) for more details. attr_accessor :p24 + # Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments. + attr_accessor :pay_by_bank # PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://stripe.com/docs/payments/paynow) for more details. attr_accessor :paynow # PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://stripe.com/docs/payments/paypal) for more details. @@ -1981,6 +2021,7 @@ def initialize( name: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, paynow: nil, paypal: nil, payto: nil, @@ -2032,6 +2073,7 @@ def initialize( @name = name @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @paynow = paynow @paypal = paypal @payto = payto diff --git a/lib/stripe/services/payment_method_service.rb b/lib/stripe/services/payment_method_service.rb index 393b6aa18..b388aaf43 100644 --- a/lib/stripe/services/payment_method_service.rb +++ b/lib/stripe/services/payment_method_service.rb @@ -313,6 +313,9 @@ def initialize(bank: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams end @@ -519,6 +522,8 @@ class Zip < Stripe::RequestParams attr_accessor :oxxo # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. attr_accessor :payco # The PaymentMethod to share. @@ -601,6 +606,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, payment_method: nil, paynow: nil, @@ -661,6 +667,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @payment_method = payment_method @paynow = paynow @@ -778,6 +785,9 @@ def initialize(funding: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payto < Stripe::RequestParams # The account number for the bank account. attr_accessor :account_number @@ -818,6 +828,8 @@ def initialize(account_holder_type: nil, account_type: nil) attr_accessor :metadata # If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. attr_accessor :naver_pay + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + attr_accessor :pay_by_bank # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. attr_accessor :payto # If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. @@ -831,6 +843,7 @@ def initialize( link: nil, metadata: nil, naver_pay: nil, + pay_by_bank: nil, payto: nil, us_bank_account: nil ) @@ -841,6 +854,7 @@ def initialize( @link = link @metadata = metadata @naver_pay = naver_pay + @pay_by_bank = pay_by_bank @payto = payto @us_bank_account = us_bank_account end diff --git a/lib/stripe/services/setup_intent_service.rb b/lib/stripe/services/setup_intent_service.rb index 2dbc8d335..2b1b97b2f 100644 --- a/lib/stripe/services/setup_intent_service.rb +++ b/lib/stripe/services/setup_intent_service.rb @@ -356,6 +356,9 @@ def initialize(bank: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams end @@ -556,6 +559,8 @@ class Zip < Stripe::RequestParams attr_accessor :oxxo # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. attr_accessor :payco # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. @@ -633,6 +638,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -689,6 +695,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal @@ -1501,6 +1508,9 @@ def initialize(bank: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams end @@ -1701,6 +1711,8 @@ class Zip < Stripe::RequestParams attr_accessor :oxxo # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. attr_accessor :payco # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. @@ -1778,6 +1790,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -1834,6 +1847,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal @@ -2636,6 +2650,9 @@ def initialize(bank: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams end @@ -2836,6 +2853,8 @@ class Zip < Stripe::RequestParams attr_accessor :oxxo # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. attr_accessor :payco # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. @@ -2913,6 +2932,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -2969,6 +2989,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal diff --git a/lib/stripe/services/test_helpers/confirmation_token_service.rb b/lib/stripe/services/test_helpers/confirmation_token_service.rb index f33a3bd59..ba75038d3 100644 --- a/lib/stripe/services/test_helpers/confirmation_token_service.rb +++ b/lib/stripe/services/test_helpers/confirmation_token_service.rb @@ -245,6 +245,9 @@ def initialize(bank: nil) end end + class PayByBank < Stripe::RequestParams + end + class Payco < Stripe::RequestParams end @@ -445,6 +448,8 @@ class Zip < Stripe::RequestParams attr_accessor :oxxo # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. attr_accessor :payco # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. @@ -522,6 +527,7 @@ def initialize( naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -578,6 +584,7 @@ def initialize( @naver_pay = naver_pay @oxxo = oxxo @p24 = p24 + @pay_by_bank = pay_by_bank @payco = payco @paynow = paynow @paypal = paypal diff --git a/rbi/stripe/resources/charge.rbi b/rbi/stripe/resources/charge.rbi index facb226b2..5bace4621 100644 --- a/rbi/stripe/resources/charge.rbi +++ b/rbi/stripe/resources/charge.rbi @@ -1054,6 +1054,7 @@ module Stripe sig { returns(T.nilable(String)) } attr_reader :verified_name end + class PayByBank < Stripe::StripeObject; end class Payco < Stripe::StripeObject # A unique identifier for the buyer as determined by the local payment processor. sig { returns(T.nilable(String)) } @@ -1436,6 +1437,9 @@ module Stripe # Attribute for field p24 sig { returns(P24) } attr_reader :p24 + # Attribute for field pay_by_bank + sig { returns(PayByBank) } + attr_reader :pay_by_bank # Attribute for field payco sig { returns(Payco) } attr_reader :payco diff --git a/rbi/stripe/resources/checkout/session.rbi b/rbi/stripe/resources/checkout/session.rbi index 09652833d..e2d1cb541 100644 --- a/rbi/stripe/resources/checkout/session.rbi +++ b/rbi/stripe/resources/checkout/session.rbi @@ -2686,6 +2686,9 @@ module Stripe attr_accessor :tos_shown_and_accepted sig { params(setup_future_usage: String, tos_shown_and_accepted: T::Boolean).void } def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams # Controls when the funds will be captured from the customer's account. @@ -3034,6 +3037,11 @@ module Stripe # contains details about the P24 payment method options. sig { returns(::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::P24) } attr_accessor :p24 + # contains details about the Pay By Bank payment method options. + sig { + returns(::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::PayByBank) + } + attr_accessor :pay_by_bank # contains details about the PAYCO payment method options. sig { returns(::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Payco) } attr_accessor :payco @@ -3081,7 +3089,7 @@ module Stripe } attr_accessor :wechat_pay sig { - params(acss_debit: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::AcssDebit, affirm: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Affirm, afterpay_clearpay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::AfterpayClearpay, alipay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Alipay, amazon_pay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::AmazonPay, au_becs_debit: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::AuBecsDebit, bacs_debit: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::BacsDebit, bancontact: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Bancontact, boleto: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Boleto, card: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Card, cashapp: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Cashapp, customer_balance: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::CustomerBalance, eps: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Eps, fpx: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Fpx, giropay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Giropay, grabpay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Grabpay, ideal: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Ideal, kakao_pay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::KakaoPay, klarna: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Klarna, konbini: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Konbini, kr_card: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::KrCard, link: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Link, mobilepay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Mobilepay, multibanco: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Multibanco, naver_pay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::NaverPay, oxxo: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Oxxo, p24: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::P24, payco: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Payco, paynow: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Paynow, paypal: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Paypal, payto: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Payto, pix: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Pix, revolut_pay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::RevolutPay, samsung_pay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::SamsungPay, sepa_debit: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::SepaDebit, sofort: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Sofort, swish: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Swish, us_bank_account: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::UsBankAccount, wechat_pay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::WechatPay).void + params(acss_debit: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::AcssDebit, affirm: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Affirm, afterpay_clearpay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::AfterpayClearpay, alipay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Alipay, amazon_pay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::AmazonPay, au_becs_debit: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::AuBecsDebit, bacs_debit: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::BacsDebit, bancontact: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Bancontact, boleto: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Boleto, card: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Card, cashapp: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Cashapp, customer_balance: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::CustomerBalance, eps: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Eps, fpx: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Fpx, giropay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Giropay, grabpay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Grabpay, ideal: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Ideal, kakao_pay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::KakaoPay, klarna: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Klarna, konbini: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Konbini, kr_card: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::KrCard, link: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Link, mobilepay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Mobilepay, multibanco: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Multibanco, naver_pay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::NaverPay, oxxo: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Oxxo, p24: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::P24, pay_by_bank: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::PayByBank, payco: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Payco, paynow: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Paynow, paypal: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Paypal, payto: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Payto, pix: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Pix, revolut_pay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::RevolutPay, samsung_pay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::SamsungPay, sepa_debit: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::SepaDebit, sofort: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Sofort, swish: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Swish, us_bank_account: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::UsBankAccount, wechat_pay: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::WechatPay).void } def initialize( acss_debit: nil, @@ -3111,6 +3119,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, diff --git a/rbi/stripe/resources/confirmation_token.rbi b/rbi/stripe/resources/confirmation_token.rbi index d455f0431..66f030ab6 100644 --- a/rbi/stripe/resources/confirmation_token.rbi +++ b/rbi/stripe/resources/confirmation_token.rbi @@ -714,6 +714,7 @@ module Stripe sig { returns(T.nilable(String)) } attr_reader :bank end + class PayByBank < Stripe::StripeObject; end class Payco < Stripe::StripeObject; end class Paynow < Stripe::StripeObject; end class Paypal < Stripe::StripeObject @@ -969,6 +970,9 @@ module Stripe # Attribute for field p24 sig { returns(P24) } attr_reader :p24 + # Attribute for field pay_by_bank + sig { returns(PayByBank) } + attr_reader :pay_by_bank # Attribute for field payco sig { returns(Payco) } attr_reader :payco @@ -1333,6 +1337,9 @@ module Stripe attr_accessor :bank sig { params(bank: String).void } def initialize(bank: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams @@ -1573,6 +1580,9 @@ module Stripe # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. sig { returns(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::P24) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + sig { returns(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::PayByBank) } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. sig { returns(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Payco) } attr_accessor :payco @@ -1634,7 +1644,7 @@ module Stripe sig { returns(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Zip) } attr_accessor :zip sig { - params(acss_debit: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Blik, boleto: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Eps, fpx: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Fpx, giropay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Giropay, gopay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Klarna, konbini: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::KrCard, link: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Link, mb_way: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Oxxo, p24: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::P24, payco: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Payco, paynow: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Paynow, paypal: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Paypal, payto: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Payto, pix: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Pix, promptpay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Promptpay, qris: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Qris, radar_options: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Sofort, swish: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Swish, twint: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::WechatPay, zip: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Zip).void + params(acss_debit: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Blik, boleto: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Eps, fpx: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Fpx, giropay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Giropay, gopay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Klarna, konbini: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::KrCard, link: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Link, mb_way: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Oxxo, p24: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::P24, pay_by_bank: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::PayByBank, payco: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Payco, paynow: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Paynow, paypal: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Paypal, payto: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Payto, pix: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Pix, promptpay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Promptpay, qris: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Qris, radar_options: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Sofort, swish: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Swish, twint: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::WechatPay, zip: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Zip).void } def initialize( acss_debit: nil, @@ -1672,6 +1682,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, diff --git a/rbi/stripe/resources/payment_intent.rbi b/rbi/stripe/resources/payment_intent.rbi index 522571409..13a31ac6f 100644 --- a/rbi/stripe/resources/payment_intent.rbi +++ b/rbi/stripe/resources/payment_intent.rbi @@ -1754,6 +1754,7 @@ module Stripe sig { returns(String) } attr_reader :setup_future_usage end + class PayByBank < Stripe::StripeObject; end class Payco < Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(String) } @@ -2183,6 +2184,9 @@ module Stripe # Attribute for field p24 sig { returns(P24) } attr_reader :p24 + # Attribute for field pay_by_bank + sig { returns(PayByBank) } + attr_reader :pay_by_bank # Attribute for field payco sig { returns(Payco) } attr_reader :payco @@ -3484,6 +3488,9 @@ module Stripe attr_accessor :bank sig { params(bank: String).void } def initialize(bank: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams @@ -3712,6 +3719,9 @@ module Stripe # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. sig { returns(::Stripe::PaymentIntent::CreateParams::PaymentMethodData::P24) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + sig { returns(::Stripe::PaymentIntent::CreateParams::PaymentMethodData::PayByBank) } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. sig { returns(::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Payco) } attr_accessor :payco @@ -3773,7 +3783,7 @@ module Stripe sig { returns(::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Zip) } attr_accessor :zip sig { - params(acss_debit: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Blik, boleto: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Eps, fpx: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Fpx, giropay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Giropay, gopay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Klarna, konbini: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::KrCard, link: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Link, mb_way: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Oxxo, p24: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::P24, payco: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Payco, paynow: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Paynow, paypal: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Paypal, payto: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Payto, pix: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Pix, promptpay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Promptpay, qris: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Qris, radar_options: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Sofort, swish: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Swish, twint: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::WechatPay, zip: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Zip).void + params(acss_debit: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Blik, boleto: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Eps, fpx: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Fpx, giropay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Giropay, gopay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Klarna, konbini: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::KrCard, link: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Link, mb_way: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Oxxo, p24: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::P24, pay_by_bank: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::PayByBank, payco: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Payco, paynow: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Paynow, paypal: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Paypal, payto: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Payto, pix: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Pix, promptpay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Promptpay, qris: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Qris, radar_options: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Sofort, swish: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Swish, twint: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::WechatPay, zip: ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Zip).void } def initialize( acss_debit: nil, @@ -3811,6 +3821,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -4845,6 +4856,9 @@ module Stripe attr_accessor :tos_shown_and_accepted sig { params(setup_future_usage: String, tos_shown_and_accepted: T::Boolean).void } def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams # Controls when the funds are captured from the customer's account. @@ -5518,6 +5532,11 @@ module Stripe # If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options. sig { returns(T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::P24)) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options. + sig { + returns(T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::PayByBank)) + } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. sig { returns(T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Payco)) @@ -5605,7 +5624,7 @@ module Stripe sig { returns(T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Zip)) } attr_accessor :zip sig { - params(acss_debit: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Alipay), alma: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Bancontact), blik: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Blik), boleto: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Boleto), card: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::CardPresent), cashapp: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Cashapp), customer_balance: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Eps), fpx: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Fpx), giropay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Giropay), gopay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Gopay), grabpay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Grabpay), id_bank_transfer: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::IdBankTransfer), ideal: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Ideal), interac_present: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Klarna), konbini: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::KrCard), link: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Link), mb_way: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::MbWay), mobilepay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Oxxo), p24: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::P24), payco: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Payco), paynow: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Paynow), paypal: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Pix), promptpay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Promptpay), qris: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Qris), rechnung: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Rechnung), revolut_pay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::SamsungPay), sepa_debit: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::SepaDebit), shopeepay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Shopeepay), sofort: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Sofort), swish: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Swish), twint: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Twint), us_bank_account: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::WechatPay), zip: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Zip)).void + params(acss_debit: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Alipay), alma: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Bancontact), blik: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Blik), boleto: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Boleto), card: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::CardPresent), cashapp: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Cashapp), customer_balance: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Eps), fpx: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Fpx), giropay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Giropay), gopay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Gopay), grabpay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Grabpay), id_bank_transfer: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::IdBankTransfer), ideal: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Ideal), interac_present: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Klarna), konbini: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::KrCard), link: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Link), mb_way: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::MbWay), mobilepay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Oxxo), p24: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::PayByBank), payco: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Payco), paynow: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Paynow), paypal: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Pix), promptpay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Promptpay), qris: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Qris), rechnung: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Rechnung), revolut_pay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::SamsungPay), sepa_debit: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::SepaDebit), shopeepay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Shopeepay), sofort: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Sofort), swish: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Swish), twint: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Twint), us_bank_account: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::WechatPay), zip: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Zip)).void } def initialize( acss_debit: nil, @@ -5642,6 +5661,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -6876,6 +6896,9 @@ module Stripe attr_accessor :bank sig { params(bank: String).void } def initialize(bank: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams @@ -7104,6 +7127,9 @@ module Stripe # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. sig { returns(::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::P24) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + sig { returns(::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::PayByBank) } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. sig { returns(::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Payco) } attr_accessor :payco @@ -7165,7 +7191,7 @@ module Stripe sig { returns(::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Zip) } attr_accessor :zip sig { - params(acss_debit: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Blik, boleto: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Eps, fpx: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Fpx, giropay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Giropay, gopay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Klarna, konbini: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::KrCard, link: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Link, mb_way: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Oxxo, p24: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::P24, payco: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Payco, paynow: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Paynow, paypal: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Paypal, payto: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Payto, pix: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Pix, promptpay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Promptpay, qris: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Qris, radar_options: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Sofort, swish: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Swish, twint: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::WechatPay, zip: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Zip).void + params(acss_debit: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Blik, boleto: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Eps, fpx: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Fpx, giropay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Giropay, gopay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Klarna, konbini: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::KrCard, link: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Link, mb_way: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Oxxo, p24: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::P24, pay_by_bank: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::PayByBank, payco: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Payco, paynow: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Paynow, paypal: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Paypal, payto: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Payto, pix: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Pix, promptpay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Promptpay, qris: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Qris, radar_options: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Sofort, swish: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Swish, twint: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::WechatPay, zip: ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Zip).void } def initialize( acss_debit: nil, @@ -7203,6 +7229,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -8237,6 +8264,9 @@ module Stripe attr_accessor :tos_shown_and_accepted sig { params(setup_future_usage: String, tos_shown_and_accepted: T::Boolean).void } def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams # Controls when the funds are captured from the customer's account. @@ -8910,6 +8940,11 @@ module Stripe # If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options. sig { returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::P24)) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options. + sig { + returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::PayByBank)) + } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. sig { returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Payco)) @@ -8997,7 +9032,7 @@ module Stripe sig { returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Zip)) } attr_accessor :zip sig { - params(acss_debit: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Alipay), alma: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Bancontact), blik: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Blik), boleto: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Boleto), card: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::CardPresent), cashapp: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Cashapp), customer_balance: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Eps), fpx: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Fpx), giropay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Giropay), gopay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Gopay), grabpay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Grabpay), id_bank_transfer: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::IdBankTransfer), ideal: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Ideal), interac_present: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Klarna), konbini: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::KrCard), link: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Link), mb_way: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::MbWay), mobilepay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Oxxo), p24: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::P24), payco: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Payco), paynow: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Paynow), paypal: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Pix), promptpay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Promptpay), qris: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Qris), rechnung: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Rechnung), revolut_pay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::SamsungPay), sepa_debit: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::SepaDebit), shopeepay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Shopeepay), sofort: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Sofort), swish: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Swish), twint: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Twint), us_bank_account: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::WechatPay), zip: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Zip)).void + params(acss_debit: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Alipay), alma: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Bancontact), blik: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Blik), boleto: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Boleto), card: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::CardPresent), cashapp: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Cashapp), customer_balance: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Eps), fpx: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Fpx), giropay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Giropay), gopay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Gopay), grabpay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Grabpay), id_bank_transfer: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::IdBankTransfer), ideal: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Ideal), interac_present: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Klarna), konbini: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::KrCard), link: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Link), mb_way: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::MbWay), mobilepay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Oxxo), p24: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::PayByBank), payco: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Payco), paynow: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Paynow), paypal: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Pix), promptpay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Promptpay), qris: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Qris), rechnung: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Rechnung), revolut_pay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::SamsungPay), sepa_debit: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::SepaDebit), shopeepay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Shopeepay), sofort: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Sofort), swish: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Swish), twint: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Twint), us_bank_account: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::WechatPay), zip: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Zip)).void } def initialize( acss_debit: nil, @@ -9034,6 +9069,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -11007,6 +11043,9 @@ module Stripe attr_accessor :bank sig { params(bank: String).void } def initialize(bank: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams @@ -11235,6 +11274,9 @@ module Stripe # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. sig { returns(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::P24) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + sig { returns(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::PayByBank) } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. sig { returns(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Payco) } attr_accessor :payco @@ -11296,7 +11338,7 @@ module Stripe sig { returns(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Zip) } attr_accessor :zip sig { - params(acss_debit: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::BillingDetails, blik: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Blik, boleto: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Boleto, cashapp: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Eps, fpx: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Fpx, giropay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Giropay, gopay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Gopay, grabpay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Ideal, interac_present: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Klarna, konbini: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Konbini, kr_card: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::KrCard, link: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Link, mb_way: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Oxxo, p24: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::P24, payco: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Payco, paynow: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Paynow, paypal: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Paypal, payto: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Payto, pix: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Pix, promptpay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Promptpay, qris: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Qris, radar_options: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Sofort, swish: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Swish, twint: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::WechatPay, zip: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Zip).void + params(acss_debit: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::BillingDetails, blik: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Blik, boleto: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Boleto, cashapp: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Eps, fpx: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Fpx, giropay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Giropay, gopay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Gopay, grabpay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Ideal, interac_present: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Klarna, konbini: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Konbini, kr_card: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::KrCard, link: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Link, mb_way: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Oxxo, p24: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::P24, pay_by_bank: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::PayByBank, payco: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Payco, paynow: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Paynow, paypal: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Paypal, payto: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Payto, pix: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Pix, promptpay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Promptpay, qris: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Qris, radar_options: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Sofort, swish: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Swish, twint: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::WechatPay, zip: ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Zip).void } def initialize( acss_debit: nil, @@ -11334,6 +11376,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -12368,6 +12411,9 @@ module Stripe attr_accessor :tos_shown_and_accepted sig { params(setup_future_usage: String, tos_shown_and_accepted: T::Boolean).void } def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams # Controls when the funds are captured from the customer's account. @@ -13047,6 +13093,11 @@ module Stripe returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::P24)) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options. + sig { + returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::PayByBank)) + } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. sig { returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Payco)) @@ -13138,7 +13189,7 @@ module Stripe } attr_accessor :zip sig { - params(acss_debit: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Alipay), alma: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Bancontact), blik: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Blik), boleto: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Boleto), card: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::CardPresent), cashapp: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Cashapp), customer_balance: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Eps), fpx: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Fpx), giropay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Giropay), gopay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Gopay), grabpay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Grabpay), id_bank_transfer: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::IdBankTransfer), ideal: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Ideal), interac_present: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Klarna), konbini: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::KrCard), link: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Link), mb_way: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::MbWay), mobilepay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Oxxo), p24: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::P24), payco: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Payco), paynow: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Paynow), paypal: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Pix), promptpay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Promptpay), qris: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Qris), rechnung: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Rechnung), revolut_pay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::SamsungPay), sepa_debit: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::SepaDebit), shopeepay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Shopeepay), sofort: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Sofort), swish: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Swish), twint: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Twint), us_bank_account: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::WechatPay), zip: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Zip)).void + params(acss_debit: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Alipay), alma: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Bancontact), blik: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Blik), boleto: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Boleto), card: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::CardPresent), cashapp: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Cashapp), customer_balance: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Eps), fpx: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Fpx), giropay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Giropay), gopay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Gopay), grabpay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Grabpay), id_bank_transfer: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::IdBankTransfer), ideal: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Ideal), interac_present: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Klarna), konbini: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::KrCard), link: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Link), mb_way: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::MbWay), mobilepay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Oxxo), p24: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::PayByBank), payco: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Payco), paynow: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Paynow), paypal: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Pix), promptpay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Promptpay), qris: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Qris), rechnung: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Rechnung), revolut_pay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::SamsungPay), sepa_debit: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::SepaDebit), shopeepay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Shopeepay), sofort: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Sofort), swish: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Swish), twint: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Twint), us_bank_account: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::WechatPay), zip: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Zip)).void } def initialize( acss_debit: nil, @@ -13175,6 +13226,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, diff --git a/rbi/stripe/resources/payment_method.rbi b/rbi/stripe/resources/payment_method.rbi index 07fa6b699..cb84eb7d2 100644 --- a/rbi/stripe/resources/payment_method.rbi +++ b/rbi/stripe/resources/payment_method.rbi @@ -680,6 +680,7 @@ module Stripe sig { returns(T.nilable(String)) } attr_reader :bank end + class PayByBank < Stripe::StripeObject; end class Payco < Stripe::StripeObject; end class Paynow < Stripe::StripeObject; end class Paypal < Stripe::StripeObject @@ -955,6 +956,9 @@ module Stripe # Attribute for field p24 sig { returns(P24) } attr_reader :p24 + # Attribute for field pay_by_bank + sig { returns(PayByBank) } + attr_reader :pay_by_bank # Attribute for field payco sig { returns(Payco) } attr_reader :payco @@ -1303,6 +1307,9 @@ module Stripe attr_accessor :bank sig { params(bank: String).void } def initialize(bank: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams @@ -1538,6 +1545,9 @@ module Stripe # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. sig { returns(::Stripe::PaymentMethod::CreateParams::P24) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + sig { returns(::Stripe::PaymentMethod::CreateParams::PayByBank) } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. sig { returns(::Stripe::PaymentMethod::CreateParams::Payco) } attr_accessor :payco @@ -1602,7 +1612,7 @@ module Stripe sig { returns(::Stripe::PaymentMethod::CreateParams::Zip) } attr_accessor :zip sig { - params(acss_debit: ::Stripe::PaymentMethod::CreateParams::AcssDebit, affirm: ::Stripe::PaymentMethod::CreateParams::Affirm, afterpay_clearpay: ::Stripe::PaymentMethod::CreateParams::AfterpayClearpay, alipay: ::Stripe::PaymentMethod::CreateParams::Alipay, allow_redisplay: String, alma: ::Stripe::PaymentMethod::CreateParams::Alma, amazon_pay: ::Stripe::PaymentMethod::CreateParams::AmazonPay, au_becs_debit: ::Stripe::PaymentMethod::CreateParams::AuBecsDebit, bacs_debit: ::Stripe::PaymentMethod::CreateParams::BacsDebit, bancontact: ::Stripe::PaymentMethod::CreateParams::Bancontact, billing_details: ::Stripe::PaymentMethod::CreateParams::BillingDetails, blik: ::Stripe::PaymentMethod::CreateParams::Blik, boleto: ::Stripe::PaymentMethod::CreateParams::Boleto, card: ::Stripe::PaymentMethod::CreateParams::Card, cashapp: ::Stripe::PaymentMethod::CreateParams::Cashapp, customer: String, customer_balance: ::Stripe::PaymentMethod::CreateParams::CustomerBalance, eps: ::Stripe::PaymentMethod::CreateParams::Eps, expand: T::Array[String], fpx: ::Stripe::PaymentMethod::CreateParams::Fpx, giropay: ::Stripe::PaymentMethod::CreateParams::Giropay, gopay: ::Stripe::PaymentMethod::CreateParams::Gopay, grabpay: ::Stripe::PaymentMethod::CreateParams::Grabpay, id_bank_transfer: ::Stripe::PaymentMethod::CreateParams::IdBankTransfer, ideal: ::Stripe::PaymentMethod::CreateParams::Ideal, interac_present: ::Stripe::PaymentMethod::CreateParams::InteracPresent, kakao_pay: ::Stripe::PaymentMethod::CreateParams::KakaoPay, klarna: ::Stripe::PaymentMethod::CreateParams::Klarna, konbini: ::Stripe::PaymentMethod::CreateParams::Konbini, kr_card: ::Stripe::PaymentMethod::CreateParams::KrCard, link: ::Stripe::PaymentMethod::CreateParams::Link, mb_way: ::Stripe::PaymentMethod::CreateParams::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::PaymentMethod::CreateParams::Mobilepay, multibanco: ::Stripe::PaymentMethod::CreateParams::Multibanco, naver_pay: ::Stripe::PaymentMethod::CreateParams::NaverPay, oxxo: ::Stripe::PaymentMethod::CreateParams::Oxxo, p24: ::Stripe::PaymentMethod::CreateParams::P24, payco: ::Stripe::PaymentMethod::CreateParams::Payco, payment_method: String, paynow: ::Stripe::PaymentMethod::CreateParams::Paynow, paypal: ::Stripe::PaymentMethod::CreateParams::Paypal, payto: ::Stripe::PaymentMethod::CreateParams::Payto, pix: ::Stripe::PaymentMethod::CreateParams::Pix, promptpay: ::Stripe::PaymentMethod::CreateParams::Promptpay, qris: ::Stripe::PaymentMethod::CreateParams::Qris, radar_options: ::Stripe::PaymentMethod::CreateParams::RadarOptions, rechnung: ::Stripe::PaymentMethod::CreateParams::Rechnung, revolut_pay: ::Stripe::PaymentMethod::CreateParams::RevolutPay, samsung_pay: ::Stripe::PaymentMethod::CreateParams::SamsungPay, sepa_debit: ::Stripe::PaymentMethod::CreateParams::SepaDebit, shopeepay: ::Stripe::PaymentMethod::CreateParams::Shopeepay, sofort: ::Stripe::PaymentMethod::CreateParams::Sofort, swish: ::Stripe::PaymentMethod::CreateParams::Swish, twint: ::Stripe::PaymentMethod::CreateParams::Twint, type: String, us_bank_account: ::Stripe::PaymentMethod::CreateParams::UsBankAccount, wechat_pay: ::Stripe::PaymentMethod::CreateParams::WechatPay, zip: ::Stripe::PaymentMethod::CreateParams::Zip).void + params(acss_debit: ::Stripe::PaymentMethod::CreateParams::AcssDebit, affirm: ::Stripe::PaymentMethod::CreateParams::Affirm, afterpay_clearpay: ::Stripe::PaymentMethod::CreateParams::AfterpayClearpay, alipay: ::Stripe::PaymentMethod::CreateParams::Alipay, allow_redisplay: String, alma: ::Stripe::PaymentMethod::CreateParams::Alma, amazon_pay: ::Stripe::PaymentMethod::CreateParams::AmazonPay, au_becs_debit: ::Stripe::PaymentMethod::CreateParams::AuBecsDebit, bacs_debit: ::Stripe::PaymentMethod::CreateParams::BacsDebit, bancontact: ::Stripe::PaymentMethod::CreateParams::Bancontact, billing_details: ::Stripe::PaymentMethod::CreateParams::BillingDetails, blik: ::Stripe::PaymentMethod::CreateParams::Blik, boleto: ::Stripe::PaymentMethod::CreateParams::Boleto, card: ::Stripe::PaymentMethod::CreateParams::Card, cashapp: ::Stripe::PaymentMethod::CreateParams::Cashapp, customer: String, customer_balance: ::Stripe::PaymentMethod::CreateParams::CustomerBalance, eps: ::Stripe::PaymentMethod::CreateParams::Eps, expand: T::Array[String], fpx: ::Stripe::PaymentMethod::CreateParams::Fpx, giropay: ::Stripe::PaymentMethod::CreateParams::Giropay, gopay: ::Stripe::PaymentMethod::CreateParams::Gopay, grabpay: ::Stripe::PaymentMethod::CreateParams::Grabpay, id_bank_transfer: ::Stripe::PaymentMethod::CreateParams::IdBankTransfer, ideal: ::Stripe::PaymentMethod::CreateParams::Ideal, interac_present: ::Stripe::PaymentMethod::CreateParams::InteracPresent, kakao_pay: ::Stripe::PaymentMethod::CreateParams::KakaoPay, klarna: ::Stripe::PaymentMethod::CreateParams::Klarna, konbini: ::Stripe::PaymentMethod::CreateParams::Konbini, kr_card: ::Stripe::PaymentMethod::CreateParams::KrCard, link: ::Stripe::PaymentMethod::CreateParams::Link, mb_way: ::Stripe::PaymentMethod::CreateParams::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::PaymentMethod::CreateParams::Mobilepay, multibanco: ::Stripe::PaymentMethod::CreateParams::Multibanco, naver_pay: ::Stripe::PaymentMethod::CreateParams::NaverPay, oxxo: ::Stripe::PaymentMethod::CreateParams::Oxxo, p24: ::Stripe::PaymentMethod::CreateParams::P24, pay_by_bank: ::Stripe::PaymentMethod::CreateParams::PayByBank, payco: ::Stripe::PaymentMethod::CreateParams::Payco, payment_method: String, paynow: ::Stripe::PaymentMethod::CreateParams::Paynow, paypal: ::Stripe::PaymentMethod::CreateParams::Paypal, payto: ::Stripe::PaymentMethod::CreateParams::Payto, pix: ::Stripe::PaymentMethod::CreateParams::Pix, promptpay: ::Stripe::PaymentMethod::CreateParams::Promptpay, qris: ::Stripe::PaymentMethod::CreateParams::Qris, radar_options: ::Stripe::PaymentMethod::CreateParams::RadarOptions, rechnung: ::Stripe::PaymentMethod::CreateParams::Rechnung, revolut_pay: ::Stripe::PaymentMethod::CreateParams::RevolutPay, samsung_pay: ::Stripe::PaymentMethod::CreateParams::SamsungPay, sepa_debit: ::Stripe::PaymentMethod::CreateParams::SepaDebit, shopeepay: ::Stripe::PaymentMethod::CreateParams::Shopeepay, sofort: ::Stripe::PaymentMethod::CreateParams::Sofort, swish: ::Stripe::PaymentMethod::CreateParams::Swish, twint: ::Stripe::PaymentMethod::CreateParams::Twint, type: String, us_bank_account: ::Stripe::PaymentMethod::CreateParams::UsBankAccount, wechat_pay: ::Stripe::PaymentMethod::CreateParams::WechatPay, zip: ::Stripe::PaymentMethod::CreateParams::Zip).void } def initialize( acss_debit: nil, @@ -1643,6 +1653,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, payment_method: nil, paynow: nil, @@ -1754,6 +1765,9 @@ module Stripe attr_accessor :funding sig { params(funding: String).void } def initialize(funding: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payto < Stripe::RequestParams # The account number for the bank account. @@ -1799,6 +1813,9 @@ module Stripe # If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. sig { returns(::Stripe::PaymentMethod::UpdateParams::NaverPay) } attr_accessor :naver_pay + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + sig { returns(::Stripe::PaymentMethod::UpdateParams::PayByBank) } + attr_accessor :pay_by_bank # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. sig { returns(::Stripe::PaymentMethod::UpdateParams::Payto) } attr_accessor :payto @@ -1806,7 +1823,7 @@ module Stripe sig { returns(::Stripe::PaymentMethod::UpdateParams::UsBankAccount) } attr_accessor :us_bank_account sig { - params(allow_redisplay: String, billing_details: ::Stripe::PaymentMethod::UpdateParams::BillingDetails, card: ::Stripe::PaymentMethod::UpdateParams::Card, expand: T::Array[String], link: ::Stripe::PaymentMethod::UpdateParams::Link, metadata: T.nilable(T::Hash[String, String]), naver_pay: ::Stripe::PaymentMethod::UpdateParams::NaverPay, payto: ::Stripe::PaymentMethod::UpdateParams::Payto, us_bank_account: ::Stripe::PaymentMethod::UpdateParams::UsBankAccount).void + params(allow_redisplay: String, billing_details: ::Stripe::PaymentMethod::UpdateParams::BillingDetails, card: ::Stripe::PaymentMethod::UpdateParams::Card, expand: T::Array[String], link: ::Stripe::PaymentMethod::UpdateParams::Link, metadata: T.nilable(T::Hash[String, String]), naver_pay: ::Stripe::PaymentMethod::UpdateParams::NaverPay, pay_by_bank: ::Stripe::PaymentMethod::UpdateParams::PayByBank, payto: ::Stripe::PaymentMethod::UpdateParams::Payto, us_bank_account: ::Stripe::PaymentMethod::UpdateParams::UsBankAccount).void } def initialize( allow_redisplay: nil, @@ -1816,6 +1833,7 @@ module Stripe link: nil, metadata: nil, naver_pay: nil, + pay_by_bank: nil, payto: nil, us_bank_account: nil ); end diff --git a/rbi/stripe/resources/payment_method_configuration.rbi b/rbi/stripe/resources/payment_method_configuration.rbi index f415a4653..6c739561d 100644 --- a/rbi/stripe/resources/payment_method_configuration.rbi +++ b/rbi/stripe/resources/payment_method_configuration.rbi @@ -626,6 +626,25 @@ module Stripe sig { returns(DisplayPreference) } attr_reader :display_preference end + class PayByBank < Stripe::StripeObject + class DisplayPreference < Stripe::StripeObject + # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :overridable + # The account's display preference. + sig { returns(String) } + attr_reader :preference + # The effective display preference value. + sig { returns(String) } + attr_reader :value + end + # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + sig { returns(T::Boolean) } + attr_reader :available + # Attribute for field display_preference + sig { returns(DisplayPreference) } + attr_reader :display_preference + end class Paynow < Stripe::StripeObject class DisplayPreference < Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. @@ -1012,6 +1031,9 @@ module Stripe # For child configs, the configuration's parent configuration. sig { returns(T.nilable(String)) } attr_reader :parent + # Attribute for field pay_by_bank + sig { returns(PayByBank) } + attr_reader :pay_by_bank # Attribute for field paynow sig { returns(Paynow) } attr_reader :paynow @@ -1658,6 +1680,24 @@ module Stripe } def initialize(display_preference: nil); end end + class PayByBank < Stripe::RequestParams + class DisplayPreference < Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(String) } + attr_accessor :preference + sig { params(preference: String).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { + returns(::Stripe::PaymentMethodConfiguration::CreateParams::PayByBank::DisplayPreference) + } + attr_accessor :display_preference + sig { + params(display_preference: ::Stripe::PaymentMethodConfiguration::CreateParams::PayByBank::DisplayPreference).void + } + def initialize(display_preference: nil); end + end class Paynow < Stripe::RequestParams class DisplayPreference < Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -2014,6 +2054,9 @@ module Stripe # Configuration's parent configuration. Specify to create a child configuration. sig { returns(String) } attr_accessor :parent + # Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments. + sig { returns(::Stripe::PaymentMethodConfiguration::CreateParams::PayByBank) } + attr_accessor :pay_by_bank # PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://stripe.com/docs/payments/paynow) for more details. sig { returns(::Stripe::PaymentMethodConfiguration::CreateParams::Paynow) } attr_accessor :paynow @@ -2057,7 +2100,7 @@ module Stripe sig { returns(::Stripe::PaymentMethodConfiguration::CreateParams::Zip) } attr_accessor :zip sig { - params(acss_debit: ::Stripe::PaymentMethodConfiguration::CreateParams::AcssDebit, affirm: ::Stripe::PaymentMethodConfiguration::CreateParams::Affirm, afterpay_clearpay: ::Stripe::PaymentMethodConfiguration::CreateParams::AfterpayClearpay, alipay: ::Stripe::PaymentMethodConfiguration::CreateParams::Alipay, alma: ::Stripe::PaymentMethodConfiguration::CreateParams::Alma, amazon_pay: ::Stripe::PaymentMethodConfiguration::CreateParams::AmazonPay, apple_pay: ::Stripe::PaymentMethodConfiguration::CreateParams::ApplePay, apple_pay_later: ::Stripe::PaymentMethodConfiguration::CreateParams::ApplePayLater, au_becs_debit: ::Stripe::PaymentMethodConfiguration::CreateParams::AuBecsDebit, bacs_debit: ::Stripe::PaymentMethodConfiguration::CreateParams::BacsDebit, bancontact: ::Stripe::PaymentMethodConfiguration::CreateParams::Bancontact, blik: ::Stripe::PaymentMethodConfiguration::CreateParams::Blik, boleto: ::Stripe::PaymentMethodConfiguration::CreateParams::Boleto, card: ::Stripe::PaymentMethodConfiguration::CreateParams::Card, cartes_bancaires: ::Stripe::PaymentMethodConfiguration::CreateParams::CartesBancaires, cashapp: ::Stripe::PaymentMethodConfiguration::CreateParams::Cashapp, customer_balance: ::Stripe::PaymentMethodConfiguration::CreateParams::CustomerBalance, eps: ::Stripe::PaymentMethodConfiguration::CreateParams::Eps, expand: T::Array[String], fpx: ::Stripe::PaymentMethodConfiguration::CreateParams::Fpx, giropay: ::Stripe::PaymentMethodConfiguration::CreateParams::Giropay, google_pay: ::Stripe::PaymentMethodConfiguration::CreateParams::GooglePay, gopay: ::Stripe::PaymentMethodConfiguration::CreateParams::Gopay, grabpay: ::Stripe::PaymentMethodConfiguration::CreateParams::Grabpay, id_bank_transfer: ::Stripe::PaymentMethodConfiguration::CreateParams::IdBankTransfer, ideal: ::Stripe::PaymentMethodConfiguration::CreateParams::Ideal, jcb: ::Stripe::PaymentMethodConfiguration::CreateParams::Jcb, klarna: ::Stripe::PaymentMethodConfiguration::CreateParams::Klarna, konbini: ::Stripe::PaymentMethodConfiguration::CreateParams::Konbini, link: ::Stripe::PaymentMethodConfiguration::CreateParams::Link, mobilepay: ::Stripe::PaymentMethodConfiguration::CreateParams::Mobilepay, multibanco: ::Stripe::PaymentMethodConfiguration::CreateParams::Multibanco, name: String, oxxo: ::Stripe::PaymentMethodConfiguration::CreateParams::Oxxo, p24: ::Stripe::PaymentMethodConfiguration::CreateParams::P24, parent: String, paynow: ::Stripe::PaymentMethodConfiguration::CreateParams::Paynow, paypal: ::Stripe::PaymentMethodConfiguration::CreateParams::Paypal, payto: ::Stripe::PaymentMethodConfiguration::CreateParams::Payto, promptpay: ::Stripe::PaymentMethodConfiguration::CreateParams::Promptpay, qris: ::Stripe::PaymentMethodConfiguration::CreateParams::Qris, revolut_pay: ::Stripe::PaymentMethodConfiguration::CreateParams::RevolutPay, sepa_debit: ::Stripe::PaymentMethodConfiguration::CreateParams::SepaDebit, shopeepay: ::Stripe::PaymentMethodConfiguration::CreateParams::Shopeepay, sofort: ::Stripe::PaymentMethodConfiguration::CreateParams::Sofort, swish: ::Stripe::PaymentMethodConfiguration::CreateParams::Swish, twint: ::Stripe::PaymentMethodConfiguration::CreateParams::Twint, us_bank_account: ::Stripe::PaymentMethodConfiguration::CreateParams::UsBankAccount, wechat_pay: ::Stripe::PaymentMethodConfiguration::CreateParams::WechatPay, zip: ::Stripe::PaymentMethodConfiguration::CreateParams::Zip).void + params(acss_debit: ::Stripe::PaymentMethodConfiguration::CreateParams::AcssDebit, affirm: ::Stripe::PaymentMethodConfiguration::CreateParams::Affirm, afterpay_clearpay: ::Stripe::PaymentMethodConfiguration::CreateParams::AfterpayClearpay, alipay: ::Stripe::PaymentMethodConfiguration::CreateParams::Alipay, alma: ::Stripe::PaymentMethodConfiguration::CreateParams::Alma, amazon_pay: ::Stripe::PaymentMethodConfiguration::CreateParams::AmazonPay, apple_pay: ::Stripe::PaymentMethodConfiguration::CreateParams::ApplePay, apple_pay_later: ::Stripe::PaymentMethodConfiguration::CreateParams::ApplePayLater, au_becs_debit: ::Stripe::PaymentMethodConfiguration::CreateParams::AuBecsDebit, bacs_debit: ::Stripe::PaymentMethodConfiguration::CreateParams::BacsDebit, bancontact: ::Stripe::PaymentMethodConfiguration::CreateParams::Bancontact, blik: ::Stripe::PaymentMethodConfiguration::CreateParams::Blik, boleto: ::Stripe::PaymentMethodConfiguration::CreateParams::Boleto, card: ::Stripe::PaymentMethodConfiguration::CreateParams::Card, cartes_bancaires: ::Stripe::PaymentMethodConfiguration::CreateParams::CartesBancaires, cashapp: ::Stripe::PaymentMethodConfiguration::CreateParams::Cashapp, customer_balance: ::Stripe::PaymentMethodConfiguration::CreateParams::CustomerBalance, eps: ::Stripe::PaymentMethodConfiguration::CreateParams::Eps, expand: T::Array[String], fpx: ::Stripe::PaymentMethodConfiguration::CreateParams::Fpx, giropay: ::Stripe::PaymentMethodConfiguration::CreateParams::Giropay, google_pay: ::Stripe::PaymentMethodConfiguration::CreateParams::GooglePay, gopay: ::Stripe::PaymentMethodConfiguration::CreateParams::Gopay, grabpay: ::Stripe::PaymentMethodConfiguration::CreateParams::Grabpay, id_bank_transfer: ::Stripe::PaymentMethodConfiguration::CreateParams::IdBankTransfer, ideal: ::Stripe::PaymentMethodConfiguration::CreateParams::Ideal, jcb: ::Stripe::PaymentMethodConfiguration::CreateParams::Jcb, klarna: ::Stripe::PaymentMethodConfiguration::CreateParams::Klarna, konbini: ::Stripe::PaymentMethodConfiguration::CreateParams::Konbini, link: ::Stripe::PaymentMethodConfiguration::CreateParams::Link, mobilepay: ::Stripe::PaymentMethodConfiguration::CreateParams::Mobilepay, multibanco: ::Stripe::PaymentMethodConfiguration::CreateParams::Multibanco, name: String, oxxo: ::Stripe::PaymentMethodConfiguration::CreateParams::Oxxo, p24: ::Stripe::PaymentMethodConfiguration::CreateParams::P24, parent: String, pay_by_bank: ::Stripe::PaymentMethodConfiguration::CreateParams::PayByBank, paynow: ::Stripe::PaymentMethodConfiguration::CreateParams::Paynow, paypal: ::Stripe::PaymentMethodConfiguration::CreateParams::Paypal, payto: ::Stripe::PaymentMethodConfiguration::CreateParams::Payto, promptpay: ::Stripe::PaymentMethodConfiguration::CreateParams::Promptpay, qris: ::Stripe::PaymentMethodConfiguration::CreateParams::Qris, revolut_pay: ::Stripe::PaymentMethodConfiguration::CreateParams::RevolutPay, sepa_debit: ::Stripe::PaymentMethodConfiguration::CreateParams::SepaDebit, shopeepay: ::Stripe::PaymentMethodConfiguration::CreateParams::Shopeepay, sofort: ::Stripe::PaymentMethodConfiguration::CreateParams::Sofort, swish: ::Stripe::PaymentMethodConfiguration::CreateParams::Swish, twint: ::Stripe::PaymentMethodConfiguration::CreateParams::Twint, us_bank_account: ::Stripe::PaymentMethodConfiguration::CreateParams::UsBankAccount, wechat_pay: ::Stripe::PaymentMethodConfiguration::CreateParams::WechatPay, zip: ::Stripe::PaymentMethodConfiguration::CreateParams::Zip).void } def initialize( acss_debit: nil, @@ -2096,6 +2139,7 @@ module Stripe oxxo: nil, p24: nil, parent: nil, + pay_by_bank: nil, paynow: nil, paypal: nil, payto: nil, @@ -2696,6 +2740,24 @@ module Stripe } def initialize(display_preference: nil); end end + class PayByBank < Stripe::RequestParams + class DisplayPreference < Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(String) } + attr_accessor :preference + sig { params(preference: String).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { + returns(::Stripe::PaymentMethodConfiguration::UpdateParams::PayByBank::DisplayPreference) + } + attr_accessor :display_preference + sig { + params(display_preference: ::Stripe::PaymentMethodConfiguration::UpdateParams::PayByBank::DisplayPreference).void + } + def initialize(display_preference: nil); end + end class Paynow < Stripe::RequestParams class DisplayPreference < Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -3052,6 +3114,9 @@ module Stripe # Przelewy24 is a Poland-based payment method aggregator that allows customers to complete transactions online using bank transfers and other methods. Bank transfers account for 30% of online payments in Poland and Przelewy24 provides a way for customers to pay with over 165 banks. Check this [page](https://stripe.com/docs/payments/p24) for more details. sig { returns(::Stripe::PaymentMethodConfiguration::UpdateParams::P24) } attr_accessor :p24 + # Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments. + sig { returns(::Stripe::PaymentMethodConfiguration::UpdateParams::PayByBank) } + attr_accessor :pay_by_bank # PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://stripe.com/docs/payments/paynow) for more details. sig { returns(::Stripe::PaymentMethodConfiguration::UpdateParams::Paynow) } attr_accessor :paynow @@ -3095,7 +3160,7 @@ module Stripe sig { returns(::Stripe::PaymentMethodConfiguration::UpdateParams::Zip) } attr_accessor :zip sig { - params(acss_debit: ::Stripe::PaymentMethodConfiguration::UpdateParams::AcssDebit, active: T::Boolean, affirm: ::Stripe::PaymentMethodConfiguration::UpdateParams::Affirm, afterpay_clearpay: ::Stripe::PaymentMethodConfiguration::UpdateParams::AfterpayClearpay, alipay: ::Stripe::PaymentMethodConfiguration::UpdateParams::Alipay, alma: ::Stripe::PaymentMethodConfiguration::UpdateParams::Alma, amazon_pay: ::Stripe::PaymentMethodConfiguration::UpdateParams::AmazonPay, apple_pay: ::Stripe::PaymentMethodConfiguration::UpdateParams::ApplePay, apple_pay_later: ::Stripe::PaymentMethodConfiguration::UpdateParams::ApplePayLater, au_becs_debit: ::Stripe::PaymentMethodConfiguration::UpdateParams::AuBecsDebit, bacs_debit: ::Stripe::PaymentMethodConfiguration::UpdateParams::BacsDebit, bancontact: ::Stripe::PaymentMethodConfiguration::UpdateParams::Bancontact, blik: ::Stripe::PaymentMethodConfiguration::UpdateParams::Blik, boleto: ::Stripe::PaymentMethodConfiguration::UpdateParams::Boleto, card: ::Stripe::PaymentMethodConfiguration::UpdateParams::Card, cartes_bancaires: ::Stripe::PaymentMethodConfiguration::UpdateParams::CartesBancaires, cashapp: ::Stripe::PaymentMethodConfiguration::UpdateParams::Cashapp, customer_balance: ::Stripe::PaymentMethodConfiguration::UpdateParams::CustomerBalance, eps: ::Stripe::PaymentMethodConfiguration::UpdateParams::Eps, expand: T::Array[String], fpx: ::Stripe::PaymentMethodConfiguration::UpdateParams::Fpx, giropay: ::Stripe::PaymentMethodConfiguration::UpdateParams::Giropay, google_pay: ::Stripe::PaymentMethodConfiguration::UpdateParams::GooglePay, gopay: ::Stripe::PaymentMethodConfiguration::UpdateParams::Gopay, grabpay: ::Stripe::PaymentMethodConfiguration::UpdateParams::Grabpay, id_bank_transfer: ::Stripe::PaymentMethodConfiguration::UpdateParams::IdBankTransfer, ideal: ::Stripe::PaymentMethodConfiguration::UpdateParams::Ideal, jcb: ::Stripe::PaymentMethodConfiguration::UpdateParams::Jcb, klarna: ::Stripe::PaymentMethodConfiguration::UpdateParams::Klarna, konbini: ::Stripe::PaymentMethodConfiguration::UpdateParams::Konbini, link: ::Stripe::PaymentMethodConfiguration::UpdateParams::Link, mobilepay: ::Stripe::PaymentMethodConfiguration::UpdateParams::Mobilepay, multibanco: ::Stripe::PaymentMethodConfiguration::UpdateParams::Multibanco, name: String, oxxo: ::Stripe::PaymentMethodConfiguration::UpdateParams::Oxxo, p24: ::Stripe::PaymentMethodConfiguration::UpdateParams::P24, paynow: ::Stripe::PaymentMethodConfiguration::UpdateParams::Paynow, paypal: ::Stripe::PaymentMethodConfiguration::UpdateParams::Paypal, payto: ::Stripe::PaymentMethodConfiguration::UpdateParams::Payto, promptpay: ::Stripe::PaymentMethodConfiguration::UpdateParams::Promptpay, qris: ::Stripe::PaymentMethodConfiguration::UpdateParams::Qris, revolut_pay: ::Stripe::PaymentMethodConfiguration::UpdateParams::RevolutPay, sepa_debit: ::Stripe::PaymentMethodConfiguration::UpdateParams::SepaDebit, shopeepay: ::Stripe::PaymentMethodConfiguration::UpdateParams::Shopeepay, sofort: ::Stripe::PaymentMethodConfiguration::UpdateParams::Sofort, swish: ::Stripe::PaymentMethodConfiguration::UpdateParams::Swish, twint: ::Stripe::PaymentMethodConfiguration::UpdateParams::Twint, us_bank_account: ::Stripe::PaymentMethodConfiguration::UpdateParams::UsBankAccount, wechat_pay: ::Stripe::PaymentMethodConfiguration::UpdateParams::WechatPay, zip: ::Stripe::PaymentMethodConfiguration::UpdateParams::Zip).void + params(acss_debit: ::Stripe::PaymentMethodConfiguration::UpdateParams::AcssDebit, active: T::Boolean, affirm: ::Stripe::PaymentMethodConfiguration::UpdateParams::Affirm, afterpay_clearpay: ::Stripe::PaymentMethodConfiguration::UpdateParams::AfterpayClearpay, alipay: ::Stripe::PaymentMethodConfiguration::UpdateParams::Alipay, alma: ::Stripe::PaymentMethodConfiguration::UpdateParams::Alma, amazon_pay: ::Stripe::PaymentMethodConfiguration::UpdateParams::AmazonPay, apple_pay: ::Stripe::PaymentMethodConfiguration::UpdateParams::ApplePay, apple_pay_later: ::Stripe::PaymentMethodConfiguration::UpdateParams::ApplePayLater, au_becs_debit: ::Stripe::PaymentMethodConfiguration::UpdateParams::AuBecsDebit, bacs_debit: ::Stripe::PaymentMethodConfiguration::UpdateParams::BacsDebit, bancontact: ::Stripe::PaymentMethodConfiguration::UpdateParams::Bancontact, blik: ::Stripe::PaymentMethodConfiguration::UpdateParams::Blik, boleto: ::Stripe::PaymentMethodConfiguration::UpdateParams::Boleto, card: ::Stripe::PaymentMethodConfiguration::UpdateParams::Card, cartes_bancaires: ::Stripe::PaymentMethodConfiguration::UpdateParams::CartesBancaires, cashapp: ::Stripe::PaymentMethodConfiguration::UpdateParams::Cashapp, customer_balance: ::Stripe::PaymentMethodConfiguration::UpdateParams::CustomerBalance, eps: ::Stripe::PaymentMethodConfiguration::UpdateParams::Eps, expand: T::Array[String], fpx: ::Stripe::PaymentMethodConfiguration::UpdateParams::Fpx, giropay: ::Stripe::PaymentMethodConfiguration::UpdateParams::Giropay, google_pay: ::Stripe::PaymentMethodConfiguration::UpdateParams::GooglePay, gopay: ::Stripe::PaymentMethodConfiguration::UpdateParams::Gopay, grabpay: ::Stripe::PaymentMethodConfiguration::UpdateParams::Grabpay, id_bank_transfer: ::Stripe::PaymentMethodConfiguration::UpdateParams::IdBankTransfer, ideal: ::Stripe::PaymentMethodConfiguration::UpdateParams::Ideal, jcb: ::Stripe::PaymentMethodConfiguration::UpdateParams::Jcb, klarna: ::Stripe::PaymentMethodConfiguration::UpdateParams::Klarna, konbini: ::Stripe::PaymentMethodConfiguration::UpdateParams::Konbini, link: ::Stripe::PaymentMethodConfiguration::UpdateParams::Link, mobilepay: ::Stripe::PaymentMethodConfiguration::UpdateParams::Mobilepay, multibanco: ::Stripe::PaymentMethodConfiguration::UpdateParams::Multibanco, name: String, oxxo: ::Stripe::PaymentMethodConfiguration::UpdateParams::Oxxo, p24: ::Stripe::PaymentMethodConfiguration::UpdateParams::P24, pay_by_bank: ::Stripe::PaymentMethodConfiguration::UpdateParams::PayByBank, paynow: ::Stripe::PaymentMethodConfiguration::UpdateParams::Paynow, paypal: ::Stripe::PaymentMethodConfiguration::UpdateParams::Paypal, payto: ::Stripe::PaymentMethodConfiguration::UpdateParams::Payto, promptpay: ::Stripe::PaymentMethodConfiguration::UpdateParams::Promptpay, qris: ::Stripe::PaymentMethodConfiguration::UpdateParams::Qris, revolut_pay: ::Stripe::PaymentMethodConfiguration::UpdateParams::RevolutPay, sepa_debit: ::Stripe::PaymentMethodConfiguration::UpdateParams::SepaDebit, shopeepay: ::Stripe::PaymentMethodConfiguration::UpdateParams::Shopeepay, sofort: ::Stripe::PaymentMethodConfiguration::UpdateParams::Sofort, swish: ::Stripe::PaymentMethodConfiguration::UpdateParams::Swish, twint: ::Stripe::PaymentMethodConfiguration::UpdateParams::Twint, us_bank_account: ::Stripe::PaymentMethodConfiguration::UpdateParams::UsBankAccount, wechat_pay: ::Stripe::PaymentMethodConfiguration::UpdateParams::WechatPay, zip: ::Stripe::PaymentMethodConfiguration::UpdateParams::Zip).void } def initialize( acss_debit: nil, @@ -3134,6 +3199,7 @@ module Stripe name: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, paynow: nil, paypal: nil, payto: nil, diff --git a/rbi/stripe/resources/setup_intent.rbi b/rbi/stripe/resources/setup_intent.rbi index 457839de7..be9fcd604 100644 --- a/rbi/stripe/resources/setup_intent.rbi +++ b/rbi/stripe/resources/setup_intent.rbi @@ -822,6 +822,9 @@ module Stripe attr_accessor :bank sig { params(bank: String).void } def initialize(bank: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams @@ -1050,6 +1053,9 @@ module Stripe # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::P24) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::PayByBank) } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Payco) } attr_accessor :payco @@ -1111,7 +1117,7 @@ module Stripe sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Zip) } attr_accessor :zip sig { - params(acss_debit: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Blik, boleto: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Eps, fpx: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Fpx, giropay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Giropay, gopay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Klarna, konbini: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::KrCard, link: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Link, mb_way: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Oxxo, p24: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::P24, payco: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Payco, paynow: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Paynow, paypal: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Paypal, payto: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Payto, pix: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Pix, promptpay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Promptpay, qris: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Qris, radar_options: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Sofort, swish: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Swish, twint: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::WechatPay, zip: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Zip).void + params(acss_debit: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Blik, boleto: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Eps, fpx: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Fpx, giropay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Giropay, gopay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Klarna, konbini: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::KrCard, link: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Link, mb_way: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Oxxo, p24: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::P24, pay_by_bank: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::PayByBank, payco: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Payco, paynow: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Paynow, paypal: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Paypal, payto: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Payto, pix: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Pix, promptpay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Promptpay, qris: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Qris, radar_options: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Sofort, swish: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Swish, twint: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::WechatPay, zip: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Zip).void } def initialize( acss_debit: nil, @@ -1149,6 +1155,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -1960,6 +1967,9 @@ module Stripe attr_accessor :bank sig { params(bank: String).void } def initialize(bank: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams @@ -2188,6 +2198,9 @@ module Stripe # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::P24) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::PayByBank) } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Payco) } attr_accessor :payco @@ -2249,7 +2262,7 @@ module Stripe sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Zip) } attr_accessor :zip sig { - params(acss_debit: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Blik, boleto: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Eps, fpx: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Fpx, giropay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Giropay, gopay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Klarna, konbini: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::KrCard, link: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Link, mb_way: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Oxxo, p24: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::P24, payco: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Payco, paynow: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Paynow, paypal: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Paypal, payto: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Payto, pix: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Pix, promptpay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Promptpay, qris: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Qris, radar_options: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Sofort, swish: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Swish, twint: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::WechatPay, zip: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Zip).void + params(acss_debit: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Blik, boleto: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Eps, fpx: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Fpx, giropay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Giropay, gopay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Klarna, konbini: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::KrCard, link: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Link, mb_way: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Oxxo, p24: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::P24, pay_by_bank: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::PayByBank, payco: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Payco, paynow: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Paynow, paypal: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Paypal, payto: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Payto, pix: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Pix, promptpay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Promptpay, qris: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Qris, radar_options: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Sofort, swish: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Swish, twint: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::WechatPay, zip: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Zip).void } def initialize( acss_debit: nil, @@ -2287,6 +2300,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -3094,6 +3108,9 @@ module Stripe attr_accessor :bank sig { params(bank: String).void } def initialize(bank: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams @@ -3322,6 +3339,9 @@ module Stripe # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::P24) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::PayByBank) } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Payco) } attr_accessor :payco @@ -3383,7 +3403,7 @@ module Stripe sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Zip) } attr_accessor :zip sig { - params(acss_debit: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::BillingDetails, blik: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Blik, boleto: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Boleto, cashapp: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Eps, fpx: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Fpx, giropay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Giropay, gopay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Gopay, grabpay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Ideal, interac_present: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Klarna, konbini: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Konbini, kr_card: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::KrCard, link: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Link, mb_way: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Oxxo, p24: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::P24, payco: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Payco, paynow: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Paynow, paypal: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Paypal, payto: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Payto, pix: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Pix, promptpay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Promptpay, qris: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Qris, radar_options: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Sofort, swish: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Swish, twint: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::WechatPay, zip: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Zip).void + params(acss_debit: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::BillingDetails, blik: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Blik, boleto: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Boleto, cashapp: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Eps, fpx: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Fpx, giropay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Giropay, gopay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Gopay, grabpay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Ideal, interac_present: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Klarna, konbini: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Konbini, kr_card: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::KrCard, link: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Link, mb_way: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Oxxo, p24: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::P24, pay_by_bank: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::PayByBank, payco: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Payco, paynow: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Paynow, paypal: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Paypal, payto: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Payto, pix: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Pix, promptpay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Promptpay, qris: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Qris, radar_options: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Sofort, swish: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Swish, twint: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::WechatPay, zip: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Zip).void } def initialize( acss_debit: nil, @@ -3421,6 +3441,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, diff --git a/rbi/stripe/services/checkout/session_service.rbi b/rbi/stripe/services/checkout/session_service.rbi index cd25b28b8..e0d2076f0 100644 --- a/rbi/stripe/services/checkout/session_service.rbi +++ b/rbi/stripe/services/checkout/session_service.rbi @@ -1240,6 +1240,9 @@ module Stripe attr_accessor :tos_shown_and_accepted sig { params(setup_future_usage: String, tos_shown_and_accepted: T::Boolean).void } def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams # Controls when the funds will be captured from the customer's account. @@ -1624,6 +1627,11 @@ module Stripe returns(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::P24) } attr_accessor :p24 + # contains details about the Pay By Bank payment method options. + sig { + returns(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::PayByBank) + } + attr_accessor :pay_by_bank # contains details about the PAYCO payment method options. sig { returns(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Payco) @@ -1685,7 +1693,7 @@ module Stripe } attr_accessor :wechat_pay sig { - params(acss_debit: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AcssDebit, affirm: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Affirm, afterpay_clearpay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AfterpayClearpay, alipay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Alipay, amazon_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AmazonPay, au_becs_debit: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AuBecsDebit, bacs_debit: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::BacsDebit, bancontact: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Bancontact, boleto: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Boleto, card: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Card, cashapp: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Cashapp, customer_balance: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::CustomerBalance, eps: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Eps, fpx: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Fpx, giropay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Giropay, grabpay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Grabpay, ideal: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Ideal, kakao_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::KakaoPay, klarna: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Klarna, konbini: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Konbini, kr_card: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::KrCard, link: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Link, mobilepay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Mobilepay, multibanco: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Multibanco, naver_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::NaverPay, oxxo: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Oxxo, p24: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::P24, payco: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Payco, paynow: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Paynow, paypal: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Paypal, payto: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Payto, pix: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Pix, revolut_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::RevolutPay, samsung_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::SamsungPay, sepa_debit: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::SepaDebit, sofort: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Sofort, swish: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Swish, us_bank_account: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::UsBankAccount, wechat_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::WechatPay).void + params(acss_debit: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AcssDebit, affirm: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Affirm, afterpay_clearpay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AfterpayClearpay, alipay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Alipay, amazon_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AmazonPay, au_becs_debit: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AuBecsDebit, bacs_debit: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::BacsDebit, bancontact: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Bancontact, boleto: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Boleto, card: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Card, cashapp: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Cashapp, customer_balance: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::CustomerBalance, eps: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Eps, fpx: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Fpx, giropay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Giropay, grabpay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Grabpay, ideal: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Ideal, kakao_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::KakaoPay, klarna: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Klarna, konbini: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Konbini, kr_card: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::KrCard, link: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Link, mobilepay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Mobilepay, multibanco: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Multibanco, naver_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::NaverPay, oxxo: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Oxxo, p24: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::P24, pay_by_bank: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::PayByBank, payco: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Payco, paynow: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Paynow, paypal: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Paypal, payto: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Payto, pix: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Pix, revolut_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::RevolutPay, samsung_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::SamsungPay, sepa_debit: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::SepaDebit, sofort: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Sofort, swish: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Swish, us_bank_account: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::UsBankAccount, wechat_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::WechatPay).void } def initialize( acss_debit: nil, @@ -1715,6 +1723,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, diff --git a/rbi/stripe/services/payment_intent_service.rbi b/rbi/stripe/services/payment_intent_service.rbi index 9ec9da448..ef7ef58ca 100644 --- a/rbi/stripe/services/payment_intent_service.rbi +++ b/rbi/stripe/services/payment_intent_service.rbi @@ -1051,6 +1051,9 @@ module Stripe attr_accessor :bank sig { params(bank: String).void } def initialize(bank: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams @@ -1293,6 +1296,9 @@ module Stripe # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. sig { returns(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::P24) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + sig { returns(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::PayByBank) } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. sig { returns(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Payco) } attr_accessor :payco @@ -1358,7 +1364,7 @@ module Stripe sig { returns(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Zip) } attr_accessor :zip sig { - params(acss_debit: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Blik, boleto: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Eps, fpx: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Fpx, giropay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Giropay, gopay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Klarna, konbini: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::KrCard, link: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Link, mb_way: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Oxxo, p24: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::P24, payco: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Payco, paynow: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Paynow, paypal: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Paypal, payto: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Payto, pix: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Pix, promptpay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Promptpay, qris: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Qris, radar_options: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Sofort, swish: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Swish, twint: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::WechatPay, zip: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Zip).void + params(acss_debit: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Blik, boleto: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Eps, fpx: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Fpx, giropay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Giropay, gopay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Klarna, konbini: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::KrCard, link: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Link, mb_way: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Oxxo, p24: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::P24, pay_by_bank: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::PayByBank, payco: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Payco, paynow: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Paynow, paypal: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Paypal, payto: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Payto, pix: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Pix, promptpay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Promptpay, qris: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Qris, radar_options: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Sofort, swish: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Swish, twint: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::WechatPay, zip: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Zip).void } def initialize( acss_debit: nil, @@ -1396,6 +1402,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -2430,6 +2437,9 @@ module Stripe attr_accessor :tos_shown_and_accepted sig { params(setup_future_usage: String, tos_shown_and_accepted: T::Boolean).void } def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams # Controls when the funds are captured from the customer's account. @@ -3109,6 +3119,11 @@ module Stripe returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::P24)) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options. + sig { + returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::PayByBank)) + } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. sig { returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Payco)) @@ -3200,7 +3215,7 @@ module Stripe } attr_accessor :zip sig { - params(acss_debit: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Alipay), alma: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Bancontact), blik: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Blik), boleto: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Boleto), card: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::CardPresent), cashapp: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Cashapp), customer_balance: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Eps), fpx: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Fpx), giropay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Giropay), gopay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Gopay), grabpay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Grabpay), id_bank_transfer: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::IdBankTransfer), ideal: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Klarna), konbini: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::KrCard), link: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Link), mb_way: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::MbWay), mobilepay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Oxxo), p24: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::P24), payco: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Payco), paynow: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Paynow), paypal: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Pix), promptpay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Promptpay), qris: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Qris), rechnung: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Rechnung), revolut_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SamsungPay), sepa_debit: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SepaDebit), shopeepay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Shopeepay), sofort: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Sofort), swish: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Swish), twint: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Twint), us_bank_account: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::WechatPay), zip: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Zip)).void + params(acss_debit: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Alipay), alma: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Bancontact), blik: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Blik), boleto: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Boleto), card: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::CardPresent), cashapp: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Cashapp), customer_balance: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Eps), fpx: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Fpx), giropay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Giropay), gopay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Gopay), grabpay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Grabpay), id_bank_transfer: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::IdBankTransfer), ideal: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Klarna), konbini: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::KrCard), link: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Link), mb_way: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::MbWay), mobilepay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Oxxo), p24: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::PayByBank), payco: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Payco), paynow: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Paynow), paypal: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Pix), promptpay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Promptpay), qris: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Qris), rechnung: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Rechnung), revolut_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SamsungPay), sepa_debit: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SepaDebit), shopeepay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Shopeepay), sofort: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Sofort), swish: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Swish), twint: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Twint), us_bank_account: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::WechatPay), zip: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Zip)).void } def initialize( acss_debit: nil, @@ -3237,6 +3252,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -4487,6 +4503,9 @@ module Stripe attr_accessor :bank sig { params(bank: String).void } def initialize(bank: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams @@ -4729,6 +4748,9 @@ module Stripe # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. sig { returns(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::P24) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + sig { returns(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::PayByBank) } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. sig { returns(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Payco) } attr_accessor :payco @@ -4794,7 +4816,7 @@ module Stripe sig { returns(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Zip) } attr_accessor :zip sig { - params(acss_debit: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Blik, boleto: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Eps, fpx: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Fpx, giropay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Giropay, gopay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Klarna, konbini: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::KrCard, link: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Link, mb_way: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Oxxo, p24: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::P24, payco: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Payco, paynow: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Paynow, paypal: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Paypal, payto: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Payto, pix: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Pix, promptpay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Promptpay, qris: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Qris, radar_options: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Sofort, swish: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Swish, twint: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::WechatPay, zip: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Zip).void + params(acss_debit: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Blik, boleto: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Eps, fpx: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Fpx, giropay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Giropay, gopay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Klarna, konbini: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::KrCard, link: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Link, mb_way: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Oxxo, p24: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::P24, pay_by_bank: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::PayByBank, payco: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Payco, paynow: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Paynow, paypal: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Paypal, payto: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Payto, pix: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Pix, promptpay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Promptpay, qris: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Qris, radar_options: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Sofort, swish: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Swish, twint: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::WechatPay, zip: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Zip).void } def initialize( acss_debit: nil, @@ -4832,6 +4854,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -5866,6 +5889,9 @@ module Stripe attr_accessor :tos_shown_and_accepted sig { params(setup_future_usage: String, tos_shown_and_accepted: T::Boolean).void } def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams # Controls when the funds are captured from the customer's account. @@ -6545,6 +6571,11 @@ module Stripe returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::P24)) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options. + sig { + returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::PayByBank)) + } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. sig { returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Payco)) @@ -6636,7 +6667,7 @@ module Stripe } attr_accessor :zip sig { - params(acss_debit: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Alipay), alma: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Bancontact), blik: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Blik), boleto: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Boleto), card: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::CardPresent), cashapp: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Cashapp), customer_balance: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Eps), fpx: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Fpx), giropay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Giropay), gopay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Gopay), grabpay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Grabpay), id_bank_transfer: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::IdBankTransfer), ideal: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Klarna), konbini: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::KrCard), link: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Link), mb_way: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::MbWay), mobilepay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Oxxo), p24: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::P24), payco: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Payco), paynow: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Paynow), paypal: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Pix), promptpay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Promptpay), qris: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Qris), rechnung: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Rechnung), revolut_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SamsungPay), sepa_debit: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SepaDebit), shopeepay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Shopeepay), sofort: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Sofort), swish: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Swish), twint: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Twint), us_bank_account: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::WechatPay), zip: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Zip)).void + params(acss_debit: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Alipay), alma: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Bancontact), blik: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Blik), boleto: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Boleto), card: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::CardPresent), cashapp: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Cashapp), customer_balance: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Eps), fpx: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Fpx), giropay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Giropay), gopay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Gopay), grabpay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Grabpay), id_bank_transfer: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::IdBankTransfer), ideal: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Klarna), konbini: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::KrCard), link: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Link), mb_way: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::MbWay), mobilepay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Oxxo), p24: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::PayByBank), payco: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Payco), paynow: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Paynow), paypal: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Pix), promptpay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Promptpay), qris: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Qris), rechnung: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Rechnung), revolut_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SamsungPay), sepa_debit: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SepaDebit), shopeepay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Shopeepay), sofort: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Sofort), swish: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Swish), twint: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Twint), us_bank_account: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::WechatPay), zip: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Zip)).void } def initialize( acss_debit: nil, @@ -6673,6 +6704,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -8674,6 +8706,9 @@ module Stripe attr_accessor :bank sig { params(bank: String).void } def initialize(bank: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams @@ -8920,6 +8955,9 @@ module Stripe # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. sig { returns(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::P24) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + sig { returns(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::PayByBank) } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. sig { returns(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Payco) } attr_accessor :payco @@ -8989,7 +9027,7 @@ module Stripe sig { returns(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Zip) } attr_accessor :zip sig { - params(acss_debit: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::BillingDetails, blik: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Blik, boleto: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Boleto, cashapp: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Eps, fpx: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Fpx, giropay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Giropay, gopay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Gopay, grabpay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Ideal, interac_present: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Klarna, konbini: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Konbini, kr_card: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::KrCard, link: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Link, mb_way: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Oxxo, p24: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::P24, payco: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Payco, paynow: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Paynow, paypal: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Paypal, payto: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Payto, pix: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Pix, promptpay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Promptpay, qris: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Qris, radar_options: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Sofort, swish: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Swish, twint: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::WechatPay, zip: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Zip).void + params(acss_debit: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::BillingDetails, blik: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Blik, boleto: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Boleto, cashapp: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Eps, fpx: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Fpx, giropay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Giropay, gopay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Gopay, grabpay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Ideal, interac_present: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Klarna, konbini: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Konbini, kr_card: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::KrCard, link: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Link, mb_way: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Oxxo, p24: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::P24, pay_by_bank: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::PayByBank, payco: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Payco, paynow: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Paynow, paypal: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Paypal, payto: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Payto, pix: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Pix, promptpay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Promptpay, qris: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Qris, radar_options: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Sofort, swish: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Swish, twint: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::WechatPay, zip: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Zip).void } def initialize( acss_debit: nil, @@ -9027,6 +9065,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -10061,6 +10100,9 @@ module Stripe attr_accessor :tos_shown_and_accepted sig { params(setup_future_usage: String, tos_shown_and_accepted: T::Boolean).void } def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams # Controls when the funds are captured from the customer's account. @@ -10740,6 +10782,11 @@ module Stripe returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::P24)) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options. + sig { + returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::PayByBank)) + } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. sig { returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Payco)) @@ -10831,7 +10878,7 @@ module Stripe } attr_accessor :zip sig { - params(acss_debit: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Alipay), alma: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Bancontact), blik: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Blik), boleto: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Boleto), card: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::CardPresent), cashapp: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Cashapp), customer_balance: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Eps), fpx: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Fpx), giropay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Giropay), gopay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Gopay), grabpay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Grabpay), id_bank_transfer: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::IdBankTransfer), ideal: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Klarna), konbini: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::KrCard), link: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Link), mb_way: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::MbWay), mobilepay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Oxxo), p24: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::P24), payco: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Payco), paynow: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Paynow), paypal: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Pix), promptpay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Promptpay), qris: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Qris), rechnung: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Rechnung), revolut_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SamsungPay), sepa_debit: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit), shopeepay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Shopeepay), sofort: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Sofort), swish: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Swish), twint: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Twint), us_bank_account: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::WechatPay), zip: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Zip)).void + params(acss_debit: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Alipay), alma: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Bancontact), blik: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Blik), boleto: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Boleto), card: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::CardPresent), cashapp: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Cashapp), customer_balance: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Eps), fpx: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Fpx), giropay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Giropay), gopay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Gopay), grabpay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Grabpay), id_bank_transfer: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::IdBankTransfer), ideal: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Klarna), konbini: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::KrCard), link: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Link), mb_way: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::MbWay), mobilepay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Oxxo), p24: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::PayByBank), payco: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Payco), paynow: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Paynow), paypal: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Pix), promptpay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Promptpay), qris: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Qris), rechnung: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Rechnung), revolut_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SamsungPay), sepa_debit: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit), shopeepay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Shopeepay), sofort: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Sofort), swish: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Swish), twint: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Twint), us_bank_account: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::WechatPay), zip: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Zip)).void } def initialize( acss_debit: nil, @@ -10868,6 +10915,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, diff --git a/rbi/stripe/services/payment_method_configuration_service.rbi b/rbi/stripe/services/payment_method_configuration_service.rbi index 166219b80..d0b6c54f3 100644 --- a/rbi/stripe/services/payment_method_configuration_service.rbi +++ b/rbi/stripe/services/payment_method_configuration_service.rbi @@ -626,6 +626,24 @@ module Stripe } def initialize(display_preference: nil); end end + class PayByBank < Stripe::RequestParams + class DisplayPreference < Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(String) } + attr_accessor :preference + sig { params(preference: String).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { + returns(::Stripe::PaymentMethodConfigurationService::CreateParams::PayByBank::DisplayPreference) + } + attr_accessor :display_preference + sig { + params(display_preference: ::Stripe::PaymentMethodConfigurationService::CreateParams::PayByBank::DisplayPreference).void + } + def initialize(display_preference: nil); end + end class Paynow < Stripe::RequestParams class DisplayPreference < Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -986,6 +1004,9 @@ module Stripe # Configuration's parent configuration. Specify to create a child configuration. sig { returns(String) } attr_accessor :parent + # Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments. + sig { returns(::Stripe::PaymentMethodConfigurationService::CreateParams::PayByBank) } + attr_accessor :pay_by_bank # PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://stripe.com/docs/payments/paynow) for more details. sig { returns(::Stripe::PaymentMethodConfigurationService::CreateParams::Paynow) } attr_accessor :paynow @@ -1029,7 +1050,7 @@ module Stripe sig { returns(::Stripe::PaymentMethodConfigurationService::CreateParams::Zip) } attr_accessor :zip sig { - params(acss_debit: ::Stripe::PaymentMethodConfigurationService::CreateParams::AcssDebit, affirm: ::Stripe::PaymentMethodConfigurationService::CreateParams::Affirm, afterpay_clearpay: ::Stripe::PaymentMethodConfigurationService::CreateParams::AfterpayClearpay, alipay: ::Stripe::PaymentMethodConfigurationService::CreateParams::Alipay, alma: ::Stripe::PaymentMethodConfigurationService::CreateParams::Alma, amazon_pay: ::Stripe::PaymentMethodConfigurationService::CreateParams::AmazonPay, apple_pay: ::Stripe::PaymentMethodConfigurationService::CreateParams::ApplePay, apple_pay_later: ::Stripe::PaymentMethodConfigurationService::CreateParams::ApplePayLater, au_becs_debit: ::Stripe::PaymentMethodConfigurationService::CreateParams::AuBecsDebit, bacs_debit: ::Stripe::PaymentMethodConfigurationService::CreateParams::BacsDebit, bancontact: ::Stripe::PaymentMethodConfigurationService::CreateParams::Bancontact, blik: ::Stripe::PaymentMethodConfigurationService::CreateParams::Blik, boleto: ::Stripe::PaymentMethodConfigurationService::CreateParams::Boleto, card: ::Stripe::PaymentMethodConfigurationService::CreateParams::Card, cartes_bancaires: ::Stripe::PaymentMethodConfigurationService::CreateParams::CartesBancaires, cashapp: ::Stripe::PaymentMethodConfigurationService::CreateParams::Cashapp, customer_balance: ::Stripe::PaymentMethodConfigurationService::CreateParams::CustomerBalance, eps: ::Stripe::PaymentMethodConfigurationService::CreateParams::Eps, expand: T::Array[String], fpx: ::Stripe::PaymentMethodConfigurationService::CreateParams::Fpx, giropay: ::Stripe::PaymentMethodConfigurationService::CreateParams::Giropay, google_pay: ::Stripe::PaymentMethodConfigurationService::CreateParams::GooglePay, gopay: ::Stripe::PaymentMethodConfigurationService::CreateParams::Gopay, grabpay: ::Stripe::PaymentMethodConfigurationService::CreateParams::Grabpay, id_bank_transfer: ::Stripe::PaymentMethodConfigurationService::CreateParams::IdBankTransfer, ideal: ::Stripe::PaymentMethodConfigurationService::CreateParams::Ideal, jcb: ::Stripe::PaymentMethodConfigurationService::CreateParams::Jcb, klarna: ::Stripe::PaymentMethodConfigurationService::CreateParams::Klarna, konbini: ::Stripe::PaymentMethodConfigurationService::CreateParams::Konbini, link: ::Stripe::PaymentMethodConfigurationService::CreateParams::Link, mobilepay: ::Stripe::PaymentMethodConfigurationService::CreateParams::Mobilepay, multibanco: ::Stripe::PaymentMethodConfigurationService::CreateParams::Multibanco, name: String, oxxo: ::Stripe::PaymentMethodConfigurationService::CreateParams::Oxxo, p24: ::Stripe::PaymentMethodConfigurationService::CreateParams::P24, parent: String, paynow: ::Stripe::PaymentMethodConfigurationService::CreateParams::Paynow, paypal: ::Stripe::PaymentMethodConfigurationService::CreateParams::Paypal, payto: ::Stripe::PaymentMethodConfigurationService::CreateParams::Payto, promptpay: ::Stripe::PaymentMethodConfigurationService::CreateParams::Promptpay, qris: ::Stripe::PaymentMethodConfigurationService::CreateParams::Qris, revolut_pay: ::Stripe::PaymentMethodConfigurationService::CreateParams::RevolutPay, sepa_debit: ::Stripe::PaymentMethodConfigurationService::CreateParams::SepaDebit, shopeepay: ::Stripe::PaymentMethodConfigurationService::CreateParams::Shopeepay, sofort: ::Stripe::PaymentMethodConfigurationService::CreateParams::Sofort, swish: ::Stripe::PaymentMethodConfigurationService::CreateParams::Swish, twint: ::Stripe::PaymentMethodConfigurationService::CreateParams::Twint, us_bank_account: ::Stripe::PaymentMethodConfigurationService::CreateParams::UsBankAccount, wechat_pay: ::Stripe::PaymentMethodConfigurationService::CreateParams::WechatPay, zip: ::Stripe::PaymentMethodConfigurationService::CreateParams::Zip).void + params(acss_debit: ::Stripe::PaymentMethodConfigurationService::CreateParams::AcssDebit, affirm: ::Stripe::PaymentMethodConfigurationService::CreateParams::Affirm, afterpay_clearpay: ::Stripe::PaymentMethodConfigurationService::CreateParams::AfterpayClearpay, alipay: ::Stripe::PaymentMethodConfigurationService::CreateParams::Alipay, alma: ::Stripe::PaymentMethodConfigurationService::CreateParams::Alma, amazon_pay: ::Stripe::PaymentMethodConfigurationService::CreateParams::AmazonPay, apple_pay: ::Stripe::PaymentMethodConfigurationService::CreateParams::ApplePay, apple_pay_later: ::Stripe::PaymentMethodConfigurationService::CreateParams::ApplePayLater, au_becs_debit: ::Stripe::PaymentMethodConfigurationService::CreateParams::AuBecsDebit, bacs_debit: ::Stripe::PaymentMethodConfigurationService::CreateParams::BacsDebit, bancontact: ::Stripe::PaymentMethodConfigurationService::CreateParams::Bancontact, blik: ::Stripe::PaymentMethodConfigurationService::CreateParams::Blik, boleto: ::Stripe::PaymentMethodConfigurationService::CreateParams::Boleto, card: ::Stripe::PaymentMethodConfigurationService::CreateParams::Card, cartes_bancaires: ::Stripe::PaymentMethodConfigurationService::CreateParams::CartesBancaires, cashapp: ::Stripe::PaymentMethodConfigurationService::CreateParams::Cashapp, customer_balance: ::Stripe::PaymentMethodConfigurationService::CreateParams::CustomerBalance, eps: ::Stripe::PaymentMethodConfigurationService::CreateParams::Eps, expand: T::Array[String], fpx: ::Stripe::PaymentMethodConfigurationService::CreateParams::Fpx, giropay: ::Stripe::PaymentMethodConfigurationService::CreateParams::Giropay, google_pay: ::Stripe::PaymentMethodConfigurationService::CreateParams::GooglePay, gopay: ::Stripe::PaymentMethodConfigurationService::CreateParams::Gopay, grabpay: ::Stripe::PaymentMethodConfigurationService::CreateParams::Grabpay, id_bank_transfer: ::Stripe::PaymentMethodConfigurationService::CreateParams::IdBankTransfer, ideal: ::Stripe::PaymentMethodConfigurationService::CreateParams::Ideal, jcb: ::Stripe::PaymentMethodConfigurationService::CreateParams::Jcb, klarna: ::Stripe::PaymentMethodConfigurationService::CreateParams::Klarna, konbini: ::Stripe::PaymentMethodConfigurationService::CreateParams::Konbini, link: ::Stripe::PaymentMethodConfigurationService::CreateParams::Link, mobilepay: ::Stripe::PaymentMethodConfigurationService::CreateParams::Mobilepay, multibanco: ::Stripe::PaymentMethodConfigurationService::CreateParams::Multibanco, name: String, oxxo: ::Stripe::PaymentMethodConfigurationService::CreateParams::Oxxo, p24: ::Stripe::PaymentMethodConfigurationService::CreateParams::P24, parent: String, pay_by_bank: ::Stripe::PaymentMethodConfigurationService::CreateParams::PayByBank, paynow: ::Stripe::PaymentMethodConfigurationService::CreateParams::Paynow, paypal: ::Stripe::PaymentMethodConfigurationService::CreateParams::Paypal, payto: ::Stripe::PaymentMethodConfigurationService::CreateParams::Payto, promptpay: ::Stripe::PaymentMethodConfigurationService::CreateParams::Promptpay, qris: ::Stripe::PaymentMethodConfigurationService::CreateParams::Qris, revolut_pay: ::Stripe::PaymentMethodConfigurationService::CreateParams::RevolutPay, sepa_debit: ::Stripe::PaymentMethodConfigurationService::CreateParams::SepaDebit, shopeepay: ::Stripe::PaymentMethodConfigurationService::CreateParams::Shopeepay, sofort: ::Stripe::PaymentMethodConfigurationService::CreateParams::Sofort, swish: ::Stripe::PaymentMethodConfigurationService::CreateParams::Swish, twint: ::Stripe::PaymentMethodConfigurationService::CreateParams::Twint, us_bank_account: ::Stripe::PaymentMethodConfigurationService::CreateParams::UsBankAccount, wechat_pay: ::Stripe::PaymentMethodConfigurationService::CreateParams::WechatPay, zip: ::Stripe::PaymentMethodConfigurationService::CreateParams::Zip).void } def initialize( acss_debit: nil, @@ -1068,6 +1089,7 @@ module Stripe oxxo: nil, p24: nil, parent: nil, + pay_by_bank: nil, paynow: nil, paypal: nil, payto: nil, @@ -1686,6 +1708,24 @@ module Stripe } def initialize(display_preference: nil); end end + class PayByBank < Stripe::RequestParams + class DisplayPreference < Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(String) } + attr_accessor :preference + sig { params(preference: String).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { + returns(::Stripe::PaymentMethodConfigurationService::UpdateParams::PayByBank::DisplayPreference) + } + attr_accessor :display_preference + sig { + params(display_preference: ::Stripe::PaymentMethodConfigurationService::UpdateParams::PayByBank::DisplayPreference).void + } + def initialize(display_preference: nil); end + end class Paynow < Stripe::RequestParams class DisplayPreference < Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -2046,6 +2086,9 @@ module Stripe # Przelewy24 is a Poland-based payment method aggregator that allows customers to complete transactions online using bank transfers and other methods. Bank transfers account for 30% of online payments in Poland and Przelewy24 provides a way for customers to pay with over 165 banks. Check this [page](https://stripe.com/docs/payments/p24) for more details. sig { returns(::Stripe::PaymentMethodConfigurationService::UpdateParams::P24) } attr_accessor :p24 + # Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments. + sig { returns(::Stripe::PaymentMethodConfigurationService::UpdateParams::PayByBank) } + attr_accessor :pay_by_bank # PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://stripe.com/docs/payments/paynow) for more details. sig { returns(::Stripe::PaymentMethodConfigurationService::UpdateParams::Paynow) } attr_accessor :paynow @@ -2089,7 +2132,7 @@ module Stripe sig { returns(::Stripe::PaymentMethodConfigurationService::UpdateParams::Zip) } attr_accessor :zip sig { - params(acss_debit: ::Stripe::PaymentMethodConfigurationService::UpdateParams::AcssDebit, active: T::Boolean, affirm: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Affirm, afterpay_clearpay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::AfterpayClearpay, alipay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Alipay, alma: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Alma, amazon_pay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::AmazonPay, apple_pay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::ApplePay, apple_pay_later: ::Stripe::PaymentMethodConfigurationService::UpdateParams::ApplePayLater, au_becs_debit: ::Stripe::PaymentMethodConfigurationService::UpdateParams::AuBecsDebit, bacs_debit: ::Stripe::PaymentMethodConfigurationService::UpdateParams::BacsDebit, bancontact: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Bancontact, blik: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Blik, boleto: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Boleto, card: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Card, cartes_bancaires: ::Stripe::PaymentMethodConfigurationService::UpdateParams::CartesBancaires, cashapp: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Cashapp, customer_balance: ::Stripe::PaymentMethodConfigurationService::UpdateParams::CustomerBalance, eps: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Eps, expand: T::Array[String], fpx: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Fpx, giropay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Giropay, google_pay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::GooglePay, gopay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Gopay, grabpay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Grabpay, id_bank_transfer: ::Stripe::PaymentMethodConfigurationService::UpdateParams::IdBankTransfer, ideal: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Ideal, jcb: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Jcb, klarna: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Klarna, konbini: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Konbini, link: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Link, mobilepay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Mobilepay, multibanco: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Multibanco, name: String, oxxo: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Oxxo, p24: ::Stripe::PaymentMethodConfigurationService::UpdateParams::P24, paynow: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Paynow, paypal: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Paypal, payto: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Payto, promptpay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Promptpay, qris: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Qris, revolut_pay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::RevolutPay, sepa_debit: ::Stripe::PaymentMethodConfigurationService::UpdateParams::SepaDebit, shopeepay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Shopeepay, sofort: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Sofort, swish: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Swish, twint: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Twint, us_bank_account: ::Stripe::PaymentMethodConfigurationService::UpdateParams::UsBankAccount, wechat_pay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::WechatPay, zip: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Zip).void + params(acss_debit: ::Stripe::PaymentMethodConfigurationService::UpdateParams::AcssDebit, active: T::Boolean, affirm: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Affirm, afterpay_clearpay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::AfterpayClearpay, alipay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Alipay, alma: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Alma, amazon_pay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::AmazonPay, apple_pay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::ApplePay, apple_pay_later: ::Stripe::PaymentMethodConfigurationService::UpdateParams::ApplePayLater, au_becs_debit: ::Stripe::PaymentMethodConfigurationService::UpdateParams::AuBecsDebit, bacs_debit: ::Stripe::PaymentMethodConfigurationService::UpdateParams::BacsDebit, bancontact: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Bancontact, blik: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Blik, boleto: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Boleto, card: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Card, cartes_bancaires: ::Stripe::PaymentMethodConfigurationService::UpdateParams::CartesBancaires, cashapp: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Cashapp, customer_balance: ::Stripe::PaymentMethodConfigurationService::UpdateParams::CustomerBalance, eps: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Eps, expand: T::Array[String], fpx: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Fpx, giropay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Giropay, google_pay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::GooglePay, gopay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Gopay, grabpay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Grabpay, id_bank_transfer: ::Stripe::PaymentMethodConfigurationService::UpdateParams::IdBankTransfer, ideal: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Ideal, jcb: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Jcb, klarna: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Klarna, konbini: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Konbini, link: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Link, mobilepay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Mobilepay, multibanco: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Multibanco, name: String, oxxo: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Oxxo, p24: ::Stripe::PaymentMethodConfigurationService::UpdateParams::P24, pay_by_bank: ::Stripe::PaymentMethodConfigurationService::UpdateParams::PayByBank, paynow: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Paynow, paypal: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Paypal, payto: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Payto, promptpay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Promptpay, qris: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Qris, revolut_pay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::RevolutPay, sepa_debit: ::Stripe::PaymentMethodConfigurationService::UpdateParams::SepaDebit, shopeepay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Shopeepay, sofort: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Sofort, swish: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Swish, twint: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Twint, us_bank_account: ::Stripe::PaymentMethodConfigurationService::UpdateParams::UsBankAccount, wechat_pay: ::Stripe::PaymentMethodConfigurationService::UpdateParams::WechatPay, zip: ::Stripe::PaymentMethodConfigurationService::UpdateParams::Zip).void } def initialize( acss_debit: nil, @@ -2128,6 +2171,7 @@ module Stripe name: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, paynow: nil, paypal: nil, payto: nil, diff --git a/rbi/stripe/services/payment_method_service.rbi b/rbi/stripe/services/payment_method_service.rbi index d159f0e51..5007bcebe 100644 --- a/rbi/stripe/services/payment_method_service.rbi +++ b/rbi/stripe/services/payment_method_service.rbi @@ -294,6 +294,9 @@ module Stripe attr_accessor :bank sig { params(bank: String).void } def initialize(bank: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams @@ -529,6 +532,9 @@ module Stripe # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. sig { returns(::Stripe::PaymentMethodService::CreateParams::P24) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + sig { returns(::Stripe::PaymentMethodService::CreateParams::PayByBank) } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. sig { returns(::Stripe::PaymentMethodService::CreateParams::Payco) } attr_accessor :payco @@ -593,7 +599,7 @@ module Stripe sig { returns(::Stripe::PaymentMethodService::CreateParams::Zip) } attr_accessor :zip sig { - params(acss_debit: ::Stripe::PaymentMethodService::CreateParams::AcssDebit, affirm: ::Stripe::PaymentMethodService::CreateParams::Affirm, afterpay_clearpay: ::Stripe::PaymentMethodService::CreateParams::AfterpayClearpay, alipay: ::Stripe::PaymentMethodService::CreateParams::Alipay, allow_redisplay: String, alma: ::Stripe::PaymentMethodService::CreateParams::Alma, amazon_pay: ::Stripe::PaymentMethodService::CreateParams::AmazonPay, au_becs_debit: ::Stripe::PaymentMethodService::CreateParams::AuBecsDebit, bacs_debit: ::Stripe::PaymentMethodService::CreateParams::BacsDebit, bancontact: ::Stripe::PaymentMethodService::CreateParams::Bancontact, billing_details: ::Stripe::PaymentMethodService::CreateParams::BillingDetails, blik: ::Stripe::PaymentMethodService::CreateParams::Blik, boleto: ::Stripe::PaymentMethodService::CreateParams::Boleto, card: ::Stripe::PaymentMethodService::CreateParams::Card, cashapp: ::Stripe::PaymentMethodService::CreateParams::Cashapp, customer: String, customer_balance: ::Stripe::PaymentMethodService::CreateParams::CustomerBalance, eps: ::Stripe::PaymentMethodService::CreateParams::Eps, expand: T::Array[String], fpx: ::Stripe::PaymentMethodService::CreateParams::Fpx, giropay: ::Stripe::PaymentMethodService::CreateParams::Giropay, gopay: ::Stripe::PaymentMethodService::CreateParams::Gopay, grabpay: ::Stripe::PaymentMethodService::CreateParams::Grabpay, id_bank_transfer: ::Stripe::PaymentMethodService::CreateParams::IdBankTransfer, ideal: ::Stripe::PaymentMethodService::CreateParams::Ideal, interac_present: ::Stripe::PaymentMethodService::CreateParams::InteracPresent, kakao_pay: ::Stripe::PaymentMethodService::CreateParams::KakaoPay, klarna: ::Stripe::PaymentMethodService::CreateParams::Klarna, konbini: ::Stripe::PaymentMethodService::CreateParams::Konbini, kr_card: ::Stripe::PaymentMethodService::CreateParams::KrCard, link: ::Stripe::PaymentMethodService::CreateParams::Link, mb_way: ::Stripe::PaymentMethodService::CreateParams::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::PaymentMethodService::CreateParams::Mobilepay, multibanco: ::Stripe::PaymentMethodService::CreateParams::Multibanco, naver_pay: ::Stripe::PaymentMethodService::CreateParams::NaverPay, oxxo: ::Stripe::PaymentMethodService::CreateParams::Oxxo, p24: ::Stripe::PaymentMethodService::CreateParams::P24, payco: ::Stripe::PaymentMethodService::CreateParams::Payco, payment_method: String, paynow: ::Stripe::PaymentMethodService::CreateParams::Paynow, paypal: ::Stripe::PaymentMethodService::CreateParams::Paypal, payto: ::Stripe::PaymentMethodService::CreateParams::Payto, pix: ::Stripe::PaymentMethodService::CreateParams::Pix, promptpay: ::Stripe::PaymentMethodService::CreateParams::Promptpay, qris: ::Stripe::PaymentMethodService::CreateParams::Qris, radar_options: ::Stripe::PaymentMethodService::CreateParams::RadarOptions, rechnung: ::Stripe::PaymentMethodService::CreateParams::Rechnung, revolut_pay: ::Stripe::PaymentMethodService::CreateParams::RevolutPay, samsung_pay: ::Stripe::PaymentMethodService::CreateParams::SamsungPay, sepa_debit: ::Stripe::PaymentMethodService::CreateParams::SepaDebit, shopeepay: ::Stripe::PaymentMethodService::CreateParams::Shopeepay, sofort: ::Stripe::PaymentMethodService::CreateParams::Sofort, swish: ::Stripe::PaymentMethodService::CreateParams::Swish, twint: ::Stripe::PaymentMethodService::CreateParams::Twint, type: String, us_bank_account: ::Stripe::PaymentMethodService::CreateParams::UsBankAccount, wechat_pay: ::Stripe::PaymentMethodService::CreateParams::WechatPay, zip: ::Stripe::PaymentMethodService::CreateParams::Zip).void + params(acss_debit: ::Stripe::PaymentMethodService::CreateParams::AcssDebit, affirm: ::Stripe::PaymentMethodService::CreateParams::Affirm, afterpay_clearpay: ::Stripe::PaymentMethodService::CreateParams::AfterpayClearpay, alipay: ::Stripe::PaymentMethodService::CreateParams::Alipay, allow_redisplay: String, alma: ::Stripe::PaymentMethodService::CreateParams::Alma, amazon_pay: ::Stripe::PaymentMethodService::CreateParams::AmazonPay, au_becs_debit: ::Stripe::PaymentMethodService::CreateParams::AuBecsDebit, bacs_debit: ::Stripe::PaymentMethodService::CreateParams::BacsDebit, bancontact: ::Stripe::PaymentMethodService::CreateParams::Bancontact, billing_details: ::Stripe::PaymentMethodService::CreateParams::BillingDetails, blik: ::Stripe::PaymentMethodService::CreateParams::Blik, boleto: ::Stripe::PaymentMethodService::CreateParams::Boleto, card: ::Stripe::PaymentMethodService::CreateParams::Card, cashapp: ::Stripe::PaymentMethodService::CreateParams::Cashapp, customer: String, customer_balance: ::Stripe::PaymentMethodService::CreateParams::CustomerBalance, eps: ::Stripe::PaymentMethodService::CreateParams::Eps, expand: T::Array[String], fpx: ::Stripe::PaymentMethodService::CreateParams::Fpx, giropay: ::Stripe::PaymentMethodService::CreateParams::Giropay, gopay: ::Stripe::PaymentMethodService::CreateParams::Gopay, grabpay: ::Stripe::PaymentMethodService::CreateParams::Grabpay, id_bank_transfer: ::Stripe::PaymentMethodService::CreateParams::IdBankTransfer, ideal: ::Stripe::PaymentMethodService::CreateParams::Ideal, interac_present: ::Stripe::PaymentMethodService::CreateParams::InteracPresent, kakao_pay: ::Stripe::PaymentMethodService::CreateParams::KakaoPay, klarna: ::Stripe::PaymentMethodService::CreateParams::Klarna, konbini: ::Stripe::PaymentMethodService::CreateParams::Konbini, kr_card: ::Stripe::PaymentMethodService::CreateParams::KrCard, link: ::Stripe::PaymentMethodService::CreateParams::Link, mb_way: ::Stripe::PaymentMethodService::CreateParams::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::PaymentMethodService::CreateParams::Mobilepay, multibanco: ::Stripe::PaymentMethodService::CreateParams::Multibanco, naver_pay: ::Stripe::PaymentMethodService::CreateParams::NaverPay, oxxo: ::Stripe::PaymentMethodService::CreateParams::Oxxo, p24: ::Stripe::PaymentMethodService::CreateParams::P24, pay_by_bank: ::Stripe::PaymentMethodService::CreateParams::PayByBank, payco: ::Stripe::PaymentMethodService::CreateParams::Payco, payment_method: String, paynow: ::Stripe::PaymentMethodService::CreateParams::Paynow, paypal: ::Stripe::PaymentMethodService::CreateParams::Paypal, payto: ::Stripe::PaymentMethodService::CreateParams::Payto, pix: ::Stripe::PaymentMethodService::CreateParams::Pix, promptpay: ::Stripe::PaymentMethodService::CreateParams::Promptpay, qris: ::Stripe::PaymentMethodService::CreateParams::Qris, radar_options: ::Stripe::PaymentMethodService::CreateParams::RadarOptions, rechnung: ::Stripe::PaymentMethodService::CreateParams::Rechnung, revolut_pay: ::Stripe::PaymentMethodService::CreateParams::RevolutPay, samsung_pay: ::Stripe::PaymentMethodService::CreateParams::SamsungPay, sepa_debit: ::Stripe::PaymentMethodService::CreateParams::SepaDebit, shopeepay: ::Stripe::PaymentMethodService::CreateParams::Shopeepay, sofort: ::Stripe::PaymentMethodService::CreateParams::Sofort, swish: ::Stripe::PaymentMethodService::CreateParams::Swish, twint: ::Stripe::PaymentMethodService::CreateParams::Twint, type: String, us_bank_account: ::Stripe::PaymentMethodService::CreateParams::UsBankAccount, wechat_pay: ::Stripe::PaymentMethodService::CreateParams::WechatPay, zip: ::Stripe::PaymentMethodService::CreateParams::Zip).void } def initialize( acss_debit: nil, @@ -634,6 +640,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, payment_method: nil, paynow: nil, @@ -747,6 +754,9 @@ module Stripe attr_accessor :funding sig { params(funding: String).void } def initialize(funding: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payto < Stripe::RequestParams # The account number for the bank account. @@ -792,6 +802,9 @@ module Stripe # If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. sig { returns(::Stripe::PaymentMethodService::UpdateParams::NaverPay) } attr_accessor :naver_pay + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + sig { returns(::Stripe::PaymentMethodService::UpdateParams::PayByBank) } + attr_accessor :pay_by_bank # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. sig { returns(::Stripe::PaymentMethodService::UpdateParams::Payto) } attr_accessor :payto @@ -799,7 +812,7 @@ module Stripe sig { returns(::Stripe::PaymentMethodService::UpdateParams::UsBankAccount) } attr_accessor :us_bank_account sig { - params(allow_redisplay: String, billing_details: ::Stripe::PaymentMethodService::UpdateParams::BillingDetails, card: ::Stripe::PaymentMethodService::UpdateParams::Card, expand: T::Array[String], link: ::Stripe::PaymentMethodService::UpdateParams::Link, metadata: T.nilable(T::Hash[String, String]), naver_pay: ::Stripe::PaymentMethodService::UpdateParams::NaverPay, payto: ::Stripe::PaymentMethodService::UpdateParams::Payto, us_bank_account: ::Stripe::PaymentMethodService::UpdateParams::UsBankAccount).void + params(allow_redisplay: String, billing_details: ::Stripe::PaymentMethodService::UpdateParams::BillingDetails, card: ::Stripe::PaymentMethodService::UpdateParams::Card, expand: T::Array[String], link: ::Stripe::PaymentMethodService::UpdateParams::Link, metadata: T.nilable(T::Hash[String, String]), naver_pay: ::Stripe::PaymentMethodService::UpdateParams::NaverPay, pay_by_bank: ::Stripe::PaymentMethodService::UpdateParams::PayByBank, payto: ::Stripe::PaymentMethodService::UpdateParams::Payto, us_bank_account: ::Stripe::PaymentMethodService::UpdateParams::UsBankAccount).void } def initialize( allow_redisplay: nil, @@ -809,6 +822,7 @@ module Stripe link: nil, metadata: nil, naver_pay: nil, + pay_by_bank: nil, payto: nil, us_bank_account: nil ); end diff --git a/rbi/stripe/services/setup_intent_service.rbi b/rbi/stripe/services/setup_intent_service.rbi index 326f398de..66408ddef 100644 --- a/rbi/stripe/services/setup_intent_service.rbi +++ b/rbi/stripe/services/setup_intent_service.rbi @@ -343,6 +343,9 @@ module Stripe attr_accessor :bank sig { params(bank: String).void } def initialize(bank: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams @@ -583,6 +586,9 @@ module Stripe # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::P24) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::PayByBank) } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Payco) } attr_accessor :payco @@ -646,7 +652,7 @@ module Stripe sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Zip) } attr_accessor :zip sig { - params(acss_debit: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Blik, boleto: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Eps, fpx: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Fpx, giropay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Giropay, gopay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Klarna, konbini: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::KrCard, link: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Link, mb_way: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Oxxo, p24: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::P24, payco: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Payco, paynow: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Paynow, paypal: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Paypal, payto: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Payto, pix: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Pix, promptpay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Promptpay, qris: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Qris, radar_options: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Sofort, swish: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Swish, twint: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::WechatPay, zip: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Zip).void + params(acss_debit: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Blik, boleto: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Eps, fpx: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Fpx, giropay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Giropay, gopay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Klarna, konbini: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::KrCard, link: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Link, mb_way: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Oxxo, p24: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::P24, pay_by_bank: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::PayByBank, payco: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Payco, paynow: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Paynow, paypal: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Paypal, payto: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Payto, pix: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Pix, promptpay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Promptpay, qris: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Qris, radar_options: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Sofort, swish: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Swish, twint: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::WechatPay, zip: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Zip).void } def initialize( acss_debit: nil, @@ -684,6 +690,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -1501,6 +1508,9 @@ module Stripe attr_accessor :bank sig { params(bank: String).void } def initialize(bank: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams @@ -1741,6 +1751,9 @@ module Stripe # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::P24) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::PayByBank) } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Payco) } attr_accessor :payco @@ -1804,7 +1817,7 @@ module Stripe sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Zip) } attr_accessor :zip sig { - params(acss_debit: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Blik, boleto: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Eps, fpx: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Fpx, giropay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Giropay, gopay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Klarna, konbini: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::KrCard, link: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Link, mb_way: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Oxxo, p24: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::P24, payco: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Payco, paynow: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Paynow, paypal: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Paypal, payto: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Payto, pix: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Pix, promptpay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Promptpay, qris: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Qris, radar_options: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Sofort, swish: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Swish, twint: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::WechatPay, zip: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Zip).void + params(acss_debit: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Blik, boleto: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Eps, fpx: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Fpx, giropay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Giropay, gopay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Klarna, konbini: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::KrCard, link: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Link, mb_way: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Oxxo, p24: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::P24, pay_by_bank: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::PayByBank, payco: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Payco, paynow: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Paynow, paypal: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Paypal, payto: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Payto, pix: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Pix, promptpay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Promptpay, qris: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Qris, radar_options: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Sofort, swish: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Swish, twint: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::WechatPay, zip: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Zip).void } def initialize( acss_debit: nil, @@ -1842,6 +1855,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, @@ -2657,6 +2671,9 @@ module Stripe attr_accessor :bank sig { params(bank: String).void } def initialize(bank: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams @@ -2897,6 +2914,9 @@ module Stripe # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::P24) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::PayByBank) } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Payco) } attr_accessor :payco @@ -2962,7 +2982,7 @@ module Stripe sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Zip) } attr_accessor :zip sig { - params(acss_debit: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BillingDetails, blik: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Blik, boleto: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Boleto, cashapp: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Eps, fpx: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Fpx, giropay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Giropay, gopay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Gopay, grabpay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Ideal, interac_present: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Klarna, konbini: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Konbini, kr_card: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::KrCard, link: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Link, mb_way: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Oxxo, p24: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::P24, payco: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Payco, paynow: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Paynow, paypal: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Paypal, payto: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Payto, pix: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Pix, promptpay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Promptpay, qris: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Qris, radar_options: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Sofort, swish: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Swish, twint: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::WechatPay, zip: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Zip).void + params(acss_debit: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BillingDetails, blik: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Blik, boleto: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Boleto, cashapp: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Eps, fpx: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Fpx, giropay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Giropay, gopay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Gopay, grabpay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Ideal, interac_present: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Klarna, konbini: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Konbini, kr_card: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::KrCard, link: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Link, mb_way: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Oxxo, p24: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::P24, pay_by_bank: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::PayByBank, payco: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Payco, paynow: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Paynow, paypal: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Paypal, payto: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Payto, pix: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Pix, promptpay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Promptpay, qris: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Qris, radar_options: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Sofort, swish: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Swish, twint: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::WechatPay, zip: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Zip).void } def initialize( acss_debit: nil, @@ -3000,6 +3020,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, diff --git a/rbi/stripe/services/test_helpers/confirmation_token_service.rbi b/rbi/stripe/services/test_helpers/confirmation_token_service.rbi index c3f86ce81..8d91bb175 100644 --- a/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +++ b/rbi/stripe/services/test_helpers/confirmation_token_service.rbi @@ -231,6 +231,9 @@ module Stripe attr_accessor :bank sig { params(bank: String).void } def initialize(bank: nil); end + end + class PayByBank < Stripe::RequestParams + end class Payco < Stripe::RequestParams @@ -527,6 +530,11 @@ module Stripe returns(::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::P24) } attr_accessor :p24 + # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + sig { + returns(::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::PayByBank) + } + attr_accessor :pay_by_bank # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. sig { returns(::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Payco) @@ -626,7 +634,7 @@ module Stripe } attr_accessor :zip sig { - params(acss_debit: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Blik, boleto: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Eps, fpx: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Fpx, giropay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Giropay, gopay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Klarna, konbini: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::KrCard, link: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Link, mb_way: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Oxxo, p24: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::P24, payco: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Payco, paynow: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Paynow, paypal: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Paypal, payto: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Payto, pix: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Pix, promptpay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Promptpay, qris: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Qris, radar_options: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Sofort, swish: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Swish, twint: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::WechatPay, zip: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Zip).void + params(acss_debit: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Blik, boleto: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Eps, fpx: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Fpx, giropay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Giropay, gopay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Klarna, konbini: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::KrCard, link: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Link, mb_way: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Oxxo, p24: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::P24, pay_by_bank: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::PayByBank, payco: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Payco, paynow: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Paynow, paypal: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Paypal, payto: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Payto, pix: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Pix, promptpay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Promptpay, qris: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Qris, radar_options: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Sofort, swish: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Swish, twint: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::WechatPay, zip: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Zip).void } def initialize( acss_debit: nil, @@ -664,6 +672,7 @@ module Stripe naver_pay: nil, oxxo: nil, p24: nil, + pay_by_bank: nil, payco: nil, paynow: nil, paypal: nil, From ef7e6ee51eb9500661e23f6a643e5439c31ce38c Mon Sep 17 00:00:00 2001 From: jar-stripe Date: Wed, 15 Jan 2025 11:30:40 -0800 Subject: [PATCH 11/18] added CONTRIBUTING.md file (#1515) --- CONTRIBUTING.md | 25 +++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..d730b4ad7 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,25 @@ + +# Contributing + +We welcome bug reports, feature requests, and code contributions in a pull request. + +For most pull requests, we request that you identify or create an associated issue that has the necessary context. We use these issues to reach agreement on an approach and save the PR author from having to redo work. Fixing typos or documentation issues likely do not need an issue; for any issue that introduces substantial code changes, changes the public interface, or if you aren't sure, please find or [create an issue](https://www.github.com/stripe/stripe-ruby/issues/new/choose). + +## Contributor License Agreement + +All contributors must sign the Contributor License Agreement (CLA) before we can accept their contribution. If you have not yet signed the agremenet, you will be given an option to do so when you open a pull request. You can then sign by clicking on the badge in the comment from @CLAassistant. + +## Generated code + +This project has a combination of manually maintained code and code generated from our private code generator. If your contribution involves changes to generated code, please call this out in the issue or pull request as we will likely need to make a change to our code generator before accepting the contribution. + +To identify files with purely generated code, look for the comment `File generated from our OpenAPI spec.` at the start of the file. Generated blocks of code within hand-written files will be between comments that say `The beginning of the section generated from our OpenAPI spec` and `The end of the section generated from our OpenAPI spec`. + +## Compatibility with supported language and runtime versions + +This project supports a [many different langauge and runtime versions](README.md#requirements) and we are unable to accept any contribution that does not work on _all_ supported versions. If, after discussing the approach in the associated issue, your change must use an API / feature that isn't available in all supported versions, please call this out explicitly in the issue or pull request so we can help figure out the best way forward. + +## Set up your dev environment + +Please refer to this project's [README.md](README.md#development) for instructions on how to set up your development environment. + diff --git a/README.md b/README.md index d1b44944a..121329afa 100644 --- a/README.md +++ b/README.md @@ -362,6 +362,8 @@ New features and bug fixes are released on the latest major version of the Strip ## Development +[Contribution guidelines for this project](CONTRIBUTING.md) + The test suite depends on [stripe-mock], so make sure to fetch and run it from a background terminal ([stripe-mock's README][stripe-mock] also contains instructions for installing via Homebrew and other methods): From 7ec394e5ce0cbdc604b417ad581cf2b53f155c50 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 15 Jan 2025 21:04:51 +0000 Subject: [PATCH 12/18] Update generated code for v1449 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/account.rb | 38 +++++++++++++++++++++++++ lib/stripe/resources/token.rb | 19 +++++++++++++ lib/stripe/services/account_service.rb | 38 +++++++++++++++++++++++++ lib/stripe/services/token_service.rb | 19 +++++++++++++ rbi/stripe/resources/account.rbi | 38 +++++++++++++++++++++++-- rbi/stripe/resources/token.rbi | 19 ++++++++++++- rbi/stripe/services/account_service.rbi | 38 +++++++++++++++++++++++-- rbi/stripe/services/token_service.rbi | 21 +++++++++++++- 9 files changed, 225 insertions(+), 7 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 41237ba54..1b66f41fd 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1448 \ No newline at end of file +v1449 \ No newline at end of file diff --git a/lib/stripe/resources/account.rb b/lib/stripe/resources/account.rb index b9e60d474..0fa6618fc 100644 --- a/lib/stripe/resources/account.rb +++ b/lib/stripe/resources/account.rb @@ -1871,6 +1871,21 @@ def initialize( end end + class DirectorshipDeclaration < Stripe::RequestParams + # The Unix timestamp marking when the directorship declaration attestation was made. + attr_accessor :date + # The IP address from which the directorship declaration attestation was made. + attr_accessor :ip + # The user agent of the browser from which the directorship declaration attestation was made. + attr_accessor :user_agent + + def initialize(date: nil, ip: nil, user_agent: nil) + @date = date + @ip = ip + @user_agent = user_agent + end + end + class OwnershipDeclaration < Stripe::RequestParams # The Unix timestamp marking when the beneficial owner attestation was made. attr_accessor :date @@ -1913,6 +1928,8 @@ def initialize(document: nil) attr_accessor :address_kanji # Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided. attr_accessor :directors_provided + # This hash is used to attest that the directors information provided to Stripe is both current and correct. + attr_accessor :directorship_declaration # Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement. attr_accessor :executives_provided # The export license ID number of the company, also referred as Import Export Code (India only). @@ -1951,6 +1968,7 @@ def initialize( address_kana: nil, address_kanji: nil, directors_provided: nil, + directorship_declaration: nil, executives_provided: nil, export_license_id: nil, export_purpose_code: nil, @@ -1972,6 +1990,7 @@ def initialize( @address_kana = address_kana @address_kanji = address_kanji @directors_provided = directors_provided + @directorship_declaration = directorship_declaration @executives_provided = executives_provided @export_license_id = export_license_id @export_purpose_code = export_purpose_code @@ -4022,6 +4041,21 @@ def initialize( end end + class DirectorshipDeclaration < Stripe::RequestParams + # The Unix timestamp marking when the directorship declaration attestation was made. + attr_accessor :date + # The IP address from which the directorship declaration attestation was made. + attr_accessor :ip + # The user agent of the browser from which the directorship declaration attestation was made. + attr_accessor :user_agent + + def initialize(date: nil, ip: nil, user_agent: nil) + @date = date + @ip = ip + @user_agent = user_agent + end + end + class OwnershipDeclaration < Stripe::RequestParams # The Unix timestamp marking when the beneficial owner attestation was made. attr_accessor :date @@ -4064,6 +4098,8 @@ def initialize(document: nil) attr_accessor :address_kanji # Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided. attr_accessor :directors_provided + # This hash is used to attest that the directors information provided to Stripe is both current and correct. + attr_accessor :directorship_declaration # Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement. attr_accessor :executives_provided # The export license ID number of the company, also referred as Import Export Code (India only). @@ -4102,6 +4138,7 @@ def initialize( address_kana: nil, address_kanji: nil, directors_provided: nil, + directorship_declaration: nil, executives_provided: nil, export_license_id: nil, export_purpose_code: nil, @@ -4123,6 +4160,7 @@ def initialize( @address_kana = address_kana @address_kanji = address_kanji @directors_provided = directors_provided + @directorship_declaration = directorship_declaration @executives_provided = executives_provided @export_license_id = export_license_id @export_purpose_code = export_purpose_code diff --git a/lib/stripe/resources/token.rb b/lib/stripe/resources/token.rb index dd59f8e9a..0cafeaa75 100644 --- a/lib/stripe/resources/token.rb +++ b/lib/stripe/resources/token.rb @@ -143,6 +143,21 @@ def initialize( end end + class DirectorshipDeclaration < Stripe::RequestParams + # The Unix timestamp marking when the directorship declaration attestation was made. + attr_accessor :date + # The IP address from which the directorship declaration attestation was made. + attr_accessor :ip + # The user agent of the browser from which the directorship declaration attestation was made. + attr_accessor :user_agent + + def initialize(date: nil, ip: nil, user_agent: nil) + @date = date + @ip = ip + @user_agent = user_agent + end + end + class OwnershipDeclaration < Stripe::RequestParams # The Unix timestamp marking when the beneficial owner attestation was made. attr_accessor :date @@ -185,6 +200,8 @@ def initialize(document: nil) attr_accessor :address_kanji # Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided. attr_accessor :directors_provided + # This hash is used to attest that the directors information provided to Stripe is both current and correct. + attr_accessor :directorship_declaration # Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement. attr_accessor :executives_provided # The export license ID number of the company, also referred as Import Export Code (India only). @@ -225,6 +242,7 @@ def initialize( address_kana: nil, address_kanji: nil, directors_provided: nil, + directorship_declaration: nil, executives_provided: nil, export_license_id: nil, export_purpose_code: nil, @@ -247,6 +265,7 @@ def initialize( @address_kana = address_kana @address_kanji = address_kanji @directors_provided = directors_provided + @directorship_declaration = directorship_declaration @executives_provided = executives_provided @export_license_id = export_license_id @export_purpose_code = export_purpose_code diff --git a/lib/stripe/services/account_service.rb b/lib/stripe/services/account_service.rb index 534276e19..f28c213b3 100644 --- a/lib/stripe/services/account_service.rb +++ b/lib/stripe/services/account_service.rb @@ -1230,6 +1230,21 @@ def initialize( end end + class DirectorshipDeclaration < Stripe::RequestParams + # The Unix timestamp marking when the directorship declaration attestation was made. + attr_accessor :date + # The IP address from which the directorship declaration attestation was made. + attr_accessor :ip + # The user agent of the browser from which the directorship declaration attestation was made. + attr_accessor :user_agent + + def initialize(date: nil, ip: nil, user_agent: nil) + @date = date + @ip = ip + @user_agent = user_agent + end + end + class OwnershipDeclaration < Stripe::RequestParams # The Unix timestamp marking when the beneficial owner attestation was made. attr_accessor :date @@ -1272,6 +1287,8 @@ def initialize(document: nil) attr_accessor :address_kanji # Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided. attr_accessor :directors_provided + # This hash is used to attest that the directors information provided to Stripe is both current and correct. + attr_accessor :directorship_declaration # Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement. attr_accessor :executives_provided # The export license ID number of the company, also referred as Import Export Code (India only). @@ -1310,6 +1327,7 @@ def initialize( address_kana: nil, address_kanji: nil, directors_provided: nil, + directorship_declaration: nil, executives_provided: nil, export_license_id: nil, export_purpose_code: nil, @@ -1331,6 +1349,7 @@ def initialize( @address_kana = address_kana @address_kanji = address_kanji @directors_provided = directors_provided + @directorship_declaration = directorship_declaration @executives_provided = executives_provided @export_license_id = export_license_id @export_purpose_code = export_purpose_code @@ -3390,6 +3409,21 @@ def initialize( end end + class DirectorshipDeclaration < Stripe::RequestParams + # The Unix timestamp marking when the directorship declaration attestation was made. + attr_accessor :date + # The IP address from which the directorship declaration attestation was made. + attr_accessor :ip + # The user agent of the browser from which the directorship declaration attestation was made. + attr_accessor :user_agent + + def initialize(date: nil, ip: nil, user_agent: nil) + @date = date + @ip = ip + @user_agent = user_agent + end + end + class OwnershipDeclaration < Stripe::RequestParams # The Unix timestamp marking when the beneficial owner attestation was made. attr_accessor :date @@ -3432,6 +3466,8 @@ def initialize(document: nil) attr_accessor :address_kanji # Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided. attr_accessor :directors_provided + # This hash is used to attest that the directors information provided to Stripe is both current and correct. + attr_accessor :directorship_declaration # Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement. attr_accessor :executives_provided # The export license ID number of the company, also referred as Import Export Code (India only). @@ -3470,6 +3506,7 @@ def initialize( address_kana: nil, address_kanji: nil, directors_provided: nil, + directorship_declaration: nil, executives_provided: nil, export_license_id: nil, export_purpose_code: nil, @@ -3491,6 +3528,7 @@ def initialize( @address_kana = address_kana @address_kanji = address_kanji @directors_provided = directors_provided + @directorship_declaration = directorship_declaration @executives_provided = executives_provided @export_license_id = export_license_id @export_purpose_code = export_purpose_code diff --git a/lib/stripe/services/token_service.rb b/lib/stripe/services/token_service.rb index 8f2bba9df..c67374db6 100644 --- a/lib/stripe/services/token_service.rb +++ b/lib/stripe/services/token_service.rb @@ -116,6 +116,21 @@ def initialize( end end + class DirectorshipDeclaration < Stripe::RequestParams + # The Unix timestamp marking when the directorship declaration attestation was made. + attr_accessor :date + # The IP address from which the directorship declaration attestation was made. + attr_accessor :ip + # The user agent of the browser from which the directorship declaration attestation was made. + attr_accessor :user_agent + + def initialize(date: nil, ip: nil, user_agent: nil) + @date = date + @ip = ip + @user_agent = user_agent + end + end + class OwnershipDeclaration < Stripe::RequestParams # The Unix timestamp marking when the beneficial owner attestation was made. attr_accessor :date @@ -158,6 +173,8 @@ def initialize(document: nil) attr_accessor :address_kanji # Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided. attr_accessor :directors_provided + # This hash is used to attest that the directors information provided to Stripe is both current and correct. + attr_accessor :directorship_declaration # Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement. attr_accessor :executives_provided # The export license ID number of the company, also referred as Import Export Code (India only). @@ -198,6 +215,7 @@ def initialize( address_kana: nil, address_kanji: nil, directors_provided: nil, + directorship_declaration: nil, executives_provided: nil, export_license_id: nil, export_purpose_code: nil, @@ -220,6 +238,7 @@ def initialize( @address_kana = address_kana @address_kanji = address_kanji @directors_provided = directors_provided + @directorship_declaration = directorship_declaration @executives_provided = executives_provided @export_license_id = export_license_id @export_purpose_code = export_purpose_code diff --git a/rbi/stripe/resources/account.rbi b/rbi/stripe/resources/account.rbi index 1cd1e3737..6ae6e5ef9 100644 --- a/rbi/stripe/resources/account.rbi +++ b/rbi/stripe/resources/account.rbi @@ -2000,6 +2000,19 @@ module Stripe town: nil ); end end + class DirectorshipDeclaration < Stripe::RequestParams + # The Unix timestamp marking when the directorship declaration attestation was made. + sig { returns(Integer) } + attr_accessor :date + # The IP address from which the directorship declaration attestation was made. + sig { returns(String) } + attr_accessor :ip + # The user agent of the browser from which the directorship declaration attestation was made. + sig { returns(String) } + attr_accessor :user_agent + sig { params(date: Integer, ip: String, user_agent: String).void } + def initialize(date: nil, ip: nil, user_agent: nil); end + end class OwnershipDeclaration < Stripe::RequestParams # The Unix timestamp marking when the beneficial owner attestation was made. sig { returns(Integer) } @@ -2044,6 +2057,9 @@ module Stripe # Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided. sig { returns(T::Boolean) } attr_accessor :directors_provided + # This hash is used to attest that the directors information provided to Stripe is both current and correct. + sig { returns(::Stripe::Account::UpdateParams::Company::DirectorshipDeclaration) } + attr_accessor :directorship_declaration # Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement. sig { returns(T::Boolean) } attr_accessor :executives_provided @@ -2093,13 +2109,14 @@ module Stripe sig { returns(::Stripe::Account::UpdateParams::Company::Verification) } attr_accessor :verification sig { - params(address: ::Stripe::Account::UpdateParams::Company::Address, address_kana: ::Stripe::Account::UpdateParams::Company::AddressKana, address_kanji: ::Stripe::Account::UpdateParams::Company::AddressKanji, directors_provided: T::Boolean, executives_provided: T::Boolean, export_license_id: String, export_purpose_code: String, name: String, name_kana: String, name_kanji: String, owners_provided: T::Boolean, ownership_declaration: ::Stripe::Account::UpdateParams::Company::OwnershipDeclaration, ownership_exemption_reason: T.nilable(String), phone: String, registration_number: String, structure: T.nilable(String), tax_id: String, tax_id_registrar: String, vat_id: String, verification: ::Stripe::Account::UpdateParams::Company::Verification).void + params(address: ::Stripe::Account::UpdateParams::Company::Address, address_kana: ::Stripe::Account::UpdateParams::Company::AddressKana, address_kanji: ::Stripe::Account::UpdateParams::Company::AddressKanji, directors_provided: T::Boolean, directorship_declaration: ::Stripe::Account::UpdateParams::Company::DirectorshipDeclaration, executives_provided: T::Boolean, export_license_id: String, export_purpose_code: String, name: String, name_kana: String, name_kanji: String, owners_provided: T::Boolean, ownership_declaration: ::Stripe::Account::UpdateParams::Company::OwnershipDeclaration, ownership_exemption_reason: T.nilable(String), phone: String, registration_number: String, structure: T.nilable(String), tax_id: String, tax_id_registrar: String, vat_id: String, verification: ::Stripe::Account::UpdateParams::Company::Verification).void } def initialize( address: nil, address_kana: nil, address_kanji: nil, directors_provided: nil, + directorship_declaration: nil, executives_provided: nil, export_license_id: nil, export_purpose_code: nil, @@ -4001,6 +4018,19 @@ module Stripe town: nil ); end end + class DirectorshipDeclaration < Stripe::RequestParams + # The Unix timestamp marking when the directorship declaration attestation was made. + sig { returns(Integer) } + attr_accessor :date + # The IP address from which the directorship declaration attestation was made. + sig { returns(String) } + attr_accessor :ip + # The user agent of the browser from which the directorship declaration attestation was made. + sig { returns(String) } + attr_accessor :user_agent + sig { params(date: Integer, ip: String, user_agent: String).void } + def initialize(date: nil, ip: nil, user_agent: nil); end + end class OwnershipDeclaration < Stripe::RequestParams # The Unix timestamp marking when the beneficial owner attestation was made. sig { returns(Integer) } @@ -4045,6 +4075,9 @@ module Stripe # Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided. sig { returns(T::Boolean) } attr_accessor :directors_provided + # This hash is used to attest that the directors information provided to Stripe is both current and correct. + sig { returns(::Stripe::Account::CreateParams::Company::DirectorshipDeclaration) } + attr_accessor :directorship_declaration # Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement. sig { returns(T::Boolean) } attr_accessor :executives_provided @@ -4094,13 +4127,14 @@ module Stripe sig { returns(::Stripe::Account::CreateParams::Company::Verification) } attr_accessor :verification sig { - params(address: ::Stripe::Account::CreateParams::Company::Address, address_kana: ::Stripe::Account::CreateParams::Company::AddressKana, address_kanji: ::Stripe::Account::CreateParams::Company::AddressKanji, directors_provided: T::Boolean, executives_provided: T::Boolean, export_license_id: String, export_purpose_code: String, name: String, name_kana: String, name_kanji: String, owners_provided: T::Boolean, ownership_declaration: ::Stripe::Account::CreateParams::Company::OwnershipDeclaration, ownership_exemption_reason: T.nilable(String), phone: String, registration_number: String, structure: T.nilable(String), tax_id: String, tax_id_registrar: String, vat_id: String, verification: ::Stripe::Account::CreateParams::Company::Verification).void + params(address: ::Stripe::Account::CreateParams::Company::Address, address_kana: ::Stripe::Account::CreateParams::Company::AddressKana, address_kanji: ::Stripe::Account::CreateParams::Company::AddressKanji, directors_provided: T::Boolean, directorship_declaration: ::Stripe::Account::CreateParams::Company::DirectorshipDeclaration, executives_provided: T::Boolean, export_license_id: String, export_purpose_code: String, name: String, name_kana: String, name_kanji: String, owners_provided: T::Boolean, ownership_declaration: ::Stripe::Account::CreateParams::Company::OwnershipDeclaration, ownership_exemption_reason: T.nilable(String), phone: String, registration_number: String, structure: T.nilable(String), tax_id: String, tax_id_registrar: String, vat_id: String, verification: ::Stripe::Account::CreateParams::Company::Verification).void } def initialize( address: nil, address_kana: nil, address_kanji: nil, directors_provided: nil, + directorship_declaration: nil, executives_provided: nil, export_license_id: nil, export_purpose_code: nil, diff --git a/rbi/stripe/resources/token.rbi b/rbi/stripe/resources/token.rbi index 119f08987..50caffefa 100644 --- a/rbi/stripe/resources/token.rbi +++ b/rbi/stripe/resources/token.rbi @@ -172,6 +172,19 @@ module Stripe town: nil ); end end + class DirectorshipDeclaration < Stripe::RequestParams + # The Unix timestamp marking when the directorship declaration attestation was made. + sig { returns(Integer) } + attr_accessor :date + # The IP address from which the directorship declaration attestation was made. + sig { returns(String) } + attr_accessor :ip + # The user agent of the browser from which the directorship declaration attestation was made. + sig { returns(String) } + attr_accessor :user_agent + sig { params(date: Integer, ip: String, user_agent: String).void } + def initialize(date: nil, ip: nil, user_agent: nil); end + end class OwnershipDeclaration < Stripe::RequestParams # The Unix timestamp marking when the beneficial owner attestation was made. sig { returns(Integer) } @@ -216,6 +229,9 @@ module Stripe # Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided. sig { returns(T::Boolean) } attr_accessor :directors_provided + # This hash is used to attest that the directors information provided to Stripe is both current and correct. + sig { returns(::Stripe::Token::CreateParams::Account::Company::DirectorshipDeclaration) } + attr_accessor :directorship_declaration # Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement. sig { returns(T::Boolean) } attr_accessor :executives_provided @@ -268,13 +284,14 @@ module Stripe sig { returns(::Stripe::Token::CreateParams::Account::Company::Verification) } attr_accessor :verification sig { - params(address: ::Stripe::Token::CreateParams::Account::Company::Address, address_kana: ::Stripe::Token::CreateParams::Account::Company::AddressKana, address_kanji: ::Stripe::Token::CreateParams::Account::Company::AddressKanji, directors_provided: T::Boolean, executives_provided: T::Boolean, export_license_id: String, export_purpose_code: String, name: String, name_kana: String, name_kanji: String, owners_provided: T::Boolean, ownership_declaration: ::Stripe::Token::CreateParams::Account::Company::OwnershipDeclaration, ownership_declaration_shown_and_signed: T::Boolean, ownership_exemption_reason: T.nilable(String), phone: String, registration_number: String, structure: T.nilable(String), tax_id: String, tax_id_registrar: String, vat_id: String, verification: ::Stripe::Token::CreateParams::Account::Company::Verification).void + params(address: ::Stripe::Token::CreateParams::Account::Company::Address, address_kana: ::Stripe::Token::CreateParams::Account::Company::AddressKana, address_kanji: ::Stripe::Token::CreateParams::Account::Company::AddressKanji, directors_provided: T::Boolean, directorship_declaration: ::Stripe::Token::CreateParams::Account::Company::DirectorshipDeclaration, executives_provided: T::Boolean, export_license_id: String, export_purpose_code: String, name: String, name_kana: String, name_kanji: String, owners_provided: T::Boolean, ownership_declaration: ::Stripe::Token::CreateParams::Account::Company::OwnershipDeclaration, ownership_declaration_shown_and_signed: T::Boolean, ownership_exemption_reason: T.nilable(String), phone: String, registration_number: String, structure: T.nilable(String), tax_id: String, tax_id_registrar: String, vat_id: String, verification: ::Stripe::Token::CreateParams::Account::Company::Verification).void } def initialize( address: nil, address_kana: nil, address_kanji: nil, directors_provided: nil, + directorship_declaration: nil, executives_provided: nil, export_license_id: nil, export_purpose_code: nil, diff --git a/rbi/stripe/services/account_service.rbi b/rbi/stripe/services/account_service.rbi index f5be74b8c..c7a3b7d4f 100644 --- a/rbi/stripe/services/account_service.rbi +++ b/rbi/stripe/services/account_service.rbi @@ -1111,6 +1111,19 @@ module Stripe town: nil ); end end + class DirectorshipDeclaration < Stripe::RequestParams + # The Unix timestamp marking when the directorship declaration attestation was made. + sig { returns(Integer) } + attr_accessor :date + # The IP address from which the directorship declaration attestation was made. + sig { returns(String) } + attr_accessor :ip + # The user agent of the browser from which the directorship declaration attestation was made. + sig { returns(String) } + attr_accessor :user_agent + sig { params(date: Integer, ip: String, user_agent: String).void } + def initialize(date: nil, ip: nil, user_agent: nil); end + end class OwnershipDeclaration < Stripe::RequestParams # The Unix timestamp marking when the beneficial owner attestation was made. sig { returns(Integer) } @@ -1155,6 +1168,9 @@ module Stripe # Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided. sig { returns(T::Boolean) } attr_accessor :directors_provided + # This hash is used to attest that the directors information provided to Stripe is both current and correct. + sig { returns(::Stripe::AccountService::UpdateParams::Company::DirectorshipDeclaration) } + attr_accessor :directorship_declaration # Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement. sig { returns(T::Boolean) } attr_accessor :executives_provided @@ -1204,13 +1220,14 @@ module Stripe sig { returns(::Stripe::AccountService::UpdateParams::Company::Verification) } attr_accessor :verification sig { - params(address: ::Stripe::AccountService::UpdateParams::Company::Address, address_kana: ::Stripe::AccountService::UpdateParams::Company::AddressKana, address_kanji: ::Stripe::AccountService::UpdateParams::Company::AddressKanji, directors_provided: T::Boolean, executives_provided: T::Boolean, export_license_id: String, export_purpose_code: String, name: String, name_kana: String, name_kanji: String, owners_provided: T::Boolean, ownership_declaration: ::Stripe::AccountService::UpdateParams::Company::OwnershipDeclaration, ownership_exemption_reason: T.nilable(String), phone: String, registration_number: String, structure: T.nilable(String), tax_id: String, tax_id_registrar: String, vat_id: String, verification: ::Stripe::AccountService::UpdateParams::Company::Verification).void + params(address: ::Stripe::AccountService::UpdateParams::Company::Address, address_kana: ::Stripe::AccountService::UpdateParams::Company::AddressKana, address_kanji: ::Stripe::AccountService::UpdateParams::Company::AddressKanji, directors_provided: T::Boolean, directorship_declaration: ::Stripe::AccountService::UpdateParams::Company::DirectorshipDeclaration, executives_provided: T::Boolean, export_license_id: String, export_purpose_code: String, name: String, name_kana: String, name_kanji: String, owners_provided: T::Boolean, ownership_declaration: ::Stripe::AccountService::UpdateParams::Company::OwnershipDeclaration, ownership_exemption_reason: T.nilable(String), phone: String, registration_number: String, structure: T.nilable(String), tax_id: String, tax_id_registrar: String, vat_id: String, verification: ::Stripe::AccountService::UpdateParams::Company::Verification).void } def initialize( address: nil, address_kana: nil, address_kanji: nil, directors_provided: nil, + directorship_declaration: nil, executives_provided: nil, export_license_id: nil, export_purpose_code: nil, @@ -3153,6 +3170,19 @@ module Stripe town: nil ); end end + class DirectorshipDeclaration < Stripe::RequestParams + # The Unix timestamp marking when the directorship declaration attestation was made. + sig { returns(Integer) } + attr_accessor :date + # The IP address from which the directorship declaration attestation was made. + sig { returns(String) } + attr_accessor :ip + # The user agent of the browser from which the directorship declaration attestation was made. + sig { returns(String) } + attr_accessor :user_agent + sig { params(date: Integer, ip: String, user_agent: String).void } + def initialize(date: nil, ip: nil, user_agent: nil); end + end class OwnershipDeclaration < Stripe::RequestParams # The Unix timestamp marking when the beneficial owner attestation was made. sig { returns(Integer) } @@ -3197,6 +3227,9 @@ module Stripe # Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided. sig { returns(T::Boolean) } attr_accessor :directors_provided + # This hash is used to attest that the directors information provided to Stripe is both current and correct. + sig { returns(::Stripe::AccountService::CreateParams::Company::DirectorshipDeclaration) } + attr_accessor :directorship_declaration # Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement. sig { returns(T::Boolean) } attr_accessor :executives_provided @@ -3246,13 +3279,14 @@ module Stripe sig { returns(::Stripe::AccountService::CreateParams::Company::Verification) } attr_accessor :verification sig { - params(address: ::Stripe::AccountService::CreateParams::Company::Address, address_kana: ::Stripe::AccountService::CreateParams::Company::AddressKana, address_kanji: ::Stripe::AccountService::CreateParams::Company::AddressKanji, directors_provided: T::Boolean, executives_provided: T::Boolean, export_license_id: String, export_purpose_code: String, name: String, name_kana: String, name_kanji: String, owners_provided: T::Boolean, ownership_declaration: ::Stripe::AccountService::CreateParams::Company::OwnershipDeclaration, ownership_exemption_reason: T.nilable(String), phone: String, registration_number: String, structure: T.nilable(String), tax_id: String, tax_id_registrar: String, vat_id: String, verification: ::Stripe::AccountService::CreateParams::Company::Verification).void + params(address: ::Stripe::AccountService::CreateParams::Company::Address, address_kana: ::Stripe::AccountService::CreateParams::Company::AddressKana, address_kanji: ::Stripe::AccountService::CreateParams::Company::AddressKanji, directors_provided: T::Boolean, directorship_declaration: ::Stripe::AccountService::CreateParams::Company::DirectorshipDeclaration, executives_provided: T::Boolean, export_license_id: String, export_purpose_code: String, name: String, name_kana: String, name_kanji: String, owners_provided: T::Boolean, ownership_declaration: ::Stripe::AccountService::CreateParams::Company::OwnershipDeclaration, ownership_exemption_reason: T.nilable(String), phone: String, registration_number: String, structure: T.nilable(String), tax_id: String, tax_id_registrar: String, vat_id: String, verification: ::Stripe::AccountService::CreateParams::Company::Verification).void } def initialize( address: nil, address_kana: nil, address_kanji: nil, directors_provided: nil, + directorship_declaration: nil, executives_provided: nil, export_license_id: nil, export_purpose_code: nil, diff --git a/rbi/stripe/services/token_service.rbi b/rbi/stripe/services/token_service.rbi index 985aa8271..bf8a0b396 100644 --- a/rbi/stripe/services/token_service.rbi +++ b/rbi/stripe/services/token_service.rbi @@ -115,6 +115,19 @@ module Stripe town: nil ); end end + class DirectorshipDeclaration < Stripe::RequestParams + # The Unix timestamp marking when the directorship declaration attestation was made. + sig { returns(Integer) } + attr_accessor :date + # The IP address from which the directorship declaration attestation was made. + sig { returns(String) } + attr_accessor :ip + # The user agent of the browser from which the directorship declaration attestation was made. + sig { returns(String) } + attr_accessor :user_agent + sig { params(date: Integer, ip: String, user_agent: String).void } + def initialize(date: nil, ip: nil, user_agent: nil); end + end class OwnershipDeclaration < Stripe::RequestParams # The Unix timestamp marking when the beneficial owner attestation was made. sig { returns(Integer) } @@ -161,6 +174,11 @@ module Stripe # Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided. sig { returns(T::Boolean) } attr_accessor :directors_provided + # This hash is used to attest that the directors information provided to Stripe is both current and correct. + sig { + returns(::Stripe::TokenService::CreateParams::Account::Company::DirectorshipDeclaration) + } + attr_accessor :directorship_declaration # Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement. sig { returns(T::Boolean) } attr_accessor :executives_provided @@ -215,13 +233,14 @@ module Stripe sig { returns(::Stripe::TokenService::CreateParams::Account::Company::Verification) } attr_accessor :verification sig { - params(address: ::Stripe::TokenService::CreateParams::Account::Company::Address, address_kana: ::Stripe::TokenService::CreateParams::Account::Company::AddressKana, address_kanji: ::Stripe::TokenService::CreateParams::Account::Company::AddressKanji, directors_provided: T::Boolean, executives_provided: T::Boolean, export_license_id: String, export_purpose_code: String, name: String, name_kana: String, name_kanji: String, owners_provided: T::Boolean, ownership_declaration: ::Stripe::TokenService::CreateParams::Account::Company::OwnershipDeclaration, ownership_declaration_shown_and_signed: T::Boolean, ownership_exemption_reason: T.nilable(String), phone: String, registration_number: String, structure: T.nilable(String), tax_id: String, tax_id_registrar: String, vat_id: String, verification: ::Stripe::TokenService::CreateParams::Account::Company::Verification).void + params(address: ::Stripe::TokenService::CreateParams::Account::Company::Address, address_kana: ::Stripe::TokenService::CreateParams::Account::Company::AddressKana, address_kanji: ::Stripe::TokenService::CreateParams::Account::Company::AddressKanji, directors_provided: T::Boolean, directorship_declaration: ::Stripe::TokenService::CreateParams::Account::Company::DirectorshipDeclaration, executives_provided: T::Boolean, export_license_id: String, export_purpose_code: String, name: String, name_kana: String, name_kanji: String, owners_provided: T::Boolean, ownership_declaration: ::Stripe::TokenService::CreateParams::Account::Company::OwnershipDeclaration, ownership_declaration_shown_and_signed: T::Boolean, ownership_exemption_reason: T.nilable(String), phone: String, registration_number: String, structure: T.nilable(String), tax_id: String, tax_id_registrar: String, vat_id: String, verification: ::Stripe::TokenService::CreateParams::Account::Company::Verification).void } def initialize( address: nil, address_kana: nil, address_kanji: nil, directors_provided: nil, + directorship_declaration: nil, executives_provided: nil, export_license_id: nil, export_purpose_code: nil, From 1402ac7e179930419423c03186af65d3385d9338 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 15 Jan 2025 22:27:10 +0000 Subject: [PATCH 13/18] Update generated code for v1450 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/account.rb | 30 ++++++++++++++++++++-- lib/stripe/services/account_service.rb | 30 ++++++++++++++++++++-- rbi/stripe/resources/account.rbi | 34 ++++++++++++++++++++++--- rbi/stripe/services/account_service.rbi | 34 ++++++++++++++++++++++--- 5 files changed, 117 insertions(+), 13 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 1b66f41fd..fc039b0b5 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1449 \ No newline at end of file +v1450 \ No newline at end of file diff --git a/lib/stripe/resources/account.rb b/lib/stripe/resources/account.rb index 0fa6618fc..6dd8c61fd 100644 --- a/lib/stripe/resources/account.rb +++ b/lib/stripe/resources/account.rb @@ -2073,6 +2073,15 @@ def initialize(files: nil) @files = files end end + + class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams + # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. + attr_accessor :files + + def initialize(files: nil) + @files = files + end + end # One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check. attr_accessor :bank_account_ownership_verification # One or more documents that demonstrate proof of a company's license to operate. @@ -2087,6 +2096,8 @@ def initialize(files: nil) attr_accessor :company_tax_id_verification # One or more documents showing the company’s proof of registration with the national business registry. attr_accessor :proof_of_registration + # One or more documents that demonstrate proof of ultimate beneficial ownership. + attr_accessor :proof_of_ultimate_beneficial_ownership def initialize( bank_account_ownership_verification: nil, @@ -2095,7 +2106,8 @@ def initialize( company_ministerial_decree: nil, company_registration_verification: nil, company_tax_id_verification: nil, - proof_of_registration: nil + proof_of_registration: nil, + proof_of_ultimate_beneficial_ownership: nil ) @bank_account_ownership_verification = bank_account_ownership_verification @company_license = company_license @@ -2104,6 +2116,7 @@ def initialize( @company_registration_verification = company_registration_verification @company_tax_id_verification = company_tax_id_verification @proof_of_registration = proof_of_registration + @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership end end @@ -4324,6 +4337,15 @@ def initialize(files: nil) @files = files end end + + class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams + # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. + attr_accessor :files + + def initialize(files: nil) + @files = files + end + end # One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check. attr_accessor :bank_account_ownership_verification # One or more documents that demonstrate proof of a company's license to operate. @@ -4338,6 +4360,8 @@ def initialize(files: nil) attr_accessor :company_tax_id_verification # One or more documents showing the company’s proof of registration with the national business registry. attr_accessor :proof_of_registration + # One or more documents that demonstrate proof of ultimate beneficial ownership. + attr_accessor :proof_of_ultimate_beneficial_ownership def initialize( bank_account_ownership_verification: nil, @@ -4346,7 +4370,8 @@ def initialize( company_ministerial_decree: nil, company_registration_verification: nil, company_tax_id_verification: nil, - proof_of_registration: nil + proof_of_registration: nil, + proof_of_ultimate_beneficial_ownership: nil ) @bank_account_ownership_verification = bank_account_ownership_verification @company_license = company_license @@ -4355,6 +4380,7 @@ def initialize( @company_registration_verification = company_registration_verification @company_tax_id_verification = company_tax_id_verification @proof_of_registration = proof_of_registration + @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership end end diff --git a/lib/stripe/services/account_service.rb b/lib/stripe/services/account_service.rb index f28c213b3..556b5dcce 100644 --- a/lib/stripe/services/account_service.rb +++ b/lib/stripe/services/account_service.rb @@ -1432,6 +1432,15 @@ def initialize(files: nil) @files = files end end + + class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams + # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. + attr_accessor :files + + def initialize(files: nil) + @files = files + end + end # One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check. attr_accessor :bank_account_ownership_verification # One or more documents that demonstrate proof of a company's license to operate. @@ -1446,6 +1455,8 @@ def initialize(files: nil) attr_accessor :company_tax_id_verification # One or more documents showing the company’s proof of registration with the national business registry. attr_accessor :proof_of_registration + # One or more documents that demonstrate proof of ultimate beneficial ownership. + attr_accessor :proof_of_ultimate_beneficial_ownership def initialize( bank_account_ownership_verification: nil, @@ -1454,7 +1465,8 @@ def initialize( company_ministerial_decree: nil, company_registration_verification: nil, company_tax_id_verification: nil, - proof_of_registration: nil + proof_of_registration: nil, + proof_of_ultimate_beneficial_ownership: nil ) @bank_account_ownership_verification = bank_account_ownership_verification @company_license = company_license @@ -1463,6 +1475,7 @@ def initialize( @company_registration_verification = company_registration_verification @company_tax_id_verification = company_tax_id_verification @proof_of_registration = proof_of_registration + @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership end end @@ -3692,6 +3705,15 @@ def initialize(files: nil) @files = files end end + + class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams + # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. + attr_accessor :files + + def initialize(files: nil) + @files = files + end + end # One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check. attr_accessor :bank_account_ownership_verification # One or more documents that demonstrate proof of a company's license to operate. @@ -3706,6 +3728,8 @@ def initialize(files: nil) attr_accessor :company_tax_id_verification # One or more documents showing the company’s proof of registration with the national business registry. attr_accessor :proof_of_registration + # One or more documents that demonstrate proof of ultimate beneficial ownership. + attr_accessor :proof_of_ultimate_beneficial_ownership def initialize( bank_account_ownership_verification: nil, @@ -3714,7 +3738,8 @@ def initialize( company_ministerial_decree: nil, company_registration_verification: nil, company_tax_id_verification: nil, - proof_of_registration: nil + proof_of_registration: nil, + proof_of_ultimate_beneficial_ownership: nil ) @bank_account_ownership_verification = bank_account_ownership_verification @company_license = company_license @@ -3723,6 +3748,7 @@ def initialize( @company_registration_verification = company_registration_verification @company_tax_id_verification = company_tax_id_verification @proof_of_registration = proof_of_registration + @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership end end diff --git a/rbi/stripe/resources/account.rbi b/rbi/stripe/resources/account.rbi index 6ae6e5ef9..e7c2d3c3f 100644 --- a/rbi/stripe/resources/account.rbi +++ b/rbi/stripe/resources/account.rbi @@ -2185,6 +2185,13 @@ module Stripe sig { params(files: T::Array[String]).void } def initialize(files: nil); end end + class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams + # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. + sig { returns(T::Array[String]) } + attr_accessor :files + sig { params(files: T::Array[String]).void } + def initialize(files: nil); end + end # One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check. sig { returns(::Stripe::Account::UpdateParams::Documents::BankAccountOwnershipVerification) @@ -2208,8 +2215,13 @@ module Stripe # One or more documents showing the company’s proof of registration with the national business registry. sig { returns(::Stripe::Account::UpdateParams::Documents::ProofOfRegistration) } attr_accessor :proof_of_registration + # One or more documents that demonstrate proof of ultimate beneficial ownership. + sig { + returns(::Stripe::Account::UpdateParams::Documents::ProofOfUltimateBeneficialOwnership) + } + attr_accessor :proof_of_ultimate_beneficial_ownership sig { - params(bank_account_ownership_verification: ::Stripe::Account::UpdateParams::Documents::BankAccountOwnershipVerification, company_license: ::Stripe::Account::UpdateParams::Documents::CompanyLicense, company_memorandum_of_association: ::Stripe::Account::UpdateParams::Documents::CompanyMemorandumOfAssociation, company_ministerial_decree: ::Stripe::Account::UpdateParams::Documents::CompanyMinisterialDecree, company_registration_verification: ::Stripe::Account::UpdateParams::Documents::CompanyRegistrationVerification, company_tax_id_verification: ::Stripe::Account::UpdateParams::Documents::CompanyTaxIdVerification, proof_of_registration: ::Stripe::Account::UpdateParams::Documents::ProofOfRegistration).void + params(bank_account_ownership_verification: ::Stripe::Account::UpdateParams::Documents::BankAccountOwnershipVerification, company_license: ::Stripe::Account::UpdateParams::Documents::CompanyLicense, company_memorandum_of_association: ::Stripe::Account::UpdateParams::Documents::CompanyMemorandumOfAssociation, company_ministerial_decree: ::Stripe::Account::UpdateParams::Documents::CompanyMinisterialDecree, company_registration_verification: ::Stripe::Account::UpdateParams::Documents::CompanyRegistrationVerification, company_tax_id_verification: ::Stripe::Account::UpdateParams::Documents::CompanyTaxIdVerification, proof_of_registration: ::Stripe::Account::UpdateParams::Documents::ProofOfRegistration, proof_of_ultimate_beneficial_ownership: ::Stripe::Account::UpdateParams::Documents::ProofOfUltimateBeneficialOwnership).void } def initialize( bank_account_ownership_verification: nil, @@ -2218,7 +2230,8 @@ module Stripe company_ministerial_decree: nil, company_registration_verification: nil, company_tax_id_verification: nil, - proof_of_registration: nil + proof_of_registration: nil, + proof_of_ultimate_beneficial_ownership: nil ); end end class Groups < Stripe::RequestParams @@ -4277,6 +4290,13 @@ module Stripe sig { params(files: T::Array[String]).void } def initialize(files: nil); end end + class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams + # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. + sig { returns(T::Array[String]) } + attr_accessor :files + sig { params(files: T::Array[String]).void } + def initialize(files: nil); end + end # One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check. sig { returns(::Stripe::Account::CreateParams::Documents::BankAccountOwnershipVerification) @@ -4300,8 +4320,13 @@ module Stripe # One or more documents showing the company’s proof of registration with the national business registry. sig { returns(::Stripe::Account::CreateParams::Documents::ProofOfRegistration) } attr_accessor :proof_of_registration + # One or more documents that demonstrate proof of ultimate beneficial ownership. + sig { + returns(::Stripe::Account::CreateParams::Documents::ProofOfUltimateBeneficialOwnership) + } + attr_accessor :proof_of_ultimate_beneficial_ownership sig { - params(bank_account_ownership_verification: ::Stripe::Account::CreateParams::Documents::BankAccountOwnershipVerification, company_license: ::Stripe::Account::CreateParams::Documents::CompanyLicense, company_memorandum_of_association: ::Stripe::Account::CreateParams::Documents::CompanyMemorandumOfAssociation, company_ministerial_decree: ::Stripe::Account::CreateParams::Documents::CompanyMinisterialDecree, company_registration_verification: ::Stripe::Account::CreateParams::Documents::CompanyRegistrationVerification, company_tax_id_verification: ::Stripe::Account::CreateParams::Documents::CompanyTaxIdVerification, proof_of_registration: ::Stripe::Account::CreateParams::Documents::ProofOfRegistration).void + params(bank_account_ownership_verification: ::Stripe::Account::CreateParams::Documents::BankAccountOwnershipVerification, company_license: ::Stripe::Account::CreateParams::Documents::CompanyLicense, company_memorandum_of_association: ::Stripe::Account::CreateParams::Documents::CompanyMemorandumOfAssociation, company_ministerial_decree: ::Stripe::Account::CreateParams::Documents::CompanyMinisterialDecree, company_registration_verification: ::Stripe::Account::CreateParams::Documents::CompanyRegistrationVerification, company_tax_id_verification: ::Stripe::Account::CreateParams::Documents::CompanyTaxIdVerification, proof_of_registration: ::Stripe::Account::CreateParams::Documents::ProofOfRegistration, proof_of_ultimate_beneficial_ownership: ::Stripe::Account::CreateParams::Documents::ProofOfUltimateBeneficialOwnership).void } def initialize( bank_account_ownership_verification: nil, @@ -4310,7 +4335,8 @@ module Stripe company_ministerial_decree: nil, company_registration_verification: nil, company_tax_id_verification: nil, - proof_of_registration: nil + proof_of_registration: nil, + proof_of_ultimate_beneficial_ownership: nil ); end end class Groups < Stripe::RequestParams diff --git a/rbi/stripe/services/account_service.rbi b/rbi/stripe/services/account_service.rbi index c7a3b7d4f..d9e03663d 100644 --- a/rbi/stripe/services/account_service.rbi +++ b/rbi/stripe/services/account_service.rbi @@ -1296,6 +1296,13 @@ module Stripe sig { params(files: T::Array[String]).void } def initialize(files: nil); end end + class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams + # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. + sig { returns(T::Array[String]) } + attr_accessor :files + sig { params(files: T::Array[String]).void } + def initialize(files: nil); end + end # One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check. sig { returns(::Stripe::AccountService::UpdateParams::Documents::BankAccountOwnershipVerification) @@ -1323,8 +1330,13 @@ module Stripe # One or more documents showing the company’s proof of registration with the national business registry. sig { returns(::Stripe::AccountService::UpdateParams::Documents::ProofOfRegistration) } attr_accessor :proof_of_registration + # One or more documents that demonstrate proof of ultimate beneficial ownership. + sig { + returns(::Stripe::AccountService::UpdateParams::Documents::ProofOfUltimateBeneficialOwnership) + } + attr_accessor :proof_of_ultimate_beneficial_ownership sig { - params(bank_account_ownership_verification: ::Stripe::AccountService::UpdateParams::Documents::BankAccountOwnershipVerification, company_license: ::Stripe::AccountService::UpdateParams::Documents::CompanyLicense, company_memorandum_of_association: ::Stripe::AccountService::UpdateParams::Documents::CompanyMemorandumOfAssociation, company_ministerial_decree: ::Stripe::AccountService::UpdateParams::Documents::CompanyMinisterialDecree, company_registration_verification: ::Stripe::AccountService::UpdateParams::Documents::CompanyRegistrationVerification, company_tax_id_verification: ::Stripe::AccountService::UpdateParams::Documents::CompanyTaxIdVerification, proof_of_registration: ::Stripe::AccountService::UpdateParams::Documents::ProofOfRegistration).void + params(bank_account_ownership_verification: ::Stripe::AccountService::UpdateParams::Documents::BankAccountOwnershipVerification, company_license: ::Stripe::AccountService::UpdateParams::Documents::CompanyLicense, company_memorandum_of_association: ::Stripe::AccountService::UpdateParams::Documents::CompanyMemorandumOfAssociation, company_ministerial_decree: ::Stripe::AccountService::UpdateParams::Documents::CompanyMinisterialDecree, company_registration_verification: ::Stripe::AccountService::UpdateParams::Documents::CompanyRegistrationVerification, company_tax_id_verification: ::Stripe::AccountService::UpdateParams::Documents::CompanyTaxIdVerification, proof_of_registration: ::Stripe::AccountService::UpdateParams::Documents::ProofOfRegistration, proof_of_ultimate_beneficial_ownership: ::Stripe::AccountService::UpdateParams::Documents::ProofOfUltimateBeneficialOwnership).void } def initialize( bank_account_ownership_verification: nil, @@ -1333,7 +1345,8 @@ module Stripe company_ministerial_decree: nil, company_registration_verification: nil, company_tax_id_verification: nil, - proof_of_registration: nil + proof_of_registration: nil, + proof_of_ultimate_beneficial_ownership: nil ); end end class Groups < Stripe::RequestParams @@ -3429,6 +3442,13 @@ module Stripe sig { params(files: T::Array[String]).void } def initialize(files: nil); end end + class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams + # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. + sig { returns(T::Array[String]) } + attr_accessor :files + sig { params(files: T::Array[String]).void } + def initialize(files: nil); end + end # One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check. sig { returns(::Stripe::AccountService::CreateParams::Documents::BankAccountOwnershipVerification) @@ -3456,8 +3476,13 @@ module Stripe # One or more documents showing the company’s proof of registration with the national business registry. sig { returns(::Stripe::AccountService::CreateParams::Documents::ProofOfRegistration) } attr_accessor :proof_of_registration + # One or more documents that demonstrate proof of ultimate beneficial ownership. + sig { + returns(::Stripe::AccountService::CreateParams::Documents::ProofOfUltimateBeneficialOwnership) + } + attr_accessor :proof_of_ultimate_beneficial_ownership sig { - params(bank_account_ownership_verification: ::Stripe::AccountService::CreateParams::Documents::BankAccountOwnershipVerification, company_license: ::Stripe::AccountService::CreateParams::Documents::CompanyLicense, company_memorandum_of_association: ::Stripe::AccountService::CreateParams::Documents::CompanyMemorandumOfAssociation, company_ministerial_decree: ::Stripe::AccountService::CreateParams::Documents::CompanyMinisterialDecree, company_registration_verification: ::Stripe::AccountService::CreateParams::Documents::CompanyRegistrationVerification, company_tax_id_verification: ::Stripe::AccountService::CreateParams::Documents::CompanyTaxIdVerification, proof_of_registration: ::Stripe::AccountService::CreateParams::Documents::ProofOfRegistration).void + params(bank_account_ownership_verification: ::Stripe::AccountService::CreateParams::Documents::BankAccountOwnershipVerification, company_license: ::Stripe::AccountService::CreateParams::Documents::CompanyLicense, company_memorandum_of_association: ::Stripe::AccountService::CreateParams::Documents::CompanyMemorandumOfAssociation, company_ministerial_decree: ::Stripe::AccountService::CreateParams::Documents::CompanyMinisterialDecree, company_registration_verification: ::Stripe::AccountService::CreateParams::Documents::CompanyRegistrationVerification, company_tax_id_verification: ::Stripe::AccountService::CreateParams::Documents::CompanyTaxIdVerification, proof_of_registration: ::Stripe::AccountService::CreateParams::Documents::ProofOfRegistration, proof_of_ultimate_beneficial_ownership: ::Stripe::AccountService::CreateParams::Documents::ProofOfUltimateBeneficialOwnership).void } def initialize( bank_account_ownership_verification: nil, @@ -3466,7 +3491,8 @@ module Stripe company_ministerial_decree: nil, company_registration_verification: nil, company_tax_id_verification: nil, - proof_of_registration: nil + proof_of_registration: nil, + proof_of_ultimate_beneficial_ownership: nil ); end end class Groups < Stripe::RequestParams From 08020d32075d6216778551aef64b8a1af8ea9d8e Mon Sep 17 00:00:00 2001 From: David Brownman <109395161+xavdid-stripe@users.noreply.github.com> Date: Thu, 16 Jan 2025 14:54:59 -0800 Subject: [PATCH 14/18] add justfile (#1513) * add justfile * add just to ci and split out commands * Fix justfile * update readme and CI * update justfile * update CI * update justfile import * remove unused block --- .github/workflows/ci.yml | 12 +++++++----- Makefile | 2 ++ README.md | 15 +++++++++------ Rakefile | 5 ----- justfile | 41 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 59 insertions(+), 16 deletions(-) create mode 100644 justfile diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af0234135..2fe900f4a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,16 +20,17 @@ on: jobs: build: name: Build - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: + - uses: extractions/setup-just@v2 - uses: actions/checkout@v3 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: 3.1 - name: Lint - run: bundle install && bundle exec rake rubocop + run: just lint - name: Build run: gem build stripe.gemspec - name: 'Upload Artifact' @@ -40,12 +41,13 @@ jobs: test: name: Test (${{ matrix.ruby-version }}) - # this is needed because our JRuby test version isnt supported on ubuntu-24 (which is now ubuntu-latest) + # this version of jruby isn't available in the new latest (24.04) so we have to pin (or update jruby) runs-on: ubuntu-22.04 strategy: matrix: ruby-version: [2.3, 2.4, 2.5, 2.6, 2.7, '3.0', 3.1, 3.2, '3.3', jruby-9.4.0.0, truffleruby-head] steps: + - uses: extractions/setup-just@v2 - uses: actions/checkout@v3 - name: Set up Ruby uses: ruby/setup-ruby@v1 @@ -53,7 +55,7 @@ jobs: ruby-version: ${{ matrix.ruby-version }} - uses: stripe/openapi/actions/stripe-mock@master - name: test - run: make ci-test + run: just test typecheck env: GITHUB_TOKEN: ${{ secrets.github_token }} @@ -64,7 +66,7 @@ jobs: startsWith(github.ref, 'refs/tags/v') && endsWith(github.actor, '-stripe') needs: [build, test] - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Download all workflow run artifacts uses: actions/download-artifact@v4 diff --git a/Makefile b/Makefile index cc7d150f1..218187cf0 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +# NOTE: this file is deprecated and slated for deletion; prefer using the equivalent `just` commands. + .PHONY: update-version codegen-format test ci-test update-version: @echo "$(VERSION)" > VERSION diff --git a/README.md b/README.md index 121329afa..a271ef82b 100644 --- a/README.md +++ b/README.md @@ -364,19 +364,20 @@ New features and bug fixes are released on the latest major version of the Strip [Contribution guidelines for this project](CONTRIBUTING.md) -The test suite depends on [stripe-mock], so make sure to fetch and run it from a -background terminal ([stripe-mock's README][stripe-mock] also contains -instructions for installing via Homebrew and other methods): +The test suite depends on [stripe-mock], so make sure to fetch and run it from a background terminal ([stripe-mock's README][stripe-mock] also contains instructions for installing via Homebrew and other methods): ```sh go install github.com/stripe/stripe-mock@latest stripe-mock ``` +We use [just](https://github.com/casey/just) for common development tasks. You can install it or run the underlying commands directly (by copying them from the `justfile`). Common tasks include: + Run all tests: ```sh -bundle exec rake test +just test +# or: bundle exec rake test ``` Run a single test suite: @@ -394,13 +395,15 @@ bundle exec ruby -Ilib/ test/stripe/util_test.rb -n /should.convert.names.to.sym Run the linter: ```sh -bundle exec rake rubocop +just lint +# or: bundle exec rubocop ``` Update bundled CA certificates from the [Mozilla cURL release][curl]: ```sh -bundle exec rake update_certs +just update-certs +# or: bundle exec rake update_certs ``` Update the bundled [stripe-mock] by editing the version number found in diff --git a/Rakefile b/Rakefile index 44ae7a6c9..b8646ef21 100644 --- a/Rakefile +++ b/Rakefile @@ -8,11 +8,6 @@ Rake::TestTask.new do |t| t.pattern = "./test/**/*_test.rb" end -if RUBY_VERSION >= "2.7.0" - require "rubocop/rake_task" - RuboCop::RakeTask.new -end - desc "Update bundled certs" task :update_certs do require "net/http" diff --git a/justfile b/justfile new file mode 100644 index 000000000..0abb44790 --- /dev/null +++ b/justfile @@ -0,0 +1,41 @@ +set quiet + +import? '../sdk-codegen/utils.just' + +_default: + just --list --unsorted + +install *args: + bundle install {{ if is_dependency() == "true" {"--quiet"} else {""} }} {{ args }} + +# ⭐ run all unit tests +test: install + bundle exec rake test + +# check linting / formatting status of files +format-check *args: install + bundle exec rubocop {{ args }} +alias lint-check := format-check + +# ⭐ check style & formatting for all files, fixing what we can +lint: (format-check "--autocorrect") + +# copy of `lint` with less output +format: (format-check "--format quiet --autocorrect") + +update-certs: install + bundle exec rake update_certs + +# run sorbet to check type definitions +typecheck: install + {{ if semver_matches(`ruby -e "puts RUBY_VERSION"`, ">=2.7") == "true" { \ + "bundle exec srb tc" \ + } else { \ + "echo \"Ruby version < 2.7, skipping srb tc\"" \ + } }} + +# called by tooling +[private] +update-version version: + echo "{{ version }}" > VERSION + perl -pi -e 's|VERSION = "[.\-\w\d]+"|VERSION = "{{ version }}"|' lib/stripe/version.rb From b03b022d706e5436c8aa1c34fde74c286420fde0 Mon Sep 17 00:00:00 2001 From: jar-stripe Date: Thu, 16 Jan 2025 17:17:34 -0800 Subject: [PATCH 15/18] Fixed typos in CONTRIBUTING.MD (#1519) --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d730b4ad7..4103cb42f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -7,7 +7,7 @@ For most pull requests, we request that you identify or create an associated iss ## Contributor License Agreement -All contributors must sign the Contributor License Agreement (CLA) before we can accept their contribution. If you have not yet signed the agremenet, you will be given an option to do so when you open a pull request. You can then sign by clicking on the badge in the comment from @CLAassistant. +All contributors must sign the Contributor License Agreement (CLA) before we can accept their contribution. If you have not yet signed the agreement, you will be given an option to do so when you open a pull request. You can then sign by clicking on the badge in the comment from @CLAassistant. ## Generated code @@ -17,7 +17,7 @@ To identify files with purely generated code, look for the comment `File generat ## Compatibility with supported language and runtime versions -This project supports a [many different langauge and runtime versions](README.md#requirements) and we are unable to accept any contribution that does not work on _all_ supported versions. If, after discussing the approach in the associated issue, your change must use an API / feature that isn't available in all supported versions, please call this out explicitly in the issue or pull request so we can help figure out the best way forward. +This project supports [many different langauge and runtime versions](README.md#requirements) and we are unable to accept any contribution that does not work on _all_ supported versions. If, after discussing the approach in the associated issue, your change must use an API / feature that isn't available in all supported versions, please call this out explicitly in the issue or pull request so we can help figure out the best way forward. ## Set up your dev environment From 530464030364985ff317a093b00d0fd2821d167e Mon Sep 17 00:00:00 2001 From: David Brownman <109395161+xavdid-stripe@users.noreply.github.com> Date: Fri, 17 Jan 2025 10:30:37 -0800 Subject: [PATCH 16/18] pipe rubocop output to devnull (#1521) --- justfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index 0abb44790..803a3f077 100644 --- a/justfile +++ b/justfile @@ -20,8 +20,10 @@ alias lint-check := format-check # ⭐ check style & formatting for all files, fixing what we can lint: (format-check "--autocorrect") +# NOTE: "-o /dev/null" is vital - rubocop has super noisy output and codegen will crash when formatting ruby if everything gets printed +# so, we send all its output to the void # copy of `lint` with less output -format: (format-check "--format quiet --autocorrect") +format: (format-check "-o /dev/null --autocorrect") update-certs: install bundle exec rake update_certs From 1e9681fecea78ae459c32ec48fcba6b0d70502b1 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 17 Jan 2025 22:32:42 +0000 Subject: [PATCH 17/18] Update generated code for v1454 --- OPENAPI_VERSION | 2 +- lib/stripe/api_version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 59bdaaed2..4624c15fb 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1453 \ No newline at end of file +v1454 \ No newline at end of file diff --git a/lib/stripe/api_version.rb b/lib/stripe/api_version.rb index 9fc77642b..464a06ef3 100644 --- a/lib/stripe/api_version.rb +++ b/lib/stripe/api_version.rb @@ -3,6 +3,6 @@ module Stripe module ApiVersion - CURRENT = "2024-12-18.acacia" + CURRENT = "2025-01-27.acacia" end end From d9118a2be22fb3db9d2c501d6a184d112ade0ec4 Mon Sep 17 00:00:00 2001 From: Jesse Rosalia Date: Fri, 17 Jan 2025 16:15:36 -0800 Subject: [PATCH 18/18] added CONTRIBUTING.md --- CONTRIBUTING.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..4103cb42f --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,25 @@ + +# Contributing + +We welcome bug reports, feature requests, and code contributions in a pull request. + +For most pull requests, we request that you identify or create an associated issue that has the necessary context. We use these issues to reach agreement on an approach and save the PR author from having to redo work. Fixing typos or documentation issues likely do not need an issue; for any issue that introduces substantial code changes, changes the public interface, or if you aren't sure, please find or [create an issue](https://www.github.com/stripe/stripe-ruby/issues/new/choose). + +## Contributor License Agreement + +All contributors must sign the Contributor License Agreement (CLA) before we can accept their contribution. If you have not yet signed the agreement, you will be given an option to do so when you open a pull request. You can then sign by clicking on the badge in the comment from @CLAassistant. + +## Generated code + +This project has a combination of manually maintained code and code generated from our private code generator. If your contribution involves changes to generated code, please call this out in the issue or pull request as we will likely need to make a change to our code generator before accepting the contribution. + +To identify files with purely generated code, look for the comment `File generated from our OpenAPI spec.` at the start of the file. Generated blocks of code within hand-written files will be between comments that say `The beginning of the section generated from our OpenAPI spec` and `The end of the section generated from our OpenAPI spec`. + +## Compatibility with supported language and runtime versions + +This project supports [many different langauge and runtime versions](README.md#requirements) and we are unable to accept any contribution that does not work on _all_ supported versions. If, after discussing the approach in the associated issue, your change must use an API / feature that isn't available in all supported versions, please call this out explicitly in the issue or pull request so we can help figure out the best way forward. + +## Set up your dev environment + +Please refer to this project's [README.md](README.md#development) for instructions on how to set up your development environment. +