1
22
23 package com.liferay.portlet.shopping.model;
24
25 import java.io.Serializable;
26
27 import java.util.ArrayList;
28 import java.util.List;
29
30
48 public class ShoppingItemPriceSoap implements Serializable {
49 public static ShoppingItemPriceSoap toSoapModel(ShoppingItemPrice model) {
50 ShoppingItemPriceSoap soapModel = new ShoppingItemPriceSoap();
51
52 soapModel.setItemPriceId(model.getItemPriceId());
53 soapModel.setItemId(model.getItemId());
54 soapModel.setMinQuantity(model.getMinQuantity());
55 soapModel.setMaxQuantity(model.getMaxQuantity());
56 soapModel.setPrice(model.getPrice());
57 soapModel.setDiscount(model.getDiscount());
58 soapModel.setTaxable(model.getTaxable());
59 soapModel.setShipping(model.getShipping());
60 soapModel.setUseShippingFormula(model.getUseShippingFormula());
61 soapModel.setStatus(model.getStatus());
62
63 return soapModel;
64 }
65
66 public static ShoppingItemPriceSoap[] toSoapModels(
67 List<ShoppingItemPrice> models) {
68 List<ShoppingItemPriceSoap> soapModels = new ArrayList<ShoppingItemPriceSoap>(models.size());
69
70 for (ShoppingItemPrice model : models) {
71 soapModels.add(toSoapModel(model));
72 }
73
74 return soapModels.toArray(new ShoppingItemPriceSoap[soapModels.size()]);
75 }
76
77 public ShoppingItemPriceSoap() {
78 }
79
80 public long getPrimaryKey() {
81 return _itemPriceId;
82 }
83
84 public void setPrimaryKey(long pk) {
85 setItemPriceId(pk);
86 }
87
88 public long getItemPriceId() {
89 return _itemPriceId;
90 }
91
92 public void setItemPriceId(long itemPriceId) {
93 _itemPriceId = itemPriceId;
94 }
95
96 public long getItemId() {
97 return _itemId;
98 }
99
100 public void setItemId(long itemId) {
101 _itemId = itemId;
102 }
103
104 public int getMinQuantity() {
105 return _minQuantity;
106 }
107
108 public void setMinQuantity(int minQuantity) {
109 _minQuantity = minQuantity;
110 }
111
112 public int getMaxQuantity() {
113 return _maxQuantity;
114 }
115
116 public void setMaxQuantity(int maxQuantity) {
117 _maxQuantity = maxQuantity;
118 }
119
120 public double getPrice() {
121 return _price;
122 }
123
124 public void setPrice(double price) {
125 _price = price;
126 }
127
128 public double getDiscount() {
129 return _discount;
130 }
131
132 public void setDiscount(double discount) {
133 _discount = discount;
134 }
135
136 public boolean getTaxable() {
137 return _taxable;
138 }
139
140 public boolean isTaxable() {
141 return _taxable;
142 }
143
144 public void setTaxable(boolean taxable) {
145 _taxable = taxable;
146 }
147
148 public double getShipping() {
149 return _shipping;
150 }
151
152 public void setShipping(double shipping) {
153 _shipping = shipping;
154 }
155
156 public boolean getUseShippingFormula() {
157 return _useShippingFormula;
158 }
159
160 public boolean isUseShippingFormula() {
161 return _useShippingFormula;
162 }
163
164 public void setUseShippingFormula(boolean useShippingFormula) {
165 _useShippingFormula = useShippingFormula;
166 }
167
168 public int getStatus() {
169 return _status;
170 }
171
172 public void setStatus(int status) {
173 _status = status;
174 }
175
176 private long _itemPriceId;
177 private long _itemId;
178 private int _minQuantity;
179 private int _maxQuantity;
180 private double _price;
181 private double _discount;
182 private boolean _taxable;
183 private double _shipping;
184 private boolean _useShippingFormula;
185 private int _status;
186 }