Update generated code for v1819 and 2025-06-30.preview

This commit is contained in:
Stripe OpenAPI 2025-06-26 13:30:00 +00:00
parent ec0e5574d3
commit b1abc5f9ab
34 changed files with 1522 additions and 1528 deletions

View File

@ -4,12 +4,12 @@
module Stripe
module V2
class BillingService < StripeService
attr_reader :meter_event_session, :meter_event_adjustments, :meter_event_stream, :meter_events
attr_reader :meter_event_adjustments, :meter_event_session, :meter_event_stream, :meter_events
def initialize(requestor)
super
@meter_event_session = Stripe::V2::Billing::MeterEventSessionService.new(@requestor)
@meter_event_adjustments = Stripe::V2::Billing::MeterEventAdjustmentService.new(@requestor)
@meter_event_session = Stripe::V2::Billing::MeterEventSessionService.new(@requestor)
@meter_event_stream = Stripe::V2::Billing::MeterEventStreamService.new(@requestor)
@meter_events = Stripe::V2::Billing::MeterEventService.new(@requestor)
end

View File

@ -12,12 +12,15 @@ module Stripe
@persons = Stripe::V2::Core::Accounts::PersonService.new(@requestor)
end
class CloseParams < Stripe::RequestParams
# Configurations on the Account to be closed. All configurations on the Account must be passed in for this request to succeed.
class ListParams < Stripe::RequestParams
# Filter only accounts that have all of the configurations specified. If omitted, returns all accounts regardless of which configurations they have.
attr_accessor :applied_configurations
# The upper limit on the number of accounts returned by the List Account request.
attr_accessor :limit
def initialize(applied_configurations: nil)
def initialize(applied_configurations: nil, limit: nil)
@applied_configurations = applied_configurations
@limit = limit
end
end
@ -2048,18 +2051,6 @@ module Stripe
end
end
class ListParams < Stripe::RequestParams
# Filter only accounts that have all of the configurations specified. If omitted, returns all accounts regardless of which configurations they have.
attr_accessor :applied_configurations
# The upper limit on the number of accounts returned by the List Account request.
attr_accessor :limit
def initialize(applied_configurations: nil, limit: nil)
@applied_configurations = applied_configurations
@limit = limit
end
end
class RetrieveParams < Stripe::RequestParams
# Additional fields to include in the response.
attr_accessor :include
@ -4110,6 +4101,15 @@ module Stripe
end
end
class CloseParams < Stripe::RequestParams
# Configurations on the Account to be closed. All configurations on the Account must be passed in for this request to succeed.
attr_accessor :applied_configurations
def initialize(applied_configurations: nil)
@applied_configurations = applied_configurations
end
end
# Removes access to the Account and its associated resources.
def close(id, params = {}, opts = {})
request(

View File

@ -6,6 +6,15 @@ module Stripe
module Core
module Accounts
class PersonService < StripeService
class ListParams < Stripe::RequestParams
# The upper limit on the number of accounts returned by the List Account request.
attr_accessor :limit
def initialize(limit: nil)
@limit = limit
end
end
class CreateParams < Stripe::RequestParams
class AdditionalAddress < Stripe::RequestParams
# City, district, suburb, town, or village.
@ -490,16 +499,6 @@ module Stripe
end
class DeleteParams < Stripe::RequestParams; end
class ListParams < Stripe::RequestParams
# The upper limit on the number of accounts returned by the List Account request.
attr_accessor :limit
def initialize(limit: nil)
@limit = limit
end
end
class RetrieveParams < Stripe::RequestParams; end
class UpdateParams < Stripe::RequestParams

View File

@ -5,6 +5,18 @@ module Stripe
module V2
module Core
class EventDestinationService < StripeService
class ListParams < Stripe::RequestParams
# Additional fields to include in the response. Currently supports `webhook_endpoint.url`.
attr_accessor :include
# The page size.
attr_accessor :limit
def initialize(include: nil, limit: nil)
@include = include
@limit = limit
end
end
class CreateParams < Stripe::RequestParams
class AmazonEventbridge < Stripe::RequestParams
# The AWS account ID.
@ -77,22 +89,6 @@ module Stripe
end
class DeleteParams < Stripe::RequestParams; end
class DisableParams < Stripe::RequestParams; end
class EnableParams < Stripe::RequestParams; end
class ListParams < Stripe::RequestParams
# Additional fields to include in the response. Currently supports `webhook_endpoint.url`.
attr_accessor :include
# The page size.
attr_accessor :limit
def initialize(include: nil, limit: nil)
@include = include
@limit = limit
end
end
class PingParams < Stripe::RequestParams; end
class RetrieveParams < Stripe::RequestParams
# Additional fields to include in the response.
@ -142,6 +138,10 @@ module Stripe
end
end
class DisableParams < Stripe::RequestParams; end
class EnableParams < Stripe::RequestParams; end
class PingParams < Stripe::RequestParams; end
# Create a new event destination.
def create(params = {}, opts = {})
request(

View File

@ -6,9 +6,6 @@ module Stripe
module Core
module Vault
class GbBankAccountService < StripeService
class AcknowledgeConfirmationOfPayeeParams < Stripe::RequestParams; end
class ArchiveParams < Stripe::RequestParams; end
class CreateParams < Stripe::RequestParams
class ConfirmationOfPayee < Stripe::RequestParams
# The business type to be checked against. Legal entity information will be used if unspecified.
@ -49,6 +46,10 @@ module Stripe
end
end
class RetrieveParams < Stripe::RequestParams; end
class AcknowledgeConfirmationOfPayeeParams < Stripe::RequestParams; end
class ArchiveParams < Stripe::RequestParams; end
class InitiateConfirmationOfPayeeParams < Stripe::RequestParams
# The business type to be checked against. Legal entity information will be used if unspecified.
attr_accessor :business_type
@ -61,8 +62,6 @@ module Stripe
end
end
class RetrieveParams < Stripe::RequestParams; end
# Confirm that you have received the result of the Confirmation of Payee request, and that you are okay with
# proceeding to pay out to this bank account despite the account not matching, partially matching, or the service
# being unavailable. Once you confirm this, you will be able to send OutboundPayments, but this may lead to

View File

@ -6,8 +6,6 @@ module Stripe
module Core
module Vault
class UsBankAccountService < StripeService
class ArchiveParams < Stripe::RequestParams; end
class CreateParams < Stripe::RequestParams
# The account number of the bank account.
attr_accessor :account_number
@ -45,6 +43,8 @@ module Stripe
end
end
class ArchiveParams < Stripe::RequestParams; end
# Archive a USBankAccount object. USBankAccount objects will not be automatically archived by Stripe.
# Archived USBankAccount objects cannot be used as outbound destinations
# and will not appear in the outbound destination list.

View File

@ -4,12 +4,12 @@
module Stripe
module V2
class CoreService < StripeService
attr_reader :accounts, :account_links, :event_destinations, :events, :vault
attr_reader :account_links, :accounts, :event_destinations, :events, :vault
def initialize(requestor)
super
@accounts = Stripe::V2::Core::AccountService.new(@requestor)
@account_links = Stripe::V2::Core::AccountLinkService.new(@requestor)
@accounts = Stripe::V2::Core::AccountService.new(@requestor)
@event_destinations = Stripe::V2::Core::EventDestinationService.new(@requestor)
@events = Stripe::V2::Core::EventService.new(@requestor)
@vault = Stripe::V2::Core::VaultService.new(@requestor)

View File

@ -5,18 +5,6 @@ module Stripe
module V2
module MoneyManagement
class FinancialAddressService < StripeService
class CreateParams < Stripe::RequestParams
# Open Enum. The currency the FinancialAddress should support. Currently, only the `usd` and `gbp` values are supported.
attr_accessor :currency
# The ID of the FinancialAccount the new FinancialAddress should be associated with.
attr_accessor :financial_account
def initialize(currency: nil, financial_account: nil)
@currency = currency
@financial_account = financial_account
end
end
class ListParams < Stripe::RequestParams
# The ID of the FinancialAccount for which FinancialAddresses are to be returned.
attr_accessor :financial_account
@ -32,6 +20,18 @@ module Stripe
end
end
class CreateParams < Stripe::RequestParams
# Open Enum. The currency the FinancialAddress should support. Currently, only the `usd` and `gbp` values are supported.
attr_accessor :currency
# The ID of the FinancialAccount the new FinancialAddress should be associated with.
attr_accessor :financial_account
def initialize(currency: nil, financial_account: nil)
@currency = currency
@financial_account = financial_account
end
end
class RetrieveParams < Stripe::RequestParams
# Open Enum. A list of fields to reveal in the FinancialAddresses returned.
attr_accessor :include

View File

@ -5,6 +5,42 @@ module Stripe
module V2
module MoneyManagement
class InboundTransferService < StripeService
class ListParams < Stripe::RequestParams
# Filter for objects created at the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created
# Filter for objects created after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_gt
# Filter for objects created on or after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_gte
# Filter for objects created before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_lt
# Filter for objects created on or before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_lte
# The page limit.
attr_accessor :limit
def initialize(
created: nil,
created_gt: nil,
created_gte: nil,
created_lt: nil,
created_lte: nil,
limit: nil
)
@created = created
@created_gt = created_gt
@created_gte = created_gte
@created_lt = created_lt
@created_lte = created_lte
@limit = limit
end
end
class CreateParams < Stripe::RequestParams
class From < Stripe::RequestParams
# An optional currency field used to specify which currency is debited from the Payment Method.
@ -47,42 +83,6 @@ module Stripe
end
end
class ListParams < Stripe::RequestParams
# Filter for objects created at the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created
# Filter for objects created after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_gt
# Filter for objects created on or after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_gte
# Filter for objects created before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_lt
# Filter for objects created on or before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_lte
# The page limit.
attr_accessor :limit
def initialize(
created: nil,
created_gt: nil,
created_gte: nil,
created_lt: nil,
created_lte: nil,
limit: nil
)
@created = created
@created_gt = created_gt
@created_gte = created_gte
@created_lt = created_lt
@created_lte = created_lte
@limit = limit
end
end
class RetrieveParams < Stripe::RequestParams; end
# InboundTransfers APIs are used to create, retrieve or list InboundTransfers.

View File

@ -5,7 +5,49 @@ module Stripe
module V2
module MoneyManagement
class OutboundPaymentService < StripeService
class CancelParams < Stripe::RequestParams; end
class ListParams < Stripe::RequestParams
# Filter for objects created at the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created
# Filter for objects created after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_gt
# Filter for objects created on or after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_gte
# Filter for objects created before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_lt
# Filter for objects created on or before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_lte
# The maximum number of results to return.
attr_accessor :limit
# Only return OutboundPayments sent to this recipient.
attr_accessor :recipient
# Closed Enum. Only return OutboundPayments with this status.
attr_accessor :status
def initialize(
created: nil,
created_gt: nil,
created_gte: nil,
created_lt: nil,
created_lte: nil,
limit: nil,
recipient: nil,
status: nil
)
@created = created
@created_gt = created_gt
@created_gte = created_gte
@created_lt = created_lt
@created_lte = created_lte
@limit = limit
@recipient = recipient
@status = status
end
end
class CreateParams < Stripe::RequestParams
class DeliveryOptions < Stripe::RequestParams
@ -97,51 +139,8 @@ module Stripe
end
end
class ListParams < Stripe::RequestParams
# Filter for objects created at the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created
# Filter for objects created after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_gt
# Filter for objects created on or after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_gte
# Filter for objects created before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_lt
# Filter for objects created on or before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_lte
# The maximum number of results to return.
attr_accessor :limit
# Only return OutboundPayments sent to this recipient.
attr_accessor :recipient
# Closed Enum. Only return OutboundPayments with this status.
attr_accessor :status
def initialize(
created: nil,
created_gt: nil,
created_gte: nil,
created_lt: nil,
created_lte: nil,
limit: nil,
recipient: nil,
status: nil
)
@created = created
@created_gt = created_gt
@created_gte = created_gte
@created_lt = created_lt
@created_lte = created_lte
@limit = limit
@recipient = recipient
@status = status
end
end
class RetrieveParams < Stripe::RequestParams; end
class CancelParams < Stripe::RequestParams; end
# Cancels an OutboundPayment. Only processing OutboundPayments can be canceled.
#

View File

@ -5,7 +5,14 @@ module Stripe
module V2
module MoneyManagement
class OutboundSetupIntentService < StripeService
class CancelParams < Stripe::RequestParams; end
class ListParams < Stripe::RequestParams
# The page size.
attr_accessor :limit
def initialize(limit: nil)
@limit = limit
end
end
class CreateParams < Stripe::RequestParams
class PayoutMethodData < Stripe::RequestParams
@ -84,15 +91,6 @@ module Stripe
end
end
class ListParams < Stripe::RequestParams
# The page size.
attr_accessor :limit
def initialize(limit: nil)
@limit = limit
end
end
class RetrieveParams < Stripe::RequestParams; end
class UpdateParams < Stripe::RequestParams
@ -167,6 +165,8 @@ module Stripe
end
end
class CancelParams < Stripe::RequestParams; end
# Cancel an OutboundSetupIntent object.
def cancel(id, params = {}, opts = {})
request(

View File

@ -5,7 +5,45 @@ module Stripe
module V2
module MoneyManagement
class OutboundTransferService < StripeService
class CancelParams < Stripe::RequestParams; end
class ListParams < Stripe::RequestParams
# Filter for objects created at the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created
# Filter for objects created after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_gt
# Filter for objects created on or after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_gte
# Filter for objects created before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_lt
# Filter for objects created on or before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_lte
# The maximum number of results to return.
attr_accessor :limit
# Closed Enum. Only return OutboundTransfers with this status.
attr_accessor :status
def initialize(
created: nil,
created_gt: nil,
created_gte: nil,
created_lt: nil,
created_lte: nil,
limit: nil,
status: nil
)
@created = created
@created_gt = created_gt
@created_gte = created_gte
@created_lt = created_lt
@created_lte = created_lte
@limit = limit
@status = status
end
end
class CreateParams < Stripe::RequestParams
class DeliveryOptions < Stripe::RequestParams
@ -76,47 +114,8 @@ module Stripe
end
end
class ListParams < Stripe::RequestParams
# Filter for objects created at the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created
# Filter for objects created after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_gt
# Filter for objects created on or after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_gte
# Filter for objects created before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_lt
# Filter for objects created on or before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
attr_accessor :created_lte
# The maximum number of results to return.
attr_accessor :limit
# Closed Enum. Only return OutboundTransfers with this status.
attr_accessor :status
def initialize(
created: nil,
created_gt: nil,
created_gte: nil,
created_lt: nil,
created_lte: nil,
limit: nil,
status: nil
)
@created = created
@created_gt = created_gt
@created_gte = created_gte
@created_lt = created_lt
@created_lte = created_lte
@limit = limit
@status = status
end
end
class RetrieveParams < Stripe::RequestParams; end
class CancelParams < Stripe::RequestParams; end
# Cancels an OutboundTransfer. Only processing OutboundTransfers can be canceled.
#

View File

@ -5,8 +5,6 @@ module Stripe
module V2
module MoneyManagement
class PayoutMethodService < StripeService
class ArchiveParams < Stripe::RequestParams; end
class ListParams < Stripe::RequestParams
class UsageStatus < Stripe::RequestParams
# List of payments status to filter by.
@ -31,6 +29,7 @@ module Stripe
end
class RetrieveParams < Stripe::RequestParams; end
class ArchiveParams < Stripe::RequestParams; end
class UnarchiveParams < Stripe::RequestParams; end
# Archive a PayoutMethod object. Archived objects cannot be used as payout methods

View File

@ -4,7 +4,7 @@
module Stripe
module V2
class MoneyManagementService < StripeService
attr_reader :adjustments, :financial_accounts, :financial_addresses, :inbound_transfers, :outbound_payments, :outbound_payment_quotes, :outbound_transfers, :outbound_setup_intents, :payout_methods, :payout_methods_bank_account_spec, :received_credits, :received_debits, :transactions, :transaction_entries
attr_reader :adjustments, :financial_accounts, :financial_addresses, :inbound_transfers, :outbound_payment_quotes, :outbound_payments, :outbound_setup_intents, :outbound_transfers, :payout_methods, :payout_methods_bank_account_spec, :received_credits, :received_debits, :transaction_entries, :transactions
def initialize(requestor)
super
@ -12,19 +12,19 @@ module Stripe
@financial_accounts = Stripe::V2::MoneyManagement::FinancialAccountService.new(@requestor)
@financial_addresses = Stripe::V2::MoneyManagement::FinancialAddressService.new(@requestor)
@inbound_transfers = Stripe::V2::MoneyManagement::InboundTransferService.new(@requestor)
@outbound_payments = Stripe::V2::MoneyManagement::OutboundPaymentService.new(@requestor)
@outbound_payment_quotes = Stripe::V2::MoneyManagement::OutboundPaymentQuoteService
.new(@requestor)
@outbound_transfers = Stripe::V2::MoneyManagement::OutboundTransferService.new(@requestor)
@outbound_payments = Stripe::V2::MoneyManagement::OutboundPaymentService.new(@requestor)
@outbound_setup_intents = Stripe::V2::MoneyManagement::OutboundSetupIntentService
.new(@requestor)
@outbound_transfers = Stripe::V2::MoneyManagement::OutboundTransferService.new(@requestor)
@payout_methods = Stripe::V2::MoneyManagement::PayoutMethodService.new(@requestor)
@payout_methods_bank_account_spec = Stripe::V2::MoneyManagement::PayoutMethodsBankAccountSpecService
.new(@requestor)
@received_credits = Stripe::V2::MoneyManagement::ReceivedCreditService.new(@requestor)
@received_debits = Stripe::V2::MoneyManagement::ReceivedDebitService.new(@requestor)
@transactions = Stripe::V2::MoneyManagement::TransactionService.new(@requestor)
@transaction_entries = Stripe::V2::MoneyManagement::TransactionEntryService.new(@requestor)
@transactions = Stripe::V2::MoneyManagement::TransactionService.new(@requestor)
end
end
end

View File

@ -5,7 +5,14 @@ module Stripe
module V2
module Payments
class OffSessionPaymentService < StripeService
class CancelParams < Stripe::RequestParams; end
class ListParams < Stripe::RequestParams
# The page size limit, if not provided the default is 20.
attr_accessor :limit
def initialize(limit: nil)
@limit = limit
end
end
class CreateParams < Stripe::RequestParams
class RetryDetails < Stripe::RequestParams
@ -78,16 +85,8 @@ module Stripe
end
end
class ListParams < Stripe::RequestParams
# The page size limit, if not provided the default is 20.
attr_accessor :limit
def initialize(limit: nil)
@limit = limit
end
end
class RetrieveParams < Stripe::RequestParams; end
class CancelParams < Stripe::RequestParams; end
# Cancel OSP.
def cancel(id, params = {}, opts = {})

View File

@ -3,15 +3,15 @@
module Stripe
class V2Services < StripeService
attr_reader :core, :money_management, :billing, :test_helpers, :payments
attr_reader :billing, :core, :money_management, :payments, :test_helpers
def initialize(requestor)
super
@billing = Stripe::V2::BillingService.new(@requestor)
@core = Stripe::V2::CoreService.new(@requestor)
@money_management = Stripe::V2::MoneyManagementService.new(@requestor)
@billing = Stripe::V2::BillingService.new(@requestor)
@test_helpers = Stripe::V2::TestHelperService.new(@requestor)
@payments = Stripe::V2::PaymentService.new(@requestor)
@test_helpers = Stripe::V2::TestHelperService.new(@requestor)
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -5,8 +5,8 @@
module Stripe
module V2
class BillingService < StripeService
attr_reader :meter_event_session
attr_reader :meter_event_adjustments
attr_reader :meter_event_session
attr_reader :meter_event_stream
attr_reader :meter_events
end

View File

@ -7,12 +7,17 @@ module Stripe
module Core
class AccountService < StripeService
attr_reader :persons
class CloseParams < Stripe::RequestParams
# Configurations on the Account to be closed. All configurations on the Account must be passed in for this request to succeed.
class ListParams < Stripe::RequestParams
# Filter only accounts that have all of the configurations specified. If omitted, returns all accounts regardless of which configurations they have.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :applied_configurations
sig { params(applied_configurations: T.nilable(T::Array[String])).void }
def initialize(applied_configurations: nil); end
# The upper limit on the number of accounts returned by the List Account request.
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
sig {
params(applied_configurations: T.nilable(T::Array[String]), limit: T.nilable(Integer)).void
}
def initialize(applied_configurations: nil, limit: nil); end
end
class CreateParams < Stripe::RequestParams
class Configuration < Stripe::RequestParams
@ -2163,18 +2168,6 @@ module Stripe
metadata: nil
); end
end
class ListParams < Stripe::RequestParams
# Filter only accounts that have all of the configurations specified. If omitted, returns all accounts regardless of which configurations they have.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :applied_configurations
# The upper limit on the number of accounts returned by the List Account request.
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
sig {
params(applied_configurations: T.nilable(T::Array[String]), limit: T.nilable(Integer)).void
}
def initialize(applied_configurations: nil, limit: nil); end
end
class RetrieveParams < Stripe::RequestParams
# Additional fields to include in the response.
sig { returns(T.nilable(T::Array[String])) }
@ -4357,6 +4350,13 @@ module Stripe
metadata: nil
); end
end
class CloseParams < Stripe::RequestParams
# Configurations on the Account to be closed. All configurations on the Account must be passed in for this request to succeed.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :applied_configurations
sig { params(applied_configurations: T.nilable(T::Array[String])).void }
def initialize(applied_configurations: nil); end
end
# Removes access to the Account and its associated resources.
sig {
params(id: String, params: T.any(::Stripe::V2::Core::AccountService::CloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Core::Account)

View File

@ -7,6 +7,13 @@ module Stripe
module Core
module Accounts
class PersonService < StripeService
class ListParams < Stripe::RequestParams
# The upper limit on the number of accounts returned by the List Account request.
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
sig { params(limit: T.nilable(Integer)).void }
def initialize(limit: nil); end
end
class CreateParams < Stripe::RequestParams
class AdditionalAddress < Stripe::RequestParams
# City, district, suburb, town, or village.
@ -522,13 +529,6 @@ module Stripe
); end
end
class DeleteParams < Stripe::RequestParams; end
class ListParams < Stripe::RequestParams
# The upper limit on the number of accounts returned by the List Account request.
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
sig { params(limit: T.nilable(Integer)).void }
def initialize(limit: nil); end
end
class RetrieveParams < Stripe::RequestParams; end
class UpdateParams < Stripe::RequestParams
class AdditionalAddress < Stripe::RequestParams

View File

@ -6,6 +6,16 @@ module Stripe
module V2
module Core
class EventDestinationService < StripeService
class ListParams < Stripe::RequestParams
# Additional fields to include in the response. Currently supports `webhook_endpoint.url`.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :include
# The page size.
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
sig { params(include: T.nilable(T::Array[String]), limit: T.nilable(Integer)).void }
def initialize(include: nil, limit: nil); end
end
class CreateParams < Stripe::RequestParams
class AmazonEventbridge < Stripe::RequestParams
# The AWS account ID.
@ -79,19 +89,6 @@ module Stripe
); end
end
class DeleteParams < Stripe::RequestParams; end
class DisableParams < Stripe::RequestParams; end
class EnableParams < Stripe::RequestParams; end
class ListParams < Stripe::RequestParams
# Additional fields to include in the response. Currently supports `webhook_endpoint.url`.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :include
# The page size.
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
sig { params(include: T.nilable(T::Array[String]), limit: T.nilable(Integer)).void }
def initialize(include: nil, limit: nil); end
end
class PingParams < Stripe::RequestParams; end
class RetrieveParams < Stripe::RequestParams
# Additional fields to include in the response.
sig { returns(T.nilable(T::Array[String])) }
@ -139,6 +136,9 @@ module Stripe
webhook_endpoint: nil
); end
end
class DisableParams < Stripe::RequestParams; end
class EnableParams < Stripe::RequestParams; end
class PingParams < Stripe::RequestParams; end
# Create a new event destination.
sig {
params(params: T.any(::Stripe::V2::Core::EventDestinationService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::EventDestination)

View File

@ -7,8 +7,6 @@ module Stripe
module Core
module Vault
class GbBankAccountService < StripeService
class AcknowledgeConfirmationOfPayeeParams < Stripe::RequestParams; end
class ArchiveParams < Stripe::RequestParams; end
class CreateParams < Stripe::RequestParams
class ConfirmationOfPayee < Stripe::RequestParams
# The business type to be checked against. Legal entity information will be used if unspecified.
@ -52,6 +50,9 @@ module Stripe
sort_code: nil
); end
end
class RetrieveParams < Stripe::RequestParams; end
class AcknowledgeConfirmationOfPayeeParams < Stripe::RequestParams; end
class ArchiveParams < Stripe::RequestParams; end
class InitiateConfirmationOfPayeeParams < Stripe::RequestParams
# The business type to be checked against. Legal entity information will be used if unspecified.
sig { returns(T.nilable(String)) }
@ -62,7 +63,6 @@ module Stripe
sig { params(business_type: T.nilable(String), name: T.nilable(String)).void }
def initialize(business_type: nil, name: nil); end
end
class RetrieveParams < Stripe::RequestParams; end
# Confirm that you have received the result of the Confirmation of Payee request, and that you are okay with
# proceeding to pay out to this bank account despite the account not matching, partially matching, or the service
# being unavailable. Once you confirm this, you will be able to send OutboundPayments, but this may lead to

View File

@ -7,7 +7,6 @@ module Stripe
module Core
module Vault
class UsBankAccountService < StripeService
class ArchiveParams < Stripe::RequestParams; end
class CreateParams < Stripe::RequestParams
# The account number of the bank account.
sig { returns(String) }
@ -44,6 +43,7 @@ module Stripe
}
def initialize(fedwire_routing_number: nil, routing_number: nil); end
end
class ArchiveParams < Stripe::RequestParams; end
# Archive a USBankAccount object. USBankAccount objects will not be automatically archived by Stripe.
# Archived USBankAccount objects cannot be used as outbound destinations
# and will not appear in the outbound destination list.

