Class CustomerLoyaltyCampaignsEntry

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CustomerLoyaltyCampaignsEntry extends Object
Contains details about the point balances left on loyalty cards and the number of referred customers in each campaign.
  • Field Details

  • Constructor Details

    • CustomerLoyaltyCampaignsEntry

      public CustomerLoyaltyCampaignsEntry()
  • Method Details

    • points

      public CustomerLoyaltyCampaignsEntry points(Integer points)
    • getPoints

      @Nullable public Integer getPoints()
      Remaining point balance in campaign.
      Returns:
      points
    • setPoints

      public void setPoints(Integer points)
    • loyaltyTier

      public CustomerLoyaltyCampaignsEntry loyaltyTier(String loyaltyTier)
    • getLoyaltyTier

      @Nullable public String getLoyaltyTier()
      Customer's loyalty tier within the campaign.
      Returns:
      loyaltyTier
    • setLoyaltyTier

      public void setLoyaltyTier(String loyaltyTier)
    • referredCustomers

      public CustomerLoyaltyCampaignsEntry referredCustomers(Integer referredCustomers)
    • getReferredCustomers

      @Nullable public Integer getReferredCustomers()
      Number of customers referred by the customer in campaign.
      Returns:
      referredCustomers
    • setReferredCustomers

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

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