com.global.api.entities.enums.DepositStatus 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 com.global.api.entities.enums.IMappedConstant;
import com.global.api.entities.enums.Target;
import java.util.HashMap;
public enum DepositStatus implements IMappedConstant {
Funded(new HashMap() {{
put(Target.GP_API, "FUNDED");
}}),
SplitFunding(new HashMap() {{
put(Target.GP_API, "SPLIT FUNDING");
}}),
Delayed(new HashMap() {{
put(Target.GP_API, "DELAYED");
}}),
Reserved(new HashMap() {{
put(Target.GP_API, "RESERVED");
}}),
Irregular(new HashMap() {{
put(Target.GP_API, "IRREG");
}}),
Released(new HashMap() {{
put(Target.GP_API, "RELEASED");
}});
HashMap value;
DepositStatus(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;
}
}