View File

@ -5,8 +5,8 @@
module Stripe
module V2
class CoreService < StripeService
attr_reader :accounts
attr_reader :account_links
attr_reader :accounts
attr_reader :event_destinations
attr_reader :events
attr_reader :vault

View File

@ -6,16 +6,6 @@ module Stripe
module V2
module MoneyManagement
class FinancialAddressService < StripeService
class CreateParams < Stripe::RequestParams
# Open Enum. The currency the FinancialAddress should support. Currently, only the `usd` and `gbp` values are supported.
sig { returns(String) }
attr_accessor :currency
# The ID of the FinancialAccount the new FinancialAddress should be associated with.
sig { returns(String) }
attr_accessor :financial_account
sig { params(currency: String, financial_account: String).void }
def initialize(currency: nil, financial_account: nil); end
end
class ListParams < Stripe::RequestParams
# The ID of the FinancialAccount for which FinancialAddresses are to be returned.
sig { returns(T.nilable(String)) }
@ -31,6 +21,16 @@ module Stripe
}
def initialize(financial_account: nil, include: nil, limit: nil); end
end
class CreateParams < Stripe::RequestParams
# Open Enum. The currency the FinancialAddress should support. Currently, only the `usd` and `gbp` values are supported.
sig { returns(String) }
attr_accessor :currency
# The ID of the FinancialAccount the new FinancialAddress should be associated with.
sig { returns(String) }
attr_accessor :financial_account
sig { params(currency: String, financial_account: String).void }
def initialize(currency: nil, financial_account: nil); end
end
class RetrieveParams < Stripe::RequestParams
# Open Enum. A list of fields to reveal in the FinancialAddresses returned.
sig { returns(T.nilable(T::Array[String])) }

