org.broadleafcommerce.core.order.service.call.FulfillmentGroupRequest Maven / Gradle / Ivy
/*
* Copyright 2008-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.broadleafcommerce.core.order.service.call;
import org.broadleafcommerce.core.order.domain.FulfillmentOption;
import org.broadleafcommerce.core.order.domain.Order;
import org.broadleafcommerce.profile.core.domain.Address;
import org.broadleafcommerce.profile.core.domain.Phone;
import java.util.ArrayList;
import java.util.List;
public class FulfillmentGroupRequest {
protected Address address;
protected Order order;
protected Phone phone;
/**
* Both of these fields uses are superceded by the FulfillmentOption paradigm
*/
@Deprecated
protected String method;
@Deprecated
protected String service;
protected FulfillmentOption option;
protected List fulfillmentGroupItemRequests = new ArrayList();
public Address getAddress() {
return address;
}
public void setAddress(Address address) {
this.address = address;
}
public Order getOrder() {
return order;
}
public void setOrder(Order order) {
this.order = order;
}
public Phone getPhone() {
return phone;
}
public void setPhone(Phone phone) {
this.phone = phone;
}
public FulfillmentOption getOption() {
return option;
}
public void setOption(FulfillmentOption option) {
this.option = option;
}
public List getFulfillmentGroupItemRequests() {
return fulfillmentGroupItemRequests;
}
public void setFulfillmentGroupItemRequests(List fulfillmentGroupItemRequests) {
this.fulfillmentGroupItemRequests = fulfillmentGroupItemRequests;
}
/**
* Deprecated in favor of {@link #getOption()}
* @see {@link FulfillmentOption}
*/
@Deprecated
public String getMethod() {
return method;
}
/**
* Deprecated in favor of {@link #setOption(FulfillmentOption)}
* @see {@link FulfillmentOption}
*/
@Deprecated
public void setMethod(String method) {
this.method = method;
}
/**
* Deprecated in favor of {@link #getOption()}
* @see {@link FulfillmentOption}
*/
@Deprecated
public String getService() {
return service;
}
/**
* Deprecated in favor of {@link #setOption(FulfillmentOption)}
* @see {@link FulfillmentOption}
*/
@Deprecated
public void setService(String service) {
this.service = service;
}
}