PersistableTransaction.java

43 lines | 992 B Blame History Raw Download
package com.salesmanager.shop.model.order.transaction;

import java.io.Serializable;

import com.salesmanager.core.model.payments.PaymentType;
import com.salesmanager.core.model.payments.TransactionType;
import com.salesmanager.shop.utils.Enum;

/**
 * This class is used for writing a transaction in the System
 * @author c.samson
 *
 */
public class PersistableTransaction extends TransactionEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Enum(enumClass=PaymentType.class, ignoreCase=true) 
	private String paymentType;

	@Enum(enumClass=TransactionType.class, ignoreCase=true) 
	private String transactionType;

	public String getPaymentType() {
		return paymentType;
	}

	public void setPaymentType(String paymentType) {
		this.paymentType = paymentType;
	}

	public String getTransactionType() {
		return transactionType;
	}

	public void setTransactionType(String transactionType) {
		this.transactionType = transactionType;
	}
}