View File

@ -6,6 +6,42 @@ module Stripe
module V2
module MoneyManagement
class InboundTransferService < StripeService
class ListParams < Stripe::RequestParams
# Filter for objects created at the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created
# Filter for objects created after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_gt
# Filter for objects created on or after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_gte
# Filter for objects created before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_lt
# Filter for objects created on or before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_lte
# The page limit.
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
sig {
params(created: T.nilable(String), created_gt: T.nilable(String), created_gte: T.nilable(String), created_lt: T.nilable(String), created_lte: T.nilable(String), limit: T.nilable(Integer)).void
}
def initialize(
created: nil,
created_gt: nil,
created_gte: nil,
created_lt: nil,
created_lte: nil,
limit: nil
); end
end
class CreateParams < Stripe::RequestParams
class From < Stripe::RequestParams
# An optional currency field used to specify which currency is debited from the Payment Method.
@ -45,42 +81,6 @@ module Stripe
}
def initialize(amount: nil, description: nil, from: nil, to: nil); end
end
class ListParams < Stripe::RequestParams
# Filter for objects created at the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created
# Filter for objects created after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_gt
# Filter for objects created on or after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_gte
# Filter for objects created before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_lt
# Filter for objects created on or before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_lte
# The page limit.
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
sig {
params(created: T.nilable(String), created_gt: T.nilable(String), created_gte: T.nilable(String), created_lt: T.nilable(String), created_lte: T.nilable(String), limit: T.nilable(Integer)).void
}
def initialize(
created: nil,
created_gt: nil,
created_gte: nil,
created_lt: nil,
created_lte: nil,
limit: nil
); end
end
class RetrieveParams < Stripe::RequestParams; end
# InboundTransfers APIs are used to create, retrieve or list InboundTransfers.
#

