ZenMagick 0.9.6


org.zenmagick.model.checkout.ZMShippingProvider

Class ZMShippingProvider

ZMObject
|
+--ZMShippingProvider

public class ZMShippingProvider
extends ZMObject

Shipping provider.

A shipping provider may offer 1-n shipping methods, depending on the address, etc.

Author:
DerManoMann
Version:
$Id: ZMShippingProvider.php 2122 2009-03-31 03:08:30Z dermanomann $

Fields inherited from org.zenmagick.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

getShippingMethods()

Get the available shipping methods.

float

getTaxRate()

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

hasShippingMethods()

Checks if shipping methods are available from this provider.

Methods inherited from org.zenmagick.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

ZMShippingProvider

public ZMShippingProvider(array zenQuote)

Create a new shipping provider.

Parameters:
zenQuote - The zen-cart shipping quote infos for this provider.

Method Detail

getError

public array getError()

Get the errors.

Returns:
List of error messages.

getIcon

public string getIcon()

Get the icon.

Returns:
The icon.

getId

public int getId()

Get the shipping provider id.

Returns:
The shipping provider id.

getName

public string getName()

Get the shipping provider name.

Returns:
The shipping provider name.

getShippingMethods

public array getShippingMethods()

Get the available shipping methods.

Returns:
A list of ZMShippingMethod instances.

getTaxRate

public float getTaxRate()

Get the shipping tax rate.

Returns:
The shipping tax rate.

hasError

public boolean hasError()

Checks if errors are logged for this provider.

Returns:
true if errors exist, false if not.

hasIcon

public boolean hasIcon()

Checks if an icon exists for this provider.

Returns:
true if an icon, false if not.

hasShippingMethods

public boolean hasShippingMethods()

Checks if shipping methods are available from this provider.

Returns:
true if shipping methods exist, false if not.

ZenMagick 0.9.6