/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.shopping.model;
import aQute.bnd.annotation.ProviderType;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* This class is used by SOAP remote services.
*
* @author Brian Wing Shun Chan
* @generated
*/
@ProviderType
public class ShoppingItemPriceSoap implements Serializable {
public static ShoppingItemPriceSoap toSoapModel(ShoppingItemPrice model) {
ShoppingItemPriceSoap soapModel = new ShoppingItemPriceSoap();
soapModel.setItemPriceId(model.getItemPriceId());
soapModel.setCompanyId(model.getCompanyId());
soapModel.setItemId(model.getItemId());
soapModel.setMinQuantity(model.getMinQuantity());
soapModel.setMaxQuantity(model.getMaxQuantity());
soapModel.setPrice(model.getPrice());
soapModel.setDiscount(model.getDiscount());
soapModel.setTaxable(model.getTaxable());
soapModel.setShipping(model.getShipping());
soapModel.setUseShippingFormula(model.getUseShippingFormula());
soapModel.setStatus(model.getStatus());
return soapModel;
}
public static ShoppingItemPriceSoap[] toSoapModels(
ShoppingItemPrice[] models) {
ShoppingItemPriceSoap[] soapModels = new ShoppingItemPriceSoap[models.length];
for (int i = 0; i < models.length; i++) {
soapModels[i] = toSoapModel(models[i]);
}
return soapModels;
}
public static ShoppingItemPriceSoap[][] toSoapModels(
ShoppingItemPrice[][] models) {
ShoppingItemPriceSoap[][] soapModels = null;
if (models.length > 0) {
soapModels = new ShoppingItemPriceSoap[models.length][models[0].length];
}
else {
soapModels = new ShoppingItemPriceSoap[0][0];
}
for (int i = 0; i < models.length; i++) {
soapModels[i] = toSoapModels(models[i]);
}
return soapModels;
}
public static ShoppingItemPriceSoap[] toSoapModels(
List<ShoppingItemPrice> models) {
List<ShoppingItemPriceSoap> soapModels = new ArrayList<ShoppingItemPriceSoap>(models.size());
for (ShoppingItemPrice model : models) {
soapModels.add(toSoapModel(model));
}
return soapModels.toArray(new ShoppingItemPriceSoap[soapModels.size()]);
}
public ShoppingItemPriceSoap() {
}
public long getPrimaryKey() {
return _itemPriceId;
}
public void setPrimaryKey(long pk) {
setItemPriceId(pk);
}
public long getItemPriceId() {
return _itemPriceId;
}
public void setItemPriceId(long itemPriceId) {
_itemPriceId = itemPriceId;
}
public long getCompanyId() {
return _companyId;
}
public void setCompanyId(long companyId) {
_companyId = companyId;
}
public long getItemId() {
return _itemId;
}
public void setItemId(long itemId) {
_itemId = itemId;
}
public int getMinQuantity() {
return _minQuantity;
}
public void setMinQuantity(int minQuantity) {
_minQuantity = minQuantity;
}
public int getMaxQuantity() {
return _maxQuantity;
}
public void setMaxQuantity(int maxQuantity) {
_maxQuantity = maxQuantity;
}
public double getPrice() {
return _price;
}
public void setPrice(double price) {
_price = price;
}
public double getDiscount() {
return _discount;
}
public void setDiscount(double discount) {
_discount = discount;
}
public boolean getTaxable() {
return _taxable;
}
public boolean isTaxable() {
return _taxable;
}
public void setTaxable(boolean taxable) {
_taxable = taxable;
}
public double getShipping() {
return _shipping;
}
public void setShipping(double shipping) {
_shipping = shipping;
}
public boolean getUseShippingFormula() {
return _useShippingFormula;
}
public boolean isUseShippingFormula() {
return _useShippingFormula;
}
public void setUseShippingFormula(boolean useShippingFormula) {
_useShippingFormula = useShippingFormula;
}
public int getStatus() {
return _status;
}
public void setStatus(int status) {
_status = status;
}
private long _itemPriceId;
private long _companyId;
private long _itemId;
private int _minQuantity;
private int _maxQuantity;
private double _price;
private double _discount;
private boolean _taxable;
private double _shipping;
private boolean _useShippingFormula;
private int _status;
}