CheckoutFiPaymentParam.java 1.45 KB
/*
 * Copyright Codecrew Ry
 * 
 * All rights reserved.
 * 
 * This license applies to any software containing a notice placed by the 
 * copyright holder. Such software is herein referred to as the Software. 
 * This license covers modification, distribution and use of the Software. 
 * 
 * Any distribution and use in source and binary forms, with or without 
 * modification is not permitted without explicit written permission from the 
 * copyright owner. 
 * 
 * A non-exclusive royalty-free right is granted to the copyright owner of the 
 * Software to use, modify and distribute all modifications to the Software in 
 * future versions of the Software. 
 * 
 */
package fi.codecrew.moya.checkoutfi;

public enum CheckoutFiPaymentParam implements CheckoutQueryParam {

	// DO NOT CHANGE THE ORDER OF THESE!
	// The md5 checksum is calculated from
	// these values...
	VERSION("0001"),
	STAMP(null),
	AMOUNT(null),
	REFERENCE(null),
	MESSAGE(null),
	LANGUAGE("FI"),
	MERCHANT(null),
	RETURN(null),
	CANCEL(null),
	REJECT(null),
	DELAYED(null),
	COUNTRY("FIN"),
	CURRENCY("EUR"),
	DEVICE("10"),
	CONTENT("1"),
	TYPE("0"),
	ALGORITHM("2"),
	DELIVERY_DATE(null),
	FIRSTNAME(null),
	FAMILYNAME(null),
	ADDRESS(null),
	POSTCODE(null),
	POSTOFFICE(null),
	// MAC gets added automatically in querybuilder

	;

	private final String defaultValue;

	private CheckoutFiPaymentParam(String def) {
		defaultValue = def;
	}

	public String getDefaultValue() {
		return defaultValue;
	}

}