RICADO Gen 4 API JS Client

RICADO Gen 4 API JS Client

Class

CompanyController

Controller Class for Companies

Constructor

new CompanyController()

Source

Methods

static

create(createData) → {Promise.<CompanyModel>}

Create a Company [POST /companies]

Parameters

  • createData CompanyController.CreateData

    The Company Create Data

Returns

  • Promise.<CompanyModel>

Source

static

getAll(queryParametersopt) → {Promise.<Array.<CompanyModel>>}

List all Companies [GET /companies]

Parameters

  • queryParameters CompanyController.GetAllQueryParameters <optional>

    The Optional Query Parameters

Returns

  • Promise.<Array.<CompanyModel>>

Source

static

getOne(id) → {Promise.<CompanyModel>}

Retrieve a Company [GET /companies/{id}]

Parameters

  • id string

    The Company ID

Returns

  • Promise.<CompanyModel>

Source

static

update(id, updateData) → {Promise.<CompanyModel>}

Update a Company [PATCH /companies/{id}]

Parameters

  • id string

    The Company ID

  • updateData CompanyController.UpdateData

    The Company Update Data

Returns

  • Promise.<CompanyModel>

Source

Type Definitions

GetAllQueryParameters

The Optional Query Parameters for the getAll Function

Type

  • Object

Properties

  • displayName string <optional>

    The Company Display Name

  • legalName string <optional>

    The Company Legal Name

Source

UpdateData

The Update Data for a Company

Type

  • Object

Properties

  • displayName string <optional>

    The Company Display Name

  • legalName string <optional>

    The Company Legal Name

Source