Class RedeemableLoyaltyCard

java.lang.Object
io.voucherify.client.model.RedeemableLoyaltyCard

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class RedeemableLoyaltyCard extends Object
Redeemable loyalty card object response
  • Field Details

  • Constructor Details

    • RedeemableLoyaltyCard

      public RedeemableLoyaltyCard()
  • Method Details

    • points

      public RedeemableLoyaltyCard points(Integer points)
    • getPoints

      @Nullable public Integer getPoints()
      Total points incurred over the lifespan of the loyalty card.
      Returns:
      points
    • setPoints

      public void setPoints(Integer points)
    • balance

      public RedeemableLoyaltyCard balance(Integer balance)
    • getBalance

      @Nullable public Integer getBalance()
      Points available for reward redemption.
      Returns:
      balance
    • setBalance

      public void setBalance(Integer balance)
    • exchangeRatio

      public RedeemableLoyaltyCard exchangeRatio(BigDecimal exchangeRatio)
    • getExchangeRatio

      @Nullable public BigDecimal getExchangeRatio()
      The cash equivalent of the points defined in the points_ratio property.
      Returns:
      exchangeRatio
    • setExchangeRatio

      public void setExchangeRatio(BigDecimal exchangeRatio)
    • pointsRatio

      public RedeemableLoyaltyCard pointsRatio(Integer pointsRatio)
    • getPointsRatio

      @Nullable public Integer getPointsRatio()
      The number of loyalty points that will map to the predefined cash amount defined by the exchange_ratio property.
      Returns:
      pointsRatio
    • setPointsRatio

      public void setPointsRatio(Integer pointsRatio)
    • transfers

      public RedeemableLoyaltyCard transfers(List<LoyaltiesTransferPoints> transfers)
    • addTransfersItem

      public RedeemableLoyaltyCard addTransfersItem(LoyaltiesTransferPoints transfersItem)
    • getTransfers

      @Nullable public List<LoyaltiesTransferPoints> getTransfers()
      Get transfers
      Returns:
      transfers
    • setTransfers

      public void setTransfers(List<LoyaltiesTransferPoints> transfers)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromJson

      public static RedeemableLoyaltyCard fromJson(String jsonString) throws IOException
      Create an instance of RedeemableLoyaltyCard given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of RedeemableLoyaltyCard
      Throws:
      IOException - if the JSON string is invalid with respect to RedeemableLoyaltyCard
    • toJson

      public String toJson()
      Convert an instance of RedeemableLoyaltyCard to an JSON string
      Returns:
      JSON string