Class BarcodeLookupResponse

java.lang.Object
org.openapitools.client.model.BarcodeLookupResponse

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-11-03T00:26:55.543571700Z[Etc/UTC]", comments="Generator version: 7.12.0") public class BarcodeLookupResponse extends Object
Result of performing a barcode lookup
  • Field Details

  • Constructor Details

    • BarcodeLookupResponse

      public BarcodeLookupResponse()
  • Method Details

    • successful

      public BarcodeLookupResponse successful(@Nullable Boolean successful)
    • getSuccessful

      @Nullable public Boolean getSuccessful()
      True if operation was successful, false otherwise
      Returns:
      successful
    • setSuccessful

      public void setSuccessful(@Nullable Boolean successful)
    • matches

      public BarcodeLookupResponse matches(@Nullable List<ProductMatch> matches)
    • addMatchesItem

      public BarcodeLookupResponse addMatchesItem(ProductMatch matchesItem)
    • getMatches

      @Nullable public List<ProductMatch> getMatches()
      Resulting product matches for the input barcode
      Returns:
      matches
    • setMatches

      public void setMatches(@Nullable List<ProductMatch> matches)
    • 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
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to BarcodeLookupResponse
    • fromJson

      public static BarcodeLookupResponse fromJson(String jsonString) throws IOException
      Create an instance of BarcodeLookupResponse given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of BarcodeLookupResponse
      Throws:
      IOException - if the JSON string is invalid with respect to BarcodeLookupResponse
    • toJson

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