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()
CreateOrderOptionsIf
isCopyBasketCustomFields
in interface CreateOrderOptionsIf
public void setCopyBasketCustomFields(boolean copyBasketCustomFields)
CreateOrderOptionsIf
setCopyBasketCustomFields
in interface CreateOrderOptionsIf
copyBasketCustomFields
- The copyBasketCustomFields to set.public boolean isUseDefaultCustomer()
CreateOrderOptionsIf
session
parameter can be set to null.isUseDefaultCustomer
in interface CreateOrderOptionsIf
public void setUseDefaultCustomer(boolean useDefaultCustomer)
CreateOrderOptionsIf
session
parameter can be set to null.setUseDefaultCustomer
in interface CreateOrderOptionsIf
useDefaultCustomer
- The useDefaultCustomer to set.public java.lang.String getCatalogId()
CreateOrderOptionsIf
getCatalogId
in interface CreateOrderOptionsIf
public void setCatalogId(java.lang.String catalogId)
CreateOrderOptionsIf
setCatalogId
in interface CreateOrderOptionsIf
catalogId
- the catalogId to setpublic java.util.Calendar getPriceDate()
CreateOrderOptionsIf
getPriceDate
in interface CreateOrderOptionsIf
public void setPriceDate(java.util.Calendar priceDate)
CreateOrderOptionsIf
setPriceDate
in interface CreateOrderOptionsIf
priceDate
- the priceDate to setpublic boolean isUseWishListShippingAddr()
CreateOrderOptionsIf
isUseWishListShippingAddr
in interface CreateOrderOptionsIf
public void setUseWishListShippingAddr(boolean useWishListShippingAddr)
CreateOrderOptionsIf
setUseWishListShippingAddr
in interface CreateOrderOptionsIf
useWishListShippingAddr
- the useWishListShippingAddr to setpublic boolean isUseExternalPrice()
CreateOrderOptionsIf
isUseExternalPrice
in interface CreateOrderOptionsIf
public void setUseExternalPrice(boolean useExternalPrice)
CreateOrderOptionsIf
setUseExternalPrice
in interface CreateOrderOptionsIf
useExternalPrice
- the useExternalPrice to setpublic java.lang.String getLocale()
getLocale
in interface CreateOrderOptionsIf
public void setLocale(java.lang.String locale)
setLocale
in interface CreateOrderOptionsIf
locale
- the locale to setpublic boolean isUseExternalQuantity()
CreateOrderOptionsIf
isUseExternalQuantity
in interface CreateOrderOptionsIf
public void setUseExternalQuantity(boolean useExternalQuantity)
CreateOrderOptionsIf
setUseExternalQuantity
in interface CreateOrderOptionsIf
useExternalQuantity
- the useExternalQuantity to setpublic int getBillingAddrId()
CreateOrderOptionsIf
getBillingAddrId
in interface CreateOrderOptionsIf
public void setBillingAddrId(int billingAddrId)
CreateOrderOptionsIf
setBillingAddrId
in interface CreateOrderOptionsIf
billingAddrId
- the billingAddrId to setpublic int getCustomerAddrId()
CreateOrderOptionsIf
getCustomerAddrId
in interface CreateOrderOptionsIf
public void setCustomerAddrId(int customerAddrId)
CreateOrderOptionsIf
setCustomerAddrId
in interface CreateOrderOptionsIf
customerAddrId
- the customerAddrId to setpublic int getDeliveryAddrId()
CreateOrderOptionsIf
getDeliveryAddrId
in interface CreateOrderOptionsIf
public void setDeliveryAddrId(int deliveryAddrId)
CreateOrderOptionsIf
setDeliveryAddrId
in interface CreateOrderOptionsIf
deliveryAddrId
- the deliveryAddrId to setpublic boolean isCalcQuantityForBundles()
CreateOrderOptionsIf
isCalcQuantityForBundles
in interface CreateOrderOptionsIf
public void setCalcQuantityForBundles(boolean calcQuantityForBundles)
CreateOrderOptionsIf
setCalcQuantityForBundles
in interface CreateOrderOptionsIf
calcQuantityForBundles
- the calcQuantityForBundles to setpublic java.lang.String getCouponCode()
getCouponCode
in interface CreateOrderOptionsIf
public void setCouponCode(java.lang.String couponCode)
setCouponCode
in interface CreateOrderOptionsIf
couponCode
- the couponCode to setpublic java.lang.String getGiftCertCode()
getGiftCertCode
in interface CreateOrderOptionsIf
public void setGiftCertCode(java.lang.String giftCertCode)
setGiftCertCode
in interface CreateOrderOptionsIf
giftCertCode
- 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 CreateOrderOptionsIf
public 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 CreateOrderOptionsIf
populateAvailableShippingQuotes
- the populateAvailableShippingQuotes to setpublic java.lang.String getShippingModuleCode()
getShippingModuleCode
in interface CreateOrderOptionsIf
public void setShippingModuleCode(java.lang.String shippingModuleCode)
setShippingModuleCode
in interface CreateOrderOptionsIf
shippingModuleCode
- the shippingModuleCode to setpublic java.lang.String getShippingServiceCode()
getShippingServiceCode
in interface CreateOrderOptionsIf
public void setShippingServiceCode(java.lang.String shippingServiceCode)
setShippingServiceCode
in interface CreateOrderOptionsIf
shippingServiceCode
- 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 CreateOrderOptionsIf
public 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 CreateOrderOptionsIf
populateAvailablePaymentGateways
- the populateAvailablePaymentGateways to setpublic java.lang.String getPaymentModuleCode()
getPaymentModuleCode
in interface CreateOrderOptionsIf
public void setPaymentModuleCode(java.lang.String paymentModuleCode)
setPaymentModuleCode
in interface CreateOrderOptionsIf
paymentModuleCode
- the paymentModuleCode to setpublic java.lang.String getPaymentModuleSubCode()
getPaymentModuleSubCode
in interface CreateOrderOptionsIf
public void setPaymentModuleSubCode(java.lang.String paymentModuleSubCode)
setPaymentModuleSubCode
in interface CreateOrderOptionsIf
paymentModuleSubCode
- the paymentModuleSubCode to setpublic boolean isPopulateOrderTotals()
isPopulateOrderTotals
in interface CreateOrderOptionsIf
public void setPopulateOrderTotals(boolean populateOrderTotals)
setPopulateOrderTotals
in interface CreateOrderOptionsIf
populateOrderTotals
- the populateOrderTotals to setpublic boolean isGetImages()
isGetImages
in interface CreateOrderOptionsIf
public void setGetImages(boolean getImages)
setGetImages
in interface CreateOrderOptionsIf
getImages
- the getImages to setpublic int[] getInventoryUpdateExcludeProdTypes()
getInventoryUpdateExcludeProdTypes
in interface CreateOrderOptionsIf
public void setInventoryUpdateExcludeProdTypes(int[] inventoryUpdateExcludeProdTypes)
setInventoryUpdateExcludeProdTypes
in interface CreateOrderOptionsIf
inventoryUpdateExcludeProdTypes
- the inventoryUpdateExcludeProdTypes to setpublic java.lang.String getCurrencyCode()
getCurrencyCode
in interface CreateOrderOptionsIf
public void setCurrencyCode(java.lang.String currencyCode)
setCurrencyCode
in interface CreateOrderOptionsIf
currencyCode
- the currencyCode to setCopyright © 2018 DS Data Systems UK Ltd.