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.term.common.transfer; 018 019import com.echothree.util.common.transfer.BaseTransfer; 020 021public class TermTransfer 022 extends BaseTransfer { 023 024 private String termName; 025 private TermTypeTransfer termType; 026 private Boolean isDefault; 027 private Integer sortOrder; 028 private String description; 029 030 // Standard Terms & Date Driven Terms 031 private String discountPercentage; 032 033 // Standard Terms 034 private String netDueDays; 035 private String discountDays; 036 037 // Date Driven Terms 038 private String netDueDayOfMonth; 039 private String dueNextMonthDays; 040 private String discountBeforeDayOfMonth; 041 042 /** Creates a new instance of TermTransfer */ 043 public TermTransfer(String termName, TermTypeTransfer termType, Boolean isDefault, Integer sortOrder, String description, String discountPercentage, String netDueDays, 044 String discountDays, String netDueDayOfMonth, String dueNextMonthDays, String discountBeforeDayOfMonth) { 045 this.termName = termName; 046 this.termType = termType; 047 this.isDefault = isDefault; 048 this.sortOrder = sortOrder; 049 this.description = description; 050 this.discountPercentage = discountPercentage; 051 this.netDueDays = netDueDays; 052 this.discountDays = discountDays; 053 this.netDueDayOfMonth = netDueDayOfMonth; 054 this.dueNextMonthDays = dueNextMonthDays; 055 this.discountBeforeDayOfMonth = discountBeforeDayOfMonth; 056 } 057 058 public TermTypeTransfer getTermType() { 059 return termType; 060 } 061 062 public void setTermType(TermTypeTransfer termType) { 063 this.termType = termType; 064 } 065 066 public String getTermName() { 067 return termName; 068 } 069 070 public void setTermName(String termName) { 071 this.termName = termName; 072 } 073 074 public Boolean getIsDefault() { 075 return isDefault; 076 } 077 078 public void setIsDefault(Boolean isDefault) { 079 this.isDefault = isDefault; 080 } 081 082 public Integer getSortOrder() { 083 return sortOrder; 084 } 085 086 public void setSortOrder(Integer sortOrder) { 087 this.sortOrder = sortOrder; 088 } 089 090 public String getDescription() { 091 return description; 092 } 093 094 public void setDescription(String description) { 095 this.description = description; 096 } 097 098 public String getDiscountPercentage() { 099 return discountPercentage; 100 } 101 102 public void setDiscountPercentage(String discountPercentage) { 103 this.discountPercentage = discountPercentage; 104 } 105 106 public String getNetDueDays() { 107 return netDueDays; 108 } 109 110 public void setNetDueDays(String netDueDays) { 111 this.netDueDays = netDueDays; 112 } 113 114 public String getDiscountDays() { 115 return discountDays; 116 } 117 118 public void setDiscountDays(String discountDays) { 119 this.discountDays = discountDays; 120 } 121 122 public String getNetDueDayOfMonth() { 123 return netDueDayOfMonth; 124 } 125 126 public void setNetDueDayOfMonth(String netDueDayOfMonth) { 127 this.netDueDayOfMonth = netDueDayOfMonth; 128 } 129 130 public String getDueNextMonthDays() { 131 return dueNextMonthDays; 132 } 133 134 public void setDueNextMonthDays(String dueNextMonthDays) { 135 this.dueNextMonthDays = dueNextMonthDays; 136 } 137 138 public String getDiscountBeforeDayOfMonth() { 139 return discountBeforeDayOfMonth; 140 } 141 142 public void setDiscountBeforeDayOfMonth(String discountBeforeDayOfMonth) { 143 this.discountBeforeDayOfMonth = discountBeforeDayOfMonth; 144 } 145 146}