Package io.voucherify.client.model
Class LoyaltiesEarningRulesCreateResponseBodySegment
java.lang.Object
io.voucherify.client.model.LoyaltiesEarningRulesCreateResponseBodySegment
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesEarningRulesCreateResponseBodySegment
extends Object
Contains the ID of a customer segment. Required for the `customer.segment.entered` option in the event.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of LoyaltiesEarningRulesCreateResponseBodySegment given an JSON stringgetId()Contains a unique identifier of a customer segment.inthashCode()voidtoJson()Convert an instance of LoyaltiesEarningRulesCreateResponseBodySegment to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltiesEarningRulesCreateResponseBodySegment
public LoyaltiesEarningRulesCreateResponseBodySegment()
-
-
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
public static LoyaltiesEarningRulesCreateResponseBodySegment fromJson(String jsonString) throws IOException Create an instance of LoyaltiesEarningRulesCreateResponseBodySegment given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesEarningRulesCreateResponseBodySegment
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesEarningRulesCreateResponseBodySegment
-
toJson
Convert an instance of LoyaltiesEarningRulesCreateResponseBodySegment to an JSON string- Returns:
- JSON string
-