com.konakart.appif
Interface CreateOrderOptionsIf


public interface CreateOrderOptionsIf

An object used to contain options used when creating an order from an array of basket items.


Method Summary
 boolean isCopyBasketCustomFields()
          When this boolean is set, all the custom fields of a basket item are automatically copied to the custom fields of the OrderProduct object in the order.
 boolean isUseDefaultCustomer()
          This boolean is set so that an order can be created before a customer has logged in to the application.
 void setCopyBasketCustomFields(boolean copyBasketCustomFields)
          When this boolean is set, all the custom fields of a basket item are automatically copied to the custom fields of the OrderProduct object in the order.
 void setUseDefaultCustomer(boolean useDefaultCustomer)
          This boolean is set so that an order can be created before a customer has logged in to the application.
 

Method Detail

isCopyBasketCustomFields

boolean isCopyBasketCustomFields()
When this boolean is set, all the custom fields of a basket item are automatically copied to the custom fields of the OrderProduct object in the order.

Returns:
Returns the copyBasketCustomFields.

setCopyBasketCustomFields

void setCopyBasketCustomFields(boolean copyBasketCustomFields)
When this boolean is set, all the custom fields of a basket item are automatically copied to the custom fields of the OrderProduct object in the order.

Parameters:
copyBasketCustomFields - The copyBasketCustomFields to set.

isUseDefaultCustomer

boolean isUseDefaultCustomer()
This boolean is set so that an order can be created before a customer has logged in to the application. We may want to do this to calculate the order totals so that they can be displayed in the edit cart screen to give additional information to a customer such as shipping charges, discounts etc. Since we don't have the details of the customer, the address of a "default customer" is used. The default customer can be configured in the Admin App. When this boolean is set, the session parameter can be set to null.

Returns:
Returns the useDefaultCustomer.

setUseDefaultCustomer

void setUseDefaultCustomer(boolean useDefaultCustomer)
This boolean is set so that an order can be created before a customer has logged in to the application. We may want to do this to calculate the order totals so that they can be displayed in the edit cart screen to give additional information to a customer such as shipping charges, discounts etc. Since we don't have the details of the customer, the address of a "default customer" is used. The default customer can be configured in the Admin App. When this boolean is set, the session parameter can be set to null.

Parameters:
useDefaultCustomer - The useDefaultCustomer to set.


Copyright © 2006 DS Data Systems UK Ltd.