Constructor
new OrderCustomField(data) → {void}
OrderCustomField Constructor.
OrderCustomField Constructor.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object |
Returns:
- Type
- void
Methods
getChoices() → {array}
Get choices.
Get choices.
Returns:
- Type
- array
getCode() → {string}
Get code.
Get code.
Returns:
- Type
- string
getModule() → {Module|*}
Get module.
Get module.
Returns:
- Type
- Module | *
getName() → {string}
Get name.
Get name.
Returns:
- Type
- string
getSearchable() → {boolean}
Get searchable.
Get searchable.
Returns:
- Type
- boolean
getSortable() → {boolean}
Get sortable.
Get sortable.
Returns:
- Type
- boolean
getType() → {string}
Get type.
Get type.
Returns:
- Type
- string
setChoices(choices) → {OrderCustomField}
Set choices.
Set choices.
Parameters:
Name | Type | Description |
---|---|---|
choices |
Array |
Returns:
- Type
- OrderCustomField
setCode(code) → {OrderCustomField}
Set code.
Set code.
Parameters:
Name | Type | Description |
---|---|---|
code |
string |
Returns:
- Type
- OrderCustomField
setModule(module) → {OrderCustomField}
Set module.
Set module.
Parameters:
Name | Type | Description |
---|---|---|
module |
Module | Object |
Throws:
Error
Returns:
- Type
- OrderCustomField
setName(name) → {OrderCustomField}
Set name.
Set name.
Parameters:
Name | Type | Description |
---|---|---|
name |
string |
Returns:
- Type
- OrderCustomField
setSearchable(searchable) → {OrderCustomField}
Set searchable.
Set searchable.
Parameters:
Name | Type | Description |
---|---|---|
searchable |
boolean |
Returns:
- Type
- OrderCustomField
setSortable(sortable) → {OrderCustomField}
Set sortable.
Set sortable.
Parameters:
Name | Type | Description |
---|---|---|
sortable |
boolean |
Returns:
- Type
- OrderCustomField
setType(type) → {OrderCustomField}
Set type.
Set type.
Parameters:
Name | Type | Description |
---|---|---|
type |
string |
Returns:
- Type
- OrderCustomField