stripe 15.4.0.pre.beta.1 → 15.4.0.pre.beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/rbi/stripe.rbi CHANGED
@@ -107499,6 +107499,214 @@ module Stripe
107499
107499
  sig { returns(T.nilable(DefaultOutboundDestination)) }
107500
107500
  attr_reader :default_outbound_destination
107501
107501
  end
107502
+ class Storer < Stripe::StripeObject
107503
+ class Capabilities < Stripe::StripeObject
107504
+ class FinancialAddresses < Stripe::StripeObject
107505
+ class BankAccounts < Stripe::StripeObject
107506
+ class StatusDetail < Stripe::StripeObject
107507
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
107508
+ sig { returns(String) }
107509
+ attr_reader :code
107510
+ # Machine-readable code explaining how to make the Capability active.
107511
+ sig { returns(String) }
107512
+ attr_reader :resolution
107513
+ end
107514
+ # Whether the Capability has been requested.
107515
+ sig { returns(T::Boolean) }
107516
+ attr_reader :requested
107517
+ # The status of the Capability.
107518
+ sig { returns(String) }
107519
+ attr_reader :status
107520
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
107521
+ sig { returns(T::Array[StatusDetail]) }
107522
+ attr_reader :status_details
107523
+ end
107524
+ # Can provision a bank-account like financial address (VBAN) to credit/debit a FinancialAccount.
107525
+ sig { returns(T.nilable(BankAccounts)) }
107526
+ attr_reader :bank_accounts
107527
+ end
107528
+ class HoldsCurrencies < Stripe::StripeObject
107529
+ class Gbp < Stripe::StripeObject
107530
+ class StatusDetail < Stripe::StripeObject
107531
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
107532
+ sig { returns(String) }
107533
+ attr_reader :code
107534
+ # Machine-readable code explaining how to make the Capability active.
107535
+ sig { returns(String) }
107536
+ attr_reader :resolution
107537
+ end
107538
+ # Whether the Capability has been requested.
107539
+ sig { returns(T::Boolean) }
107540
+ attr_reader :requested
107541
+ # The status of the Capability.
107542
+ sig { returns(String) }
107543
+ attr_reader :status
107544
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
107545
+ sig { returns(T::Array[StatusDetail]) }
107546
+ attr_reader :status_details
107547
+ end
107548
+ # Can hold storage-type funds on Stripe in GBP.
107549
+ sig { returns(T.nilable(Gbp)) }
107550
+ attr_reader :gbp
107551
+ end
107552
+ class InboundTransfers < Stripe::StripeObject
107553
+ class BankAccounts < Stripe::StripeObject
107554
+ class StatusDetail < Stripe::StripeObject
107555
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
107556
+ sig { returns(String) }
107557
+ attr_reader :code
107558
+ # Machine-readable code explaining how to make the Capability active.
107559
+ sig { returns(String) }
107560
+ attr_reader :resolution
107561
+ end
107562
+ # Whether the Capability has been requested.
107563
+ sig { returns(T::Boolean) }
107564
+ attr_reader :requested
107565
+ # The status of the Capability.
107566
+ sig { returns(String) }
107567
+ attr_reader :status
107568
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
107569
+ sig { returns(T::Array[StatusDetail]) }
107570
+ attr_reader :status_details
107571
+ end
107572
+ # Can pull funds from an external bank account, owned by yourself, to a FinancialAccount.
107573
+ sig { returns(T.nilable(BankAccounts)) }
107574
+ attr_reader :bank_accounts
107575
+ end
107576
+ class OutboundPayments < Stripe::StripeObject
107577
+ class BankAccounts < Stripe::StripeObject
107578
+ class StatusDetail < Stripe::StripeObject
107579
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
107580
+ sig { returns(String) }
107581
+ attr_reader :code
107582
+ # Machine-readable code explaining how to make the Capability active.
107583
+ sig { returns(String) }
107584
+ attr_reader :resolution
107585
+ end
107586
+ # Whether the Capability has been requested.
107587
+ sig { returns(T::Boolean) }
107588
+ attr_reader :requested
107589
+ # The status of the Capability.
107590
+ sig { returns(String) }
107591
+ attr_reader :status
107592
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
107593
+ sig { returns(T::Array[StatusDetail]) }
107594
+ attr_reader :status_details
107595
+ end
107596
+ class Cards < Stripe::StripeObject
107597
+ class StatusDetail < Stripe::StripeObject
107598
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
107599
+ sig { returns(String) }
107600
+ attr_reader :code
107601
+ # Machine-readable code explaining how to make the Capability active.
107602
+ sig { returns(String) }
107603
+ attr_reader :resolution
107604
+ end
107605
+ # Whether the Capability has been requested.
107606
+ sig { returns(T::Boolean) }
107607
+ attr_reader :requested
107608
+ # The status of the Capability.
107609
+ sig { returns(String) }
107610
+ attr_reader :status
107611
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
107612
+ sig { returns(T::Array[StatusDetail]) }
107613
+ attr_reader :status_details
107614
+ end
107615
+ class FinancialAccounts < Stripe::StripeObject
107616
+ class StatusDetail < Stripe::StripeObject
107617
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
107618
+ sig { returns(String) }
107619
+ attr_reader :code
107620
+ # Machine-readable code explaining how to make the Capability active.
107621
+ sig { returns(String) }
107622
+ attr_reader :resolution
107623
+ end
107624
+ # Whether the Capability has been requested.
107625
+ sig { returns(T::Boolean) }
107626
+ attr_reader :requested
107627
+ # The status of the Capability.
107628
+ sig { returns(String) }
107629
+ attr_reader :status
107630
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
107631
+ sig { returns(T::Array[StatusDetail]) }
107632
+ attr_reader :status_details
107633
+ end
107634
+ # Can send funds from a FinancialAccount to a bank account, owned by someone else.
107635
+ sig { returns(T.nilable(BankAccounts)) }
107636
+ attr_reader :bank_accounts
107637
+ # Can send funds from a FinancialAccount to a debit card, owned by someone else.
107638
+ sig { returns(T.nilable(Cards)) }
107639
+ attr_reader :cards
107640
+ # Can send funds from a FinancialAccount to another FinancialAccount, owned by someone else.
107641
+ sig { returns(T.nilable(FinancialAccounts)) }
107642
+ attr_reader :financial_accounts
107643
+ end
107644
+ class OutboundTransfers < Stripe::StripeObject
107645
+ class BankAccounts < Stripe::StripeObject
107646
+ class StatusDetail < Stripe::StripeObject
107647
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
107648
+ sig { returns(String) }
107649
+ attr_reader :code
107650
+ # Machine-readable code explaining how to make the Capability active.
107651
+ sig { returns(String) }
107652
+ attr_reader :resolution
107653
+ end
107654
+ # Whether the Capability has been requested.
107655
+ sig { returns(T::Boolean) }
107656
+ attr_reader :requested
107657
+ # The status of the Capability.
107658
+ sig { returns(String) }
107659
+ attr_reader :status
107660
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
107661
+ sig { returns(T::Array[StatusDetail]) }
107662
+ attr_reader :status_details
107663
+ end
107664
+ class FinancialAccounts < Stripe::StripeObject
107665
+ class StatusDetail < Stripe::StripeObject
107666
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
107667
+ sig { returns(String) }
107668
+ attr_reader :code
107669
+ # Machine-readable code explaining how to make the Capability active.
107670
+ sig { returns(String) }
107671
+ attr_reader :resolution
107672
+ end
107673
+ # Whether the Capability has been requested.
107674
+ sig { returns(T::Boolean) }
107675
+ attr_reader :requested
107676
+ # The status of the Capability.
107677
+ sig { returns(String) }
107678
+ attr_reader :status
107679
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
107680
+ sig { returns(T::Array[StatusDetail]) }
107681
+ attr_reader :status_details
107682
+ end
107683
+ # Can send funds from a FinancialAccount, to a bank account, owned by yourself.
107684
+ sig { returns(T.nilable(BankAccounts)) }
107685
+ attr_reader :bank_accounts
107686
+ # Can send funds from a FinancialAccount to another FinancialAccount, owned by yourself.
107687
+ sig { returns(T.nilable(FinancialAccounts)) }
107688
+ attr_reader :financial_accounts
107689
+ end
107690
+ # Can provision a financial address to credit/debit a FinancialAccount.
107691
+ sig { returns(T.nilable(FinancialAddresses)) }
107692
+ attr_reader :financial_addresses
107693
+ # Can hold storage-type funds on Stripe.
107694
+ sig { returns(T.nilable(HoldsCurrencies)) }
107695
+ attr_reader :holds_currencies
107696
+ # Can pull funds from an external source, owned by yourself, to a FinancialAccount.
107697
+ sig { returns(T.nilable(InboundTransfers)) }
107698
+ attr_reader :inbound_transfers
107699
+ # Can send funds from a FinancialAccount to a destination owned by someone else.
107700
+ sig { returns(T.nilable(OutboundPayments)) }
107701
+ attr_reader :outbound_payments
107702
+ # Can send funds from a FinancialAccount to a destination owned by yourself.
107703
+ sig { returns(T.nilable(OutboundTransfers)) }
107704
+ attr_reader :outbound_transfers
107705
+ end
107706
+ # Capabilities that have been requested on the Storer Configuration.
107707
+ sig { returns(T.nilable(Capabilities)) }
107708
+ attr_reader :capabilities
107709
+ end
107502
107710
  # The Customer Configuration allows the Account to be used in inbound payment flows.
