Skip to content

Commit

Permalink
Update generated code for v1450
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Jan 15, 2025
1 parent 7ec394e commit 1402ac7
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 13 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1449
v1450
30 changes: 28 additions & 2 deletions lib/stripe/resources/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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,
Expand All @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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.
Expand All @@ -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,
Expand All @@ -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
Expand All @@ -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

Expand Down
30 changes: 28 additions & 2 deletions lib/stripe/services/account_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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,
Expand All @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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.
Expand All @@ -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,
Expand All @@ -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
Expand All @@ -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

Expand Down
34 changes: 30 additions & 4 deletions rbi/stripe/resources/account.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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,
Expand All @@ -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
Expand Down Expand Up @@ -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)
Expand All @@ -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,
Expand All @@ -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
Expand Down
Loading

0 comments on commit 1402ac7

Please sign in to comment.