Interface TmaVoucherFacade
- All Superinterfaces:
de.hybris.platform.commercefacades.voucher.VoucherFacade
- All Known Implementing Classes:
DefaultTmaVoucherFacade
public interface TmaVoucherFacade
extends de.hybris.platform.commercefacades.voucher.VoucherFacade
Voucher facade handling voucher related operations in TMU.
- Since:
- 2302
-
Method Summary
Modifier and TypeMethodDescriptioncreateCoupon(TmaVoucherData voucherData) Creates a newSingleCodeCouponModelwith details given in voucherData.createVoucher(TmaVoucherData voucherData, Date startDate, Date endDate) Deprecated.since 2302 - use createCoupon method insteadgetAllCoupons(TmaCouponListContextData tmaCouponListContextData) Retrieves list ofTmaVoucherData.Retrieves the specific voucher payment method for the provided userId.Methods inherited from interface de.hybris.platform.commercefacades.voucher.VoucherFacade
applyVoucher, checkVoucherCode, getVoucher, getVouchersForCart, releaseVoucher
-
Method Details
-
createVoucher
@Deprecated(since="2302", forRemoval=false) TmaVoucherData createVoucher(TmaVoucherData voucherData, Date startDate, Date endDate) Deprecated.since 2302 - use createCoupon method insteadCreates a newVoucherModelwith given details.- Parameters:
voucherData- data used for creation of VoucherstartDate- Start Date for Voucher to be eligibleendDate- End Date for Voucher to be eligible- Returns:
- a newly created
TmaVoucherData
-
createCoupon
Creates a newSingleCodeCouponModelwith details given in voucherData.- Parameters:
voucherData- data used for creation of SingleCodeCoupon- Returns:
- a newly created
TmaVoucherData
-
getAllCoupons
Retrieves list ofTmaVoucherData.- Parameters:
tmaCouponListContextData- coupon list context object stores all attributes for pagination- Returns:
- a list of
TmaVoucherData
-
getVoucherPaymentInfo
Retrieves the specific voucher payment method for the provided userId.- Parameters:
id- Unique identifier of the payment method- Returns:
- A specific
TmaVoucherDatacontaining the voucher payment method for the provided user
-