com.safecharge.model.UserDetails Maven / Gradle / Ivy
Show all versions of safecharge-sdk-java Show documentation
package com.safecharge.model;
import com.safecharge.util.Constants;
import com.safecharge.util.ValidChecksum;
/**
* Copyright (C) 2007-2017 SafeCharge International Group Limited.
*
* Holder for User's personal details and a "generic" address. Note that a User can have different billing/shipping
* address per order stored in {@link UserAddress} object.
*
* @author Nikola Dichev
* @since 3/21/2017
*/
@ValidChecksum(orderMappingName = Constants.ChecksumOrderMapping.USER_DETAILS)
public class UserDetails extends CommonUserDetailsInfo {
private String dateOfBirth;
public String getDateOfBirth() {
return dateOfBirth;
}
public void setDateOfBirth(String dateOfBirth) {
this.dateOfBirth = dateOfBirth;
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("UserDetails{");
sb.append(super.toString());
sb.append(", dateOfBirth='")
.append(dateOfBirth)
.append('\'');
sb.append('}');
return sb.toString();
}
}