jp.gopay.sdk.builders.authentication.AbstractAuthenticationBuilders Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gopay-java-sdk Show documentation
Show all versions of gopay-java-sdk Show documentation
Official Gyro-n Payments Java SDK
package jp.gopay.sdk.builders.authentication;
import jp.gopay.sdk.builders.RetrofitRequestBuilder;
import jp.gopay.sdk.models.common.EmailAddress;
import jp.gopay.sdk.models.common.Void;
import jp.gopay.sdk.models.response.authentication.LoginTokenInfo;
import retrofit2.Retrofit;
public abstract class AbstractAuthenticationBuilders {
public static abstract class AbstractLoginRequestBuilder
extends RetrofitRequestBuilder {
protected EmailAddress email;
protected String password;
protected String getEmail() {
if (email == null) {
return null;
}
return email.serialize();
}
protected String getPassword() {
return password;
}
public AbstractLoginRequestBuilder(Retrofit retrofit, EmailAddress email, String password) {
super(retrofit);
this.email = email;
this.password = password;
}
}
public static abstract class AbstractLogoutRequestBuilder
extends RetrofitRequestBuilder {
public AbstractLogoutRequestBuilder(Retrofit retrofit) {
super(retrofit);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy