MOrganization
Extends:
Constructor Summary
Public Constructor | ||
public |
constructor(data: null | object) |
Member Summary
Public Members | ||
public |
Bank account number |
|
public |
Street or similar address |
|
public |
Address line 2 |
|
public |
Brand source identification for internal use |
|
public |
City name |
|
public |
registration or similar identification number |
|
public |
ISO 3166 county. |
|
public |
locale: String=en ISO 639-1 locale code. |
|
public |
module: * |
|
public |
Name of company or other type of organization |
|
public |
VAT / GST / etc. |
|
public |
taxSubject: boolean=false Specify if the organization is subject to tax. |
|
public |
Website address |
|
public |
Zip / post code |
Method Summary
Public Methods | ||
public |
createClient(data: *): Promise<MClient> |
|
public |
createDocument(data: *): Promise<MDocument> |
|
public |
createItem(data: *): Promise<MItem> |
|
public |
|
|
public |
listClients(): Promise<MClient[]> |
|
public |
listDocuments(): Promise<MDocument[]> |
|
public |
|
|
public |
listPayments(): Promise<MPayment[]> |
|
public |
|
|
public |
|
|
public |
searchClient(term: *): Promise<MClient> |
|
public |
searchItem(term: *): Promise<MItem> |
Inherited Summary
From class BaseModel | ||
public |
data: * |
|
public |
id: * |
|
public |
module: * |
|
public |
|
|
public |
|
|
public |
setId() |
|
public |
|
Public Constructors
Public Members
public country: string source
ISO 3166 county. Wikipedia The country parameter is used to apply some smart defaults to the organization being created including default tax rates and texts (both may be effected by taxSubject property in some cases)
public locale: String=en source
ISO 639-1 locale code. Wikipedia Effects language of default texts and system messages.
public taxSubject: boolean=false source
Specify if the organization is subject to tax. Property effects creation of default tax rates and texts
Public Methods
public createDocument(data: *): Promise<MDocument> source
Params:
Name | Type | Attribute | Description |
data | * |