RICADO Gen 4 API JS Client

RICADO Gen 4 API JS Client

Class

ReemoonSizerController

Controller Class for Reemoon Sizers

Constructor

new ReemoonSizerController()

Source

Methods

static

create(siteId, createData) → {Promise.<ReemoonSizerModel>}

Create a Reemoon Sizer [POST /packhouse/sites/{siteId}/reemoon-sizers]

Parameters

  • siteId number

    The Site ID

  • createData ReemoonSizerController.CreateData

    The Reemoon Sizer Create Data

Returns

  • Promise.<ReemoonSizerModel>

Source

static

getAll(siteId, queryParametersopt) → {Promise.<Array.<ReemoonSizerModel>>}

List all Reemoon Sizers [GET /packhouse/sites/{siteId}/reemoon-sizers]

Parameters

  • siteId number

    The Site ID

  • queryParameters ReemoonSizerController.GetAllQueryParameters <optional>

    The Optional Query Parameters

Returns

  • Promise.<Array.<ReemoonSizerModel>>

Source

static

getOne(siteId, id) → {Promise.<ReemoonSizerModel>}

Retrieve a Reemoon Sizer [GET /packhouse/sites/{siteId}/reemoon-sizers/{id}]

Parameters

  • siteId number

    The Site ID

  • id string

    The Reemoon Sizer ID

Returns

  • Promise.<ReemoonSizerModel>

Source

static

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

Update a Reemoon Sizer [PATCH /packhouse/sites/{siteId}/reemoon-sizers/{id}]

Parameters

  • siteId number

    The Site ID

  • id string

    The Reemoon Sizer ID

  • updateData ReemoonSizerController.UpdateData

    The Reemoon Sizer Update Data

Returns

  • Promise.<ReemoonSizerModel>

Source

Type Definitions

CreateData

The Create Data for a Reemoon Sizer

Type

  • Object

Properties

  • rtuId number <optional>
    <nullable>

    The RTU this Reemoon Sizer belongs to

  • name string

    The Reemoon Sizer Name

  • packingLineId string

    The Packing Line ID that manages this Reemoon Sizer

  • sizerType string

    The Sizer Type

  • autoCreateBatchDelay number <optional>

    The Auto Create Batch Delay in Seconds for this Reemoon Sizer

  • points Object

    The Points used by this Reemoon Sizer

  • lanes Array.<ReemoonSizerController.ReemoonSizerLane> <optional>

    The Lanes defined for this Reemoon Sizer

  • outlets Array.<ReemoonSizerController.ReemoonSizerOutlet> <optional>

    The Outlets defined for this Reemoon Sizer

  • fruitSizes Array.<ReemoonSizerController.ReemoonSizerFruitSize> <optional>

    The Fruit Sizes defined and handled by this Reemoon Sizer

  • freshPackIntegration ReemoonSizerController.FreshPackReemoonSizerIntegration <optional>
    <nullable>

    The FreshPack Integration Configuration for this Reemoon Sizer

  • reemoonIntegration ReemoonSizerController.ReemoonSizerIntegration

    The Reemoon Integration Configuration for this Reemoon Sizer

  • sources Array.<(ReemoonSizerController.RiserSource|ReemoonSizerController.SizerSource)> <optional>

    An Array of Sources that deliver Fruit to this Reemoon Sizer

  • productClassTypes Array.<ReemoonSizerController.ProductClassType> <optional>

    An Array of Product to Class Type Maps for this Reemoon Sizer

Source

FreshPackReemoonSizerIntegration

A FreshPackReemoonSizerIntegration Type

Type

  • Object

Properties

  • points Object

    The Points used by this FreshPack Sizer Integration

  • enabled boolean

    Whether this FreshPack Sizer Integration is Enabled

  • materialGroupId number

    The FreshPack Material Group ID to be used for Multi-Grower Bins from this Sizer

  • binTypeId number

    The FreshPack Bin Type ID to be used for Multi-Grower Bins from this Sizer

  • bulkWeightClassTypes Array.<string>

    An Array of Class Types that should be Sent to FreshPack as Bulk Weights in Multi-Grower Bins

Source

GetAllQueryParameters

The Optional Query Parameters for the getAll Function

Type

  • Object

Properties

  • rtuId number <optional>
    <nullable>

    The RTU this Reemoon Sizer belongs to

  • name string <optional>

    The Reemoon Sizer Name

  • packingLineId string <optional>

    The Packing Line ID that manages this Reemoon Sizer

  • sizerType string <optional>

    The Sizer Type

Source

ProductClassType

A ProductClassType Type

Type

  • Object

Properties

  • productName string

    Name of the Reemoon Sizer Product

  • classType string

    The Class Type for this Reemoon Sizer Product

  • matchType string

    The Match Type used when Evaluating the Product Name

Source

ReemoonSizerIntegration

A ReemoonSizerIntegration Type

Type

  • Object

Properties

  • points Object

    The Points used by this Reemoon Sizer Integration

  • enabled boolean

    Whether this Reemoon Sizer Integration is Enabled

  • username string

    Username for Authenticating with the Reemoon Sizer API

  • password string

    Password for Authenticating with the Reemoon Sizer API

  • apiBaseUrl string

    Base URL of the Reemoon Sizer API

Source

UpdateData

The Update Data for a Reemoon Sizer

Type

  • Object

Properties

  • name string <optional>

    The Reemoon Sizer Name

  • packingLineId string <optional>

    The Packing Line ID that manages this Reemoon Sizer

  • sizerType string <optional>

    The Sizer Type

  • autoCreateBatchDelay number <optional>

    The Auto Create Batch Delay in Seconds for this Reemoon Sizer

  • points Object <optional>

    The Points used by this Reemoon Sizer

  • lanes Array.<ReemoonSizerController.ReemoonSizerLane> <optional>

    The Lanes defined for this Reemoon Sizer

  • outlets Array.<ReemoonSizerController.ReemoonSizerOutlet> <optional>

    The Outlets defined for this Reemoon Sizer

  • fruitSizes Array.<ReemoonSizerController.ReemoonSizerFruitSize> <optional>

    The Fruit Sizes defined and handled by this Reemoon Sizer

  • freshPackIntegration ReemoonSizerController.FreshPackReemoonSizerIntegration <optional>
    <nullable>

    The FreshPack Integration Configuration for this Reemoon Sizer

  • reemoonIntegration ReemoonSizerController.ReemoonSizerIntegration <optional>

    The Reemoon Integration Configuration for this Reemoon Sizer

  • sources Array.<(ReemoonSizerController.RiserSource|ReemoonSizerController.SizerSource)> <optional>

    An Array of Sources that deliver Fruit to this Reemoon Sizer

  • productClassTypes Array.<ReemoonSizerController.ProductClassType> <optional>

    An Array of Product to Class Type Maps for this Reemoon Sizer

Source