com.global.api.entities.enums.StoredCredentialReason Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of globalpayments-sdk Show documentation
Show all versions of globalpayments-sdk Show documentation
API for processing payments through Global Payments
package com.global.api.entities.enums;
import java.util.HashMap;
public enum StoredCredentialReason implements IMappedConstant {
Incremental(new HashMap() {{
put(Target.GP_API, "INCREMENTAL");
}}),
Resubmission(new HashMap() {{
put(Target.GP_API, "RESUBMISSION");
}}),
Reauthorization(new HashMap() {{
put(Target.GP_API, "REAUTHORIZATION");
}}),
Delayed(new HashMap() {{
put(Target.GP_API, "DELAYED");
}}),
NoShow(new HashMap() {{
put(Target.GP_API, "NO_SHOW");
}});
HashMap value;
StoredCredentialReason(HashMap value){
this.value = value;
}
public byte[] getBytes(Target target) {
if(value.containsKey(target)) {
return this.value.get(target).getBytes();
}
return null;
}
public String getValue(Target target) {
if(value.containsKey(target)) {
return this.value.get(target);
}
return null;
}
}