Class: OrderCustomField

Model~OrderCustomField(data) → {void}

OrderCustomField data model.

Constructor

new OrderCustomField(data) → {void}

OrderCustomField Constructor.

OrderCustomField Constructor.

Parameters:
Name Type Description
data Object
Source:
Returns:
Type
void

Methods

getChoices() → {array}

Get choices.

Get choices.

Source:
Returns:
Type
array

getCode() → {string}

Get code.

Get code.

Source:
Returns:
Type
string

getModule() → {Module|*}

Get module.

Get module.

Source:
Returns:
Type
Module | *

getName() → {string}

Get name.

Get name.

Source:
Returns:
Type
string

getSearchable() → {boolean}

Get searchable.

Get searchable.

Source:
Returns:
Type
boolean

getSortable() → {boolean}

Get sortable.

Get sortable.

Source:
Returns:
Type
boolean

getType() → {string}

Get type.

Get type.

Source:
Returns:
Type
string

setChoices(choices) → {OrderCustomField}

Set choices.

Set choices.

Parameters:
Name Type Description
choices Array
Source:
Returns:
Type
OrderCustomField

setCode(code) → {OrderCustomField}

Set code.

Set code.

Parameters:
Name Type Description
code string
Source:
Returns:
Type
OrderCustomField

setModule(module) → {OrderCustomField}

Set module.

Set module.

Parameters:
Name Type Description
module Module | Object
Source:
Throws:
Error
Returns:
Type
OrderCustomField

setName(name) → {OrderCustomField}

Set name.

Set name.

Parameters:
Name Type Description
name string
Source:
Returns:
Type
OrderCustomField

setSearchable(searchable) → {OrderCustomField}

Set searchable.

Set searchable.

Parameters:
Name Type Description
searchable boolean
Source:
Returns:
Type
OrderCustomField

setSortable(sortable) → {OrderCustomField}

Set sortable.

Set sortable.

Parameters:
Name Type Description
sortable boolean
Source:
Returns:
Type
OrderCustomField

setType(type) → {OrderCustomField}

Set type.

Set type.

Parameters:
Name Type Description
type string
Source:
Returns:
Type
OrderCustomField

toObject()

Source: