001    /*
002     * Copyright 2007 The Kuali Foundation
003     * 
004     * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
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    
017    package edu.sampleu.financial.bo;
018    
019    import java.sql.Date;
020    import java.util.ArrayList;
021    import java.util.LinkedHashMap;
022    import java.util.List;
023    
024    import org.apache.commons.lang.StringUtils;
025    import org.apache.log4j.Logger;
026    import org.kuali.rice.core.util.type.KualiDecimal;
027    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
028    import org.kuali.rice.kns.util.ObjectUtils;
029    
030    /**
031     * Contains all data for a specific parent or division Vendor, including a link to the <code>VendorHeader</code>, which only
032     * contains information about the parent company, but can be shared between division Vendors.
033     *
034     * @see org.kuali.kfs.vnd.businessobject.VendorHeader
035     */
036    public class VendorDetail extends PersistableBusinessObjectBase { //implements VendorRoutingComparable {
037        private static Logger LOG = Logger.getLogger(VendorDetail.class);
038    
039        private Integer vendorHeaderGeneratedIdentifier;
040        private Integer vendorDetailAssignedIdentifier;
041        private String vendorNumber; // not persisted in the db
042        private boolean vendorParentIndicator;
043        private String vendorName;
044        private String vendorFirstName; // not persisted in the db
045        private String vendorLastName; // not persisted in the db
046        private String vendorStateForLookup; // not persisted in the db
047    
048        private boolean activeIndicator;
049        private String vendorInactiveReasonCode;
050        private String vendorDunsNumber;
051        private String vendorPaymentTermsCode;
052        private String vendorShippingTitleCode;
053        private String vendorShippingPaymentTermsCode;
054        private Boolean vendorConfirmationIndicator;
055        private Boolean vendorPrepaymentIndicator;
056        private Boolean vendorCreditCardIndicator;
057        private KualiDecimal vendorMinimumOrderAmount;
058        private String vendorUrlAddress;
059        private String vendorRemitName;
060        private Boolean vendorRestrictedIndicator;
061        private String vendorRestrictedReasonText;
062        private Date vendorRestrictedDate;
063        //    private String vendorRestrictedPersonIdentifier;
064        private String vendorSoldToNumber; // not persisted in the db
065        private Integer vendorSoldToGeneratedIdentifier;
066        private Integer vendorSoldToAssignedIdentifier;
067        private String vendorSoldToName;
068        private boolean vendorFirstLastNameIndicator;
069        private boolean taxableIndicator;
070    
071        private List<VendorAddress> vendorAddresses;
072    
073    //    private List<VendorAlias> vendorAliases;
074    //    private List<VendorContact> vendorContacts;
075    //    private List<VendorCustomerNumber> vendorCustomerNumbers;
076    //    private List<VendorPhoneNumber> vendorPhoneNumbers;
077    //    private List<VendorShippingSpecialCondition> vendorShippingSpecialConditions;
078    //    private List<VendorCommodityCode> vendorCommodities;
079    
080        private VendorHeader vendorHeader;
081        //    private VendorInactiveReason vendorInactiveReason;
082        private PaymentTermType vendorPaymentTerms;
083        //    private ShippingTitle vendorShippingTitle;
084        private ShippingPaymentTerms vendorShippingPaymentTerms;
085        private VendorDetail soldToVendorDetail;
086    //    private Person vendorRestrictedPerson;
087    
088        private String vendorParentName; // not persisted in the db
089        private String defaultAddressLine1; // not persisted in the db
090        private String defaultAddressLine2; // not persisted in the db
091        private String defaultAddressCity; // not persisted in the db
092        private String defaultAddressStateCode; // not persisted in the db
093        private String defaultAddressInternationalProvince; // not persisted in the db
094        private String defaultAddressPostalCode; // not persisted in the db
095        private String defaultAddressCountryCode; // not persisted in the db
096        private String defaultFaxNumber; // not persisted in the db
097    
098        /**
099         * Default constructor.
100         */
101        public VendorDetail() {
102            super();
103    
104            vendorHeader = new VendorHeader();
105            vendorAddresses = new ArrayList();
106            /*vendorAliases = new TypedArrayList(VendorAlias.class);
107            vendorContacts = new TypedArrayList(VendorContact.class);
108            vendorContracts = new TypedArrayList(VendorContract.class);
109            vendorCustomerNumbers = new TypedArrayList(VendorCustomerNumber.class);
110            vendorPhoneNumbers = new TypedArrayList(VendorPhoneNumber.class);
111            vendorShippingSpecialConditions = new TypedArrayList(VendorShippingSpecialCondition.class);
112            vendorCommodities = new TypedArrayList(VendorCommodityCode.class);*/
113            vendorParentIndicator = true;
114    
115        }
116    
117        public Integer getVendorHeaderGeneratedIdentifier() {
118            return vendorHeaderGeneratedIdentifier;
119        }
120    
121        public void setVendorHeaderGeneratedIdentifier(Integer vendorHeaderGeneratedIdentifier) {
122            this.vendorHeaderGeneratedIdentifier = vendorHeaderGeneratedIdentifier;
123        }
124    
125        public Integer getVendorDetailAssignedIdentifier() {
126            return vendorDetailAssignedIdentifier;
127        }
128    
129        public void setVendorDetailAssignedIdentifier(Integer vendorDetailAssignedIdentifier) {
130            this.vendorDetailAssignedIdentifier = vendorDetailAssignedIdentifier;
131        }
132    
133        /**
134         * A concatenation of the vendorHeaderGeneratedIdentifier, a dash, and the vendorDetailAssignedIdentifier
135         *
136         * @return Returns the vendorNumber.
137         */
138        public String getVendorNumber() {
139            String headerId = "";
140            String detailId = "";
141            String vendorNumber = "";
142            if (ObjectUtils.isNotNull(this.vendorHeaderGeneratedIdentifier)) {
143                headerId = this.vendorHeaderGeneratedIdentifier.toString();
144            }
145            if (ObjectUtils.isNotNull(this.vendorDetailAssignedIdentifier)) {
146                detailId = this.vendorDetailAssignedIdentifier.toString();
147            }
148            if (!StringUtils.isEmpty(headerId) && !StringUtils.isEmpty(detailId)) {
149                vendorNumber = headerId + "-" + detailId;
150            }
151    
152            return vendorNumber;
153        }
154    
155        /**
156         * Sets the vendorNumber attribute value.
157         * If vendorNumber is empty, clears header and detail IDs.
158         * If vendorNumber is invalid, leaves header and detail IDs as were.
159         *
160         * @param vendorNumber The vendorNumber to set.
161         */
162        public void setVendorNumber(String vendorNumber) {
163            this.vendorNumber = vendorNumber;
164    
165            if (StringUtils.isEmpty(vendorNumber)) {
166                vendorHeaderGeneratedIdentifier = null;
167                vendorDetailAssignedIdentifier = null;
168                return;
169            }
170    
171            int dashInd = vendorNumber.indexOf('-');
172            // make sure there's at least one char before and after '-'
173            if (dashInd > 0 && dashInd < vendorNumber.length() - 1) {
174                try {
175                    vendorHeaderGeneratedIdentifier = new Integer(vendorNumber.substring(0, dashInd));
176                    vendorDetailAssignedIdentifier = new Integer(vendorNumber.substring(dashInd + 1));
177                } catch (NumberFormatException e) {
178                    // in case of invalid number format
179                }
180            }
181        }
182    
183        public String getVendorName() {
184            return vendorName;
185        }
186    
187        public void setVendorName(String vendorName) {
188            this.vendorName = vendorName;
189        }
190    
191        public Integer getVendorSoldToGeneratedIdentifier() {
192            return vendorSoldToGeneratedIdentifier;
193        }
194    
195        public void setVendorSoldToGeneratedIdentifier(Integer vendorSoldToGeneratedIdentifier) {
196            this.vendorSoldToGeneratedIdentifier = vendorSoldToGeneratedIdentifier;
197        }
198    
199        public Integer getVendorSoldToAssignedIdentifier() {
200            return vendorSoldToAssignedIdentifier;
201        }
202    
203        public void setVendorSoldToAssignedIdentifier(Integer vendorSoldToAssignedIdentifier) {
204            this.vendorSoldToAssignedIdentifier = vendorSoldToAssignedIdentifier;
205        }
206    
207        /**
208         * Gets the vendorSoldToNumber attribute.
209         *
210         * @return Returns the vendorSoldToNumber.
211         */
212        public String getVendorSoldToNumber() {
213            String headerId = "";
214            String detailId = "";
215            String vendorSoldToNumber = "";
216    
217            if (this.vendorSoldToGeneratedIdentifier != null) {
218                headerId = this.vendorSoldToGeneratedIdentifier.toString();
219            }
220            if (this.vendorSoldToAssignedIdentifier != null) {
221                detailId = this.vendorSoldToAssignedIdentifier.toString();
222            }
223            if (!StringUtils.isEmpty(headerId) && !StringUtils.isEmpty(detailId)) {
224                vendorSoldToNumber = headerId + "-" + detailId;
225            }
226    
227            return vendorSoldToNumber;
228        }
229    
230        /**
231         * Sets the vendorSoldToNumber attribute value.
232         * If vendorSoldToNumber is empty, clears soldToVendor header and detail IDs.
233         * If vendorSoldToNumber is invalid, leaves soldToVendor header and detail IDs as were.
234         *
235         * @param vendorSoldToNumber The vendorSoldToNumber to set.
236         */
237        public void setVendorSoldToNumber(String vendorSoldToNumber) {
238            this.vendorSoldToNumber = vendorSoldToNumber;
239    
240            if (StringUtils.isEmpty(vendorSoldToNumber)) {
241                vendorSoldToGeneratedIdentifier = null;
242                vendorSoldToAssignedIdentifier = null;
243                return;
244            }
245    
246            int dashInd = vendorSoldToNumber.indexOf('-');
247            // make sure there's at least one char before and after '-'
248            if (dashInd > 0 && dashInd < vendorSoldToNumber.length() - 1) {
249                try {
250                    vendorSoldToGeneratedIdentifier = new Integer(vendorSoldToNumber.substring(0, dashInd));
251                    vendorSoldToAssignedIdentifier = new Integer(vendorSoldToNumber.substring(dashInd + 1));
252                } catch (NumberFormatException e) {
253                    // in case of invalid number format
254                }
255            }
256        }
257    
258        /**
259         * Gets the vendorSoldToName attribute.
260         *
261         * @return Returns the vendorSoldToName
262         */
263        public String getVendorSoldToName() {
264            return this.vendorSoldToName;
265        }
266    
267        public void setVendorSoldToName(String vendorSoldToName) {
268            this.vendorSoldToName = vendorSoldToName;
269        }
270    
271        public String getAltVendorName() {
272            return vendorName;
273        }
274    
275        public void setAltVendorName(String altVendorName) {
276            this.vendorName = altVendorName;
277        }
278    
279        public String getVendorRemitName() {
280            return vendorRemitName;
281        }
282    
283        public void setVendorRemitName(String vendorRemitName) {
284            this.vendorRemitName = vendorRemitName;
285        }
286    
287        public boolean isVendorParentIndicator() {
288            return vendorParentIndicator;
289        }
290    
291        public void setVendorParentIndicator(boolean vendorParentIndicator) {
292            this.vendorParentIndicator = vendorParentIndicator;
293        }
294    
295        public boolean isTaxableIndicator() {
296            return taxableIndicator;
297        }
298    
299        public void setTaxableIndicator(boolean taxableIndicator) {
300            this.taxableIndicator = taxableIndicator;
301        }
302    
303        public boolean isVendorDebarred() {
304            return (ObjectUtils.isNotNull(getVendorHeader().getVendorDebarredIndicator()) && getVendorHeader().getVendorDebarredIndicator());
305        }
306    
307        public boolean isActiveIndicator() {
308            return activeIndicator;
309        }
310    
311        public void setActiveIndicator(boolean activeIndicator) {
312            this.activeIndicator = activeIndicator;
313        }
314    
315    //    public String getVendorInactiveReasonCode() {
316    //        return vendorInactiveReasonCode;
317    //    }
318    //
319    //    public void setVendorInactiveReasonCode(String vendorInactiveReasonCode) {
320    //        this.vendorInactiveReasonCode = vendorInactiveReasonCode;
321    //    }
322    
323        public String getVendorPaymentTermsCode() {
324            return vendorPaymentTermsCode;
325        }
326    
327        public void setVendorPaymentTermsCode(String vendorPaymentTermsCode) {
328            this.vendorPaymentTermsCode = vendorPaymentTermsCode;
329        }
330    
331    //    public String getVendorShippingTitleCode() {
332    //        return vendorShippingTitleCode;
333    //    }
334    //
335    //    public void setVendorShippingTitleCode(String vendorShippingTitleCode) {
336    //        this.vendorShippingTitleCode = vendorShippingTitleCode;
337    //    }
338    
339        public String getVendorShippingPaymentTermsCode() {
340            return vendorShippingPaymentTermsCode;
341        }
342    
343        public void setVendorShippingPaymentTermsCode(String vendorShippingPaymentTermsCode) {
344            this.vendorShippingPaymentTermsCode = vendorShippingPaymentTermsCode;
345        }
346    
347        public Boolean getVendorConfirmationIndicator() {
348            return vendorConfirmationIndicator;
349        }
350    
351        public void setVendorConfirmationIndicator(Boolean vendorConfirmationIndicator) {
352            this.vendorConfirmationIndicator = vendorConfirmationIndicator;
353        }
354    
355        public Boolean getVendorPrepaymentIndicator() {
356            return vendorPrepaymentIndicator;
357        }
358    
359        public void setVendorPrepaymentIndicator(Boolean vendorPrepaymentIndicator) {
360            this.vendorPrepaymentIndicator = vendorPrepaymentIndicator;
361        }
362    
363        public Boolean getVendorCreditCardIndicator() {
364            return vendorCreditCardIndicator;
365        }
366    
367        public void setVendorCreditCardIndicator(Boolean vendorCreditCardIndicator) {
368            this.vendorCreditCardIndicator = vendorCreditCardIndicator;
369        }
370    
371        public KualiDecimal getVendorMinimumOrderAmount() {
372            return vendorMinimumOrderAmount;
373        }
374    
375        public void setVendorMinimumOrderAmount(KualiDecimal vendorMinimumOrderAmount) {
376            this.vendorMinimumOrderAmount = vendorMinimumOrderAmount;
377        }
378    
379        public String getVendorUrlAddress() {
380            return vendorUrlAddress;
381        }
382    
383        public void setVendorUrlAddress(String vendorUrlAddress) {
384            this.vendorUrlAddress = vendorUrlAddress;
385        }
386    
387        public Boolean getVendorRestrictedIndicator() {
388            return vendorRestrictedIndicator;
389        }
390    
391        public void setVendorRestrictedIndicator(Boolean vendorRestrictedIndicator) {
392            this.vendorRestrictedIndicator = vendorRestrictedIndicator;
393        }
394    
395        public String getVendorRestrictedReasonText() {
396            return vendorRestrictedReasonText;
397        }
398    
399        public void setVendorRestrictedReasonText(String vendorRestrictedReasonText) {
400            this.vendorRestrictedReasonText = vendorRestrictedReasonText;
401        }
402    
403        public Date getVendorRestrictedDate() {
404            return vendorRestrictedDate;
405        }
406    
407        public void setVendorRestrictedDate(Date vendorRestrictedDate) {
408            this.vendorRestrictedDate = vendorRestrictedDate;
409        }
410    
411        /*public String getVendorRestrictedPersonIdentifier() {
412            return vendorRestrictedPersonIdentifier;
413        }
414    
415        public void setVendorRestrictedPersonIdentifier(String vendorRestrictedPersonIdentifier) {
416            this.vendorRestrictedPersonIdentifier = vendorRestrictedPersonIdentifier;
417        }*/
418    
419        public String getVendorDunsNumber() {
420            return vendorDunsNumber;
421        }
422    
423        public void setVendorDunsNumber(String vendorDunsNumber) {
424            this.vendorDunsNumber = vendorDunsNumber;
425        }
426    
427        public VendorHeader getVendorHeader() {
428            return vendorHeader;
429        }
430    
431        public void setVendorHeader(VendorHeader vendorHeader) {
432            this.vendorHeader = vendorHeader;
433        }
434    
435        public PaymentTermType getVendorPaymentTerms() {
436            return vendorPaymentTerms;
437        }
438    
439        /**
440         * Sets the vendorPaymentTerms attribute.
441         *
442         * @param vendorPaymentTerms The vendorPaymentTerms to set.
443         * @deprecated
444         */
445        public void setVendorPaymentTerms(PaymentTermType vendorPaymentTerms) {
446            this.vendorPaymentTerms = vendorPaymentTerms;
447        }
448    
449    //    public ShippingTitle getVendorShippingTitle() {
450    //        return vendorShippingTitle;
451    //    }
452    
453        /**
454         * Sets the vendorShippingTitle attribute.
455         *
456         * @param vendorShippingTitle The vendorShippingTitle to set.
457         * @deprecated
458         */
459    //    public void setVendorShippingTitle(ShippingTitle vendorShippingTitle) {
460    //        this.vendorShippingTitle = vendorShippingTitle;
461    //    }
462        public ShippingPaymentTerms getVendorShippingPaymentTerms() {
463            return vendorShippingPaymentTerms;
464        }
465    
466        /**
467         * Sets the vendorShippingPaymentTerms attribute.
468         *
469         * @param vendorShippingPaymentTerms The vendorShippingPaymentTerms to set.
470         * @deprecated
471         */
472        public void setVendorShippingPaymentTerms(ShippingPaymentTerms vendorShippingPaymentTerms) {
473            this.vendorShippingPaymentTerms = vendorShippingPaymentTerms;
474        }
475    
476    //    public VendorInactiveReason getVendorInactiveReason() {
477    //        return vendorInactiveReason;
478    //    }
479    
480        /**
481         * Sets the vendorInactiveReason attribute value.
482         *
483         * @param vendorInactiveReason The vendorInactiveReason to set.
484         * @deprecated
485         */
486    //    public void setVendorInactiveReason(VendorInactiveReason vendorInactiveReason) {
487    //        this.vendorInactiveReason = vendorInactiveReason;
488    //    }
489        public List<VendorAddress> getVendorAddresses() {
490            return vendorAddresses;
491        }
492    
493        public void setVendorAddresses(List<VendorAddress> vendorAddresses) {
494            this.vendorAddresses = vendorAddresses;
495        }
496    
497        /*public List<VendorContact> getVendorContacts() {
498            return vendorContacts;
499        }
500    
501        public void setVendorContacts(List<VendorContact> vendorContacts) {
502            this.vendorContacts = vendorContacts;
503        }
504    
505        public List<VendorContract> getVendorContracts() {
506            return vendorContracts;
507        }
508    
509        public void setVendorContracts(List<VendorContract> vendorContracts) {
510            this.vendorContracts = vendorContracts;
511        }
512    
513        public List<VendorCustomerNumber> getVendorCustomerNumbers() {
514            return vendorCustomerNumbers;
515        }
516    
517        public void setVendorCustomerNumbers(List<VendorCustomerNumber> vendorCustomerNumbers) {
518            this.vendorCustomerNumbers = vendorCustomerNumbers;
519        }
520    
521        public List<VendorShippingSpecialCondition> getVendorShippingSpecialConditions() {
522            return vendorShippingSpecialConditions;
523        }
524    
525        public void setVendorShippingSpecialConditions(List<VendorShippingSpecialCondition> vendorShippingSpecialConditions) {
526            this.vendorShippingSpecialConditions = vendorShippingSpecialConditions;
527        }
528    
529        public List<VendorCommodityCode> getVendorCommodities() {
530            return vendorCommodities;
531        }
532    
533        public void setVendorCommodities(List<VendorCommodityCode> vendorCommodities) {
534            this.vendorCommodities = vendorCommodities;
535        }
536    
537        public List<VendorAlias> getVendorAliases() {
538            return vendorAliases;
539        }
540    
541        public void setVendorAliases(List<VendorAlias> vendorAliases) {
542            this.vendorAliases = vendorAliases;
543        }
544    
545        public List<VendorPhoneNumber> getVendorPhoneNumbers() {
546            return vendorPhoneNumbers;
547        }
548    
549        public void setVendorPhoneNumbers(List<VendorPhoneNumber> vendorPhoneNumbers) {
550            this.vendorPhoneNumbers = vendorPhoneNumbers;
551        }*/
552    
553        public String getVendorFirstName() {
554            return vendorFirstName;
555        }
556    
557        public void setVendorFirstName(String vendorFirstName) {
558            this.vendorFirstName = vendorFirstName;
559        }
560    
561        public String getVendorLastName() {
562            return vendorLastName;
563        }
564    
565        public void setVendorLastName(String vendorLastName) {
566            this.vendorLastName = vendorLastName;
567        }
568    
569        public VendorDetail getSoldToVendorDetail() {
570            return soldToVendorDetail;
571        }
572    
573        public void setSoldToVendorDetail(VendorDetail soldToVendorDetail) {
574            this.soldToVendorDetail = soldToVendorDetail;
575        }
576    
577        public boolean isVendorFirstLastNameIndicator() {
578            return vendorFirstLastNameIndicator;
579        }
580    
581        public void setVendorFirstLastNameIndicator(boolean vendorFirstLastNameIndicator) {
582            this.vendorFirstLastNameIndicator = vendorFirstLastNameIndicator;
583        }
584    
585        public String getVendorStateForLookup() {
586            return vendorStateForLookup;
587        }
588    
589        public void setVendorStateForLookup(String vendorStateForLookup) {
590            this.vendorStateForLookup = vendorStateForLookup;
591        }
592    
593    //    public Person getVendorRestrictedPerson() {
594    //        vendorRestrictedPerson = SpringContext.getBean(org.kuali.rice.kim.service.PersonService.class).updatePersonIfNecessary(vendorRestrictedPersonIdentifier, vendorRestrictedPerson);
595    //        return vendorRestrictedPerson;
596    //    }
597    
598        /**
599         * Sets the vendorRestrictedPerson attribute.
600         *
601         * @param vendorRestrictedPerson The vendorRestrictedPerson to set.
602         * @deprecated
603         */
604    //    public void setVendorRestrictedPerson(Person vendorRestrictedPerson) {
605    //        this.vendorRestrictedPerson = vendorRestrictedPerson;
606    //    }
607        public String getDefaultAddressLine1() {
608            return defaultAddressLine1;
609        }
610    
611        public void setDefaultAddressLine1(String defaultAddressLine1) {
612            this.defaultAddressLine1 = defaultAddressLine1;
613        }
614    
615        public String getDefaultAddressCity() {
616            return defaultAddressCity;
617        }
618    
619        public void setDefaultAddressCity(String defaultAddressCity) {
620            this.defaultAddressCity = defaultAddressCity;
621        }
622    
623        public String getDefaultAddressLine2() {
624            return defaultAddressLine2;
625        }
626    
627        public void setDefaultAddressLine2(String defaultAddressLine2) {
628            this.defaultAddressLine2 = defaultAddressLine2;
629        }
630    
631        public String getDefaultAddressPostalCode() {
632            return defaultAddressPostalCode;
633        }
634    
635        public void setDefaultAddressPostalCode(String defaultAddressPostalCode) {
636            this.defaultAddressPostalCode = defaultAddressPostalCode;
637        }
638    
639        public String getDefaultAddressStateCode() {
640            return defaultAddressStateCode;
641        }
642    
643        public void setDefaultAddressStateCode(String defaultAddressStateCode) {
644            this.defaultAddressStateCode = defaultAddressStateCode;
645        }
646    
647        public String getDefaultAddressInternationalProvince() {
648            return defaultAddressInternationalProvince;
649        }
650    
651        public void setDefaultAddressInternationalProvince(String defaultAddressInternationalProvince) {
652            this.defaultAddressInternationalProvince = defaultAddressInternationalProvince;
653        }
654    
655        public String getDefaultAddressCountryCode() {
656            return defaultAddressCountryCode;
657        }
658    
659        public void setDefaultAddressCountryCode(String defaultAddressCountryCode) {
660            this.defaultAddressCountryCode = defaultAddressCountryCode;
661        }
662    
663        public String getDefaultFaxNumber() {
664            return defaultFaxNumber;
665        }
666    
667        public void setDefaultFaxNumber(String defaultFaxNumber) {
668            this.defaultFaxNumber = defaultFaxNumber;
669        }
670    
671        public void setVendorParentName(String vendorParentName) {
672            this.vendorParentName = vendorParentName;
673        }
674    
675    
676        public String getVendorInactiveReasonCode() {
677            return this.vendorInactiveReasonCode;
678        }
679    
680        public void setVendorInactiveReasonCode(String vendorInactiveReasonCode) {
681            this.vendorInactiveReasonCode = vendorInactiveReasonCode;
682        }
683    
684        public String getVendorShippingTitleCode() {
685            return this.vendorShippingTitleCode;
686        }
687    
688        public void setVendorShippingTitleCode(String vendorShippingTitleCode) {
689            this.vendorShippingTitleCode = vendorShippingTitleCode;
690        }
691    
692        public String getVendorParentName() {
693            return this.vendorParentName;
694        }
695    
696    
697    }
698