Class VoucherifyUtils

java.lang.Object
io.voucherify.client.VoucherifyUtils

public class VoucherifyUtils
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    VoucherifyUtils()  
  • Method Summary

    Modifier and Type Method Description
    static java.math.BigDecimal calculateDiscount​(java.math.BigDecimal basePrice, Voucher voucher, java.math.BigDecimal unitPrice)  
    static java.math.BigDecimal calculatePrice​(java.math.BigDecimal basePrice, Voucher voucher, java.math.BigDecimal unitPrice)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • calculatePrice

      public static java.math.BigDecimal calculatePrice​(java.math.BigDecimal basePrice, Voucher voucher, java.math.BigDecimal unitPrice)
    • calculateDiscount

      public static java.math.BigDecimal calculateDiscount​(java.math.BigDecimal basePrice, Voucher voucher, java.math.BigDecimal unitPrice)