107503
107711
  sig { returns(T.nilable(Customer)) }
107504
107712
  attr_reader :customer
@@ -107508,6 +107716,9 @@ module Stripe
107508
107716
  # The Recipient Configuration allows the Account to receive funds.
107509
107717
  sig { returns(T.nilable(Recipient)) }
107510
107718
  attr_reader :recipient
107719
+ # The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
107720
+ sig { returns(T.nilable(Storer)) }
107721
+ attr_reader :storer
107511
107722
  end
107512
107723
  class Defaults < Stripe::StripeObject
107513
107724
  class Responsibilities < Stripe::StripeObject
@@ -108974,6 +109185,27 @@ module Stripe
108974
109185
  sig { returns(String) }
108975
109186
  attr_reader :type
108976
109187
  end
109188
+ class StatusDetails < Stripe::StripeObject
109189
+ class Closed < Stripe::StripeObject
109190
+ class ForwardingSettings < Stripe::StripeObject
109191
+ # The address to send forwarded payments to.
109192
+ sig { returns(T.nilable(String)) }
109193
+ attr_reader :payment_method
109194
+ # The address to send forwarded payouts to.
109195
+ sig { returns(T.nilable(String)) }
109196
+ attr_reader :payout_method
109197
+ end
109198
+ # Attribute for field forwarding_settings
109199
+ sig { returns(T.nilable(ForwardingSettings)) }
109200
+ attr_reader :forwarding_settings
109201
+ # Attribute for field reason
109202
+ sig { returns(String) }
109203
+ attr_reader :reason
109204
+ end
109205
+ # Attribute for field closed
109206
+ sig { returns(T.nilable(Closed)) }
109207
+ attr_reader :closed
109208
+ end
108977
109209
  class Storage < Stripe::StripeObject
108978
109210
  # The currencies that this FinancialAccount can hold.
108979
109211
  sig { returns(T::Array[String]) }
@@ -109003,6 +109235,9 @@ module Stripe
109003
109235
  # Closed Enum. An enum representing the status of the FinancialAccount. This indicates whether or not the FinancialAccount can be used for any money movement flows.
109004
109236
  sig { returns(String) }
109005
109237
  attr_reader :status
109238
+ # Attribute for field status_details
109239
+ sig { returns(T.nilable(StatusDetails)) }
109240
+ attr_reader :status_details
109006
109241
  # If this is a `storage` FinancialAccount, this hash includes details specific to `storage` FinancialAccounts.
109007
109242
  sig { returns(T.nilable(Storage)) }
109008
109243
  attr_reader :storage
@@ -187628,6 +187863,180 @@ module Stripe
187628
187863
  }
187629
187864
  def initialize(capabilities: nil); end
187630
187865
  end
187866
+ class Storer < Stripe::RequestParams
187867
+ class Capabilities < Stripe::RequestParams
187868
+ class FinancialAddresses < Stripe::RequestParams
187869
+ class BankAccounts < Stripe::RequestParams
187870
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
187871
+ sig { returns(T::Boolean) }
187872
+ attr_accessor :requested
187873
+ sig { params(requested: T::Boolean).void }
187874
+ def initialize(requested: nil); end
187875
+ end
187876
+ # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount.
187877
+ sig {
187878
+ returns(T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts))
187879
+ }
187880
+ attr_accessor :bank_accounts
187881
+ sig {
187882
+ params(bank_accounts: T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)).void
187883
+ }
187884
+ def initialize(bank_accounts: nil); end
187885
+ end
187886
+ class HoldsCurrencies < Stripe::RequestParams
187887
+ class Gbp < Stripe::RequestParams
187888
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
187889
+ sig { returns(T::Boolean) }
187890
+ attr_accessor :requested
187891
+ sig { params(requested: T::Boolean).void }
187892
+ def initialize(requested: nil); end
187893
+ end
187894
+ # Can hold storage-type funds on Stripe in GBP.
187895
+ sig {
187896
+ returns(T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp))
187897
+ }
187898
+ attr_accessor :gbp
187899
+ sig {
187900
+ params(gbp: T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)).void
187901
+ }
187902
+ def initialize(gbp: nil); end
187903
+ end
187904
+ class InboundTransfers < Stripe::RequestParams
187905
+ class BankAccounts < Stripe::RequestParams
187906
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
187907
+ sig { returns(T::Boolean) }
187908
+ attr_accessor :requested
187909
+ sig { params(requested: T::Boolean).void }
187910
+ def initialize(requested: nil); end
187911
+ end
187912
+ # Can pull funds from an external bank account owned by yourself to a FinancialAccount.
187913
+ sig {
187914
+ returns(T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::InboundTransfers::BankAccounts))
187915
+ }
187916
+ attr_accessor :bank_accounts
187917
+ sig {
187918
+ params(bank_accounts: T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::InboundTransfers::BankAccounts)).void
187919
+ }
187920
+ def initialize(bank_accounts: nil); end
187921
+ end
187922
+ class OutboundPayments < Stripe::RequestParams
187923
+ class BankAccounts < Stripe::RequestParams
187924
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
187925
+ sig { returns(T::Boolean) }
187926
+ attr_accessor :requested
187927
+ sig { params(requested: T::Boolean).void }
187928
+ def initialize(requested: nil); end
187929
+ end
187930
+ class Cards < Stripe::RequestParams
187931
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
187932
+ sig { returns(T::Boolean) }
187933
+ attr_accessor :requested
187934
+ sig { params(requested: T::Boolean).void }
187935
+ def initialize(requested: nil); end
187936
+ end
187937
+ class FinancialAccounts < Stripe::RequestParams
187938
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
187939
+ sig { returns(T::Boolean) }
187940
+ attr_accessor :requested
187941
+ sig { params(requested: T::Boolean).void }
187942
+ def initialize(requested: nil); end
187943
+ end
187944
+ # Can send funds from a FinancialAccount to a bank account owned by someone else.
187945
+ sig {
187946
+ returns(T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::OutboundPayments::BankAccounts))
187947
+ }
187948
+ attr_accessor :bank_accounts
187949
+ # Can send funds from a FinancialAccount to a debit card owned by someone else.
187950
+ sig {
187951
+ returns(T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards))
187952
+ }
187953
+ attr_accessor :cards
187954
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else.
187955
+ sig {
187956
+ returns(T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts))
187957
+ }
187958
+ attr_accessor :financial_accounts
187959
+ sig {
187960
+ params(bank_accounts: T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::OutboundPayments::BankAccounts), cards: T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards), financial_accounts: T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)).void
187961
+ }
187962
+ def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil); end
187963
+ end
187964
+ class OutboundTransfers < Stripe::RequestParams
187965
+ class BankAccounts < Stripe::RequestParams
187966
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
187967
+ sig { returns(T::Boolean) }
187968
+ attr_accessor :requested
187969
+ sig { params(requested: T::Boolean).void }
187970
+ def initialize(requested: nil); end
187971
+ end
187972
+ class FinancialAccounts < Stripe::RequestParams
187973
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
187974
+ sig { returns(T::Boolean) }
187975
+ attr_accessor :requested
187976
+ sig { params(requested: T::Boolean).void }
187977
+ def initialize(requested: nil); end
187978
+ end
187979
+ # Can send funds from a FinancialAccount to a bank account owned by yourself.
187980
+ sig {
187981
+ returns(T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts))
187982
+ }
187983
+ attr_accessor :bank_accounts
187984
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself.
187985
+ sig {
187986
+ returns(T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts))
187987
+ }
187988
+ attr_accessor :financial_accounts
187989
+ sig {
187990
+ params(bank_accounts: T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts), financial_accounts: T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)).void
187991
+ }
187992
+ def initialize(bank_accounts: nil, financial_accounts: nil); end
187993
+ end
187994
+ # Can provision a financial address to credit/debit a FinancialAccount.
187995
+ sig {
187996
+ returns(T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::FinancialAddresses))
187997
+ }
187998
+ attr_accessor :financial_addresses
187999
+ # Can hold storage-type funds on Stripe.
188000
+ sig {
188001
+ returns(T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::HoldsCurrencies))
188002
+ }
188003
+ attr_accessor :holds_currencies
188004
+ # Can pull funds from an external source, owned by yourself, to a FinancialAccount.
188005
+ sig {
188006
+ returns(T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::InboundTransfers))
188007
+ }
188008
+ attr_accessor :inbound_transfers
188009
+ # Can send funds from a FinancialAccount to a destination owned by someone else.
188010
+ sig {
188011
+ returns(T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::OutboundPayments))
188012
+ }
188013
+ attr_accessor :outbound_payments
188014
+ # Can send funds from a FinancialAccount to a destination owned by yourself.
188015
+ sig {
188016
+ returns(T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::OutboundTransfers))
188017
+ }
188018
+ attr_accessor :outbound_transfers
188019
+ sig {
188020
+ params(financial_addresses: T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::FinancialAddresses), holds_currencies: T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::HoldsCurrencies), inbound_transfers: T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::InboundTransfers), outbound_payments: T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::OutboundPayments), outbound_transfers: T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities::OutboundTransfers)).void
188021
+ }
188022
+ def initialize(
188023
+ financial_addresses: nil,
188024
+ holds_currencies: nil,
188025
+ inbound_transfers: nil,
188026
+ outbound_payments: nil,
188027
+ outbound_transfers: nil
188028
+ ); end
188029
+ end
188030
+ # Capabilities to request on the Storer Configuration.
188031
+ sig {
188032
+ returns(T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities))
188033
+ }
188034
+ attr_accessor :capabilities
188035
+ sig {
188036
+ params(capabilities: T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer::Capabilities)).void
188037
+ }
188038
+ def initialize(capabilities: nil); end
188039
+ end
187631
188040
  # The Customer Configuration allows the Account to be used in inbound payment flows.
