br.com.moip.request.CreditCardRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for Moip v2 APIs
package br.com.moip.request;
public class CreditCardRequest {
private String id;
private String hash;
private String number;
private String expirationMonth;
private String expirationYear;
private Integer cvc;
private Boolean store;
private HolderRequest holder;
private String first6;
private String last4;
public String getId() {
return id;
}
public CreditCardRequest id(final String id) {
this.id = id;
return this;
}
public CreditCardRequest first6(final String first6){
this.first6 = first6;
return this;
}
public String getFirst6() {
return first6;
}
public CreditCardRequest last4(final String last4){
this.last4 = last4;
return this;
}
public String getLast4() {
return last4;
}
public String getHash() {
return hash;
}
public CreditCardRequest hash(final String hash) {
this.hash = hash;
return this;
}
public String getNumber() {
return number;
}
public CreditCardRequest number(final String number) {
this.number = number;
return this;
}
public String getExpirationMonth() {
return expirationMonth;
}
public CreditCardRequest expirationMonth(String expirationMonth) {
this.expirationMonth = expirationMonth;
return this;
}
public String getExpirationYear() {
return expirationYear;
}
public CreditCardRequest expirationYear(String expirationYear) {
this.expirationYear = expirationYear;
return this;
}
public Integer getCvc() {
return cvc;
}
public CreditCardRequest cvc(Integer cvc) {
this.cvc = cvc;
return this;
}
public Boolean getStore() {
return store;
}
public CreditCardRequest store(Boolean store) {
this.store = store;
return this;
}
public HolderRequest getHolder() {
return holder;
}
public CreditCardRequest holder(final HolderRequest holder) {
this.holder = holder;
return this;
}
@Override
public String toString() {
return "CreditCardRequest{" +
"hash='" + hash + '\'' +
", holder=" + holder +
'}';
}
}