ZenMagick 0.9.6


org.zenmagick.model.checkout.ZMShippingMethod

Class ZMShippingMethod

ZMObject
|
+--ZMShippingMethod

public class ZMShippingMethod
extends ZMObject

Shipping method.

Author:
DerManoMann
Version:
$Id: ZMShippingMethod.php 2121 2009-03-31 01:56:56Z dermanomann $

Fields inherited from org.zenmagick.ZMObject
properties_
Constructor Summary

ZMShippingMethod(ZMShippingProvider provider, array zenMethod)

Create new shipping method.

Method Summary
float

getCost()

Get the shipping cost.

int

getId()

Get the shipping method id.

string

getName()

Get the shipping method name.

ZMShippingProvider

getProvider()

Get the shipping provider.

string

getShippingId()

Get the shipping id.

void

setTaxRate(ZMTaxRate taxRate)

Set the tax rate.

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

Constructor Detail

ZMShippingMethod

public ZMShippingMethod(ZMShippingProvider provider, array zenMethod)

Create new shipping method.

Parameters:
provider - The shipping provider for this method.
zenMethod - The zen-cart method infos.

Method Detail

getCost

public float getCost()

Get the shipping cost.

Returns:
The shipping cost.

getId

public int getId()

Get the shipping method id.

Returns:
The shipping method id.

getName

public string getName()

Get the shipping method name.

Returns:
The shipping method name.

getProvider

public ZMShippingProvider getProvider()

Get the shipping provider.

Returns:
The shipping provider.

getShippingId

public string getShippingId()

Get the shipping id.

Returns:
The shipping id as used by the shopping cart.

setTaxRate

public void setTaxRate(ZMTaxRate taxRate)

Set the tax rate.

Parameters:
taxRate - The tax rate.

ZenMagick 0.9.6