CustomerAccount

public final class CustomerAccount

Parameters

accountType

Identifies if the customer account is known to the client. Possible values are: -GUEST - Applicable if the partner maintains record to distinguish whether the transaction was booked via a guest account. -STANDARD - Default account type.

name
emailAddress

Email address for the account owner.

userId

Unique account identifier provided by the partner's Identity Provider/System assigned to the account owner by the partner. user_id is specific to the partner namespace. Used to track repeat purchases by the same user.

telephones
address
registeredTime

The local date and time that the customer first registered on the client site, in ISO-8601 date and time format yyyy-MM-ddTHH:mm:ss.SSSZ.

Constructors

Link copied to clipboard
public CustomerAccount CustomerAccount(CustomerAccount.AccountType accountType, Name name, String emailAddress, String userId, List<Telephone> telephones, CustomerAccountAddress address, OffsetDateTime registeredTime)

Types

Link copied to clipboard

Identifies if the customer account is known to the client. Possible values are: -GUEST - Applicable if the partner maintains record to distinguish whether the transaction was booked via a guest account. -STANDARD - Default account type. Values: GUEST,STANDARD

Link copied to clipboard
public final class Builder

Properties

Link copied to clipboard
@NotNull()
private final CustomerAccount.AccountType accountType
Link copied to clipboard
@Valid()
private final CustomerAccountAddress address
Link copied to clipboard
@NotNull()
@Valid()
private final String emailAddress
Link copied to clipboard
@NotNull()
@Valid()
private final Name name
Link copied to clipboard
Link copied to clipboard
@Valid()
private final List<Telephone> telephones
Link copied to clipboard
@Valid()
private final String userId

Functions

Link copied to clipboard
public final static CustomerAccount.Builder builder()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final String getEmailAddress()
Link copied to clipboard
public final Name getName()
Link copied to clipboard
Link copied to clipboard
public final List<Telephone> getTelephones()
Link copied to clipboard
public final String getUserId()
Link copied to clipboard