ZMObject
└─ZMShippingProvider
public class ZMShippingProvider
extends ZMObject
| Fields inherited from org.zenmagick.core.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
ZMShippingProvider(array zenQuote) Create a new shipping provider. |
|
| Method Summary | |
|---|---|
| array | getError() Get the errors. |
| string | getIcon() Get the icon. |
| int | getId() Get the shipping provider id. |
| string | getName() Get the shipping provider name. |
| array | Get the available shipping methods. |
| float | Get the shipping tax rate. |
| boolean | hasError() Checks if errors are logged for this provider. |
| boolean | hasIcon() Checks if an icon exists for this provider. |
| boolean | Checks if shipping methods are available from this provider. |
| Methods inherited from org.zenmagick.core.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMShippingProvider(array zenQuote)
Create a new shipping provider.
public array getError()
Get the errors.
public string getIcon()
Get the icon.
public int getId()
Get the shipping provider id.
public string getName()
Get the shipping provider name.
public array getShippingMethods()
Get the available shipping methods.
ZMShippingMethod instances.public float getTaxRate()
Get the shipping tax rate.
public boolean hasError()
Checks if errors are logged for this provider.
true if errors exist, false if not.public boolean hasIcon()
Checks if an icon exists for this provider.
true if an icon, false if not.public boolean hasShippingMethods()
Checks if shipping methods are available from this provider.
true if shipping methods exist, false if not.
Shipping provider.
A shipping provider may offer 1-n shipping methods, depending on the address, etc.