187632
188041
  sig {
187633
188042
  returns(T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Customer))
@@ -187643,10 +188052,15 @@ module Stripe
187643
188052
  returns(T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Recipient))
187644
188053
  }
187645
188054
  attr_accessor :recipient
188055
+ # The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
188056
+ sig {
188057
+ returns(T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer))
188058
+ }
188059
+ attr_accessor :storer
187646
188060
  sig {
187647
- params(customer: T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Customer), merchant: T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Merchant), recipient: T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Recipient)).void
188061
+ params(customer: T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Customer), merchant: T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Merchant), recipient: T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Recipient), storer: T.nilable(::Stripe::V2::Core::AccountService::CreateParams::Configuration::Storer)).void
187648
188062
  }
187649
- def initialize(customer: nil, merchant: nil, recipient: nil); end
188063
+ def initialize(customer: nil, merchant: nil, recipient: nil, storer: nil); end
187650
188064
  end
187651
188065
  class Defaults < Stripe::RequestParams
187652
188066
  class Responsibilities < Stripe::RequestParams
@@ -189798,6 +190212,180 @@ module Stripe
189798
190212
  }
189799
190213
  def initialize(capabilities: nil, default_outbound_destination: nil); end
189800
190214
  end
190215
+ class Storer < Stripe::RequestParams
190216
+ class Capabilities < Stripe::RequestParams
190217
+ class FinancialAddresses < Stripe::RequestParams
190218
+ class BankAccounts < Stripe::RequestParams
190219
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
190220
+ sig { returns(T.nilable(T::Boolean)) }
190221
+ attr_accessor :requested
190222
+ sig { params(requested: T.nilable(T::Boolean)).void }
190223
+ def initialize(requested: nil); end
190224
+ end
190225
+ # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount.
190226
+ sig {
190227
+ returns(T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts))
190228
+ }
190229
+ attr_accessor :bank_accounts
190230
+ sig {
190231
+ params(bank_accounts: T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)).void
190232
+ }
190233
+ def initialize(bank_accounts: nil); end
190234
+ end
190235
+ class HoldsCurrencies < Stripe::RequestParams
190236
+ class Gbp < Stripe::RequestParams
190237
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
190238
+ sig { returns(T.nilable(T::Boolean)) }
190239
+ attr_accessor :requested
190240
+ sig { params(requested: T.nilable(T::Boolean)).void }
190241
+ def initialize(requested: nil); end
190242
+ end
190243
+ # Can hold storage-type funds on Stripe in GBP.
190244
+ sig {
190245
+ returns(T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp))
190246
+ }
190247
+ attr_accessor :gbp
190248
+ sig {
190249
+ params(gbp: T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)).void
190250
+ }
190251
+ def initialize(gbp: nil); end
190252
+ end
190253
+ class InboundTransfers < Stripe::RequestParams
190254
+ class BankAccounts < Stripe::RequestParams
190255
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
190256
+ sig { returns(T.nilable(T::Boolean)) }
190257
+ attr_accessor :requested
190258
+ sig { params(requested: T.nilable(T::Boolean)).void }
190259
+ def initialize(requested: nil); end
190260
+ end
190261
+ # Can pull funds from an external bank account owned by yourself to a FinancialAccount.
190262
+ sig {
190263
+ returns(T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::InboundTransfers::BankAccounts))
190264
+ }
190265
+ attr_accessor :bank_accounts
190266
+ sig {
190267
+ params(bank_accounts: T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::InboundTransfers::BankAccounts)).void
190268
+ }
190269
+ def initialize(bank_accounts: nil); end
190270
+ end
190271
+ class OutboundPayments < Stripe::RequestParams
190272
+ class BankAccounts < Stripe::RequestParams
190273
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
190274
+ sig { returns(T.nilable(T::Boolean)) }
190275
+ attr_accessor :requested
190276
+ sig { params(requested: T.nilable(T::Boolean)).void }
190277
+ def initialize(requested: nil); end
190278
+ end
190279
+ class Cards < Stripe::RequestParams
190280
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
190281
+ sig { returns(T.nilable(T::Boolean)) }
190282
+ attr_accessor :requested
190283
+ sig { params(requested: T.nilable(T::Boolean)).void }
190284
+ def initialize(requested: nil); end
190285
+ end
190286
+ class FinancialAccounts < Stripe::RequestParams
190287
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
190288
+ sig { returns(T.nilable(T::Boolean)) }
190289
+ attr_accessor :requested
190290
+ sig { params(requested: T.nilable(T::Boolean)).void }
190291
+ def initialize(requested: nil); end
190292
+ end
190293
+ # Can send funds from a FinancialAccount to a bank account owned by someone else.
190294
+ sig {
190295
+ returns(T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::OutboundPayments::BankAccounts))
190296
+ }
190297
+ attr_accessor :bank_accounts
190298
+ # Can send funds from a FinancialAccount to a debit card owned by someone else.
190299
+ sig {
190300
+ returns(T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards))
190301
+ }
190302
+ attr_accessor :cards
190303
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else.
190304
+ sig {
190305
+ returns(T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts))
190306
+ }
190307
+ attr_accessor :financial_accounts
190308
+ sig {
190309
+ params(bank_accounts: T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::OutboundPayments::BankAccounts), cards: T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards), financial_accounts: T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)).void
190310
+ }
190311
+ def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil); end
190312
+ end
190313
+ class OutboundTransfers < Stripe::RequestParams
190314
+ class BankAccounts < Stripe::RequestParams
190315
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
190316
+ sig { returns(T.nilable(T::Boolean)) }
190317
+ attr_accessor :requested
190318
+ sig { params(requested: T.nilable(T::Boolean)).void }
190319
+ def initialize(requested: nil); end
190320
+ end
190321
+ class FinancialAccounts < Stripe::RequestParams
190322
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
190323
+ sig { returns(T.nilable(T::Boolean)) }
190324
+ attr_accessor :requested
190325
+ sig { params(requested: T.nilable(T::Boolean)).void }
190326
+ def initialize(requested: nil); end
190327
+ end
190328
+ # Can send funds from a FinancialAccount to a bank account owned by yourself.
190329
+ sig {
190330
+ returns(T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts))
190331
+ }
190332
+ attr_accessor :bank_accounts
190333
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself.
190334
+ sig {
190335
+ returns(T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts))
190336
+ }
190337
+ attr_accessor :financial_accounts
190338
+ sig {
190339
+ params(bank_accounts: T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts), financial_accounts: T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)).void
190340
+ }
190341
+ def initialize(bank_accounts: nil, financial_accounts: nil); end
190342
+ end
190343
+ # Can provision a financial address to credit/debit a FinancialAccount.
190344
+ sig {
190345
+ returns(T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::FinancialAddresses))
190346
+ }
190347
+ attr_accessor :financial_addresses
190348
+ # Can hold storage-type funds on Stripe.
190349
+ sig {
190350
+ returns(T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies))
190351
+ }
190352
+ attr_accessor :holds_currencies
190353
+ # Can pull funds from an external source, owned by yourself, to a FinancialAccount.
190354
+ sig {
190355
+ returns(T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::InboundTransfers))
190356
+ }
190357
+ attr_accessor :inbound_transfers
190358
+ # Can send funds from a FinancialAccount to a destination owned by someone else.
190359
+ sig {
190360
+ returns(T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::OutboundPayments))
190361
+ }
190362
+ attr_accessor :outbound_payments
190363
+ # Can send funds from a FinancialAccount to a destination owned by yourself.
190364
+ sig {
190365
+ returns(T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::OutboundTransfers))
190366
+ }
190367
+ attr_accessor :outbound_transfers
190368
+ sig {
190369
+ params(financial_addresses: T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::FinancialAddresses), holds_currencies: T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies), inbound_transfers: T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::InboundTransfers), outbound_payments: T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::OutboundPayments), outbound_transfers: T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities::OutboundTransfers)).void
190370
+ }
190371
+ def initialize(
190372
+ financial_addresses: nil,
190373
+ holds_currencies: nil,
190374
+ inbound_transfers: nil,
190375
+ outbound_payments: nil,
190376
+ outbound_transfers: nil
190377
+ ); end
190378
+ end
190379
+ # Capabilities to request on the Storer Configuration.
190380
+ sig {
190381
+ returns(T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities))
190382
+ }
190383
+ attr_accessor :capabilities
190384
+ sig {
190385
+ params(capabilities: T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer::Capabilities)).void
190386
+ }
190387
+ def initialize(capabilities: nil); end
190388
+ end
189801
190389
  # The Customer Configuration allows the Account to be charged.
