001// --------------------------------------------------------------------------------
002// Copyright 2002-2024 Echo Three, LLC
003//
004// Licensed under the Apache License, Version 2.0 (the "License");
005// you may not use this file except in compliance with the License.
006// You may obtain a copy of the License at
007//
008//     http://www.apache.org/licenses/LICENSE-2.0
009//
010// Unless required by applicable law or agreed to in writing, software
011// distributed under the License is distributed on an "AS IS" BASIS,
012// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013// See the License for the specific language governing permissions and
014// limitations under the License.
015// --------------------------------------------------------------------------------
016
017package com.echothree.model.control.vendor.common.transfer;
018
019import com.echothree.model.control.cancellationpolicy.common.transfer.CancellationPolicyTransfer;
020import com.echothree.model.control.item.common.transfer.ItemTransfer;
021import com.echothree.model.control.returnpolicy.common.transfer.ReturnPolicyTransfer;
022import com.echothree.model.control.workflow.common.transfer.WorkflowEntityStatusTransfer;
023import com.echothree.util.common.transfer.BaseTransfer;
024import com.echothree.util.common.transfer.ListWrapper;
025
026public class VendorItemTransfer
027        extends BaseTransfer {
028    
029    private ItemTransfer item;
030    private VendorTransfer vendor;
031    private String vendorItemName;
032    private String description;
033    private Integer priority;
034    private CancellationPolicyTransfer cancellationPolicy;
035    private ReturnPolicyTransfer returnPolicy;
036    private WorkflowEntityStatusTransfer vendorItemStatus;
037    
038    private ListWrapper<VendorItemCostTransfer> vendorItemCosts;
039    
040    /** Creates a new instance of VendorItemTransfer */
041    public VendorItemTransfer(ItemTransfer item, VendorTransfer vendor, String vendorItemName, String description, Integer priority,
042            CancellationPolicyTransfer cancellationPolicy, ReturnPolicyTransfer returnPolicy, WorkflowEntityStatusTransfer vendorItemStatus) {
043        this.item = item;
044        this.vendor = vendor;
045        this.vendorItemName = vendorItemName;
046        this.description = description;
047        this.priority = priority;
048        this.cancellationPolicy = cancellationPolicy;
049        this.returnPolicy = returnPolicy;
050        this.vendorItemStatus = vendorItemStatus;
051    }
052
053    /**
054     * Returns the item.
055     * @return the item
056     */
057    public ItemTransfer getItem() {
058        return item;
059    }
060
061    /**
062     * Sets the item.
063     * @param item the item to set
064     */
065    public void setItem(ItemTransfer item) {
066        this.item = item;
067    }
068
069    /**
070     * Returns the vendor.
071     * @return the vendor
072     */
073    public VendorTransfer getVendor() {
074        return vendor;
075    }
076
077    /**
078     * Sets the vendor.
079     * @param vendor the vendor to set
080     */
081    public void setVendor(VendorTransfer vendor) {
082        this.vendor = vendor;
083    }
084
085    /**
086     * Returns the vendorItemName.
087     * @return the vendorItemName
088     */
089    public String getVendorItemName() {
090        return vendorItemName;
091    }
092
093    /**
094     * Sets the vendorItemName.
095     * @param vendorItemName the vendorItemName to set
096     */
097    public void setVendorItemName(String vendorItemName) {
098        this.vendorItemName = vendorItemName;
099    }
100
101    /**
102     * Returns the description.
103     * @return the description
104     */
105    public String getDescription() {
106        return description;
107    }
108
109    /**
110     * Sets the description.
111     * @param description the description to set
112     */
113    public void setDescription(String description) {
114        this.description = description;
115    }
116
117    /**
118     * Returns the priority.
119     * @return the priority
120     */
121    public Integer getPriority() {
122        return priority;
123    }
124
125    /**
126     * Sets the priority.
127     * @param priority the priority to set
128     */
129    public void setPriority(Integer priority) {
130        this.priority = priority;
131    }
132
133    /**
134     * Returns the cancellationPolicy.
135     * @return the cancellationPolicy
136     */
137    public CancellationPolicyTransfer getCancellationPolicy() {
138        return cancellationPolicy;
139    }
140
141    /**
142     * Sets the cancellationPolicy.
143     * @param cancellationPolicy the cancellationPolicy to set
144     */
145    public void setCancellationPolicy(CancellationPolicyTransfer cancellationPolicy) {
146        this.cancellationPolicy = cancellationPolicy;
147    }
148
149    /**
150     * Returns the returnPolicy.
151     * @return the returnPolicy
152     */
153    public ReturnPolicyTransfer getReturnPolicy() {
154        return returnPolicy;
155    }
156
157    /**
158     * Sets the returnPolicy.
159     * @param returnPolicy the returnPolicy to set
160     */
161    public void setReturnPolicy(ReturnPolicyTransfer returnPolicy) {
162        this.returnPolicy = returnPolicy;
163    }
164
165    /**
166     * Returns the vendorItemStatus.
167     * @return the vendorItemStatus
168     */
169    public WorkflowEntityStatusTransfer getVendorItemStatus() {
170        return vendorItemStatus;
171    }
172
173    /**
174     * Sets the vendorItemStatus.
175     * @param vendorItemStatus the vendorItemStatus to set
176     */
177    public void setVendorItemStatus(WorkflowEntityStatusTransfer vendorItemStatus) {
178        this.vendorItemStatus = vendorItemStatus;
179    }
180
181    /**
182     * Returns the vendorItemCosts.
183     * @return the vendorItemCosts
184     */
185    public ListWrapper<VendorItemCostTransfer> getVendorItemCosts() {
186        return vendorItemCosts;
187    }
188
189    /**
190     * Sets the vendorItemCosts.
191     * @param vendorItemCosts the vendorItemCosts to set
192     */
193    public void setVendorItemCosts(ListWrapper<VendorItemCostTransfer> vendorItemCosts) {
194        this.vendorItemCosts = vendorItemCosts;
195    }
196    
197}