package com.lookfirst.wepay.api;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * https://stage.wepay.com/developer/reference/user
 *
 * @author Jon Scott Stevens
 */
@Data
@ToString
@EqualsAndHashCode(callSuper=false)
public class WePayUserResponse extends WePayResponse {

	/** The unique ID of the user. */
	private String userId;
	/** The first name of the user */
	private String firstName;
	/** The last name of the user */
	private String lastName;
	/** The email of the user */
	private String email;
	/** Either "registered" if the user has registered, or "pending" if the user still needs to confirm their registration */
	private String state;
}
@@ -684,10 +684,224 @@
 g state;
+%0A%0A%09/** Either %22registered%22 if the user has registered, or %22pending%22 if the user still needs to confirm their registration */%0A%09public boolean isRegistered() %7B%0A%09%09return state != null && state.equals(%22registered%22);%0A%09%7D
 %0A%7D

add isRegistered method to WePayUserResponse