|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.app.CreateOrderOptions
public class CreateOrderOptions
An object used to contain options used when creating an order from an array of basket items.
| Constructor Summary | |
|---|---|
CreateOrderOptions()
Constructor |
|
| Method Summary | |
|---|---|
int |
getBillingAddrId()
Id of billing address to use when creating the order. |
java.lang.String |
getCatalogId()
The id of the catalog which contains dynamic product information such as the price and quantity |
int |
getCustomerAddrId()
Id of customer address to use when creating the order. |
int |
getDeliveryAddrId()
Id of delivery address to use when creating the order. |
java.lang.String |
getLocale()
Locale of the customer |
java.util.Calendar |
getPriceDate()
The date for which a price is requested. |
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. |
boolean |
isUseExternalPrice()
If true we attempt to fetch the prices from the external table |
boolean |
isUseExternalQuantity()
If true we attempt to fetch the quantities from the external table |
boolean |
isUseWishListShippingAddr()
If any one of the basket items, has a valid wish list id, then we use the address of the wish list as the shipping address. |
void |
setBillingAddrId(int billingAddrId)
Id of billing address to use when creating the order. |
void |
setCatalogId(java.lang.String catalogId)
The id of the catalog which contains dynamic product information such as the price and quantity |
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 |
setCustomerAddrId(int customerAddrId)
Id of customer address to use when creating the order. |
void |
setDeliveryAddrId(int deliveryAddrId)
Id of delivery address to use when creating the order. |
void |
setLocale(java.lang.String locale)
Locale of the customer |
void |
setPriceDate(java.util.Calendar priceDate)
The date for which a price is requested. |
void |
setUseDefaultCustomer(boolean useDefaultCustomer)
This boolean is set so that an order can be created before a customer has logged in to the application. |
void |
setUseExternalPrice(boolean useExternalPrice)
If true we attempt to fetch the prices from the external table |
void |
setUseExternalQuantity(boolean useExternalQuantity)
If true we attempt to fetch the quantities from the external table |
void |
setUseWishListShippingAddr(boolean useWishListShippingAddr)
If any one of the basket items, has a valid wish list id, then we use the address of the wish list as the shipping address. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CreateOrderOptions()
| Method Detail |
|---|
public boolean isCopyBasketCustomFields()
CreateOrderOptionsIf
isCopyBasketCustomFields in interface CreateOrderOptionsIfpublic void setCopyBasketCustomFields(boolean copyBasketCustomFields)
CreateOrderOptionsIf
setCopyBasketCustomFields in interface CreateOrderOptionsIfcopyBasketCustomFields - The copyBasketCustomFields to set.public boolean isUseDefaultCustomer()
CreateOrderOptionsIfsession parameter can be set to null.
isUseDefaultCustomer in interface CreateOrderOptionsIfpublic void setUseDefaultCustomer(boolean useDefaultCustomer)
CreateOrderOptionsIfsession parameter can be set to null.
setUseDefaultCustomer in interface CreateOrderOptionsIfuseDefaultCustomer - The useDefaultCustomer to set.public java.lang.String getCatalogId()
CreateOrderOptionsIf
getCatalogId in interface CreateOrderOptionsIfpublic void setCatalogId(java.lang.String catalogId)
CreateOrderOptionsIf
setCatalogId in interface CreateOrderOptionsIfcatalogId - the catalogId to setpublic java.util.Calendar getPriceDate()
CreateOrderOptionsIf
getPriceDate in interface CreateOrderOptionsIfpublic void setPriceDate(java.util.Calendar priceDate)
CreateOrderOptionsIf
setPriceDate in interface CreateOrderOptionsIfpriceDate - the priceDate to setpublic boolean isUseWishListShippingAddr()
CreateOrderOptionsIf
isUseWishListShippingAddr in interface CreateOrderOptionsIfpublic void setUseWishListShippingAddr(boolean useWishListShippingAddr)
CreateOrderOptionsIf
setUseWishListShippingAddr in interface CreateOrderOptionsIfuseWishListShippingAddr - the useWishListShippingAddr to setpublic boolean isUseExternalPrice()
CreateOrderOptionsIf
isUseExternalPrice in interface CreateOrderOptionsIfpublic void setUseExternalPrice(boolean useExternalPrice)
CreateOrderOptionsIf
setUseExternalPrice in interface CreateOrderOptionsIfuseExternalPrice - the useExternalPrice to setpublic java.lang.String getLocale()
getLocale in interface CreateOrderOptionsIfpublic void setLocale(java.lang.String locale)
setLocale in interface CreateOrderOptionsIflocale - the locale to setpublic boolean isUseExternalQuantity()
CreateOrderOptionsIf
isUseExternalQuantity in interface CreateOrderOptionsIfpublic void setUseExternalQuantity(boolean useExternalQuantity)
CreateOrderOptionsIf
setUseExternalQuantity in interface CreateOrderOptionsIfuseExternalQuantity - the useExternalQuantity to setpublic int getBillingAddrId()
CreateOrderOptionsIf
getBillingAddrId in interface CreateOrderOptionsIfpublic void setBillingAddrId(int billingAddrId)
CreateOrderOptionsIf
setBillingAddrId in interface CreateOrderOptionsIfbillingAddrId - the billingAddrId to setpublic int getCustomerAddrId()
CreateOrderOptionsIf
getCustomerAddrId in interface CreateOrderOptionsIfpublic void setCustomerAddrId(int customerAddrId)
CreateOrderOptionsIf
setCustomerAddrId in interface CreateOrderOptionsIfcustomerAddrId - the customerAddrId to setpublic int getDeliveryAddrId()
CreateOrderOptionsIf
getDeliveryAddrId in interface CreateOrderOptionsIfpublic void setDeliveryAddrId(int deliveryAddrId)
CreateOrderOptionsIf
setDeliveryAddrId in interface CreateOrderOptionsIfdeliveryAddrId - the deliveryAddrId to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||