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
017package org.kuali.ole.vnd.businessobject;
018
019import java.util.LinkedHashMap;
020
021import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
022import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
023
024/**
025 * Payment Terms for Shipping from a particular Vendor. Per Vendor as distinct from <code>PaymentTermType</code>.
026 * 
027 * @see org.kuali.ole.vnd.businessobject.PaymentTermType
028 */
029public class ShippingPaymentTerms extends PersistableBusinessObjectBase implements MutableInactivatable {
030
031    private String vendorShippingPaymentTermsCode;
032    private String vendorShippingPaymentTermsDescription;
033    private boolean vendorShippingPaymentTermsPayIndicator;
034    private boolean active;
035
036    /**
037     * Default constructor.
038     */
039    public ShippingPaymentTerms() {
040
041    }
042
043    public String getVendorShippingPaymentTermsCode() {
044
045        return vendorShippingPaymentTermsCode;
046    }
047
048    public void setVendorShippingPaymentTermsCode(String vendorShippingPaymentTermsCode) {
049        this.vendorShippingPaymentTermsCode = vendorShippingPaymentTermsCode;
050    }
051
052    public String getVendorShippingPaymentTermsDescription() {
053
054        return vendorShippingPaymentTermsDescription;
055    }
056
057    public void setVendorShippingPaymentTermsDescription(String vendorShippingPaymentTermsDescription) {
058        this.vendorShippingPaymentTermsDescription = vendorShippingPaymentTermsDescription;
059    }
060
061    public boolean getVendorShippingPaymentTermsPayIndicator() {
062
063        return vendorShippingPaymentTermsPayIndicator;
064    }
065
066    public void setVendorShippingPaymentTermsPayIndicator(boolean vendorShippingPaymentTermsPayIndicator) {
067        this.vendorShippingPaymentTermsPayIndicator = vendorShippingPaymentTermsPayIndicator;
068    }
069
070    public boolean isActive() {
071
072        return active;
073    }
074
075    public void setActive(boolean active) {
076        this.active = active;
077    }
078
079    /**
080     * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
081     */
082    protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
083        LinkedHashMap m = new LinkedHashMap();
084        m.put("vendorShippingPaymentTermsCode", this.vendorShippingPaymentTermsCode);
085
086        return m;
087    }
088}