public interface VoucherService
void afterOrderCreation(OrderModel order, CartModel cart)
OrderManager.createOrder(de.hybris.platform.jalo.order.AbstractOrder).order - the newly created ordercart - the cart which this order has been created fromCollection<VoucherModel> getAllVouchers()
VouchersCollection<String> getAppliedVoucherCodes(CartModel cart)
cart - cart for which the vouchers are appliedCollection<String> getAppliedVoucherCodes(OrderModel order)
Collection<DiscountModel> getAppliedVouchers(AbstractOrderModel order)
order - the given orderVouchers for this orderVoucherModel getVoucher(String voucherCode)
voucherCode - the codeVoucher for the given code. This includes PromotionVoucher and
SerialVoucher.Collection<PromotionVoucherModel> getPromotionVouchers(String voucherCode)
voucherCode - the codePromotionVouchersCollection<SerialVoucherModel> getSerialVouchers(String voucherCode)
voucherCode - the codeSerialVouchersboolean redeemVoucher(String voucherCode, CartModel cart) throws JaloPriceFactoryException
voucherCode - code of the Vouchercart - the cartJaloPriceFactoryExceptionVoucherInvalidationModel redeemVoucher(String voucherCode, OrderModel order)
boolean createVoucherInvalidation(String voucherCode, OrderModel order)
VoucherInvalidation after the voucher is redeemed for the ordervoucherCode - voucher code to be redeemedorder - order for which the voucher will be redeemedvoid releaseVoucher(String voucherCode, CartModel cart) throws JaloPriceFactoryException
voucherCode - voucher code to be releasedcart - cart for which the voucher will be releasedJaloPriceFactoryExceptionvoid releaseVoucher(String voucherCode, OrderModel order) throws ConsistencyCheckException
ConsistencyCheckExceptionVoucherInvalidationModel reserveVoucher(String voucherCode, OrderModel order)
void save(VoucherModel voucher)
void delete(VoucherModel voucher)
Copyright © 2017 SAP SE. All Rights Reserved.