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.order.common.transfer; 018 019import com.echothree.model.control.accounting.common.transfer.CurrencyTransfer; 020import com.echothree.model.control.cancellationpolicy.common.transfer.CancellationPolicyTransfer; 021import com.echothree.model.control.returnpolicy.common.transfer.ReturnPolicyTransfer; 022import com.echothree.model.control.term.common.transfer.TermTransfer; 023import com.echothree.util.common.transfer.BaseTransfer; 024import com.echothree.util.common.transfer.MapWrapper; 025 026public class OrderTransfer 027 extends BaseTransfer { 028 029 private OrderTypeTransfer orderType; 030 protected String orderName; 031 private OrderPriorityTransfer orderPriority; 032 private CurrencyTransfer currency; 033 private Boolean holdUntilComplete; 034 private Boolean allowBackorders; 035 private Boolean allowSubstitutions; 036 private Boolean allowCombiningShipments; 037 private TermTransfer term; 038 private String reference; 039 private String description; 040 private CancellationPolicyTransfer cancellationPolicy; 041 private ReturnPolicyTransfer returnPolicy; 042 private Boolean taxable; 043 044 private MapWrapper<OrderRoleTransfer> orderRoles; 045 private MapWrapper<OrderTimeTransfer> orderTimes; 046 047 protected OrderTransfer(OrderTypeTransfer orderType, String orderName, OrderPriorityTransfer orderPriority, CurrencyTransfer currency, 048 Boolean holdUntilComplete, Boolean allowBackorders, Boolean allowSubstitutions, Boolean allowCombiningShipments, TermTransfer term, 049 String reference, String description, CancellationPolicyTransfer cancellationPolicy, ReturnPolicyTransfer returnPolicy, Boolean taxable) { 050 this.orderType = orderType; 051 this.orderName = orderName; 052 this.orderPriority = orderPriority; 053 this.currency = currency; 054 this.holdUntilComplete = holdUntilComplete; 055 this.allowBackorders = allowBackorders; 056 this.allowSubstitutions = allowSubstitutions; 057 this.allowCombiningShipments = allowCombiningShipments; 058 this.term = term; 059 this.reference = reference; 060 this.description = description; 061 this.cancellationPolicy = cancellationPolicy; 062 this.returnPolicy = returnPolicy; 063 this.taxable = taxable; 064 } 065 066 /** 067 * Returns the orderType. 068 * @return the orderType 069 */ 070 public OrderTypeTransfer getOrderType() { 071 return orderType; 072 } 073 074 /** 075 * Sets the orderType. 076 * @param orderType the orderType to set 077 */ 078 public void setOrderType(OrderTypeTransfer orderType) { 079 this.orderType = orderType; 080 } 081 082 /** 083 * Returns the orderName. 084 * @return the orderName 085 */ 086 public String getOrderName() { 087 return orderName; 088 } 089 090 /** 091 * Sets the orderName. 092 * @param orderName the orderName to set 093 */ 094 public void setOrderName(String orderName) { 095 this.orderName = orderName; 096 } 097 098 /** 099 * Returns the orderPriority. 100 * @return the orderPriority 101 */ 102 public OrderPriorityTransfer getOrderPriority() { 103 return orderPriority; 104 } 105 106 /** 107 * Sets the orderPriority. 108 * @param orderPriority the orderPriority to set 109 */ 110 public void setOrderPriority(OrderPriorityTransfer orderPriority) { 111 this.orderPriority = orderPriority; 112 } 113 114 /** 115 * Returns the currency. 116 * @return the currency 117 */ 118 public CurrencyTransfer getCurrency() { 119 return currency; 120 } 121 122 /** 123 * Sets the currency. 124 * @param currency the currency to set 125 */ 126 public void setCurrency(CurrencyTransfer currency) { 127 this.currency = currency; 128 } 129 130 /** 131 * Returns the holdUntilComplete. 132 * @return the holdUntilComplete 133 */ 134 public Boolean getHoldUntilComplete() { 135 return holdUntilComplete; 136 } 137 138 /** 139 * Sets the holdUntilComplete. 140 * @param holdUntilComplete the holdUntilComplete to set 141 */ 142 public void setHoldUntilComplete(Boolean holdUntilComplete) { 143 this.holdUntilComplete = holdUntilComplete; 144 } 145 146 /** 147 * Returns the allowBackorders. 148 * @return the allowBackorders 149 */ 150 public Boolean getAllowBackorders() { 151 return allowBackorders; 152 } 153 154 /** 155 * Sets the allowBackorders. 156 * @param allowBackorders the allowBackorders to set 157 */ 158 public void setAllowBackorders(Boolean allowBackorders) { 159 this.allowBackorders = allowBackorders; 160 } 161 162 /** 163 * Returns the allowSubstitutions. 164 * @return the allowSubstitutions 165 */ 166 public Boolean getAllowSubstitutions() { 167 return allowSubstitutions; 168 } 169 170 /** 171 * Sets the allowSubstitutions. 172 * @param allowSubstitutions the allowSubstitutions to set 173 */ 174 public void setAllowSubstitutions(Boolean allowSubstitutions) { 175 this.allowSubstitutions = allowSubstitutions; 176 } 177 178 /** 179 * Returns the allowCombiningShipments. 180 * @return the allowCombiningShipments 181 */ 182 public Boolean getAllowCombiningShipments() { 183 return allowCombiningShipments; 184 } 185 186 /** 187 * Sets the allowCombiningShipments. 188 * @param allowCombiningShipments the allowCombiningShipments to set 189 */ 190 public void setAllowCombiningShipments(Boolean allowCombiningShipments) { 191 this.allowCombiningShipments = allowCombiningShipments; 192 } 193 194 /** 195 * Returns the term. 196 * @return the term 197 */ 198 public TermTransfer getTerm() { 199 return term; 200 } 201 202 /** 203 * Sets the term. 204 * @param term the term to set 205 */ 206 public void setTerm(TermTransfer term) { 207 this.term = term; 208 } 209 210 /** 211 * Returns the reference. 212 * @return the reference 213 */ 214 public String getReference() { 215 return reference; 216 } 217 218 /** 219 * Sets the reference. 220 * @param reference the reference to set 221 */ 222 public void setReference(String reference) { 223 this.reference = reference; 224 } 225 226 /** 227 * Returns the description. 228 * @return the description 229 */ 230 public String getDescription() { 231 return description; 232 } 233 234 /** 235 * Sets the description. 236 * @param description the description to set 237 */ 238 public void setDescription(String description) { 239 this.description = description; 240 } 241 242 /** 243 * Returns the cancellationPolicy. 244 * @return the cancellationPolicy 245 */ 246 public CancellationPolicyTransfer getCancellationPolicy() { 247 return cancellationPolicy; 248 } 249 250 /** 251 * Sets the cancellationPolicy. 252 * @param cancellationPolicy the cancellationPolicy to set 253 */ 254 public void setCancellationPolicy(CancellationPolicyTransfer cancellationPolicy) { 255 this.cancellationPolicy = cancellationPolicy; 256 } 257 258 /** 259 * Returns the returnPolicy. 260 * @return the returnPolicy 261 */ 262 public ReturnPolicyTransfer getReturnPolicy() { 263 return returnPolicy; 264 } 265 266 /** 267 * Sets the returnPolicy. 268 * @param returnPolicy the returnPolicy to set 269 */ 270 public void setReturnPolicy(ReturnPolicyTransfer returnPolicy) { 271 this.returnPolicy = returnPolicy; 272 } 273 274 /** 275 * Returns the taxable. 276 * @return the taxable 277 */ 278 public Boolean getTaxable() { 279 return taxable; 280 } 281 282 /** 283 * Sets the taxable. 284 * @param taxable the taxable to set 285 */ 286 public void setTaxable(Boolean taxable) { 287 this.taxable = taxable; 288 } 289 290 /** 291 * Returns the orderRoles. 292 * @return the orderRoles 293 */ 294 public MapWrapper<OrderRoleTransfer> getOrderRoles() { 295 return orderRoles; 296 } 297 298 /** 299 * Sets the orderRoles. 300 * @param orderRoles the orderRoles to set 301 */ 302 public void setOrderRoles(MapWrapper<OrderRoleTransfer> orderRoles) { 303 this.orderRoles = orderRoles; 304 } 305 306 /** 307 * Returns the orderTimes. 308 * @return the orderTimes 309 */ 310 public MapWrapper<OrderTimeTransfer> getOrderTimes() { 311 return orderTimes; 312 } 313 314 /** 315 * Sets the orderTimes. 316 * @param orderTimes the orderTimes to set 317 */ 318 public void setOrderTimes(MapWrapper<OrderTimeTransfer> orderTimes) { 319 this.orderTimes = orderTimes; 320 } 321 322 }