com.global.api.entities.enums.ReasonCode 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 ReasonCode implements IMappedConstant {
Fraud(new HashMap() {{
put(Target.GP_API, "FRAUD");
}}),
FalsePositive(new HashMap() {{
put(Target.GP_API, "FALSE_POSITIVE");
}}),
OutOfStock(new HashMap() {{
put(Target.GP_API, "OUT_OF_STOCK");
}}),
InStock(new HashMap() {{
put(Target.GP_API, "IN_STOCK");
}}),
Other(new HashMap() {{
put(Target.GP_API, "OTHER");
}}),
NotGiven(new HashMap() {{
put(Target.GP_API, "NOT_GIVEN");
}});
HashMap value;
ReasonCode(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;
}
}