
com.securionpay.enums.CrossSaleOfferTemplate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of securionpay-java Show documentation
Show all versions of securionpay-java Show documentation
Java client library for SecurionPay API
The newest version!
package com.securionpay.enums;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public enum CrossSaleOfferTemplate {
IMAGE_AND_TEXT("image_and_text"),
TEXT_ONLY("text_only"),
/**
* Used when received value can't be mapped to this enumeration.
*/
UNRECOGNIZED("unrecognized");
private final String value;
CrossSaleOfferTemplate(String value) {
this.value = value;
}
@JsonCreator
public static CrossSaleOfferTemplate fromValue(String value) {
if (value == null) {
return null;
}
for (CrossSaleOfferTemplate template : values()) {
if (template.value.equalsIgnoreCase(value)) {
return template;
}
}
return UNRECOGNIZED;
}
@JsonValue
public String getValue() {
return value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy