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

net.authorize.data.creditcard.AVSCode Maven / Gradle / Ivy

Go to download

Authorize.Net SDK includes standard payments, recurring billing, and customer profiles.

There is a newer version: 3.0.0
Show newest version
package net.authorize.data.creditcard;

import java.io.Serializable;

/**
 * Address Verification Service (AVS) response codes.
 *
 * @deprecated since version 1.9.8
 * @deprecated We have reorganized and simplified the Authorize.Net API to ease integration and to focus on merchants' needs.
 * @deprecated We have deprecated AIM, ARB, CIM, and Reporting as separate options, in favor of AuthorizeNet::API (package: net.authorize.api.*).
 * @deprecated We have also deprecated SIM as a separate option, in favor of Accept Hosted. See https://developer.authorize.net/api/reference/features/accept_hosted.html for details on Accept Hosted.
 * @deprecated For details on AIM, see https://github.com/AuthorizeNet/sample-code-java/tree/master/src/main/java/net/authorize/sample/PaymentTransactions.
 * @deprecated For details on the deprecation and replacement of legacy Authorize.Net methods, visit https://developer.authorize.net/api/upgrade_guide/.
 *
 */
@Deprecated
public enum AVSCode implements Serializable {
	A("A", "Address (Street) matches, ZIP does not"),
	B("B", "Address information not provided for AVS check"),
	E("E", "AVS error"),
	G("G", "Non-U.S. Card Issuing Bank"),
	N("N", "No Match on Address (Street) or ZIP"),
	P("P", "AVS not applicable for this transaction"),
	R("R", "Retry - System unavailable or timed out"),
	S("S", "Service not supported by issuer"),
	U("U", "Address information is unavailable"),
	W("W", "Nine digit ZIP matches, Address (Street) does not"),
	X("X", "Address (Street) and nine digit ZIP match"),
	Y("Y", "Address (Street) and five digit ZIP match"),
	Z("Z", "Five digit ZIP matches, Address (Street) does not");

	private final String value;
  	private final String description;

	private AVSCode(String value, String description) {
		this.value = value;
		this.description = description;
	}

	public static AVSCode findByValue(String value) {
		for(AVSCode avs : values()) {
			if(avs.value.equals(value)) {
				return avs;
			}
		}

		return null;
	}

	/**
	 * @return the value
	 */
	public String getValue() {
		return value;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy