class Stripe::LegalEntityCompany

Overview

Included Modules

Defined in:

stripe/models/legal_entity_company.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 = 5000
MAX_LENGTH_FOR_NAME_KANA = 5000
MAX_LENGTH_FOR_NAME_KANJI = 5000
MAX_LENGTH_FOR_PHONE = 5000
MAX_LENGTH_FOR_TAX_ID_REGISTRAR = 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::Address | Nil = nil, address_kana : Stripe::LegalEntityCompanyAddressKana | Nil = nil, address_kanji : Stripe::LegalEntityCompanyAddressKanji | 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::LegalEntityCompanyOwnershipDeclaration | Nil = nil, phone : String | Nil = nil, structure : String | Nil = nil, tax_id_provided : Bool | Nil = nil, tax_id_registrar : String | Nil = nil, vat_id_provided : Bool | Nil = nil, verification : Stripe::LegalEntityCompanyVerification1 | 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


def address : Stripe::Address | Nil #

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

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


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

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

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


[View source]
def address_kana_present=(address_kana_present : Bool) #

[View source]
def address_kana_present? : Bool #

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

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

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


[View source]
def address_kanji_present=(address_kanji_present : Bool) #

[View source]
def address_kanji_present? : Bool #

[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_kana_present=(name_kana_present : Bool) #

[View source]
def name_kana_present? : Bool #

[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 name_kanji_present=(name_kanji_present : Bool) #

[View source]
def name_kanji_present? : Bool #

[View source]
def name_present=(name_present : Bool) #

[View source]
def name_present? : Bool #

[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::LegalEntityCompanyOwnershipDeclaration | Nil #

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

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


[View source]
def ownership_declaration_present=(ownership_declaration_present : Bool) #

[View source]
def ownership_declaration_present? : Bool #

[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 phone_present=(phone_present : Bool) #

[View source]
def phone_present? : Bool #

[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_provided : Bool | Nil #

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

Custom attribute writer method checking allowed values (enum). @param [Object] tax_id_provided 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_provided : Bool | Nil #

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

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


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

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

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


[View source]
def verification_present=(verification_present : Bool) #

[View source]
def verification_present? : Bool #

[View source]