class Stripe::CompanySpecs

Included Modules

Defined in:

stripe/models/company_specs.cr

Constant Summary

ERROR_MESSAGE_FOR_STRUCTURE = "invalid value for \"structure\", must be one of [, free_zone_establishment, free_zone_llc, government_instrumentality, governmental_unit, incorporated_non_profit, incorporated_partnership, limited_liability_partnership, llc, multi_member_llc, private_company, private_corporation, private_partnership, public_company, public_corporation, public_partnership, registered_charity, single_member_llc, sole_establishment, sole_proprietorship, tax_exempt_government_instrumentality, unincorporated_association, unincorporated_non_profit, unincorporated_partnership]."
MAX_LENGTH_FOR_EXPORT_LICENSE_ID = 5000
MAX_LENGTH_FOR_EXPORT_PURPOSE_CODE = 5000
MAX_LENGTH_FOR_NAME = 100
MAX_LENGTH_FOR_NAME_KANA = 100
MAX_LENGTH_FOR_NAME_KANJI = 100
MAX_LENGTH_FOR_PHONE = 5000
MAX_LENGTH_FOR_REGISTRATION_NUMBER = 5000
MAX_LENGTH_FOR_TAX_ID = 5000
MAX_LENGTH_FOR_TAX_ID_REGISTRAR = 5000
MAX_LENGTH_FOR_VAT_ID = 5000
VALID_VALUES_FOR_STRUCTURE = String.static_array("", "free_zone_establishment", "free_zone_llc", "government_instrumentality", "governmental_unit", "incorporated_non_profit", "incorporated_partnership", "limited_liability_partnership", "llc", "multi_member_llc", "private_company", "private_corporation", "private_partnership", "public_company", "public_corporation", "public_partnership", "registered_charity", "single_member_llc", "sole_establishment", "sole_proprietorship", "tax_exempt_government_instrumentality", "unincorporated_association", "unincorporated_non_profit", "unincorporated_partnership")

Constructors

Instance Method Summary

Instance methods inherited from module OpenApi::Json

after_initialize after_initialize, clone clone, eql?(o : self) eql?, to_hash : Hash(String, JSON::Any) to_hash, to_json_any : JSON::Any to_json_any

Class methods inherited from module OpenApi::Json

build_from_hash(hash : Hash) build_from_hash, build_from_json_any(json_any : JSON::Any) build_from_json_any

Instance methods inherited from module OpenApi::Validatable

list_invalid_properties : Array(String) list_invalid_properties, list_invalid_properties_for(key : String) : Array(String) list_invalid_properties_for, valid? : Bool valid?, validate : Nil validate

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, address : Stripe::LegalEntityAndKycAddressSpecs | Nil = nil, address_kana : Stripe::JapanAddressKanaSpecs | Nil = nil, address_kanji : Stripe::JapanAddressKanjiSpecs | Nil = nil, directors_provided : Bool | Nil = nil, executives_provided : Bool | Nil = nil, export_license_id : String | Nil = nil, export_purpose_code : String | Nil = nil, name : String | Nil = nil, name_kana : String | Nil = nil, name_kanji : String | Nil = nil, owners_provided : Bool | Nil = nil, ownership_declaration : Stripe::CompanyOwnershipDeclaration | Nil = nil, phone : String | Nil = nil, registration_number : String | Nil = nil, structure : String | Nil = nil, tax_id : String | Nil = nil, tax_id_registrar : String | Nil = nil, vat_id : String | Nil = nil, verification : Stripe::VerificationSpecs | Nil = nil) #

Initializes the object @param [Hash] attributes Model attributes in the form of hash


[View source]

Instance Method Detail

def ==(other : self) #

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code



[View source]
def address=(new_value : Stripe::LegalEntityAndKycAddressSpecs | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] address Object to be assigned


[View source]
def address_kana : Stripe::JapanAddressKanaSpecs | Nil #

[View source]
def address_kana=(new_value : Stripe::JapanAddressKanaSpecs | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] address_kana Object to be assigned


[View source]
def address_kanji : Stripe::JapanAddressKanjiSpecs | Nil #

[View source]
def address_kanji=(new_value : Stripe::JapanAddressKanjiSpecs | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] address_kanji Object to be assigned


[View source]
def directors_provided : Bool | Nil #

[View source]
def directors_provided=(new_value : Bool | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] directors_provided Object to be assigned


[View source]
def executives_provided : Bool | Nil #

[View source]
def executives_provided=(new_value : Bool | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] executives_provided Object to be assigned


[View source]
def export_license_id : String | Nil #

[View source]
def export_license_id=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] export_license_id Object to be assigned


[View source]
def export_purpose_code : String | Nil #

[View source]
def export_purpose_code=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] export_purpose_code Object to be assigned


[View source]
def hash(hasher) #

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code


def list_invalid_properties : Array(String) #

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons


[View source]
def name : String | Nil #

[View source]
def name=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] name Object to be assigned


[View source]
def name_kana : String | Nil #

[View source]
def name_kana=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] name_kana Object to be assigned


[View source]
def name_kanji : String | Nil #

[View source]
def name_kanji=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] name_kanji Object to be assigned


[View source]
def owners_provided : Bool | Nil #

[View source]
def owners_provided=(new_value : Bool | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] owners_provided Object to be assigned


[View source]
def ownership_declaration : Stripe::CompanyOwnershipDeclaration | Nil #

[View source]
def ownership_declaration=(new_value : Stripe::CompanyOwnershipDeclaration | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] ownership_declaration Object to be assigned


[View source]
def phone : String | Nil #

[View source]
def phone=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] phone Object to be assigned


[View source]
def registration_number : String | Nil #

[View source]
def registration_number=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] registration_number Object to be assigned


[View source]
def structure : String | Nil #

[View source]
def structure=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] structure Object to be assigned


[View source]
def tax_id : String | Nil #

[View source]
def tax_id=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] tax_id Object to be assigned


[View source]
def tax_id_registrar : String | Nil #

[View source]
def tax_id_registrar=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] tax_id_registrar Object to be assigned


[View source]
def valid? : Bool #

Check to see if the all the properties in the model are valid @return true if the model is valid


[View source]
def vat_id : String | Nil #

[View source]
def vat_id=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] vat_id Object to be assigned


[View source]
def verification : Stripe::VerificationSpecs | Nil #

[View source]
def verification=(new_value : Stripe::VerificationSpecs | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] verification Object to be assigned


[View source]