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.carrier.common.transfer;
018
019import com.echothree.model.control.accounting.common.transfer.CurrencyTransfer;
020import com.echothree.model.control.party.common.transfer.DateTimeFormatTransfer;
021import com.echothree.model.control.party.common.transfer.LanguageTransfer;
022import com.echothree.model.control.party.common.transfer.PartyGroupTransfer;
023import com.echothree.model.control.party.common.transfer.PartyTransfer;
024import com.echothree.model.control.party.common.transfer.PartyTypeTransfer;
025import com.echothree.model.control.party.common.transfer.PersonTransfer;
026import com.echothree.model.control.party.common.transfer.TimeZoneTransfer;
027import com.echothree.model.control.selector.common.transfer.SelectorTransfer;
028
029public class CarrierTransfer
030        extends PartyTransfer {
031    
032    private String carrierName;
033    private CarrierTypeTransfer carrierType;
034    private SelectorTransfer geoCodeSelector;
035    private SelectorTransfer itemSelector;
036    private String accountValidationPattern;
037    private Boolean isDefault;
038    private Integer sortOrder;
039    
040    /** Creates a new instance of CarrierTransfer */
041    public CarrierTransfer(String partyName, PartyTypeTransfer partyType, LanguageTransfer preferredLanguage, CurrencyTransfer preferredCurrency,
042            TimeZoneTransfer preferredTimeZone, DateTimeFormatTransfer preferredDateTimeFormat, PersonTransfer person, PartyGroupTransfer partyGroup,
043            String carrierName, CarrierTypeTransfer carrierType, SelectorTransfer geoCodeSelector, SelectorTransfer itemSelector,
044            String accountValidationPattern, Boolean isDefault, Integer sortOrder) {
045        super(partyName, partyType, preferredLanguage, preferredCurrency, preferredTimeZone, preferredDateTimeFormat, person, partyGroup, null);
046        
047        this.carrierName = carrierName;
048        this.carrierType = carrierType;
049        this.geoCodeSelector = geoCodeSelector;
050        this.itemSelector = itemSelector;
051        this.accountValidationPattern = accountValidationPattern;
052        this.isDefault = isDefault;
053        this.sortOrder = sortOrder;
054    }
055
056    /**
057     * Returns the carrierName.
058     * @return the carrierName
059     */
060    public String getCarrierName() {
061        return carrierName;
062    }
063
064    /**
065     * Sets the carrierName.
066     * @param carrierName the carrierName to set
067     */
068    public void setCarrierName(String carrierName) {
069        this.carrierName = carrierName;
070    }
071
072    /**
073     * Returns the carrierType.
074     * @return the carrierType
075     */
076    public CarrierTypeTransfer getCarrierType() {
077        return carrierType;
078    }
079
080    /**
081     * Sets the carrierType.
082     * @param carrierType the carrierType to set
083     */
084    public void setCarrierType(CarrierTypeTransfer carrierType) {
085        this.carrierType = carrierType;
086    }
087
088    /**
089     * Returns the geoCodeSelector.
090     * @return the geoCodeSelector
091     */
092    public SelectorTransfer getGeoCodeSelector() {
093        return geoCodeSelector;
094    }
095
096    /**
097     * Sets the geoCodeSelector.
098     * @param geoCodeSelector the geoCodeSelector to set
099     */
100    public void setGeoCodeSelector(SelectorTransfer geoCodeSelector) {
101        this.geoCodeSelector = geoCodeSelector;
102    }
103
104    /**
105     * Returns the itemSelector.
106     * @return the itemSelector
107     */
108    public SelectorTransfer getItemSelector() {
109        return itemSelector;
110    }
111
112    /**
113     * Sets the itemSelector.
114     * @param itemSelector the itemSelector to set
115     */
116    public void setItemSelector(SelectorTransfer itemSelector) {
117        this.itemSelector = itemSelector;
118    }
119
120    /**
121     * Returns the accountValidationPattern.
122     * @return the accountValidationPattern
123     */
124    public String getAccountValidationPattern() {
125        return accountValidationPattern;
126    }
127
128    /**
129     * Sets the accountValidationPattern.
130     * @param accountValidationPattern the accountValidationPattern to set
131     */
132    public void setAccountValidationPattern(String accountValidationPattern) {
133        this.accountValidationPattern = accountValidationPattern;
134    }
135
136    /**
137     * Returns the isDefault.
138     * @return the isDefault
139     */
140    public Boolean getIsDefault() {
141        return isDefault;
142    }
143
144    /**
145     * Sets the isDefault.
146     * @param isDefault the isDefault to set
147     */
148    public void setIsDefault(Boolean isDefault) {
149        this.isDefault = isDefault;
150    }
151
152    /**
153     * Returns the sortOrder.
154     * @return the sortOrder
155     */
156    public Integer getSortOrder() {
157        return sortOrder;
158    }
159
160    /**
161     * Sets the sortOrder.
162     * @param sortOrder the sortOrder to set
163     */
164    public void setSortOrder(Integer sortOrder) {
165        this.sortOrder = sortOrder;
166    }
167
168}