Package io.voucherify.client.model
Class CustomersGetResponseBody
java.lang.Object
io.voucherify.client.model.CustomersGetResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class CustomersGetResponseBody
extends Object
Response body schema for **GET** `v1/customers/{customerId}`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by JSON. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddress(CustomersGetResponseBodyAddress address) assets(CustomersGetResponseBodyAssets assets) createdAt(OffsetDateTime createdAt) description(String description) booleanstatic CustomersGetResponseBodyCreate an instance of CustomersGetResponseBody given an JSON stringGet addressGet assetsCustomer's birthdate; format YYYY-MM-DD.`Deprecated`.Timestamp representing the date and time when the customer was created.An arbitrary string that you can attach to a customer object.getEmail()Customer's email address.getId()The ID of an existing customer that will be linked to redemption in this request.Get loyaltyA 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 JSON.getPhone()Customer's phone number.Get referralsA unique identifier of the customer who validates a voucher.Get summaryObject used to store system metadata information.Timestamp representing the date and time when the customer was updated.inthashCode()loyalty(CustomerLoyalty loyalty) referrals(CustomerReferrals referrals) voidvoidvoidsetBirthdate(LocalDate birthdate) voidsetBirthday(LocalDate birthday) voidsetCreatedAt(OffsetDateTime createdAt) voidsetDescription(String description) voidvoidvoidsetLoyalty(CustomerLoyalty loyalty) voidsetMetadata(Object metadata) voidvoidvoidvoidsetReferrals(CustomerReferrals referrals) voidsetSourceId(String sourceId) voidsetSummary(CustomerSummary summary) voidsetSystemMetadata(Object systemMetadata) voidsetUpdatedAt(OffsetDateTime updatedAt) summary(CustomerSummary summary) systemMetadata(Object systemMetadata) toJson()Convert an instance of CustomersGetResponseBody to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_SOURCE_ID
- See Also:
-
SERIALIZED_NAME_SUMMARY
- See Also:
-
SERIALIZED_NAME_LOYALTY
- See Also:
-
SERIALIZED_NAME_REFERRALS
- See Also:
-
SERIALIZED_NAME_SYSTEM_METADATA
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_ASSETS
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_EMAIL
- See Also:
-
SERIALIZED_NAME_PHONE
- See Also:
-
SERIALIZED_NAME_BIRTHDAY
- See Also:
-
SERIALIZED_NAME_BIRTHDATE
- See Also:
-
SERIALIZED_NAME_ADDRESS
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CustomersGetResponseBody
public CustomersGetResponseBody()
-
-
Method Details
-
id
-
getId
The ID of an existing customer that will be linked to redemption in this request.- Returns:
- id
-
setId
-
sourceId
-
getSourceId
A unique identifier of the customer who validates a voucher. It can be a customer ID or email from a CRM system, database, or a third-party service. If you also pass a customer ID (unique ID assigned by Voucherify), the source ID will be ignored.- Returns:
- sourceId
-
setSourceId
-
summary
-
getSummary
Get summary- Returns:
- summary
-
setSummary
-
loyalty
-
getLoyalty
Get loyalty- Returns:
- loyalty
-
setLoyalty
-
referrals
-
getReferrals
Get referrals- Returns:
- referrals
-
setReferrals
-
systemMetadata
-
getSystemMetadata
Object used to store system metadata information.- Returns:
- systemMetadata
-
setSystemMetadata
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the customer was created. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
Timestamp representing the date and time when the customer was updated. The value is shown in the ISO 8601 format.- Returns:
- updatedAt
-
setUpdatedAt
-
assets
-
getAssets
Get assets- Returns:
- assets
-
setAssets
-
_object
-
getObject
The type of the object represented by JSON.- Returns:
- _object
-
setObject
-
name
-
getName
Customer's first and last name.- Returns:
- name
-
setName
-
description
-
getDescription
An arbitrary string that you can attach to a customer object.- Returns:
- description
-
setDescription
-
email
-
getEmail
Customer's email address.- Returns:
-
setEmail
-
phone
-
getPhone
Customer's phone number. This parameter is mandatory when you try to send out codes to customers via an SMS channel.- Returns:
- phone
-
setPhone
-
birthday
-
getBirthday
`Deprecated`. ~~Customer's birthdate; format YYYY-MM-DD~~.- Returns:
- birthday
-
setBirthday
-
birthdate
-
getBirthdate
Customer's birthdate; format YYYY-MM-DD.- Returns:
- birthdate
-
setBirthdate
-
address
-
getAddress
Get address- Returns:
- address
-
setAddress
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of CustomersGetResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CustomersGetResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to CustomersGetResponseBody
-
toJson
Convert an instance of CustomersGetResponseBody to an JSON string- Returns:
- JSON string
-