Package io.voucherify.client.model
Class DiscountProduct
java.lang.Object
io.voucherify.client.model.DiscountProduct
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class DiscountProduct
extends Object
DiscountProduct
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic DiscountProductCreate an instance of DiscountProduct given an JSON stringgetId()Unique product ID, assigned by Voucherify.getName()Product name.Product's source ID.inthashCode()voidvoidvoidsetSourceId(String sourceId) toJson()Convert an instance of DiscountProduct to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_SOURCE_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
DiscountProduct
public DiscountProduct()
-
-
Method Details
-
id
-
getId
Unique product ID, assigned by Voucherify.- Returns:
- id
-
setId
-
sourceId
-
getSourceId
Product's source ID.- Returns:
- sourceId
-
setSourceId
-
name
-
getName
Product name.- Returns:
- name
-
setName
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of DiscountProduct given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DiscountProduct
- Throws:
IOException- if the JSON string is invalid with respect to DiscountProduct
-
toJson
Convert an instance of DiscountProduct to an JSON string- Returns:
- JSON string
-