Class LoyaltiesTransferPoints

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class LoyaltiesTransferPoints extends Object
LoyaltiesTransferPoints
  • Field Details

  • Constructor Details

    • LoyaltiesTransferPoints

      public LoyaltiesTransferPoints()
  • Method Details

    • code

      public LoyaltiesTransferPoints code(String code)
    • getCode

      @Nullable public String getCode()
      Unique loyalty card code from which the user wants to transfer loyalty points (source).
      Returns:
      code
    • setCode

      public void setCode(String code)
    • points

      public LoyaltiesTransferPoints points(Integer points)
    • getPoints

      @Nullable public Integer getPoints()
      The number of loyalty points that the user wants to transfer to another loyalty card. The number of points cannot be higher than the current balance on the loyalty card (source).
      Returns:
      points
    • setPoints

      public void setPoints(Integer points)
    • reason

      public LoyaltiesTransferPoints reason(String reason)
    • getReason

      @Nullable public String getReason()
      Reason for the transfer.
      Returns:
      reason
    • setReason

      public void setReason(String reason)
    • sourceId

      public LoyaltiesTransferPoints sourceId(String sourceId)
    • getSourceId

      @Nullable public String getSourceId()
      The merchant's transaction ID if it is different from the Voucherify transaction ID. It is really useful in case of an integration between multiple systems. It can be a transaction ID from a CRM system, database or 3rd-party service.
      Returns:
      sourceId
    • setSourceId

      public void setSourceId(String sourceId)
    • 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 LoyaltiesTransferPoints fromJson(String jsonString) throws IOException
      Create an instance of LoyaltiesTransferPoints given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of LoyaltiesTransferPoints
      Throws:
      IOException - if the JSON string is invalid with respect to LoyaltiesTransferPoints
    • toJson

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