Constructor
new ProductShippingRules(data) → {void}
ProductShippingRules Constructor.
ProductShippingRules Constructor.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object |
Returns:
- Type
- void
Methods
addMethod(method) → {ProductShippingRules}
Add a ProductShippingMethod.
Add a ProductShippingMethod.
Parameters:
Name | Type | Description |
---|---|---|
method |
ProductShippingMethod |
Returns:
- Type
- ProductShippingRules
getHeight() → {number}
Get height.
Get height.
Returns:
- Type
- number
getLength() → {number}
Get length.
Get length.
Returns:
- Type
- number
getLimitMethods() → {boolean}
Get limitmeths.
Get limitmeths.
Returns:
- Type
- boolean
getMethods() → {Array.<ProductShippingMethod>}
Get methods.
Get methods.
Returns:
- Type
- Array.<ProductShippingMethod>
getOwnPackage() → {boolean}
Get ownpackage.
Get ownpackage.
Returns:
- Type
- boolean
getProductId() → {number}
Get product_id.
Get product_id.
Returns:
- Type
- number
getWidth() → {number}
Get width.
Get width.
Returns:
- Type
- number
setMethods(methods) → {ProductShippingRules}
Set methods.
Set methods.
Parameters:
Name | Type | Description |
---|---|---|
methods |
Array.<ProductShippingMethod> |
Throws:
Error
Returns:
- Type
- ProductShippingRules