Constructor
new CompanyWithoutRequiredConstraint(data)
Create a new company-without-required-constraint instance
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | Initial data |
Classes
Members
acquisitionDate :number
Date when the company became a client (Unix milliseconds)
Type:
- number
acquisitionDate :number
Date when the company became a client (Unix milliseconds)
Type:
- number
acquisitionSource :string
How the company was acquired
Type:
- string
acquisitionSource :string
How the company was acquired
Type:
- string
artisanRegistrationDate :number
Date of registration in the Artisan Companies Registry (Unix milliseconds)
Type:
- number
artisanRegistrationDate :number
Date of registration in the Artisan Companies Registry (Unix milliseconds)
Type:
- number
artisanRegistryNumber :string
Registration number in the Artisan Companies Registry (Albo delle Imprese Artigiane)
Type:
- string
artisanRegistryNumber :string
Registration number in the Artisan Companies Registry (Albo delle Imprese Artigiane)
Type:
- string
businessRegistryNumber :string
Italian Business Registry registration number
Type:
- string
businessRegistryNumber :string
Italian Business Registry registration number
Type:
- string
cases :Array.<case>
Array of case's or array of FK's when creating / updating / not populated
Type:
- Array.<case>
cases :Array.<case>
Array of case's or array of FK's when creating / updating / not populated
Type:
- Array.<case>
certifiedEmail :string
Italian Certified Email Address (PEC)
Type:
- string
certifiedEmail :string
Italian Certified Email Address (PEC)
Type:
- string
createdAt :number
Type:
- number
createdAt :number
Type:
- number
createdBy :any
The user who created this record JSON dictionary representing the person instance or FK when creating / updating / not populated
Type:
- any
createdBy :any
The user who created this record JSON dictionary representing the person instance or FK when creating / updating / not populated
Type:
- any
description :string
Type:
- string
description :string
Type:
- string
documentRequest :any
JSON dictionary representing the documentrequest instance or FK when creating / updating / not populated
Type:
- any
documentRequest :any
JSON dictionary representing the documentrequest instance or FK when creating / updating / not populated
Type:
- any
email :string
Email Address
Type:
- string
email :string
Email Address
Type:
- string
headquarters :Array.<headquarter>
Array of headquarter's or array of FK's when creating / updating / not populated
Type:
- Array.<headquarter>
headquarters :Array.<headquarter>
Array of headquarter's or array of FK's when creating / updating / not populated
Type:
- Array.<headquarter>
id :integer
Note Sails special attributes: autoIncrement
Type:
- integer
id :integer
Note Sails special attributes: autoIncrement
Type:
- integer
incorporationDate :number
Date when the company was founded (Unix milliseconds)
Type:
- number
incorporationDate :number
Date when the company was founded (Unix milliseconds)
Type:
- number
legalForm :string
Legal form of the company (e.g., Srl, SpA)
Type:
- string
legalForm :string
Legal form of the company (e.g., Srl, SpA)
Type:
- string
name :string
Type:
- string
name :string
Type:
- string
people :Array.<personcompanyrole>
Array of personcompanyrole's or array of FK's when creating / updating / not populated
Type:
- Array.<personcompanyrole>
people :Array.<personcompanyrole>
Array of personcompanyrole's or array of FK's when creating / updating / not populated
Type:
- Array.<personcompanyrole>
phone :string
Type:
- string
phone :string
Type:
- string
quotations :Array.<quotation>
Array of quotation's or array of FK's when creating / updating / not populated
Type:
- Array.<quotation>
quotations :Array.<quotation>
Array of quotation's or array of FK's when creating / updating / not populated
Type:
- Array.<quotation>
reaNumber :string
Economic Administrative Index (R.E.A.) number
Type:
- string
reaNumber :string
Economic Administrative Index (R.E.A.) number
Type:
- string
registrationDate :number
Date of registration in the Business Registry (Unix milliseconds)
Type:
- number
registrationDate :number
Date of registration in the Business Registry (Unix milliseconds)
Type:
- number
sdi :string
Sistema di Interscambio (SDI) code for electronic invoicing
Type:
- string
sdi :string
Sistema di Interscambio (SDI) code for electronic invoicing
Type:
- string
shareCapital :number
Company share capital in euros
Type:
- number
shareCapital :number
Company share capital in euros
Type:
- number
taxCode :string
Italian fiscal code for companies
Type:
- string
taxCode :string
Italian fiscal code for companies
Type:
- string
updatedAt :number
Type:
- number
updatedAt :number
Type:
- number
url :string
Type:
- string
url :string
Type:
- string
vat :string
Type:
- string
vat :string
Type:
- string
Methods
toJSON() → {Object}
Convert the model to a plain object
Returns:
- Plain object representation
- Type
- Object
toJSON() → {Object}
Convert the model to a plain object
Returns:
- Plain object representation
- Type
- Object
validate() → {Object}
Validate the model
Returns:
- Validation result {valid: boolean, errors: Object}
- Type
- Object
validate() → {Object}
Validate the model
Returns:
- Validation result {valid: boolean, errors: Object}
- Type
- Object
(static) fromJSON(data)
Create a company-without-required-constraint instance from JSON data
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | JSON data |
Returns:
CompanyWithoutRequiredConstraint - New model instance
(static) fromJSON(data)
Create a company-without-required-constraint instance from JSON data
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | JSON data |
Returns:
CompanyWithoutRequiredConstraint - New model instance