Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.paypal.api.payments;
  
  
  
  public class InvoiceItem  extends PayPalModel {

Name of the item. 60 characters max.
 
 	private String name;

Description of the item. 1000 characters max.
 
 	private String description;

Quantity of the item. Range of 0 to 9999.999.
 
 	private float quantity;

Unit price of the item. Range of -999999.99 to 999999.99.
 
 	private Currency unitPrice;

Tax associated with the item.
 
 	private Tax tax;

Date on which the item or service was provided. Date format: yyyy-MM-dd z. For example, 2014-02-27 PST.
 
 	private String date;

Item discount in percent or amount.
 
 	private Cost discount;

Default Constructor
 
 	public InvoiceItem() {
 	}

Parameterized Constructor
 
 	public InvoiceItem(String namefloat quantityCurrency unitPrice) {
 		this. = name;
 		this. = quantity;
 		this. = unitPrice;
 	}


Setter for name
 
 	public InvoiceItem setName(String name) {
 		this. = name;
 		return this;
 	}

Getter for name
 
 	public String getName() {
 		return this.;
 	}


Setter for description
 
 	public InvoiceItem setDescription(String description) {
 		this. = description;
 		return this;
 	}

Getter for description
 
 	public String getDescription() {
 		return this.;
 	}


Setter for quantity
 
 	public InvoiceItem setQuantity(float quantity) {
 		this. = quantity;
 		return this;
 	}

Getter for quantity
	public float getQuantity() {
		return this.;
	}


Setter for unitPrice
	public InvoiceItem setUnitPrice(Currency unitPrice) {
		this. = unitPrice;
		return this;
	}

Getter for unitPrice
	public Currency getUnitPrice() {
		return this.;
	}


Setter for tax
	public InvoiceItem setTax(Tax tax) {
		this. = tax;
		return this;
	}

Getter for tax
	public Tax getTax() {
		return this.;
	}


Setter for date
	public InvoiceItem setDate(String date) {
		this. = date;
		return this;
	}

Getter for date
	public String getDate() {
		return this.;
	}


Setter for discount
	public InvoiceItem setDiscount(Cost discount) {
		this. = discount;
		return this;
	}

Getter for discount
	public Cost getDiscount() {
		return this.;
	}
New to GrepCode? Check out our FAQ X