Class: ProductShippingRules

Model~ProductShippingRules(data) → {void}

ProductShippingRules data model.

Constructor

new ProductShippingRules(data) → {void}

ProductShippingRules Constructor.

ProductShippingRules Constructor.

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

Methods

addMethod(method) → {ProductShippingRules}

Add a ProductShippingMethod.

Add a ProductShippingMethod.

Parameters:
Name Type Description
method ProductShippingMethod
Source:
Returns:
Type
ProductShippingRules

getHeight() → {number}

Get height.

Get height.

Source:
Returns:
Type
number

getLength() → {number}

Get length.

Get length.

Source:
Returns:
Type
number

getLimitMethods() → {boolean}

Get limitmeths.

Get limitmeths.

Source:
Returns:
Type
boolean

getMethods() → {Array.<ProductShippingMethod>}

Get methods.

Get methods.

Source:
Returns:
Type
Array.<ProductShippingMethod>

getOwnPackage() → {boolean}

Get ownpackage.

Get ownpackage.

Source:
Returns:
Type
boolean

getProductId() → {number}

Get product_id.

Get product_id.

Source:
Returns:
Type
number

getWidth() → {number}

Get width.

Get width.

Source:
Returns:
Type
number

setMethods(methods) → {ProductShippingRules}

Set methods.

Set methods.

Parameters:
Name Type Description
methods Array.<ProductShippingMethod>
Source:
Throws:
Error
Returns:
Type
ProductShippingRules

toObject()

Source: