Class VoucherAssetsBarcode

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class VoucherAssetsBarcode extends Object
Stores barcode representation of encrypted code.
  • Field Details

  • Constructor Details

    • VoucherAssetsBarcode

      public VoucherAssetsBarcode()
  • Method Details

    • id

      public VoucherAssetsBarcode id(String id)
    • getId

      @Nullable public String getId()
      Encrypted voucher code ID.
      Returns:
      id
    • setId

      public void setId(String id)
    • url

      public VoucherAssetsBarcode url(String url)
    • getUrl

      @Nullable public String getUrl()
      URL to barcode *Optional:* Attach query parameters to base URL to customize the image of the encrypted voucher code. - `size`: integer value from `1` to `100` - `format`: string, either `png` (default) or `svg`
      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 VoucherAssetsBarcode fromJson(String jsonString) throws IOException
      Create an instance of VoucherAssetsBarcode given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of VoucherAssetsBarcode
      Throws:
      IOException - if the JSON string is invalid with respect to VoucherAssetsBarcode
    • toJson

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