public class CreateOrderOptions extends java.lang.Object implements CreateOrderOptionsIf
| Constructor and Description |
|---|
CreateOrderOptions()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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
|
java.lang.String |
getCouponCode()
The value of the coupon code to use when creating the order
|
java.lang.String |
getCurrencyCode()
The currency code of the currency to be used for the order.
|
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 |
getGiftCertCode()
The value of the gift certificate code to use when creating the order
|
int[] |
getInventoryUpdateExcludeProdTypes()
Used to define product types that are excluded from inventory updates.
|
java.lang.String |
getLocale()
Locale of the customer
|
java.lang.String |
getPaymentModuleCode()
The code of the payment module to set for the order (e.g.
|
java.lang.String |
getPaymentModuleSubCode()
The sub code of the payment module to set for the order.
|
java.util.Calendar |
getPriceDate()
The date for which a price is requested.
|
java.lang.String |
getShippingModuleCode()
The code of the shipping module to set for the order (e.g.
|
java.lang.String |
getShippingServiceCode()
The service code of the shipping module to set for the order.
|
boolean |
isCalcQuantityForBundles()
When set to true the quantity available for a product is calculated by reading the quantities
of the products within the bundle.
|
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 |
isGetImages()
When creating the order we attach a product object to each order product.
|
boolean |
isPopulateAvailablePaymentGateways()
When set to true, the order is populated with an array of available payment gateways.
|
boolean |
isPopulateAvailableShippingQuotes()
When set to true the order is populated with an array of available shipping quotes.
|
boolean |
isPopulateOrderTotals()
When set to true, the order is populated with its order total modules.
|
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 |
setCalcQuantityForBundles(boolean calcQuantityForBundles)
When set to true the quantity available for a product is calculated by reading the quantities
of the products within the bundle.
|
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 |
setCouponCode(java.lang.String couponCode)
The value of the coupon code to use when creating the order
|
void |
setCurrencyCode(java.lang.String currencyCode)
The currency code of the currency to be used for 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 |
setGetImages(boolean getImages)
When creating the order we attach a product object to each order product.
|
void |
setGiftCertCode(java.lang.String giftCertCode)
The value of the gift certificate code to use when creating the order
|
void |
setInventoryUpdateExcludeProdTypes(int[] inventoryUpdateExcludeProdTypes)
Used to define product types that are excluded from inventory updates.
|
void |
setLocale(java.lang.String locale)
Locale of the customer
|
void |
setPaymentModuleCode(java.lang.String paymentModuleCode)
The code of the payment module to set for the order (e.g.
|
void |
setPaymentModuleSubCode(java.lang.String paymentModuleSubCode)
The sub code of the payment module to set for the order.
|
void |
setPopulateAvailablePaymentGateways(boolean populateAvailablePaymentGateways)
When set to true, the order is populated with an array of available payment gateways.
|
void |
setPopulateAvailableShippingQuotes(boolean populateAvailableShippingQuotes)
When set to true the order is populated with an array of available shipping quotes.
|
void |
setPopulateOrderTotals(boolean populateOrderTotals)
When set to true, the order is populated with its order total modules.
|
void |
setPriceDate(java.util.Calendar priceDate)
The date for which a price is requested.
|
void |
setShippingModuleCode(java.lang.String shippingModuleCode)
The code of the shipping module to set for the order (e.g.
|
void |
setShippingServiceCode(java.lang.String shippingServiceCode)
The service code of the shipping module to set for 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.
|
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.
|
public boolean isCopyBasketCustomFields()
CreateOrderOptionsIfisCopyBasketCustomFields in interface CreateOrderOptionsIfpublic void setCopyBasketCustomFields(boolean copyBasketCustomFields)
CreateOrderOptionsIfsetCopyBasketCustomFields 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()
CreateOrderOptionsIfgetCatalogId in interface CreateOrderOptionsIfpublic void setCatalogId(java.lang.String catalogId)
CreateOrderOptionsIfsetCatalogId in interface CreateOrderOptionsIfcatalogId - the catalogId to setpublic java.util.Calendar getPriceDate()
CreateOrderOptionsIfgetPriceDate in interface CreateOrderOptionsIfpublic void setPriceDate(java.util.Calendar priceDate)
CreateOrderOptionsIfsetPriceDate in interface CreateOrderOptionsIfpriceDate - the priceDate to setpublic boolean isUseWishListShippingAddr()
CreateOrderOptionsIfisUseWishListShippingAddr in interface CreateOrderOptionsIfpublic void setUseWishListShippingAddr(boolean useWishListShippingAddr)
CreateOrderOptionsIfsetUseWishListShippingAddr in interface CreateOrderOptionsIfuseWishListShippingAddr - the useWishListShippingAddr to setpublic boolean isUseExternalPrice()
CreateOrderOptionsIfisUseExternalPrice in interface CreateOrderOptionsIfpublic void setUseExternalPrice(boolean useExternalPrice)
CreateOrderOptionsIfsetUseExternalPrice 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()
CreateOrderOptionsIfisUseExternalQuantity in interface CreateOrderOptionsIfpublic void setUseExternalQuantity(boolean useExternalQuantity)
CreateOrderOptionsIfsetUseExternalQuantity in interface CreateOrderOptionsIfuseExternalQuantity - the useExternalQuantity to setpublic int getBillingAddrId()
CreateOrderOptionsIfgetBillingAddrId in interface CreateOrderOptionsIfpublic void setBillingAddrId(int billingAddrId)
CreateOrderOptionsIfsetBillingAddrId in interface CreateOrderOptionsIfbillingAddrId - the billingAddrId to setpublic int getCustomerAddrId()
CreateOrderOptionsIfgetCustomerAddrId in interface CreateOrderOptionsIfpublic void setCustomerAddrId(int customerAddrId)
CreateOrderOptionsIfsetCustomerAddrId in interface CreateOrderOptionsIfcustomerAddrId - the customerAddrId to setpublic int getDeliveryAddrId()
CreateOrderOptionsIfgetDeliveryAddrId in interface CreateOrderOptionsIfpublic void setDeliveryAddrId(int deliveryAddrId)
CreateOrderOptionsIfsetDeliveryAddrId in interface CreateOrderOptionsIfdeliveryAddrId - the deliveryAddrId to setpublic boolean isCalcQuantityForBundles()
CreateOrderOptionsIfisCalcQuantityForBundles in interface CreateOrderOptionsIfpublic void setCalcQuantityForBundles(boolean calcQuantityForBundles)
CreateOrderOptionsIfsetCalcQuantityForBundles in interface CreateOrderOptionsIfcalcQuantityForBundles - the calcQuantityForBundles to setpublic java.lang.String getCouponCode()
getCouponCode in interface CreateOrderOptionsIfpublic void setCouponCode(java.lang.String couponCode)
setCouponCode in interface CreateOrderOptionsIfcouponCode - the couponCode to setpublic java.lang.String getGiftCertCode()
getGiftCertCode in interface CreateOrderOptionsIfpublic void setGiftCertCode(java.lang.String giftCertCode)
setGiftCertCode in interface CreateOrderOptionsIfgiftCertCode - the giftCertCode to setpublic boolean isPopulateAvailableShippingQuotes()
shippingModuleCode and shippingServiceCode are set, it
attempts to find these codes in the list of available shipping quotes and if found it uses
this quote as the selected shipping quote.isPopulateAvailableShippingQuotes in interface CreateOrderOptionsIfpublic void setPopulateAvailableShippingQuotes(boolean populateAvailableShippingQuotes)
shippingModuleCode and shippingServiceCode are set, it
attempts to find these codes in the list of available shipping quotes and if found it uses
this quote as the selected shipping quote.setPopulateAvailableShippingQuotes in interface CreateOrderOptionsIfpopulateAvailableShippingQuotes - the populateAvailableShippingQuotes to setpublic java.lang.String getShippingModuleCode()
getShippingModuleCode in interface CreateOrderOptionsIfpublic void setShippingModuleCode(java.lang.String shippingModuleCode)
setShippingModuleCode in interface CreateOrderOptionsIfshippingModuleCode - the shippingModuleCode to setpublic java.lang.String getShippingServiceCode()
getShippingServiceCode in interface CreateOrderOptionsIfpublic void setShippingServiceCode(java.lang.String shippingServiceCode)
setShippingServiceCode in interface CreateOrderOptionsIfshippingServiceCode - the shippingServiceCode to setpublic boolean isPopulateAvailablePaymentGateways()
paymentModuleCode and paymentModuleSubCode are set, it
attempts to find these codes in the list of available payment gateways and if found it uses
this gateway as the selected payment gateway.isPopulateAvailablePaymentGateways in interface CreateOrderOptionsIfpublic void setPopulateAvailablePaymentGateways(boolean populateAvailablePaymentGateways)
paymentModuleCode and paymentModuleSubCode are set, it
attempts to find these codes in the list of available payment gateways and if found it uses
this gateway as the selected payment gateway.setPopulateAvailablePaymentGateways in interface CreateOrderOptionsIfpopulateAvailablePaymentGateways - the populateAvailablePaymentGateways to setpublic java.lang.String getPaymentModuleCode()
getPaymentModuleCode in interface CreateOrderOptionsIfpublic void setPaymentModuleCode(java.lang.String paymentModuleCode)
setPaymentModuleCode in interface CreateOrderOptionsIfpaymentModuleCode - the paymentModuleCode to setpublic java.lang.String getPaymentModuleSubCode()
getPaymentModuleSubCode in interface CreateOrderOptionsIfpublic void setPaymentModuleSubCode(java.lang.String paymentModuleSubCode)
setPaymentModuleSubCode in interface CreateOrderOptionsIfpaymentModuleSubCode - the paymentModuleSubCode to setpublic boolean isPopulateOrderTotals()
isPopulateOrderTotals in interface CreateOrderOptionsIfpublic void setPopulateOrderTotals(boolean populateOrderTotals)
setPopulateOrderTotals in interface CreateOrderOptionsIfpopulateOrderTotals - the populateOrderTotals to setpublic boolean isGetImages()
isGetImages in interface CreateOrderOptionsIfpublic void setGetImages(boolean getImages)
setGetImages in interface CreateOrderOptionsIfgetImages - the getImages to setpublic int[] getInventoryUpdateExcludeProdTypes()
getInventoryUpdateExcludeProdTypes in interface CreateOrderOptionsIfpublic void setInventoryUpdateExcludeProdTypes(int[] inventoryUpdateExcludeProdTypes)
setInventoryUpdateExcludeProdTypes in interface CreateOrderOptionsIfinventoryUpdateExcludeProdTypes - the inventoryUpdateExcludeProdTypes to setpublic java.lang.String getCurrencyCode()
getCurrencyCode in interface CreateOrderOptionsIfpublic void setCurrencyCode(java.lang.String currencyCode)
setCurrencyCode in interface CreateOrderOptionsIfcurrencyCode - the currencyCode to setCopyright © 2018 DS Data Systems UK Ltd.