Package io.voucherify.client.model
Class SimpleCustomer
java.lang.Object
io.voucherify.client.model.SimpleCustomer
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class SimpleCustomer
extends Object
Simplified customer data.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by JSON. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_object(SimpleCustomer.ObjectEnum _object) booleanstatic SimpleCustomerCreate an instance of SimpleCustomer given an JSON stringgetEmail()Customer's email address.getId()Unique identifier of an existing customer.A set of custom key/value pairs that are attached to the customer.getName()Customer's first and last name.The type of the object represented by JSON.A unique identifier of the customer.inthashCode()voidvoidvoidsetMetadata(Object metadata) voidvoidsetObject(SimpleCustomer.ObjectEnum _object) voidsetSourceId(String sourceId) toJson()Convert an instance of SimpleCustomer to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_EMAIL
- See Also:
-
SERIALIZED_NAME_SOURCE_ID
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SimpleCustomer
public SimpleCustomer()
-
-
Method Details
-
id
-
getId
Unique identifier of an existing customer. It is assigned by Voucherify.- Returns:
- id
-
setId
-
name
-
getName
Customer's first and last name.- Returns:
- name
-
setName
-
email
-
getEmail
Customer's email address.- Returns:
-
setEmail
-
sourceId
-
getSourceId
A unique identifier of the customer. It can be a customer ID or email from a CRM system, database, or a third-party service.- Returns:
- sourceId
-
setSourceId
-
metadata
-
getMetadata
A set of custom key/value pairs that are attached to the customer. It stores all custom attributes assigned to the customer.- Returns:
- metadata
-
setMetadata
-
_object
-
getObject
The type of the object represented by JSON.- Returns:
- _object
-
setObject
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of SimpleCustomer given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SimpleCustomer
- Throws:
IOException- if the JSON string is invalid with respect to SimpleCustomer
-
toJson
Convert an instance of SimpleCustomer to an JSON string- Returns:
- JSON string
-