Class CampaignsVouchersCreateResponseBodyPublish

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CampaignsVouchersCreateResponseBodyPublish extends Object
Stores a summary of publication events: an event counter and endpoint to return details of each event. Publication is an assignment of a code to a customer, e.g. through a distribution.
  • Field Details

  • Constructor Details

    • CampaignsVouchersCreateResponseBodyPublish

      public CampaignsVouchersCreateResponseBodyPublish()
  • Method Details

    • _object

    • getObject

      @Nullable public String getObject()
      The type of the object represented is by default `list`. To get this list, you need to make a call to the endpoint returned in the `url` attribute.
      Returns:
      _object
    • setObject

      public void setObject(String _object)
    • count

    • getCount

      @Nullable public Integer getCount()
      Publication events counter.
      Returns:
      count
    • setCount

      public void setCount(Integer count)
    • url

    • getUrl

      @Nullable public String getUrl()
      The endpoint where this list of publications can be accessed using a **GET** method. `/v1/vouchers/{voucher_code}/publications`
      Returns:
      url
    • setUrl

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

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