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

com.emailage.javawrapper.model.Enums Maven / Gradle / Ivy

There is a newer version: 1.2.4
Show newest version
package com.emailage.javawrapper.model;

public class Enums {
	public enum Environment {
		Sandbox, Production
	}

	public enum Format {
		Json, Xml;

		@Override
		public String toString() {

			if (this == Json)
				return "json";
			else
				return "xml";

		}
	}

	public enum FraudType {
		Good, Fraud, Neutral;

		@Override
		public String toString() {

			if (this == Good)
				return "good";
			else if (this == Fraud)
				return "fraud";
			else
				return "neutral";

		}
	}

	public enum SignatureMethod {
		HMAC_SHA1, HMAC_SHA256, HMAC_SHA384, HMAC_SHA512;

		@Override
		public String toString() {
			if (Enums.SignatureMethod.HMAC_SHA1 == this) {
				return "HMAC-SHA1";
			} else if (Enums.SignatureMethod.HMAC_SHA256 == this) {
				return "HMAC-SHA256";
			} else if (Enums.SignatureMethod.HMAC_SHA384 == this) {
				return "HMAC-SHA384";
			} else {
				return "HMAC-SHA512";
			}
		}
	}

	public enum FraudCode {
		/** Card Not Present */
		CARD_NOT_PRESENT("Card Not Present",1),
		/** Customer Dispute (Chargeback) */
		CUSTOMER_DISPUTE("Customer Dispute (Chargeback)", 2),
		/** First Party Fraud */
		FIRST_PARTY_FRAUD("First Party Fraud",3),
		/** First Payment Default */
		FIRST_PAYMENT_DEFAULT("First Payment Default",4),
		/** Identity Theft (Fraud Application) */
		IDENTITY_THEFT_APPLICATION("Identity Theft (Fraud Application)",5),
		/** Identity Theft (Account Take Over) */
		IDENTITY_THEFT_ACCOUNT_TAKE_OVER("Identity Theft (Account Take Over)",6),
		/** Suspected Fraud (Not Confirmed) */
		SUSPECTED_FRAUD("Suspected Fraud (Not Confirmed)",7),
		/** Synthetic ID */
		SYNTHETIC_ID("Synthetic ID",8),
		/** Other */
		OTHER("Other",9);

		private final String name;
		private final int value;

		FraudCode(String name, int value){
			this.name = name;
			this.value = value;
		}
		@Override
		public String toString(){
			return this.name;
		}
		public int toInt(){
			return this.value;
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy