diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index bb77cc20..1e710b90 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1695 \ No newline at end of file +v1696 \ No newline at end of file diff --git a/lib/stripe/resources/account.rb b/lib/stripe/resources/account.rb index 13e85ef5..eaaf1ec3 100644 --- a/lib/stripe/resources/account.rb +++ b/lib/stripe/resources/account.rb @@ -304,6 +304,15 @@ module Stripe attr_reader :user_agent end + class RegistrationDate < Stripe::StripeObject + # The day of registration, between 1 and 31. + attr_reader :day + # The month of registration, between 1 and 12. + attr_reader :month + # The four-digit year of registration. + attr_reader :year + end + class Verification < Stripe::StripeObject class Document < Stripe::StripeObject # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. @@ -348,6 +357,8 @@ module Stripe attr_reader :ownership_exemption_reason # The company's phone number (used for verification). attr_reader :phone + # Attribute for field registration_date + attr_reader :registration_date # The category identifying the legal structure of the company or legal entity. Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details. attr_reader :structure # Whether the company's business ID number was provided. @@ -1962,6 +1973,21 @@ module Stripe end end + class RegistrationDate < Stripe::RequestParams + # The day of registration, between 1 and 31. + attr_accessor :day + # The month of registration, between 1 and 12. + attr_accessor :month + # The four-digit year of registration. + attr_accessor :year + + def initialize(day: nil, month: nil, year: nil) + @day = day + @month = month + @year = year + end + end + class Verification < Stripe::RequestParams class Document < Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -2011,6 +2037,8 @@ module Stripe attr_accessor :ownership_exemption_reason # The company's phone number (used for verification). attr_accessor :phone + # Attribute for param field registration_date + attr_accessor :registration_date # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). attr_accessor :registration_number # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value. @@ -2040,6 +2068,7 @@ module Stripe ownership_declaration: nil, ownership_exemption_reason: nil, phone: nil, + registration_date: nil, registration_number: nil, structure: nil, tax_id: nil, @@ -2062,6 +2091,7 @@ module Stripe @ownership_declaration = ownership_declaration @ownership_exemption_reason = ownership_exemption_reason @phone = phone + @registration_date = registration_date @registration_number = registration_number @structure = structure @tax_id = tax_id @@ -4204,6 +4234,21 @@ module Stripe end end + class RegistrationDate < Stripe::RequestParams + # The day of registration, between 1 and 31. + attr_accessor :day + # The month of registration, between 1 and 12. + attr_accessor :month + # The four-digit year of registration. + attr_accessor :year + + def initialize(day: nil, month: nil, year: nil) + @day = day + @month = month + @year = year + end + end + class Verification < Stripe::RequestParams class Document < Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -4253,6 +4298,8 @@ module Stripe attr_accessor :ownership_exemption_reason # The company's phone number (used for verification). attr_accessor :phone + # Attribute for param field registration_date + attr_accessor :registration_date # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). attr_accessor :registration_number # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value. @@ -4282,6 +4329,7 @@ module Stripe ownership_declaration: nil, ownership_exemption_reason: nil, phone: nil, + registration_date: nil, registration_number: nil, structure: nil, tax_id: nil, @@ -4304,6 +4352,7 @@ module Stripe @ownership_declaration = ownership_declaration @ownership_exemption_reason = ownership_exemption_reason @phone = phone + @registration_date = registration_date @registration_number = registration_number @structure = structure @tax_id = tax_id diff --git a/lib/stripe/resources/token.rb b/lib/stripe/resources/token.rb index 427d15a5..52a4752c 100644 --- a/lib/stripe/resources/token.rb +++ b/lib/stripe/resources/token.rb @@ -164,6 +164,21 @@ module Stripe end end + class RegistrationDate < Stripe::RequestParams + # The day of registration, between 1 and 31. + attr_accessor :day + # The month of registration, between 1 and 12. + attr_accessor :month + # The four-digit year of registration. + attr_accessor :year + + def initialize(day: nil, month: nil, year: nil) + @day = day + @month = month + @year = year + end + end + class Verification < Stripe::RequestParams class Document < Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -215,6 +230,8 @@ module Stripe attr_accessor :ownership_exemption_reason # The company's phone number (used for verification). attr_accessor :phone + # Attribute for param field registration_date + attr_accessor :registration_date # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). attr_accessor :registration_number # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value. @@ -245,6 +262,7 @@ module Stripe ownership_declaration_shown_and_signed: nil, ownership_exemption_reason: nil, phone: nil, + registration_date: nil, registration_number: nil, structure: nil, tax_id: nil, @@ -268,6 +286,7 @@ module Stripe @ownership_declaration_shown_and_signed = ownership_declaration_shown_and_signed @ownership_exemption_reason = ownership_exemption_reason @phone = phone + @registration_date = registration_date @registration_number = registration_number @structure = structure @tax_id = tax_id diff --git a/lib/stripe/services/account_service.rb b/lib/stripe/services/account_service.rb index 2b734247..6234c14b 100644 --- a/lib/stripe/services/account_service.rb +++ b/lib/stripe/services/account_service.rb @@ -1316,6 +1316,21 @@ module Stripe end end + class RegistrationDate < Stripe::RequestParams + # The day of registration, between 1 and 31. + attr_accessor :day + # The month of registration, between 1 and 12. + attr_accessor :month + # The four-digit year of registration. + attr_accessor :year + + def initialize(day: nil, month: nil, year: nil) + @day = day + @month = month + @year = year + end + end + class Verification < Stripe::RequestParams class Document < Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -1365,6 +1380,8 @@ module Stripe attr_accessor :ownership_exemption_reason # The company's phone number (used for verification). attr_accessor :phone + # Attribute for param field registration_date + attr_accessor :registration_date # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). attr_accessor :registration_number # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value. @@ -1394,6 +1411,7 @@ module Stripe ownership_declaration: nil, ownership_exemption_reason: nil, phone: nil, + registration_date: nil, registration_number: nil, structure: nil, tax_id: nil, @@ -1416,6 +1434,7 @@ module Stripe @ownership_declaration = ownership_declaration @ownership_exemption_reason = ownership_exemption_reason @phone = phone + @registration_date = registration_date @registration_number = registration_number @structure = structure @tax_id = tax_id @@ -3567,6 +3586,21 @@ module Stripe end end + class RegistrationDate < Stripe::RequestParams + # The day of registration, between 1 and 31. + attr_accessor :day + # The month of registration, between 1 and 12. + attr_accessor :month + # The four-digit year of registration. + attr_accessor :year + + def initialize(day: nil, month: nil, year: nil) + @day = day + @month = month + @year = year + end + end + class Verification < Stripe::RequestParams class Document < Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -3616,6 +3650,8 @@ module Stripe attr_accessor :ownership_exemption_reason # The company's phone number (used for verification). attr_accessor :phone + # Attribute for param field registration_date + attr_accessor :registration_date # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). attr_accessor :registration_number # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value. @@ -3645,6 +3681,7 @@ module Stripe ownership_declaration: nil, ownership_exemption_reason: nil, phone: nil, + registration_date: nil, registration_number: nil, structure: nil, tax_id: nil, @@ -3667,6 +3704,7 @@ module Stripe @ownership_declaration = ownership_declaration @ownership_exemption_reason = ownership_exemption_reason @phone = phone + @registration_date = registration_date @registration_number = registration_number @structure = structure @tax_id = tax_id diff --git a/lib/stripe/services/token_service.rb b/lib/stripe/services/token_service.rb index 4b49da01..68215986 100644 --- a/lib/stripe/services/token_service.rb +++ b/lib/stripe/services/token_service.rb @@ -146,6 +146,21 @@ module Stripe end end + class RegistrationDate < Stripe::RequestParams + # The day of registration, between 1 and 31. + attr_accessor :day + # The month of registration, between 1 and 12. + attr_accessor :month + # The four-digit year of registration. + attr_accessor :year + + def initialize(day: nil, month: nil, year: nil) + @day = day + @month = month + @year = year + end + end + class Verification < Stripe::RequestParams class Document < Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -197,6 +212,8 @@ module Stripe attr_accessor :ownership_exemption_reason # The company's phone number (used for verification). attr_accessor :phone + # Attribute for param field registration_date + attr_accessor :registration_date # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). attr_accessor :registration_number # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value. @@ -227,6 +244,7 @@ module Stripe ownership_declaration_shown_and_signed: nil, ownership_exemption_reason: nil, phone: nil, + registration_date: nil, registration_number: nil, structure: nil, tax_id: nil, @@ -250,6 +268,7 @@ module Stripe @ownership_declaration_shown_and_signed = ownership_declaration_shown_and_signed @ownership_exemption_reason = ownership_exemption_reason @phone = phone + @registration_date = registration_date @registration_number = registration_number @structure = structure @tax_id = tax_id diff --git a/rbi/stripe.rbi b/rbi/stripe.rbi index 9067f836..3deb89cf 100644 --- a/rbi/stripe.rbi +++ b/rbi/stripe.rbi @@ -4713,6 +4713,17 @@ module Stripe sig { returns(T.nilable(String)) } attr_reader :user_agent end + class RegistrationDate < Stripe::StripeObject + # The day of registration, between 1 and 31. + sig { returns(T.nilable(Integer)) } + attr_reader :day + # The month of registration, between 1 and 12. + sig { returns(T.nilable(Integer)) } + attr_reader :month + # The four-digit year of registration. + sig { returns(T.nilable(Integer)) } + attr_reader :year + end class Verification < Stripe::StripeObject class Document < Stripe::StripeObject # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. @@ -4777,6 +4788,9 @@ module Stripe # The company's phone number (used for verification). sig { returns(T.nilable(String)) } attr_reader :phone + # Attribute for field registration_date + sig { returns(RegistrationDate) } + attr_reader :registration_date # The category identifying the legal structure of the company or legal entity. Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details. sig { returns(String) } attr_reader :structure @@ -6458,6 +6472,19 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end + class RegistrationDate < Stripe::RequestParams + # The day of registration, between 1 and 31. + sig { returns(Integer) } + attr_accessor :day + # The month of registration, between 1 and 12. + sig { returns(Integer) } + attr_accessor :month + # The four-digit year of registration. + sig { returns(Integer) } + attr_accessor :year + sig { params(day: Integer, month: Integer, year: Integer).void } + def initialize(day: nil, month: nil, year: nil); end + end class Verification < Stripe::RequestParams class Document < Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -6526,6 +6553,11 @@ module Stripe # The company's phone number (used for verification). sig { returns(T.nilable(String)) } attr_accessor :phone + # Attribute for param field registration_date + sig { + returns(T.nilable(T.nilable(T.any(String, ::Stripe::Account::UpdateParams::Company::RegistrationDate)))) + } + attr_accessor :registration_date # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). sig { returns(T.nilable(String)) } attr_accessor :registration_number @@ -6545,7 +6577,7 @@ module Stripe sig { returns(T.nilable(::Stripe::Account::UpdateParams::Company::Verification)) } attr_accessor :verification sig { - params(address: T.nilable(::Stripe::Account::UpdateParams::Company::Address), address_kana: T.nilable(::Stripe::Account::UpdateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::Account::UpdateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::Account::UpdateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::Account::UpdateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::Account::UpdateParams::Company::Verification)).void + params(address: T.nilable(::Stripe::Account::UpdateParams::Company::Address), address_kana: T.nilable(::Stripe::Account::UpdateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::Account::UpdateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::Account::UpdateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::Account::UpdateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_date: T.nilable(T.nilable(T.any(String, ::Stripe::Account::UpdateParams::Company::RegistrationDate))), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::Account::UpdateParams::Company::Verification)).void } def initialize( address: nil, @@ -6563,6 +6595,7 @@ module Stripe ownership_declaration: nil, ownership_exemption_reason: nil, phone: nil, + registration_date: nil, registration_number: nil, structure: nil, tax_id: nil, @@ -8628,6 +8661,19 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end + class RegistrationDate < Stripe::RequestParams + # The day of registration, between 1 and 31. + sig { returns(Integer) } + attr_accessor :day + # The month of registration, between 1 and 12. + sig { returns(Integer) } + attr_accessor :month + # The four-digit year of registration. + sig { returns(Integer) } + attr_accessor :year + sig { params(day: Integer, month: Integer, year: Integer).void } + def initialize(day: nil, month: nil, year: nil); end + end class Verification < Stripe::RequestParams class Document < Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -8696,6 +8742,11 @@ module Stripe # The company's phone number (used for verification). sig { returns(T.nilable(String)) } attr_accessor :phone + # Attribute for param field registration_date + sig { + returns(T.nilable(T.nilable(T.any(String, ::Stripe::Account::CreateParams::Company::RegistrationDate)))) + } + attr_accessor :registration_date # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). sig { returns(T.nilable(String)) } attr_accessor :registration_number @@ -8715,7 +8766,7 @@ module Stripe sig { returns(T.nilable(::Stripe::Account::CreateParams::Company::Verification)) } attr_accessor :verification sig { - params(address: T.nilable(::Stripe::Account::CreateParams::Company::Address), address_kana: T.nilable(::Stripe::Account::CreateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::Account::CreateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::Account::CreateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::Account::CreateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::Account::CreateParams::Company::Verification)).void + params(address: T.nilable(::Stripe::Account::CreateParams::Company::Address), address_kana: T.nilable(::Stripe::Account::CreateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::Account::CreateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::Account::CreateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::Account::CreateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_date: T.nilable(T.nilable(T.any(String, ::Stripe::Account::CreateParams::Company::RegistrationDate))), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::Account::CreateParams::Company::Verification)).void } def initialize( address: nil, @@ -8733,6 +8784,7 @@ module Stripe ownership_declaration: nil, ownership_exemption_reason: nil, phone: nil, + registration_date: nil, registration_number: nil, structure: nil, tax_id: nil, @@ -103647,6 +103699,19 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end + class RegistrationDate < Stripe::RequestParams + # The day of registration, between 1 and 31. + sig { returns(Integer) } + attr_accessor :day + # The month of registration, between 1 and 12. + sig { returns(Integer) } + attr_accessor :month + # The four-digit year of registration. + sig { returns(Integer) } + attr_accessor :year + sig { params(day: Integer, month: Integer, year: Integer).void } + def initialize(day: nil, month: nil, year: nil); end + end class Verification < Stripe::RequestParams class Document < Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -103720,6 +103785,11 @@ module Stripe # The company's phone number (used for verification). sig { returns(T.nilable(String)) } attr_accessor :phone + # Attribute for param field registration_date + sig { + returns(T.nilable(T.nilable(T.any(String, ::Stripe::Token::CreateParams::Account::Company::RegistrationDate)))) + } + attr_accessor :registration_date # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). sig { returns(T.nilable(String)) } attr_accessor :registration_number @@ -103739,7 +103809,7 @@ module Stripe sig { returns(T.nilable(::Stripe::Token::CreateParams::Account::Company::Verification)) } attr_accessor :verification sig { - params(address: T.nilable(::Stripe::Token::CreateParams::Account::Company::Address), address_kana: T.nilable(::Stripe::Token::CreateParams::Account::Company::AddressKana), address_kanji: T.nilable(::Stripe::Token::CreateParams::Account::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::Token::CreateParams::Account::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::Token::CreateParams::Account::Company::OwnershipDeclaration), ownership_declaration_shown_and_signed: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::Token::CreateParams::Account::Company::Verification)).void + params(address: T.nilable(::Stripe::Token::CreateParams::Account::Company::Address), address_kana: T.nilable(::Stripe::Token::CreateParams::Account::Company::AddressKana), address_kanji: T.nilable(::Stripe::Token::CreateParams::Account::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::Token::CreateParams::Account::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::Token::CreateParams::Account::Company::OwnershipDeclaration), ownership_declaration_shown_and_signed: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_date: T.nilable(T.nilable(T.any(String, ::Stripe::Token::CreateParams::Account::Company::RegistrationDate))), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::Token::CreateParams::Account::Company::Verification)).void } def initialize( address: nil, @@ -103758,6 +103828,7 @@ module Stripe ownership_declaration_shown_and_signed: nil, ownership_exemption_reason: nil, phone: nil, + registration_date: nil, registration_number: nil, structure: nil, tax_id: nil, @@ -110520,6 +110591,19 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end + class RegistrationDate < Stripe::RequestParams + # The day of registration, between 1 and 31. + sig { returns(Integer) } + attr_accessor :day + # The month of registration, between 1 and 12. + sig { returns(Integer) } + attr_accessor :month + # The four-digit year of registration. + sig { returns(Integer) } + attr_accessor :year + sig { params(day: Integer, month: Integer, year: Integer).void } + def initialize(day: nil, month: nil, year: nil); end + end class Verification < Stripe::RequestParams class Document < Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -110590,6 +110674,11 @@ module Stripe # The company's phone number (used for verification). sig { returns(T.nilable(String)) } attr_accessor :phone + # Attribute for param field registration_date + sig { + returns(T.nilable(T.nilable(T.any(String, ::Stripe::AccountService::UpdateParams::Company::RegistrationDate)))) + } + attr_accessor :registration_date # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). sig { returns(T.nilable(String)) } attr_accessor :registration_number @@ -110609,7 +110698,7 @@ module Stripe sig { returns(T.nilable(::Stripe::AccountService::UpdateParams::Company::Verification)) } attr_accessor :verification sig { - params(address: T.nilable(::Stripe::AccountService::UpdateParams::Company::Address), address_kana: T.nilable(::Stripe::AccountService::UpdateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::AccountService::UpdateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::AccountService::UpdateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::AccountService::UpdateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::AccountService::UpdateParams::Company::Verification)).void + params(address: T.nilable(::Stripe::AccountService::UpdateParams::Company::Address), address_kana: T.nilable(::Stripe::AccountService::UpdateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::AccountService::UpdateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::AccountService::UpdateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::AccountService::UpdateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_date: T.nilable(T.nilable(T.any(String, ::Stripe::AccountService::UpdateParams::Company::RegistrationDate))), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::AccountService::UpdateParams::Company::Verification)).void } def initialize( address: nil, @@ -110627,6 +110716,7 @@ module Stripe ownership_declaration: nil, ownership_exemption_reason: nil, phone: nil, + registration_date: nil, registration_number: nil, structure: nil, tax_id: nil, @@ -112805,6 +112895,19 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end + class RegistrationDate < Stripe::RequestParams + # The day of registration, between 1 and 31. + sig { returns(Integer) } + attr_accessor :day + # The month of registration, between 1 and 12. + sig { returns(Integer) } + attr_accessor :month + # The four-digit year of registration. + sig { returns(Integer) } + attr_accessor :year + sig { params(day: Integer, month: Integer, year: Integer).void } + def initialize(day: nil, month: nil, year: nil); end + end class Verification < Stripe::RequestParams class Document < Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -112875,6 +112978,11 @@ module Stripe # The company's phone number (used for verification). sig { returns(T.nilable(String)) } attr_accessor :phone + # Attribute for param field registration_date + sig { + returns(T.nilable(T.nilable(T.any(String, ::Stripe::AccountService::CreateParams::Company::RegistrationDate)))) + } + attr_accessor :registration_date # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). sig { returns(T.nilable(String)) } attr_accessor :registration_number @@ -112894,7 +113002,7 @@ module Stripe sig { returns(T.nilable(::Stripe::AccountService::CreateParams::Company::Verification)) } attr_accessor :verification sig { - params(address: T.nilable(::Stripe::AccountService::CreateParams::Company::Address), address_kana: T.nilable(::Stripe::AccountService::CreateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::AccountService::CreateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::AccountService::CreateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::AccountService::CreateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::AccountService::CreateParams::Company::Verification)).void + params(address: T.nilable(::Stripe::AccountService::CreateParams::Company::Address), address_kana: T.nilable(::Stripe::AccountService::CreateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::AccountService::CreateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::AccountService::CreateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::AccountService::CreateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_date: T.nilable(T.nilable(T.any(String, ::Stripe::AccountService::CreateParams::Company::RegistrationDate))), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::AccountService::CreateParams::Company::Verification)).void } def initialize( address: nil, @@ -112912,6 +113020,7 @@ module Stripe ownership_declaration: nil, ownership_exemption_reason: nil, phone: nil, + registration_date: nil, registration_number: nil, structure: nil, tax_id: nil, @@ -180123,6 +180232,19 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end + class RegistrationDate < Stripe::RequestParams + # The day of registration, between 1 and 31. + sig { returns(Integer) } + attr_accessor :day + # The month of registration, between 1 and 12. + sig { returns(Integer) } + attr_accessor :month + # The four-digit year of registration. + sig { returns(Integer) } + attr_accessor :year + sig { params(day: Integer, month: Integer, year: Integer).void } + def initialize(day: nil, month: nil, year: nil); end + end class Verification < Stripe::RequestParams class Document < Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -180202,6 +180324,11 @@ module Stripe # The company's phone number (used for verification). sig { returns(T.nilable(String)) } attr_accessor :phone + # Attribute for param field registration_date + sig { + returns(T.nilable(T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Account::Company::RegistrationDate)))) + } + attr_accessor :registration_date # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). sig { returns(T.nilable(String)) } attr_accessor :registration_number @@ -180223,7 +180350,7 @@ module Stripe } attr_accessor :verification sig { - params(address: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::Address), address_kana: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::AddressKana), address_kanji: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::OwnershipDeclaration), ownership_declaration_shown_and_signed: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::Verification)).void + params(address: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::Address), address_kana: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::AddressKana), address_kanji: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::OwnershipDeclaration), ownership_declaration_shown_and_signed: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_date: T.nilable(T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Account::Company::RegistrationDate))), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::Verification)).void } def initialize( address: nil, @@ -180242,6 +180369,7 @@ module Stripe ownership_declaration_shown_and_signed: nil, ownership_exemption_reason: nil, phone: nil, + registration_date: nil, registration_number: nil, structure: nil, tax_id: nil, diff --git a/rbi/stripe/resources/account.rbi b/rbi/stripe/resources/account.rbi index 32a7c677..51940b2c 100644 --- a/rbi/stripe/resources/account.rbi +++ b/rbi/stripe/resources/account.rbi @@ -397,6 +397,17 @@ module Stripe sig { returns(T.nilable(String)) } attr_reader :user_agent end + class RegistrationDate < Stripe::StripeObject + # The day of registration, between 1 and 31. + sig { returns(T.nilable(Integer)) } + attr_reader :day + # The month of registration, between 1 and 12. + sig { returns(T.nilable(Integer)) } + attr_reader :month + # The four-digit year of registration. + sig { returns(T.nilable(Integer)) } + attr_reader :year + end class Verification < Stripe::StripeObject class Document < Stripe::StripeObject # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. @@ -461,6 +472,9 @@ module Stripe # The company's phone number (used for verification). sig { returns(T.nilable(String)) } attr_reader :phone + # Attribute for field registration_date + sig { returns(RegistrationDate) } + attr_reader :registration_date # The category identifying the legal structure of the company or legal entity. Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details. sig { returns(String) } attr_reader :structure @@ -2142,6 +2156,19 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end + class RegistrationDate < Stripe::RequestParams + # The day of registration, between 1 and 31. + sig { returns(Integer) } + attr_accessor :day + # The month of registration, between 1 and 12. + sig { returns(Integer) } + attr_accessor :month + # The four-digit year of registration. + sig { returns(Integer) } + attr_accessor :year + sig { params(day: Integer, month: Integer, year: Integer).void } + def initialize(day: nil, month: nil, year: nil); end + end class Verification < Stripe::RequestParams class Document < Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -2210,6 +2237,11 @@ module Stripe # The company's phone number (used for verification). sig { returns(T.nilable(String)) } attr_accessor :phone + # Attribute for param field registration_date + sig { + returns(T.nilable(T.nilable(T.any(String, ::Stripe::Account::UpdateParams::Company::RegistrationDate)))) + } + attr_accessor :registration_date # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). sig { returns(T.nilable(String)) } attr_accessor :registration_number @@ -2229,7 +2261,7 @@ module Stripe sig { returns(T.nilable(::Stripe::Account::UpdateParams::Company::Verification)) } attr_accessor :verification sig { - params(address: T.nilable(::Stripe::Account::UpdateParams::Company::Address), address_kana: T.nilable(::Stripe::Account::UpdateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::Account::UpdateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::Account::UpdateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::Account::UpdateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::Account::UpdateParams::Company::Verification)).void + params(address: T.nilable(::Stripe::Account::UpdateParams::Company::Address), address_kana: T.nilable(::Stripe::Account::UpdateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::Account::UpdateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::Account::UpdateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::Account::UpdateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_date: T.nilable(T.nilable(T.any(String, ::Stripe::Account::UpdateParams::Company::RegistrationDate))), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::Account::UpdateParams::Company::Verification)).void } def initialize( address: nil, @@ -2247,6 +2279,7 @@ module Stripe ownership_declaration: nil, ownership_exemption_reason: nil, phone: nil, + registration_date: nil, registration_number: nil, structure: nil, tax_id: nil, @@ -4312,6 +4345,19 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end + class RegistrationDate < Stripe::RequestParams + # The day of registration, between 1 and 31. + sig { returns(Integer) } + attr_accessor :day + # The month of registration, between 1 and 12. + sig { returns(Integer) } + attr_accessor :month + # The four-digit year of registration. + sig { returns(Integer) } + attr_accessor :year + sig { params(day: Integer, month: Integer, year: Integer).void } + def initialize(day: nil, month: nil, year: nil); end + end class Verification < Stripe::RequestParams class Document < Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -4380,6 +4426,11 @@ module Stripe # The company's phone number (used for verification). sig { returns(T.nilable(String)) } attr_accessor :phone + # Attribute for param field registration_date + sig { + returns(T.nilable(T.nilable(T.any(String, ::Stripe::Account::CreateParams::Company::RegistrationDate)))) + } + attr_accessor :registration_date # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). sig { returns(T.nilable(String)) } attr_accessor :registration_number @@ -4399,7 +4450,7 @@ module Stripe sig { returns(T.nilable(::Stripe::Account::CreateParams::Company::Verification)) } attr_accessor :verification sig { - params(address: T.nilable(::Stripe::Account::CreateParams::Company::Address), address_kana: T.nilable(::Stripe::Account::CreateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::Account::CreateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::Account::CreateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::Account::CreateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::Account::CreateParams::Company::Verification)).void + params(address: T.nilable(::Stripe::Account::CreateParams::Company::Address), address_kana: T.nilable(::Stripe::Account::CreateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::Account::CreateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::Account::CreateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::Account::CreateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_date: T.nilable(T.nilable(T.any(String, ::Stripe::Account::CreateParams::Company::RegistrationDate))), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::Account::CreateParams::Company::Verification)).void } def initialize( address: nil, @@ -4417,6 +4468,7 @@ module Stripe ownership_declaration: nil, ownership_exemption_reason: nil, phone: nil, + registration_date: nil, registration_number: nil, structure: nil, tax_id: nil, diff --git a/rbi/stripe/resources/token.rbi b/rbi/stripe/resources/token.rbi index 6108eda3..6a50b0f2 100644 --- a/rbi/stripe/resources/token.rbi +++ b/rbi/stripe/resources/token.rbi @@ -195,6 +195,19 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end + class RegistrationDate < Stripe::RequestParams + # The day of registration, between 1 and 31. + sig { returns(Integer) } + attr_accessor :day + # The month of registration, between 1 and 12. + sig { returns(Integer) } + attr_accessor :month + # The four-digit year of registration. + sig { returns(Integer) } + attr_accessor :year + sig { params(day: Integer, month: Integer, year: Integer).void } + def initialize(day: nil, month: nil, year: nil); end + end class Verification < Stripe::RequestParams class Document < Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -268,6 +281,11 @@ module Stripe # The company's phone number (used for verification). sig { returns(T.nilable(String)) } attr_accessor :phone + # Attribute for param field registration_date + sig { + returns(T.nilable(T.nilable(T.any(String, ::Stripe::Token::CreateParams::Account::Company::RegistrationDate)))) + } + attr_accessor :registration_date # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). sig { returns(T.nilable(String)) } attr_accessor :registration_number @@ -287,7 +305,7 @@ module Stripe sig { returns(T.nilable(::Stripe::Token::CreateParams::Account::Company::Verification)) } attr_accessor :verification sig { - params(address: T.nilable(::Stripe::Token::CreateParams::Account::Company::Address), address_kana: T.nilable(::Stripe::Token::CreateParams::Account::Company::AddressKana), address_kanji: T.nilable(::Stripe::Token::CreateParams::Account::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::Token::CreateParams::Account::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::Token::CreateParams::Account::Company::OwnershipDeclaration), ownership_declaration_shown_and_signed: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::Token::CreateParams::Account::Company::Verification)).void + params(address: T.nilable(::Stripe::Token::CreateParams::Account::Company::Address), address_kana: T.nilable(::Stripe::Token::CreateParams::Account::Company::AddressKana), address_kanji: T.nilable(::Stripe::Token::CreateParams::Account::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::Token::CreateParams::Account::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::Token::CreateParams::Account::Company::OwnershipDeclaration), ownership_declaration_shown_and_signed: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_date: T.nilable(T.nilable(T.any(String, ::Stripe::Token::CreateParams::Account::Company::RegistrationDate))), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::Token::CreateParams::Account::Company::Verification)).void } def initialize( address: nil, @@ -306,6 +324,7 @@ module Stripe ownership_declaration_shown_and_signed: nil, ownership_exemption_reason: nil, phone: nil, + registration_date: nil, registration_number: nil, structure: nil, tax_id: nil, diff --git a/rbi/stripe/services/account_service.rbi b/rbi/stripe/services/account_service.rbi index 492f5e40..4f570641 100644 --- a/rbi/stripe/services/account_service.rbi +++ b/rbi/stripe/services/account_service.rbi @@ -1307,6 +1307,19 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end + class RegistrationDate < Stripe::RequestParams + # The day of registration, between 1 and 31. + sig { returns(Integer) } + attr_accessor :day + # The month of registration, between 1 and 12. + sig { returns(Integer) } + attr_accessor :month + # The four-digit year of registration. + sig { returns(Integer) } + attr_accessor :year + sig { params(day: Integer, month: Integer, year: Integer).void } + def initialize(day: nil, month: nil, year: nil); end + end class Verification < Stripe::RequestParams class Document < Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -1377,6 +1390,11 @@ module Stripe # The company's phone number (used for verification). sig { returns(T.nilable(String)) } attr_accessor :phone + # Attribute for param field registration_date + sig { + returns(T.nilable(T.nilable(T.any(String, ::Stripe::AccountService::UpdateParams::Company::RegistrationDate)))) + } + attr_accessor :registration_date # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). sig { returns(T.nilable(String)) } attr_accessor :registration_number @@ -1396,7 +1414,7 @@ module Stripe sig { returns(T.nilable(::Stripe::AccountService::UpdateParams::Company::Verification)) } attr_accessor :verification sig { - params(address: T.nilable(::Stripe::AccountService::UpdateParams::Company::Address), address_kana: T.nilable(::Stripe::AccountService::UpdateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::AccountService::UpdateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::AccountService::UpdateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::AccountService::UpdateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::AccountService::UpdateParams::Company::Verification)).void + params(address: T.nilable(::Stripe::AccountService::UpdateParams::Company::Address), address_kana: T.nilable(::Stripe::AccountService::UpdateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::AccountService::UpdateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::AccountService::UpdateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::AccountService::UpdateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_date: T.nilable(T.nilable(T.any(String, ::Stripe::AccountService::UpdateParams::Company::RegistrationDate))), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::AccountService::UpdateParams::Company::Verification)).void } def initialize( address: nil, @@ -1414,6 +1432,7 @@ module Stripe ownership_declaration: nil, ownership_exemption_reason: nil, phone: nil, + registration_date: nil, registration_number: nil, structure: nil, tax_id: nil, @@ -3592,6 +3611,19 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end + class RegistrationDate < Stripe::RequestParams + # The day of registration, between 1 and 31. + sig { returns(Integer) } + attr_accessor :day + # The month of registration, between 1 and 12. + sig { returns(Integer) } + attr_accessor :month + # The four-digit year of registration. + sig { returns(Integer) } + attr_accessor :year + sig { params(day: Integer, month: Integer, year: Integer).void } + def initialize(day: nil, month: nil, year: nil); end + end class Verification < Stripe::RequestParams class Document < Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -3662,6 +3694,11 @@ module Stripe # The company's phone number (used for verification). sig { returns(T.nilable(String)) } attr_accessor :phone + # Attribute for param field registration_date + sig { + returns(T.nilable(T.nilable(T.any(String, ::Stripe::AccountService::CreateParams::Company::RegistrationDate)))) + } + attr_accessor :registration_date # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). sig { returns(T.nilable(String)) } attr_accessor :registration_number @@ -3681,7 +3718,7 @@ module Stripe sig { returns(T.nilable(::Stripe::AccountService::CreateParams::Company::Verification)) } attr_accessor :verification sig { - params(address: T.nilable(::Stripe::AccountService::CreateParams::Company::Address), address_kana: T.nilable(::Stripe::AccountService::CreateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::AccountService::CreateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::AccountService::CreateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::AccountService::CreateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::AccountService::CreateParams::Company::Verification)).void + params(address: T.nilable(::Stripe::AccountService::CreateParams::Company::Address), address_kana: T.nilable(::Stripe::AccountService::CreateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::AccountService::CreateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::AccountService::CreateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::AccountService::CreateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_date: T.nilable(T.nilable(T.any(String, ::Stripe::AccountService::CreateParams::Company::RegistrationDate))), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::AccountService::CreateParams::Company::Verification)).void } def initialize( address: nil, @@ -3699,6 +3736,7 @@ module Stripe ownership_declaration: nil, ownership_exemption_reason: nil, phone: nil, + registration_date: nil, registration_number: nil, structure: nil, tax_id: nil, diff --git a/rbi/stripe/services/token_service.rbi b/rbi/stripe/services/token_service.rbi index 53477068..6feaecb9 100644 --- a/rbi/stripe/services/token_service.rbi +++ b/rbi/stripe/services/token_service.rbi @@ -145,6 +145,19 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end + class RegistrationDate < Stripe::RequestParams + # The day of registration, between 1 and 31. + sig { returns(Integer) } + attr_accessor :day + # The month of registration, between 1 and 12. + sig { returns(Integer) } + attr_accessor :month + # The four-digit year of registration. + sig { returns(Integer) } + attr_accessor :year + sig { params(day: Integer, month: Integer, year: Integer).void } + def initialize(day: nil, month: nil, year: nil); end + end class Verification < Stripe::RequestParams class Document < Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -224,6 +237,11 @@ module Stripe # The company's phone number (used for verification). sig { returns(T.nilable(String)) } attr_accessor :phone + # Attribute for param field registration_date + sig { + returns(T.nilable(T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Account::Company::RegistrationDate)))) + } + attr_accessor :registration_date # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). sig { returns(T.nilable(String)) } attr_accessor :registration_number @@ -245,7 +263,7 @@ module Stripe } attr_accessor :verification sig { - params(address: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::Address), address_kana: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::AddressKana), address_kanji: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::OwnershipDeclaration), ownership_declaration_shown_and_signed: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::Verification)).void + params(address: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::Address), address_kana: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::AddressKana), address_kanji: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::OwnershipDeclaration), ownership_declaration_shown_and_signed: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_date: T.nilable(T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Account::Company::RegistrationDate))), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::Verification)).void } def initialize( address: nil, @@ -264,6 +282,7 @@ module Stripe ownership_declaration_shown_and_signed: nil, ownership_exemption_reason: nil, phone: nil, + registration_date: nil, registration_number: nil, structure: nil, tax_id: nil,