ZenMagick 0.9.6


org.zenmagick.model.checkout.ZMOrderTotalDetails

Class ZMOrderTotalDetails

ZMObject
|
+--ZMOrderTotalDetails

public class ZMOrderTotalDetails
extends ZMObject

Order total details as returned by an ZMOrderTotalPlugin.

The title and amount are the minimum requirements for an order total. All other available properties are optional.

Author:
DerManoMann
Version:
$Id: ZMOrderTotalDetails.php 2133 2009-04-02 22:36:08Z dermanomann $

Fields inherited from org.zenmagick.ZMObject
properties_
Constructor Summary

ZMOrderTotalDetails(string title, float amount)

Create new instance.

Method Summary
float

getAmount()

Get the amount.

float

getSubtotal()

Get the subtotal.

float

getTax()

Get the tax.

string

getTitle()

Get the title.

void

setSubtotal(float subtotal)

Set the subtotal.

void

setTax(float tax)

Set the tax.

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

Constructor Detail

ZMOrderTotalDetails

public ZMOrderTotalDetails(string title, float amount)

Create new instance.

Parameters:
title - The title.
amount - The amount.

Method Detail

getAmount

public float getAmount()

Get the amount.

Returns:
The amount.

getSubtotal

public float getSubtotal()

Get the subtotal.

Returns:
The subtotal.

getTax

public float getTax()

Get the tax.

Returns:
The tax.

getTitle

public string getTitle()

Get the title.

Returns:
The title.

setSubtotal

public void setSubtotal(float subtotal)

Set the subtotal.

Parameters:
subtotal - The subtotal.

setTax

public void setTax(float tax)

Set the tax.

Parameters:
tax - The tax.

ZenMagick 0.9.6