001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.shopping.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.shopping.service.http.ShoppingOrderServiceSoap}.
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       com.liferay.portlet.shopping.service.http.ShoppingOrderServiceSoap
028     * @generated
029     */
030    public class ShoppingOrderSoap implements Serializable {
031            public static ShoppingOrderSoap toSoapModel(ShoppingOrder model) {
032                    ShoppingOrderSoap soapModel = new ShoppingOrderSoap();
033    
034                    soapModel.setOrderId(model.getOrderId());
035                    soapModel.setGroupId(model.getGroupId());
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setUserId(model.getUserId());
038                    soapModel.setUserName(model.getUserName());
039                    soapModel.setCreateDate(model.getCreateDate());
040                    soapModel.setModifiedDate(model.getModifiedDate());
041                    soapModel.setNumber(model.getNumber());
042                    soapModel.setTax(model.getTax());
043                    soapModel.setShipping(model.getShipping());
044                    soapModel.setAltShipping(model.getAltShipping());
045                    soapModel.setRequiresShipping(model.getRequiresShipping());
046                    soapModel.setInsure(model.getInsure());
047                    soapModel.setInsurance(model.getInsurance());
048                    soapModel.setCouponCodes(model.getCouponCodes());
049                    soapModel.setCouponDiscount(model.getCouponDiscount());
050                    soapModel.setBillingFirstName(model.getBillingFirstName());
051                    soapModel.setBillingLastName(model.getBillingLastName());
052                    soapModel.setBillingEmailAddress(model.getBillingEmailAddress());
053                    soapModel.setBillingCompany(model.getBillingCompany());
054                    soapModel.setBillingStreet(model.getBillingStreet());
055                    soapModel.setBillingCity(model.getBillingCity());
056                    soapModel.setBillingState(model.getBillingState());
057                    soapModel.setBillingZip(model.getBillingZip());
058                    soapModel.setBillingCountry(model.getBillingCountry());
059                    soapModel.setBillingPhone(model.getBillingPhone());
060                    soapModel.setShipToBilling(model.getShipToBilling());
061                    soapModel.setShippingFirstName(model.getShippingFirstName());
062                    soapModel.setShippingLastName(model.getShippingLastName());
063                    soapModel.setShippingEmailAddress(model.getShippingEmailAddress());
064                    soapModel.setShippingCompany(model.getShippingCompany());
065                    soapModel.setShippingStreet(model.getShippingStreet());
066                    soapModel.setShippingCity(model.getShippingCity());
067                    soapModel.setShippingState(model.getShippingState());
068                    soapModel.setShippingZip(model.getShippingZip());
069                    soapModel.setShippingCountry(model.getShippingCountry());
070                    soapModel.setShippingPhone(model.getShippingPhone());
071                    soapModel.setCcName(model.getCcName());
072                    soapModel.setCcType(model.getCcType());
073                    soapModel.setCcNumber(model.getCcNumber());
074                    soapModel.setCcExpMonth(model.getCcExpMonth());
075                    soapModel.setCcExpYear(model.getCcExpYear());
076                    soapModel.setCcVerNumber(model.getCcVerNumber());
077                    soapModel.setComments(model.getComments());
078                    soapModel.setPpTxnId(model.getPpTxnId());
079                    soapModel.setPpPaymentStatus(model.getPpPaymentStatus());
080                    soapModel.setPpPaymentGross(model.getPpPaymentGross());
081                    soapModel.setPpReceiverEmail(model.getPpReceiverEmail());
082                    soapModel.setPpPayerEmail(model.getPpPayerEmail());
083                    soapModel.setSendOrderEmail(model.getSendOrderEmail());
084                    soapModel.setSendShippingEmail(model.getSendShippingEmail());
085    
086                    return soapModel;
087            }
088    
089            public static ShoppingOrderSoap[] toSoapModels(ShoppingOrder[] models) {
090                    ShoppingOrderSoap[] soapModels = new ShoppingOrderSoap[models.length];
091    
092                    for (int i = 0; i < models.length; i++) {
093                            soapModels[i] = toSoapModel(models[i]);
094                    }
095    
096                    return soapModels;
097            }
098    
099            public static ShoppingOrderSoap[][] toSoapModels(ShoppingOrder[][] models) {
100                    ShoppingOrderSoap[][] soapModels = null;
101    
102                    if (models.length > 0) {
103                            soapModels = new ShoppingOrderSoap[models.length][models[0].length];
104                    }
105                    else {
106                            soapModels = new ShoppingOrderSoap[0][0];
107                    }
108    
109                    for (int i = 0; i < models.length; i++) {
110                            soapModels[i] = toSoapModels(models[i]);
111                    }
112    
113                    return soapModels;
114            }
115    
116            public static ShoppingOrderSoap[] toSoapModels(List<ShoppingOrder> models) {
117                    List<ShoppingOrderSoap> soapModels = new ArrayList<ShoppingOrderSoap>(models.size());
118    
119                    for (ShoppingOrder model : models) {
120                            soapModels.add(toSoapModel(model));
121                    }
122    
123                    return soapModels.toArray(new ShoppingOrderSoap[soapModels.size()]);
124            }
125    
126            public ShoppingOrderSoap() {
127            }
128    
129            public long getPrimaryKey() {
130                    return _orderId;
131            }
132    
133            public void setPrimaryKey(long pk) {
134                    setOrderId(pk);
135            }
136    
137            public long getOrderId() {
138                    return _orderId;
139            }
140    
141            public void setOrderId(long orderId) {
142                    _orderId = orderId;
143            }
144    
145            public long getGroupId() {
146                    return _groupId;
147            }
148    
149            public void setGroupId(long groupId) {
150                    _groupId = groupId;
151            }
152    
153            public long getCompanyId() {
154                    return _companyId;
155            }
156    
157            public void setCompanyId(long companyId) {
158                    _companyId = companyId;
159            }
160    
161            public long getUserId() {
162                    return _userId;
163            }
164    
165            public void setUserId(long userId) {
166                    _userId = userId;
167            }
168    
169            public String getUserName() {
170                    return _userName;
171            }
172    
173            public void setUserName(String userName) {
174                    _userName = userName;
175            }
176    
177            public Date getCreateDate() {
178                    return _createDate;
179            }
180    
181            public void setCreateDate(Date createDate) {
182                    _createDate = createDate;
183            }
184    
185            public Date getModifiedDate() {
186                    return _modifiedDate;
187            }
188    
189            public void setModifiedDate(Date modifiedDate) {
190                    _modifiedDate = modifiedDate;
191            }
192    
193            public String getNumber() {
194                    return _number;
195            }
196    
197            public void setNumber(String number) {
198                    _number = number;
199            }
200    
201            public double getTax() {
202                    return _tax;
203            }
204    
205            public void setTax(double tax) {
206                    _tax = tax;
207            }
208    
209            public double getShipping() {
210                    return _shipping;
211            }
212    
213            public void setShipping(double shipping) {
214                    _shipping = shipping;
215            }
216    
217            public String getAltShipping() {
218                    return _altShipping;
219            }
220    
221            public void setAltShipping(String altShipping) {
222                    _altShipping = altShipping;
223            }
224    
225            public boolean getRequiresShipping() {
226                    return _requiresShipping;
227            }
228    
229            public boolean isRequiresShipping() {
230                    return _requiresShipping;
231            }
232    
233            public void setRequiresShipping(boolean requiresShipping) {
234                    _requiresShipping = requiresShipping;
235            }
236    
237            public boolean getInsure() {
238                    return _insure;
239            }
240    
241            public boolean isInsure() {
242                    return _insure;
243            }
244    
245            public void setInsure(boolean insure) {
246                    _insure = insure;
247            }
248    
249            public double getInsurance() {
250                    return _insurance;
251            }
252    
253            public void setInsurance(double insurance) {
254                    _insurance = insurance;
255            }
256    
257            public String getCouponCodes() {
258                    return _couponCodes;
259            }
260    
261            public void setCouponCodes(String couponCodes) {
262                    _couponCodes = couponCodes;
263            }
264    
265            public double getCouponDiscount() {
266                    return _couponDiscount;
267            }
268    
269            public void setCouponDiscount(double couponDiscount) {
270                    _couponDiscount = couponDiscount;
271            }
272    
273            public String getBillingFirstName() {
274                    return _billingFirstName;
275            }
276    
277            public void setBillingFirstName(String billingFirstName) {
278                    _billingFirstName = billingFirstName;
279            }
280    
281            public String getBillingLastName() {
282                    return _billingLastName;
283            }
284    
285            public void setBillingLastName(String billingLastName) {
286                    _billingLastName = billingLastName;
287            }
288    
289            public String getBillingEmailAddress() {
290                    return _billingEmailAddress;
291            }
292    
293            public void setBillingEmailAddress(String billingEmailAddress) {
294                    _billingEmailAddress = billingEmailAddress;
295            }
296    
297            public String getBillingCompany() {
298                    return _billingCompany;
299            }
300    
301            public void setBillingCompany(String billingCompany) {
302                    _billingCompany = billingCompany;
303            }
304    
305            public String getBillingStreet() {
306                    return _billingStreet;
307            }
308    
309            public void setBillingStreet(String billingStreet) {
310                    _billingStreet = billingStreet;
311            }
312    
313            public String getBillingCity() {
314                    return _billingCity;
315            }
316    
317            public void setBillingCity(String billingCity) {
318                    _billingCity = billingCity;
319            }
320    
321            public String getBillingState() {
322                    return _billingState;
323            }
324    
325            public void setBillingState(String billingState) {
326                    _billingState = billingState;
327            }
328    
329            public String getBillingZip() {
330                    return _billingZip;
331            }
332    
333            public void setBillingZip(String billingZip) {
334                    _billingZip = billingZip;
335            }
336    
337            public String getBillingCountry() {
338                    return _billingCountry;
339            }
340    
341            public void setBillingCountry(String billingCountry) {
342                    _billingCountry = billingCountry;
343            }
344    
345            public String getBillingPhone() {
346                    return _billingPhone;
347            }
348    
349            public void setBillingPhone(String billingPhone) {
350                    _billingPhone = billingPhone;
351            }
352    
353            public boolean getShipToBilling() {
354                    return _shipToBilling;
355            }
356    
357            public boolean isShipToBilling() {
358                    return _shipToBilling;
359            }
360    
361            public void setShipToBilling(boolean shipToBilling) {
362                    _shipToBilling = shipToBilling;
363            }
364    
365            public String getShippingFirstName() {
366                    return _shippingFirstName;
367            }
368    
369            public void setShippingFirstName(String shippingFirstName) {
370                    _shippingFirstName = shippingFirstName;
371            }
372    
373            public String getShippingLastName() {
374                    return _shippingLastName;
375            }
376    
377            public void setShippingLastName(String shippingLastName) {
378                    _shippingLastName = shippingLastName;
379            }
380    
381            public String getShippingEmailAddress() {
382                    return _shippingEmailAddress;
383            }
384    
385            public void setShippingEmailAddress(String shippingEmailAddress) {
386                    _shippingEmailAddress = shippingEmailAddress;
387            }
388    
389            public String getShippingCompany() {
390                    return _shippingCompany;
391            }
392    
393            public void setShippingCompany(String shippingCompany) {
394                    _shippingCompany = shippingCompany;
395            }
396    
397            public String getShippingStreet() {
398                    return _shippingStreet;
399            }
400    
401            public void setShippingStreet(String shippingStreet) {
402                    _shippingStreet = shippingStreet;
403            }
404    
405            public String getShippingCity() {
406                    return _shippingCity;
407            }
408    
409            public void setShippingCity(String shippingCity) {
410                    _shippingCity = shippingCity;
411            }
412    
413            public String getShippingState() {
414                    return _shippingState;
415            }
416    
417            public void setShippingState(String shippingState) {
418                    _shippingState = shippingState;
419            }
420    
421            public String getShippingZip() {
422                    return _shippingZip;
423            }
424    
425            public void setShippingZip(String shippingZip) {
426                    _shippingZip = shippingZip;
427            }
428    
429            public String getShippingCountry() {
430                    return _shippingCountry;
431            }
432    
433            public void setShippingCountry(String shippingCountry) {
434                    _shippingCountry = shippingCountry;
435            }
436    
437            public String getShippingPhone() {
438                    return _shippingPhone;
439            }
440    
441            public void setShippingPhone(String shippingPhone) {
442                    _shippingPhone = shippingPhone;
443            }
444    
445            public String getCcName() {
446                    return _ccName;
447            }
448    
449            public void setCcName(String ccName) {
450                    _ccName = ccName;
451            }
452    
453            public String getCcType() {
454                    return _ccType;
455            }
456    
457            public void setCcType(String ccType) {
458                    _ccType = ccType;
459            }
460    
461            public String getCcNumber() {
462                    return _ccNumber;
463            }
464    
465            public void setCcNumber(String ccNumber) {
466                    _ccNumber = ccNumber;
467            }
468    
469            public int getCcExpMonth() {
470                    return _ccExpMonth;
471            }
472    
473            public void setCcExpMonth(int ccExpMonth) {
474                    _ccExpMonth = ccExpMonth;
475            }
476    
477            public int getCcExpYear() {
478                    return _ccExpYear;
479            }
480    
481            public void setCcExpYear(int ccExpYear) {
482                    _ccExpYear = ccExpYear;
483            }
484    
485            public String getCcVerNumber() {
486                    return _ccVerNumber;
487            }
488    
489            public void setCcVerNumber(String ccVerNumber) {
490                    _ccVerNumber = ccVerNumber;
491            }
492    
493            public String getComments() {
494                    return _comments;
495            }
496    
497            public void setComments(String comments) {
498                    _comments = comments;
499            }
500    
501            public String getPpTxnId() {
502                    return _ppTxnId;
503            }
504    
505            public void setPpTxnId(String ppTxnId) {
506                    _ppTxnId = ppTxnId;
507            }
508    
509            public String getPpPaymentStatus() {
510                    return _ppPaymentStatus;
511            }
512    
513            public void setPpPaymentStatus(String ppPaymentStatus) {
514                    _ppPaymentStatus = ppPaymentStatus;
515            }
516    
517            public double getPpPaymentGross() {
518                    return _ppPaymentGross;
519            }
520    
521            public void setPpPaymentGross(double ppPaymentGross) {
522                    _ppPaymentGross = ppPaymentGross;
523            }
524    
525            public String getPpReceiverEmail() {
526                    return _ppReceiverEmail;
527            }
528    
529            public void setPpReceiverEmail(String ppReceiverEmail) {
530                    _ppReceiverEmail = ppReceiverEmail;
531            }
532    
533            public String getPpPayerEmail() {
534                    return _ppPayerEmail;
535            }
536    
537            public void setPpPayerEmail(String ppPayerEmail) {
538                    _ppPayerEmail = ppPayerEmail;
539            }
540    
541            public boolean getSendOrderEmail() {
542                    return _sendOrderEmail;
543            }
544    
545            public boolean isSendOrderEmail() {
546                    return _sendOrderEmail;
547            }
548    
549            public void setSendOrderEmail(boolean sendOrderEmail) {
550                    _sendOrderEmail = sendOrderEmail;
551            }
552    
553            public boolean getSendShippingEmail() {
554                    return _sendShippingEmail;
555            }
556    
557            public boolean isSendShippingEmail() {
558                    return _sendShippingEmail;
559            }
560    
561            public void setSendShippingEmail(boolean sendShippingEmail) {
562                    _sendShippingEmail = sendShippingEmail;
563            }
564    
565            private long _orderId;
566            private long _groupId;
567            private long _companyId;
568            private long _userId;
569            private String _userName;
570            private Date _createDate;
571            private Date _modifiedDate;
572            private String _number;
573            private double _tax;
574            private double _shipping;
575            private String _altShipping;
576            private boolean _requiresShipping;
577            private boolean _insure;
578            private double _insurance;
579            private String _couponCodes;
580            private double _couponDiscount;
581            private String _billingFirstName;
582            private String _billingLastName;
583            private String _billingEmailAddress;
584            private String _billingCompany;
585            private String _billingStreet;
586            private String _billingCity;
587            private String _billingState;
588            private String _billingZip;
589            private String _billingCountry;
590            private String _billingPhone;
591            private boolean _shipToBilling;
592            private String _shippingFirstName;
593            private String _shippingLastName;
594            private String _shippingEmailAddress;
595            private String _shippingCompany;
596            private String _shippingStreet;
597            private String _shippingCity;
598            private String _shippingState;
599            private String _shippingZip;
600            private String _shippingCountry;
601            private String _shippingPhone;
602            private String _ccName;
603            private String _ccType;
604            private String _ccNumber;
605            private int _ccExpMonth;
606            private int _ccExpYear;
607            private String _ccVerNumber;
608            private String _comments;
609            private String _ppTxnId;
610            private String _ppPaymentStatus;
611            private double _ppPaymentGross;
612            private String _ppReceiverEmail;
613            private String _ppPayerEmail;
614            private boolean _sendOrderEmail;
615            private boolean _sendShippingEmail;
616    }