Class: Tide::API::Company
- Inherits:
-
Dry::Struct::Value
- Object
- Dry::Struct::Value
- Tide::API::Company
- Defined in:
- lib/tide/api/company.rb
Overview
A business company owned by the account holder
Instance Method Summary collapse
-
#company_id ⇒ Integer
Tide’s unique ID of the company.
-
#iso_created_on ⇒ DateTime
Date when the company was created in Tide.
-
#iso_updated_on ⇒ DateTime
Date when the company was was updated in Tide.
-
#name ⇒ Integer
Legal name of the company.
-
#number ⇒ String
Registration number in Companies House.
-
#registered ⇒ Boolean
Wether the company is registered or not? TODO.
-
#sic_code ⇒ Integer|nil
SIC code.
-
#trading_name ⇒ Integer
Trading name of the company.
-
#vat_number ⇒ String|nil
VAT number.
Instance Method Details
#company_id ⇒ Integer
Tide’s unique ID of the company.
9 |
# File 'lib/tide/api/company.rb', line 9 attribute :company_id, Types::Strict::Integer |
#iso_created_on ⇒ DateTime
Date when the company was created in Tide.
51 |
# File 'lib/tide/api/company.rb', line 51 attribute :iso_created_on, Types::Params::DateTime |
#iso_updated_on ⇒ DateTime
Date when the company was was updated in Tide.
57 |
# File 'lib/tide/api/company.rb', line 57 attribute :iso_updated_on, Types::Params::DateTime |
#name ⇒ Integer
Legal name of the company.
21 |
# File 'lib/tide/api/company.rb', line 21 attribute :name, Types::Strict::String |
#number ⇒ String
Registration number in Companies House.
15 |
# File 'lib/tide/api/company.rb', line 15 attribute :number, Types::Strict::String |
#registered ⇒ Boolean
Wether the company is registered or not? TODO
45 |
# File 'lib/tide/api/company.rb', line 45 attribute :registered, Types::Strict::Bool |
#sic_code ⇒ Integer|nil
SIC code.
33 |
# File 'lib/tide/api/company.rb', line 33 attribute :sic_code, Types::Strict::Integer.optional |
#trading_name ⇒ Integer
Trading name of the company.
27 |
# File 'lib/tide/api/company.rb', line 27 attribute :trading_name, Types::Strict::String |
#vat_number ⇒ String|nil
VAT number.
39 |
# File 'lib/tide/api/company.rb', line 39 attribute :vat_number, Types::Strict::String.optional |