189802
190390
  sig {
189803
190391
  returns(T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Customer))
@@ -189813,10 +190401,15 @@ module Stripe
189813
190401
  returns(T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Recipient))
189814
190402
  }
189815
190403
  attr_accessor :recipient
190404
+ # The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
190405
+ sig {
190406
+ returns(T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer))
190407
+ }
190408
+ attr_accessor :storer
189816
190409
  sig {
189817
- params(customer: T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Customer), merchant: T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Merchant), recipient: T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Recipient)).void
190410
+ params(customer: T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Customer), merchant: T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Merchant), recipient: T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Recipient), storer: T.nilable(::Stripe::V2::Core::AccountService::UpdateParams::Configuration::Storer)).void
189818
190411
  }
189819
- def initialize(customer: nil, merchant: nil, recipient: nil); end
190412
+ def initialize(customer: nil, merchant: nil, recipient: nil, storer: nil); end
189820
190413
  end
189821
190414
  class Defaults < Stripe::RequestParams
189822
190415
  class Responsibilities < Stripe::RequestParams
@@ -192584,10 +193177,75 @@ module Stripe
192584
193177
  # The page limit.
192585
193178
  sig { returns(T.nilable(Integer)) }
192586
193179
  attr_accessor :limit
192587
- sig { params(limit: T.nilable(Integer)).void }
192588
- def initialize(limit: nil); end
193180
+ # The status of the FinancialAccount to filter by. By default, closed FinancialAccounts are not returned.
193181
+ sig { returns(T.nilable(String)) }
193182
+ attr_accessor :status
193183
+ sig { params(limit: T.nilable(Integer), status: T.nilable(String)).void }
193184
+ def initialize(limit: nil, status: nil); end
193185
+ end
193186
+ class CreateParams < Stripe::RequestParams
193187
+ class Storage < Stripe::RequestParams
193188
+ # The currencies that this FinancialAccount can hold.
193189
+ sig { returns(T::Array[String]) }
193190
+ attr_accessor :holds_currencies
193191
+ sig { params(holds_currencies: T::Array[String]).void }
193192
+ def initialize(holds_currencies: nil); end
193193
+ end
193194
+ # Metadata associated with the FinancialAccount.
193195
+ sig { returns(T.nilable(T::Hash[String, String])) }
193196
+ attr_accessor :metadata
193197
+ # Parameters specific to creating `storage` type FinancialAccounts.
193198
+ sig {
193199
+ returns(T.nilable(::Stripe::V2::MoneyManagement::FinancialAccountService::CreateParams::Storage))
193200
+ }
193201
+ attr_accessor :storage
193202
+ # The type of FinancialAccount to create.
193203
+ sig { returns(String) }
193204
+ attr_accessor :type
193205
+ sig {
193206
+ params(metadata: T.nilable(T::Hash[String, String]), storage: T.nilable(::Stripe::V2::MoneyManagement::FinancialAccountService::CreateParams::Storage), type: String).void
193207
+ }
193208
+ def initialize(metadata: nil, storage: nil, type: nil); end
192589
193209
  end
