com.global.api.entities.enums.StoredCredentialInitiator 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 StoredCredentialInitiator implements IMappedConstant {
CardHolder(new HashMap() {{
put(Target.Realex, "cardholder");
put(Target.Portico, "C");
put(Target.GP_API, "PAYER");
put(Target.Genius, "UNSCHEDULEDCIT");
}}),
Merchant(new HashMap() {{
put(Target.Realex, "merchant");
put(Target.Portico, "M");
put(Target.GP_API, "MERCHANT");
put(Target.Genius, "UNSCHEDULEDMIT");
}}),
Scheduled(new HashMap() {{
put(Target.Realex, "scheduled");
put(Target.Genius, "RECURRING");
}}),
Installment(new HashMap() {{
put(Target.Genius, "INSTALLMENT");
}});
HashMap value;
StoredCredentialInitiator(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;
}
}