com.tinypass.client.id.model.TokenResponse Maven / Gradle / Ivy
package com.tinypass.client.id.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.tinypass.client.id.model.SocialLinkingResponse;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
public class TokenResponse {
private String accessToken = null;
private String tokenType = null;
private String refreshToken = null;
private String code = null;
private String error = null;
//public enum errorEnum { invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, };
private String errorDescription = null;
private Long expiresIn = null;
private String preauthToken = null;
private SocialLinkingResponse socialLinkingResponse = null;
private Boolean registration = null;
private String siteCookieDomain = null;
private Boolean emailConfirmationRequired = null;
private String loginTokenId = null;
private Boolean extendExpiredAccessEnabled = null;
private String directionUrl = null;
private String passwordlessToken = null;
private String pubId = null;
private Boolean authorizedBySso = null;
private String message = null;
private Boolean ssoConfirmation = null;
private Boolean twoFactorAuthRequired = null;
private Boolean phoneConfirmationRequired = null;
public String getAccessToken() {
return accessToken;
}
public void setAccessToken(String accessToken) {
this.accessToken = accessToken;
}
public String getTokenType() {
return tokenType;
}
public void setTokenType(String tokenType) {
this.tokenType = tokenType;
}
public String getRefreshToken() {
return refreshToken;
}
public void setRefreshToken(String refreshToken) {
this.refreshToken = refreshToken;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getError() {
return error;
}
public void setError(String error) {
this.error = error;
}
public String getErrorDescription() {
return errorDescription;
}
public void setErrorDescription(String errorDescription) {
this.errorDescription = errorDescription;
}
public Long getExpiresIn() {
return expiresIn;
}
public void setExpiresIn(Long expiresIn) {
this.expiresIn = expiresIn;
}
public String getPreauthToken() {
return preauthToken;
}
public void setPreauthToken(String preauthToken) {
this.preauthToken = preauthToken;
}
public SocialLinkingResponse getSocialLinkingResponse() {
return socialLinkingResponse;
}
public void setSocialLinkingResponse(SocialLinkingResponse socialLinkingResponse) {
this.socialLinkingResponse = socialLinkingResponse;
}
public Boolean getRegistration() {
return registration;
}
public void setRegistration(Boolean registration) {
this.registration = registration;
}
public String getSiteCookieDomain() {
return siteCookieDomain;
}
public void setSiteCookieDomain(String siteCookieDomain) {
this.siteCookieDomain = siteCookieDomain;
}
public Boolean getEmailConfirmationRequired() {
return emailConfirmationRequired;
}
public void setEmailConfirmationRequired(Boolean emailConfirmationRequired) {
this.emailConfirmationRequired = emailConfirmationRequired;
}
public String getLoginTokenId() {
return loginTokenId;
}
public void setLoginTokenId(String loginTokenId) {
this.loginTokenId = loginTokenId;
}
public Boolean getExtendExpiredAccessEnabled() {
return extendExpiredAccessEnabled;
}
public void setExtendExpiredAccessEnabled(Boolean extendExpiredAccessEnabled) {
this.extendExpiredAccessEnabled = extendExpiredAccessEnabled;
}
public String getDirectionUrl() {
return directionUrl;
}
public void setDirectionUrl(String directionUrl) {
this.directionUrl = directionUrl;
}
public String getPasswordlessToken() {
return passwordlessToken;
}
public void setPasswordlessToken(String passwordlessToken) {
this.passwordlessToken = passwordlessToken;
}
public String getPubId() {
return pubId;
}
public void setPubId(String pubId) {
this.pubId = pubId;
}
public Boolean getAuthorizedBySso() {
return authorizedBySso;
}
public void setAuthorizedBySso(Boolean authorizedBySso) {
this.authorizedBySso = authorizedBySso;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public Boolean getSsoConfirmation() {
return ssoConfirmation;
}
public void setSsoConfirmation(Boolean ssoConfirmation) {
this.ssoConfirmation = ssoConfirmation;
}
public Boolean getTwoFactorAuthRequired() {
return twoFactorAuthRequired;
}
public void setTwoFactorAuthRequired(Boolean twoFactorAuthRequired) {
this.twoFactorAuthRequired = twoFactorAuthRequired;
}
public Boolean getPhoneConfirmationRequired() {
return phoneConfirmationRequired;
}
public void setPhoneConfirmationRequired(Boolean phoneConfirmationRequired) {
this.phoneConfirmationRequired = phoneConfirmationRequired;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TokenResponse {\n");
sb.append(" accessToken: ").append(accessToken).append("\n");
sb.append(" tokenType: ").append(tokenType).append("\n");
sb.append(" refreshToken: ").append(refreshToken).append("\n");
sb.append(" code: ").append(code).append("\n");
sb.append(" error: ").append(error).append("\n");
sb.append(" errorDescription: ").append(errorDescription).append("\n");
sb.append(" expiresIn: ").append(expiresIn).append("\n");
sb.append(" preauthToken: ").append(preauthToken).append("\n");
sb.append(" socialLinkingResponse: ").append(socialLinkingResponse).append("\n");
sb.append(" registration: ").append(registration).append("\n");
sb.append(" siteCookieDomain: ").append(siteCookieDomain).append("\n");
sb.append(" emailConfirmationRequired: ").append(emailConfirmationRequired).append("\n");
sb.append(" loginTokenId: ").append(loginTokenId).append("\n");
sb.append(" extendExpiredAccessEnabled: ").append(extendExpiredAccessEnabled).append("\n");
sb.append(" directionUrl: ").append(directionUrl).append("\n");
sb.append(" passwordlessToken: ").append(passwordlessToken).append("\n");
sb.append(" pubId: ").append(pubId).append("\n");
sb.append(" authorizedBySso: ").append(authorizedBySso).append("\n");
sb.append(" message: ").append(message).append("\n");
sb.append(" ssoConfirmation: ").append(ssoConfirmation).append("\n");
sb.append(" twoFactorAuthRequired: ").append(twoFactorAuthRequired).append("\n");
sb.append(" phoneConfirmationRequired: ").append(phoneConfirmationRequired).append("\n");
sb.append("}\n");
return sb.toString();
}
}