Package io.voucherify.client.model
Class SimpleCustomerRequiredObjectType
java.lang.Object
io.voucherify.client.model.SimpleCustomerRequiredObjectType
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class SimpleCustomerRequiredObjectType
extends Object
This is an object representing a customer with limited properties used in Event Tracking endpoints.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of SimpleCustomerRequiredObjectType given an JSON stringgetEmail()Customer's email address.getId()The unique ID of a customer that is assigned by Voucherify.A set of custom key/value pairs that you can attach to a customer.getName()Customer's first and last name.The type of the object represented by the JSON.The merchant's customer ID if it is different from the Voucherify customer ID.inthashCode()voidvoidvoidsetMetadata(Object metadata) voidvoidvoidsetSourceId(String sourceId) toJson()Convert an instance of SimpleCustomerRequiredObjectType to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_SOURCE_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_EMAIL
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SimpleCustomerRequiredObjectType
public SimpleCustomerRequiredObjectType()
-
-
Method Details
-
id
-
getId
The unique ID of a customer that is assigned by Voucherify.- Returns:
- id
-
setId
-
sourceId
-
getSourceId
The merchant's customer ID if it is different from the Voucherify customer ID. It is really useful in case of an integration between multiple systems. It can be a customer ID from a CRM system, database or 3rd-party service.- Returns:
- sourceId
-
setSourceId
-
name
-
getName
Customer's first and last name.- Returns:
- name
-
setName
-
email
-
getEmail
Customer's email address.- Returns:
-
setEmail
-
metadata
-
getMetadata
A set of custom key/value pairs that you can attach to a customer. The metadata object stores all custom attributes assigned to the customer. It can be useful for storing additional information about the customer in a structured format. This metadata can be used for validating whether the customer qualifies for a discount or it can be used in building customer segments.- Returns:
- metadata
-
setMetadata
-
_object
-
getObject
The type of the object represented by the JSON. This object stores information about the customer.- Returns:
- _object
-
setObject
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of SimpleCustomerRequiredObjectType given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SimpleCustomerRequiredObjectType
- Throws:
IOException- if the JSON string is invalid with respect to SimpleCustomerRequiredObjectType
-
toJson
Convert an instance of SimpleCustomerRequiredObjectType to an JSON string- Returns:
- JSON string
-