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

com.trustev.domain.entities.TransactionItem Maven / Gradle / Ivy

There is a newer version: 2.0.14
Show newest version
package com.trustev.domain.entities;

import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.map.annotate.JsonSerialize;

/**
 * Items Object – contains details on Item Name, Quantity and Item Value. Please see Items Object for further parameter information.
 */
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class TransactionItem extends BaseObject {
	private String name;
	private int quantity;
	private double itemValue;
	
		
	/**
	 * @return  The Name of the Item being purchased.
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * @param name  The Name of the Item being purchased.
	 */
	@JsonProperty("Name")
	public void setName(String name) {
		this.name = name;
	}
	
	/**
	 * @return  The Quantity of the Item being purchased.
	 */
	public int getQuantity() {
		return quantity;
	}
	
	
	/**
	 * @param quantity  The Quantity of the Item being purchased.
	 */
	@JsonProperty("Quantity")
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	
	/**
	 * @return  The Value of the Item being purchased.
	 */
	public double getItemValue() {
		return itemValue;
	}
	
	/**
	 * @param itemValue  The Value of the Item being purchased.
	 */
	@JsonProperty("ItemValue")
	public void setItemValue(double itemValue) {
		this.itemValue = itemValue;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy