Class PublicationsCreateRequestBody

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class PublicationsCreateRequestBody extends Object
PublicationsCreateRequestBody
  • Field Details

  • Constructor Details

    • PublicationsCreateRequestBody

      public PublicationsCreateRequestBody()
  • Method Details

    • voucher

      public PublicationsCreateRequestBody voucher(String voucher)
    • getVoucher

      @Nullable public String getVoucher()
      Code of the voucher being published.
      Returns:
      voucher
    • setVoucher

      public void setVoucher(String voucher)
    • sourceId

      public PublicationsCreateRequestBody sourceId(String sourceId)
    • getSourceId

      @Nullable public String getSourceId()
      The merchant's publication ID if it is different from the Voucherify publication ID. It's an optional tracking identifier of a publication. It is really useful in case of an integration between multiple systems. It can be a publication ID from a CRM system, database or 3rd-party service. If `source_id` is provided only 1 voucher can be published per request.
      Returns:
      sourceId
    • setSourceId

      public void setSourceId(String sourceId)
    • customer

      public PublicationsCreateRequestBody customer(Customer customer)
    • getCustomer

      @Nullable public Customer getCustomer()
      Get customer
      Returns:
      customer
    • setCustomer

      public void setCustomer(Customer customer)
    • metadata

      public PublicationsCreateRequestBody metadata(Object metadata)
    • getMetadata

      @Nullable public Object getMetadata()
      The metadata object stores all custom attributes assigned to the publication. A set of key/value pairs that you can attach to a publication object. It can be useful for storing additional information about the publication in a structured format.
      Returns:
      metadata
    • setMetadata

      public void setMetadata(Object metadata)
    • channel

      public PublicationsCreateRequestBody channel(String channel)
    • getChannel

      @Nullable public String getChannel()
      Specify the distribution channel.
      Returns:
      channel
    • setChannel

      public void setChannel(String channel)
    • campaign

    • getCampaign

      @Nullable public CreatePublicationCampaign getCampaign()
      Get campaign
      Returns:
      campaign
    • setCampaign

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

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