Class: Tide::API::Company

Inherits:
Dry::Struct::Value
  • Object
show all
Defined in:
lib/tide/api/company.rb

Overview

A business company owned by the account holder

Instance Method Summary collapse

Instance Method Details

#company_idInteger

Tide’s unique ID of the company.

Returns:

  • (Integer)


9
# File 'lib/tide/api/company.rb', line 9

attribute :company_id, Types::Strict::Integer

#iso_created_onDateTime

Date when the company was created in Tide.

Returns:

  • (DateTime)


51
# File 'lib/tide/api/company.rb', line 51

attribute :iso_created_on, Types::Params::DateTime

#iso_updated_onDateTime

Date when the company was was updated in Tide.

Returns:

  • (DateTime)


57
# File 'lib/tide/api/company.rb', line 57

attribute :iso_updated_on, Types::Params::DateTime

#nameInteger

Legal name of the company.

Returns:

  • (Integer)


21
# File 'lib/tide/api/company.rb', line 21

attribute :name, Types::Strict::String

#numberString

Registration number in Companies House.

Returns:

  • (String)


15
# File 'lib/tide/api/company.rb', line 15

attribute :number, Types::Strict::String

#registeredBoolean

Wether the company is registered or not? TODO

Returns:

  • (Boolean)


45
# File 'lib/tide/api/company.rb', line 45

attribute :registered, Types::Strict::Bool

#sic_codeInteger|nil

SIC code.

Returns:

  • (Integer|nil)


33
# File 'lib/tide/api/company.rb', line 33

attribute :sic_code, Types::Strict::Integer.optional

#trading_nameInteger

Trading name of the company.

Returns:

  • (Integer)


27
# File 'lib/tide/api/company.rb', line 27

attribute :trading_name, Types::Strict::String

#vat_numberString|nil

VAT number.

Returns:

  • (String|nil)


39
# File 'lib/tide/api/company.rb', line 39

attribute :vat_number, Types::Strict::String.optional