Class RewardTypeCampaign

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class RewardTypeCampaign extends Object
Objects stores information about the campaign related to the reward.
  • Field Details

  • Constructor Details

    • RewardTypeCampaign

      public RewardTypeCampaign()
  • Method Details

    • id

      public RewardTypeCampaign id(String id)
    • getId

      @Nullable public String getId()
      Unique campaign ID, assigned by Voucherify.
      Returns:
      id
    • setId

      public void setId(String id)
    • balance

      public RewardTypeCampaign balance(Integer balance)
    • getBalance

      @Nullable public Integer getBalance()
      The number of points to be added to a loyalty card or the amount to be added to the current balance on the gift card. For gift cards, the value is multiplied by 100 to precisely represent 2 decimal places. For example, $100 amount is written as 10000.
      Returns:
      balance
    • setBalance

      public void setBalance(Integer balance)
    • type

    • getType

      @Nullable public RewardTypeCampaign.TypeEnum getType()
      Campaign type.
      Returns:
      type
    • setType

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

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