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
    Modifier and Type
    Field
    Description
    static final DiscountMapper
     
  • Method Summary

    Modifier and Type
    Method
    Description
    toModel(io.voucherify.client.model.Discount discount)
    Converts a Discount object to a DiscountModel.
  • Field Details

  • Method Details

    • toModel

      DiscountModel toModel(io.voucherify.client.model.Discount discount)
      Converts a Discount object to a DiscountModel.
      Parameters:
      discount - the Discount object to convert
      Returns:
      the corresponding DiscountModel object