ModelShipping module
TemplateMethod
Template method allows programming its own way to create the rates.
A model in the Shipping module, with 21 members for templates, 22 API properties and 25 members for admin templates.
Templates view
Properties 21
Take no arguments.
-
#
getSnakeType() -
string - Returns the type of condition in the snake case format: lowercase and connected by underline
-
#
getSlugType() -
string - Returns the type of condition in the slug format: lowercase and connected by hyphen
-
#
getId() -
?int -
#
getName() -
?string -
#
getConfiguration() -
?array -
#
isActive() -
bool -
#
getCategories() -
?Collection<ategory> -
#
getWarehouses() -
?Collection<Warehouse> -
#
getZones() -
?Collection<one> -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
No members match the filter.
API & Jobs view
API & JobsEach property is a key in REST API responses and job payloads. Its name is the template getter without get, is or has. Methods that need arguments are not available here.
Properties 22
Read-only values on the record.
-
#
snakeType -
string - Returns the type of condition in the snake case format: lowercase and connected by underline
-
#
slugType -
string - Returns the type of condition in the slug format: lowercase and connected by hyphen
-
#
id -
?int -
#
name -
?string -
#
configuration -
?array -
#
active -
bool -
#
categories -
?Collection<ategory> -
#
warehouses -
?Collection<Warehouse> -
#
zones -
?Collection<one>
No members match the filter.
Admin view
AdminAvailable in cdna-admin templates. Copy an admin template into your site repository to change how this record is edited.
Properties 25
Take no arguments.
-
#
getSnakeType() -
string - Returns the type of condition in the snake case format: lowercase and connected by underline
-
#
getSlugType() -
string - Returns the type of condition in the slug format: lowercase and connected by hyphen
-
#
getId() -
?int -
#
getName() -
?string -
#
getConfiguration() -
?array -
#
isActive() -
bool -
#
getCategories() -
?Collection<ategory> -
#
getWarehouses() -
?Collection<Warehouse> -
#
getZones() -
?Collection<one> -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
No members match the filter.