| java.lang.Object org.ofbiz.order.shoppingcart.CheckOutHelper
Method Summary | |
public double | availableAccountBalance(String billingAccountId) | public void | calcAndAddTax() | public Map | checkExternalPayment(String orderId) | public Map | checkGiftCard(Map params, Map selectedPaymentMethods) | public Map | checkOrderBlacklist(GenericValue userLogin) | public Map | createOrder(GenericValue userLogin, String distributorId, String affiliateId, List trackingCodeOrders, boolean areOrderItemsExploded, String visitId, String webSiteId) | public Map | failedBlacklistCheck(GenericValue userLogin, GenericValue productStore) | public Map | finalizeOrderEntry(String finalizeMode, String shippingContactMechId, String shippingMethod, String shippingInstructions, String maySplit, String giftMessage, String isGift, String methodType, String checkOutPaymentId, boolean isSingleUsePayment, boolean appendPayment, Map params) Performs all the finalization settings and combines all the results. | public Map | finalizeOrderEntryMethodType(String paymentMthodType) Indicates whether the payment should be made offline or
whether further settings will be given for the electronic
payment method.
Parameters: paymentMthodType - "offline" to indicate that is to be paidoffline, null or anything else for online. | public Map | finalizeOrderEntryOfflinePayments(Map params) Defines the payment options for an order.
Parameters: params - Contains the amount associated witheach paymentMethodTypeId . | public Map | finalizeOrderEntryOptions(String shippingMethod, String shippingInstructions, String maySplit, String giftMessage, String isGift) | public Map | finalizeOrderEntryPayment(String checkOutPaymentId, Double amount, boolean singleUse, boolean append) Sets the payment ID to use during the checkout process
Parameters: checkOutPaymentId - The type of payment to use, shouldbe "OFFLINE_PAYMENT" to indicate offlinem otherwise the payment IDwill be associated with the cart A Map conforming to the OFBiz Service conventions containingany error messages. | public Map | finalizeOrderEntryShip(String shippingContactMechId) | public Map | makeBillingAccountMap(List paymentPrefs) | public Map | processPayment(GenericValue productStore, GenericValue userLogin) | public Map | setCheckOutOptions(String shippingMethod, String shippingContactMechId, Map selectedPaymentMethods, List singleUsePayments, String billingAccountId, Double billingAccountAmt, String correspondingPoId, String shippingInstructions, String orderAdditionalEmails, String maySplit, String giftMessage, String isGift) | public Map | setCheckOutPayment(Map selectedPaymentMethods, List singleUsePayments, String billingAccountId, Double billingAccountAmt) | public Map | setCheckOutShippingAddress(String shippingContactMechId) | public Map | setCheckOutShippingOptions(String shippingMethod, String correspondingPoId, String shippingInstructions, String orderAdditionalEmails, String maySplit, String giftMessage, String isGift) |
availableAccountBalance | public double availableAccountBalance(String billingAccountId)(Code) | | |
checkGiftCard | public Map checkGiftCard(Map params, Map selectedPaymentMethods)(Code) | | |
finalizeOrderEntry | public Map finalizeOrderEntry(String finalizeMode, String shippingContactMechId, String shippingMethod, String shippingInstructions, String maySplit, String giftMessage, String isGift, String methodType, String checkOutPaymentId, boolean isSingleUsePayment, boolean appendPayment, Map params)(Code) | | Performs all the finalization settings and combines all the results.
This is a convenience method, primarily to match the original
code structure of the adapter class CheckOutEvents .
I would prefer to remove this altogether and move the method
CheckOutHelper.addErrors(List,Map,Map) addErrors to the utility
class
ServiceUtil ServiceUtil See Also: CheckOutHelper.finalizeOrderEntryMethodType(String) See Also: CheckOutHelper.finalizeOrderEntryOfflinePayments(Map) See Also: CheckOutHelper.finalizeOrderEntryOptions(StringStringStringStringString) See Also: CheckOutHelper.finalizeOrderEntryPayment(StringDoublebooleanboolean) See Also: CheckOutHelper.finalizeOrderEntryShip(String) |
finalizeOrderEntryMethodType | public Map finalizeOrderEntryMethodType(String paymentMthodType)(Code) | | Indicates whether the payment should be made offline or
whether further settings will be given for the electronic
payment method.
Parameters: paymentMthodType - "offline" to indicate that is to be paidoffline, null or anything else for online. A Map conforming to the OFBiz Service conventions containingany error messages |
finalizeOrderEntryOfflinePayments | public Map finalizeOrderEntryOfflinePayments(Map params)(Code) | | Defines the payment options for an order.
Parameters: params - Contains the amount associated witheach paymentMethodTypeId . A Map conforming to the OFBiz Service conventions containingany error messages. Includes the field "OFFLINE_PAYMENTS"containing a Boolean indicating whether it's an offlinepayment or not. |
finalizeOrderEntryOptions | public Map finalizeOrderEntryOptions(String shippingMethod, String shippingInstructions, String maySplit, String giftMessage, String isGift)(Code) | | Sets the options associated with the order
Parameters: shippingMethod - The shipping method indicating the carrier andshipment type to use Parameters: shippingInstructions - Any additional handling instructions Parameters: maySplit - "true" or anything else for false Parameters: giftMessage - A message to have included for the recipient Parameters: isGift - "true" or anything else for false A Map conforming to the OFBiz Service conventions containingany error messages |
finalizeOrderEntryPayment | public Map finalizeOrderEntryPayment(String checkOutPaymentId, Double amount, boolean singleUse, boolean append)(Code) | | Sets the payment ID to use during the checkout process
Parameters: checkOutPaymentId - The type of payment to use, shouldbe "OFFLINE_PAYMENT" to indicate offlinem otherwise the payment IDwill be associated with the cart A Map conforming to the OFBiz Service conventions containingany error messages. Includes the field "OFFLINE_PAYMENT"containing a Boolean indicating whether it's an offlinepayment or not. |
finalizeOrderEntryShip | public Map finalizeOrderEntryShip(String shippingContactMechId)(Code) | | Sets the shipping contact mechanism on the cart
Parameters: shippingContactMechId - The identifier of the contact A Map conforming to the OFBiz Service conventions containingany error messages |
makeBillingAccountMap | public Map makeBillingAccountMap(List paymentPrefs)(Code) | | |
setCheckOutOptions | public Map setCheckOutOptions(String shippingMethod, String shippingContactMechId, Map selectedPaymentMethods, List singleUsePayments, String billingAccountId, Double billingAccountAmt, String correspondingPoId, String shippingInstructions, String orderAdditionalEmails, String maySplit, String giftMessage, String isGift)(Code) | | |
setCheckOutPayment | public Map setCheckOutPayment(Map selectedPaymentMethods, List singleUsePayments, String billingAccountId, Double billingAccountAmt)(Code) | | |
setCheckOutShippingAddress | public Map setCheckOutShippingAddress(String shippingContactMechId)(Code) | | |
|
|