Package io.voucherify.client.model
Class SimpleSkuDiscountUnit
java.lang.Object
io.voucherify.client.model.SimpleSkuDiscountUnit
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class SimpleSkuDiscountUnit
extends Object
SimpleSkuDiscountUnit
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SimpleSkuDiscountUnitCreate an instance of SimpleSkuDiscountUnit given an JSON stringgetId()Unique SKU ID, assigned by Voucherify.getName()Sku nameProduct variant's source ID.inthashCode()voidvoidvoidsetSourceId(String sourceId) toJson()Convert an instance of SimpleSkuDiscountUnit 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
-
SimpleSkuDiscountUnit
public SimpleSkuDiscountUnit()
-
-
Method Details
-
id
-
getId
Unique SKU ID, assigned by Voucherify.- Returns:
- id
-
setId
-
sourceId
-
getSourceId
Product variant's source ID.- Returns:
- sourceId
-
setSourceId
-
name
-
getName
Sku name- Returns:
- name
-
setName
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of SimpleSkuDiscountUnit given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SimpleSkuDiscountUnit
- Throws:
IOException- if the JSON string is invalid with respect to SimpleSkuDiscountUnit
-
toJson
Convert an instance of SimpleSkuDiscountUnit to an JSON string- Returns:
- JSON string
-