192590
193210
  class RetrieveParams < Stripe::RequestParams; end
193211
+ class CloseParams < Stripe::RequestParams
193212
+ class ForwardingSettings < Stripe::RequestParams
193213
+ # The address to send forwarded payments to.
193214
+ sig { returns(T.nilable(String)) }
193215
+ attr_accessor :payment_method
193216
+ # The address to send forwarded payouts to.
193217
+ sig { returns(T.nilable(String)) }
193218
+ attr_accessor :payout_method
193219
+ sig { params(payment_method: T.nilable(String), payout_method: T.nilable(String)).void }
193220
+ def initialize(payment_method: nil, payout_method: nil); end
193221
+ end
193222
+ # The addresses to forward any incoming transactions to.
193223
+ sig {
193224
+ returns(T.nilable(::Stripe::V2::MoneyManagement::FinancialAccountService::CloseParams::ForwardingSettings))
193225
+ }
193226
+ attr_accessor :forwarding_settings
193227
+ sig {
193228
+ params(forwarding_settings: T.nilable(::Stripe::V2::MoneyManagement::FinancialAccountService::CloseParams::ForwardingSettings)).void
193229
+ }
193230
+ def initialize(forwarding_settings: nil); end
193231
+ end
193232
+ # Closes a FinancialAccount with or without forwarding settings.
193233
+ #
193234
+ # ** raises NonZeroBalanceError
193235
+ sig {
193236
+ params(id: String, params: T.any(::Stripe::V2::MoneyManagement::FinancialAccountService::CloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::MoneyManagement::FinancialAccount)
193237
+ }
193238
+ def close(id, params = {}, opts = {}); end
193239
+
193240
+ # Creates a new FinancialAccount.
193241
+ #
193242
+ # ** raises AlreadyExistsError
193243
+ # ** raises FeatureNotEnabledError
193244
+ sig {
193245
+ params(params: T.any(::Stripe::V2::MoneyManagement::FinancialAccountService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::MoneyManagement::FinancialAccount)
193246
+ }
193247
+ def create(params = {}, opts = {}); end
193248
+
192591
193249
  # Lists FinancialAccounts in this compartment.
192592
193250
  sig {
192593
193251
  params(params: T.any(::Stripe::V2::MoneyManagement::FinancialAccountService::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::ListObject)