All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.securionpay.response.ThreeDSecureInfo Maven / Gradle / Ivy

The newest version!
package com.securionpay.response;

import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.securionpay.enums.AuthenticationFlow;
import com.securionpay.enums.LiabilityShift;

import java.util.HashMap;
import java.util.Map;

import static com.securionpay.util.SecurionPayUtils.toStringNullSafe;

public class ThreeDSecureInfo {
	private Integer amount;
	private String currency;
	private boolean enrolled;
	private String liabilityShift;
	private String version;
	private String authenticationFlow;

	@JsonIgnore
	private final Map other = new HashMap<>();

	public Integer getAmount() {
		return amount;
	}

	public String getCurrency() {
		return currency;
	}

	public boolean isEnrolled() {
		return enrolled;
	}

	public LiabilityShift getLiabilityShift() {
		return LiabilityShift.fromValue(liabilityShift);
	}

	public String getLiabilityShiftAsString() {
		return liabilityShift;
	}

	public String getVersion() {
		return version;
	}

	public AuthenticationFlow getAuthenticationFlow() {
		return AuthenticationFlow.fromValue(authenticationFlow);
	}

	public String getAuthenticationFlowAsString() {
		return authenticationFlow;
	}

	public String get(String name) {
		return toStringNullSafe(other.get(name));
	}

	@JsonAnySetter
	private void set(String name, Object value) {
		other.put(name, value);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy