Package io.voucherify.client.model
Class EarningRuleSegment
java.lang.Object
io.voucherify.client.model.EarningRuleSegment
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class EarningRuleSegment
extends Object
Contains the ID of a customer segment. Required for the `customer.segment.entered` option in the event.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic EarningRuleSegmentCreate an instance of EarningRuleSegment given an JSON stringgetId()Contains a unique identifier of a customer segment.inthashCode()voidtoJson()Convert an instance of EarningRuleSegment to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
EarningRuleSegment
public EarningRuleSegment()
-
-
Method Details
-
id
-
getId
Contains a unique identifier of a customer segment. Assigned by the Voucherify API.- Returns:
- id
-
setId
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of EarningRuleSegment given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of EarningRuleSegment
- Throws:
IOException- if the JSON string is invalid with respect to EarningRuleSegment
-
toJson
Convert an instance of EarningRuleSegment to an JSON string- Returns:
- JSON string
-