Package org.openapitools.client.model
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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMatchesItem(ProductMatch matchesItem) booleanstatic BarcodeLookupResponseCreate an instance of BarcodeLookupResponse given an JSON stringResulting product matches for the input barcodeTrue if operation was successful, false otherwiseinthashCode()matches(List<ProductMatch> matches) voidsetMatches(List<ProductMatch> matches) voidsetSuccessful(Boolean successful) successful(Boolean successful) toJson()Convert an instance of BarcodeLookupResponse to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_SUCCESSFUL
- See Also:
-
SERIALIZED_NAME_MATCHES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
BarcodeLookupResponse
public BarcodeLookupResponse()
-
-
Method Details
-
successful
-
getSuccessful
True if operation was successful, false otherwise- Returns:
- successful
-
setSuccessful
-
matches
-
addMatchesItem
-
getMatches
Resulting product matches for the input barcode- Returns:
- matches
-
setMatches
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of BarcodeLookupResponse to an JSON string- Returns:
- JSON string
-