Account Model

Account Model - is a base model for show platform account parameters. The fields of the Account model are presented in the table (Table 4.1), with an example below (Listing 4.1). There are the following types of this model (Table 4.2).

Table 4.1 - Fields of Account Model

Key
Type
Exists
Description

1

uuid

uuid v4, string

required

Main identifier of account

2

name

string

required

Public name of account

3

status

Status Model

optional

Platform Account Status

4

currency_code

string

optional

"EUR" , "USD" , etc.

5

email_for_notification

string

optional

If account has this parameter

6

vat_number

string

optional

Unique identifier of taxable person

7

address

Account Address Model

optional

If account has any of address parameters

Listing 4.1 – Example of Account Model (JSON)

{
     "uuid":                    "ff472de7-59b2-425d-96ec-9d1ff4bab684",
     "name":                    "Example Company",
     "status":                  {...//Status Model},
     "currency_code":           "EUR",
     "email_for_notification":  "[email protected]",
     "vat_number":              "123456789",
     "address":                 {...//Account Address Model}
}

Table 4.2 - Account Type

Title
Description

1

Admin

Has highest rules

2

Organisation

Has more rules than Companies and End Users and manages them

3

Company

Has more rules than End Users and manages them

4

End User

Main account of user with basic rules

Last updated