Package io.voucherify.client.model
Class SimpleProductDiscountUnit
java.lang.Object
io.voucherify.client.model.SimpleProductDiscountUnit
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class SimpleProductDiscountUnit
extends Object
SimpleProductDiscountUnit
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SimpleProductDiscountUnitCreate an instance of SimpleProductDiscountUnit 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 SimpleProductDiscountUnit 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
-
SimpleProductDiscountUnit
public SimpleProductDiscountUnit()
-
-
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 SimpleProductDiscountUnit given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SimpleProductDiscountUnit
- Throws:
IOException- if the JSON string is invalid with respect to SimpleProductDiscountUnit
-
toJson
Convert an instance of SimpleProductDiscountUnit to an JSON string- Returns:
- JSON string
-