Class EarningRuleSource

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class EarningRuleSource extends Object
Contains the custom earning rule name and parent campaign.
  • Field Details

  • Constructor Details

    • EarningRuleSource

      public EarningRuleSource()
  • Method Details

    • banner

      public EarningRuleSource banner(String banner)
    • getBanner

      @Nullable public String getBanner()
      Name of the earning rule. This is displayed as a header for the earning rule in the Dashboard.
      Returns:
      banner
    • setBanner

      public void setBanner(String banner)
    • objectId

      public EarningRuleSource objectId(String objectId)
    • getObjectId

      @Nullable public String getObjectId()
      A unique campaign identifier assigned by the Voucherify API.
      Returns:
      objectId
    • setObjectId

      public void setObjectId(String objectId)
    • objectType

      public EarningRuleSource objectType(EarningRuleSource.ObjectTypeEnum objectType)
    • getObjectType

      @Nullable public EarningRuleSource.ObjectTypeEnum getObjectType()
      Defines the object associated with the earning rule. Defaults to `campaign`.
      Returns:
      objectType
    • setObjectType

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

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