View File

@ -6,7 +6,50 @@ module Stripe
module V2
module MoneyManagement
class OutboundPaymentService < StripeService
class CancelParams < Stripe::RequestParams; end
class ListParams < Stripe::RequestParams
# Filter for objects created at the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created
# Filter for objects created after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_gt
# Filter for objects created on or after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_gte
# Filter for objects created before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_lt
# Filter for objects created on or before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_lte
# The maximum number of results to return.
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
# Only return OutboundPayments sent to this recipient.
sig { returns(T.nilable(String)) }
attr_accessor :recipient
# Closed Enum. Only return OutboundPayments with this status.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :status
sig {
params(created: T.nilable(String), created_gt: T.nilable(String), created_gte: T.nilable(String), created_lt: T.nilable(String), created_lte: T.nilable(String), limit: T.nilable(Integer), recipient: T.nilable(String), status: T.nilable(T::Array[String])).void
}
def initialize(
created: nil,
created_gt: nil,
created_gte: nil,
created_lt: nil,
created_lte: nil,
limit: nil,
recipient: nil,
status: nil
); end
end
class CreateParams < Stripe::RequestParams
class DeliveryOptions < Stripe::RequestParams
# Open Enum. Method for bank account.
@ -96,51 +139,8 @@ module Stripe
to: nil
); end
end
class ListParams < Stripe::RequestParams
# Filter for objects created at the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created
# Filter for objects created after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_gt
# Filter for objects created on or after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_gte
# Filter for objects created before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_lt
# Filter for objects created on or before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_lte
# The maximum number of results to return.
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
# Only return OutboundPayments sent to this recipient.
sig { returns(T.nilable(String)) }
attr_accessor :recipient
# Closed Enum. Only return OutboundPayments with this status.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :status
sig {
params(created: T.nilable(String), created_gt: T.nilable(String), created_gte: T.nilable(String), created_lt: T.nilable(String), created_lte: T.nilable(String), limit: T.nilable(Integer), recipient: T.nilable(String), status: T.nilable(T::Array[String])).void
}
def initialize(
created: nil,
created_gt: nil,
created_gte: nil,
created_lt: nil,
created_lte: nil,
limit: nil,
recipient: nil,
status: nil
); end
end
class RetrieveParams < Stripe::RequestParams; end
class CancelParams < Stripe::RequestParams; end
# Cancels an OutboundPayment. Only processing OutboundPayments can be canceled.
#
# ** raises AlreadyCanceledError

