Class LoyaltiesMembersCreateResponseBodyPublish

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class LoyaltiesMembersCreateResponseBodyPublish extends Object
This object stores a summary of publish events: an events counter and an endpoint which can be called to return details of each event. A publication is required for loyalty cards and referral codes. This object gets updated whenever a voucher has been published. Publication means assigning a code to a particular customer. Typically, a publication is made by distributing your codes to your customers, e.g. through Export to MailChimp or <!-- [publish voucher](OpenAPI.json/paths/~1publications/post) -->[publish voucher](ref:create-publication) API method. <!-- title: My Table Title --> | Required | Optional | | -------- | :------: | | `type`:`LOYALTY_CARD` | `type`:`DISCOUNT_VOUCHER` | | `is_referral_code`:`true` | `type`:`GIFT_VOUCHER` |
  • Field Details

  • Constructor Details

    • LoyaltiesMembersCreateResponseBodyPublish

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

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