Interface DiscountMapper
public interface DiscountMapper
Mapper interface for converting
Discount objects from the Voucherify client
to DiscountModel used in the promotions core model.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiontoModel(io.voucherify.client.model.Discount discount) Converts aDiscountobject to aDiscountModel.
-
Field Details
-
INSTANCE
-
-
Method Details
-
toModel
Converts aDiscountobject to aDiscountModel.- Parameters:
discount- theDiscountobject to convert- Returns:
- the corresponding
DiscountModelobject
-