View File

@ -6,7 +6,13 @@ module Stripe
module V2
module MoneyManagement
class OutboundSetupIntentService < StripeService
class CancelParams < Stripe::RequestParams; end
class ListParams < Stripe::RequestParams
# The page size.
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
sig { params(limit: T.nilable(Integer)).void }
def initialize(limit: nil); end
end
class CreateParams < Stripe::RequestParams
class PayoutMethodData < Stripe::RequestParams
class BankAccount < Stripe::RequestParams
@ -90,13 +96,6 @@ module Stripe
}
def initialize(payout_method: nil, payout_method_data: nil, usage_intent: nil); end
end
class ListParams < Stripe::RequestParams
# The page size.
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
sig { params(limit: T.nilable(Integer)).void }
def initialize(limit: nil); end
end
class RetrieveParams < Stripe::RequestParams; end
class UpdateParams < Stripe::RequestParams
class PayoutMethodData < Stripe::RequestParams
@ -178,6 +177,7 @@ module Stripe
}
def initialize(payout_method: nil, payout_method_data: nil); end
end
class CancelParams < Stripe::RequestParams; end
# Cancel an OutboundSetupIntent object.
sig {
params(id: String, params: T.any(::Stripe::V2::MoneyManagement::OutboundSetupIntentService::CancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::MoneyManagement::OutboundSetupIntent)

View File

@ -6,7 +6,46 @@ module Stripe
module V2
module MoneyManagement
class OutboundTransferService < StripeService
class CancelParams < Stripe::RequestParams; end
class ListParams < Stripe::RequestParams
# Filter for objects created at the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created
# Filter for objects created after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_gt
# Filter for objects created on or after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_gte
# Filter for objects created before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_lt
# Filter for objects created on or before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_lte
# The maximum number of results to return.
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
# Closed Enum. Only return OutboundTransfers with this status.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :status
sig {
params(created: T.nilable(String), created_gt: T.nilable(String), created_gte: T.nilable(String), created_lt: T.nilable(String), created_lte: T.nilable(String), limit: T.nilable(Integer), status: T.nilable(T::Array[String])).void
}
def initialize(
created: nil,
created_gt: nil,
created_gte: nil,
created_lt: nil,
created_lte: nil,
limit: nil,
status: nil
); end
end
class CreateParams < Stripe::RequestParams
class DeliveryOptions < Stripe::RequestParams
# Open Enum. Method for bank account.
@ -75,47 +114,8 @@ module Stripe
to: nil
); end
end
class ListParams < Stripe::RequestParams
# Filter for objects created at the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created
# Filter for objects created after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_gt
# Filter for objects created on or after the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_gte
# Filter for objects created before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_lt
# Filter for objects created on or before the specified timestamp.
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
sig { returns(T.nilable(String)) }
attr_accessor :created_lte
# The maximum number of results to return.
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
# Closed Enum. Only return OutboundTransfers with this status.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :status
sig {
params(created: T.nilable(String), created_gt: T.nilable(String), created_gte: T.nilable(String), created_lt: T.nilable(String), created_lte: T.nilable(String), limit: T.nilable(Integer), status: T.nilable(T::Array[String])).void
}
def initialize(
created: nil,
created_gt: nil,
created_gte: nil,
created_lt: nil,
created_lte: nil,
limit: nil,
status: nil
); end
end
class RetrieveParams < Stripe::RequestParams; end
class CancelParams < Stripe::RequestParams; end
# Cancels an OutboundTransfer. Only processing OutboundTransfers can be canceled.
#
# ** raises AlreadyCanceledError

View File

@ -6,7 +6,6 @@ module Stripe
module V2
module MoneyManagement
class PayoutMethodService < StripeService
class ArchiveParams < Stripe::RequestParams; end
class ListParams < Stripe::RequestParams
class UsageStatus < Stripe::RequestParams
# List of payments status to filter by.
@ -34,6 +33,7 @@ module Stripe
def initialize(limit: nil, usage_status: nil); end
end
class RetrieveParams < Stripe::RequestParams; end
class ArchiveParams < Stripe::RequestParams; end
class UnarchiveParams < Stripe::RequestParams; end
# Archive a PayoutMethod object. Archived objects cannot be used as payout methods
# and will not appear in the payout method list.

View File

@ -9,16 +9,16 @@ module Stripe
attr_reader :financial_accounts
attr_reader :financial_addresses
attr_reader :inbound_transfers
attr_reader :outbound_payments
attr_reader :outbound_payment_quotes
attr_reader :outbound_transfers
attr_reader :outbound_payments
attr_reader :outbound_setup_intents
attr_reader :outbound_transfers
attr_reader :payout_methods
attr_reader :payout_methods_bank_account_spec
attr_reader :received_credits
attr_reader :received_debits
attr_reader :transactions
attr_reader :transaction_entries
attr_reader :transactions
end
end
end

View File

@ -6,7 +6,13 @@ module Stripe
module V2
module Payments
class OffSessionPaymentService < StripeService
class CancelParams < Stripe::RequestParams; end
class ListParams < Stripe::RequestParams
# The page size limit, if not provided the default is 20.
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
sig { params(limit: T.nilable(Integer)).void }
def initialize(limit: nil); end
end
class CreateParams < Stripe::RequestParams
class RetryDetails < Stripe::RequestParams
# How you want Stripe to retry the payment.
@ -79,14 +85,8 @@ module Stripe
transfer_data: nil
); end
end
class ListParams < Stripe::RequestParams
# The page size limit, if not provided the default is 20.
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
sig { params(limit: T.nilable(Integer)).void }
def initialize(limit: nil); end
end
class RetrieveParams < Stripe::RequestParams; end
class CancelParams < Stripe::RequestParams; end
# Cancel OSP.
sig {
params(id: String, params: T.any(::Stripe::V2::Payments::OffSessionPaymentService::CancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Payments::OffSessionPayment)

View File

@ -4,10 +4,10 @@
# typed: true
module Stripe
class V2Services < StripeService
attr_reader :billing
attr_reader :core
attr_reader :money_management
attr_reader :billing
attr_reader :test_helpers
attr_reader :payments
attr_reader :test_helpers
end
end

File diff suppressed because it is too large Load Diff