1 9 10 package com.sun.javaee.blueprints.paypal; 11 12 import java.math.BigDecimal ; 13 14 18 public class LineItem { 19 20 private String target="", business="", itemName="", type="Donation"; 21 private BigDecimal amount=new BigDecimal (0); 22 private int quantity=1; 23 24 25 public LineItem() { 26 } 27 28 public LineItem(String business, String itemName, int quantity, BigDecimal amount, String type, String target) { 29 this.business=business; 30 this.target=target; 31 this.itemName=itemName; 32 this.type=type; 33 this.amount=amount; 34 this.quantity=quantity; 35 } 36 37 38 public void setTarget(String target) { 39 this.target=target; 40 } 41 public String getTarget() { 42 return target; 43 } 44 45 public void setBusiness(String business) { 46 this.business=business; 47 } 48 public String getBusiness() { 49 return business; 50 } 51 52 public void setItemName(String itemName) { 53 this.itemName=itemName; 54 } 55 public String getItemName() { 56 return itemName; 57 } 58 59 public void setType(String type) { 60 this.type=type; 61 } 62 public String getType() { 63 return type; 64 } 65 66 public void setAmount(BigDecimal amount) { 67 this.amount=amount; 68 } 69 public BigDecimal getAmount() { 70 return amount; 71 } 72 73 public void setQuantity(int quantity) { 74 this.quantity=quantity; 75 } 76 public int getQuantity() { 77 return quantity; 78 } 79 80 } 81 | Popular Tags |