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.payment.common.transfer.PartyPaymentMethodTransfer; 020import com.echothree.model.control.payment.common.transfer.PaymentMethodTransfer; 021import com.echothree.util.common.transfer.BaseTransfer; 022 023public class OrderPaymentPreferenceTransfer 024 extends BaseTransfer { 025 026 private Integer orderPaymentPreferenceSequence; 027 private PaymentMethodTransfer paymentMethod; 028 private PartyPaymentMethodTransfer partyPaymentMethod; 029 private Boolean wasPresent; 030 private Long unformattedMaximumAmount; 031 private String maximumAmount; 032 private Integer sortOrder; 033 034 /** Creates a new instance of OrderPaymentPreferenceTransfer */ 035 public OrderPaymentPreferenceTransfer(Integer orderPaymentPreferenceSequence, PaymentMethodTransfer paymentMethod, 036 PartyPaymentMethodTransfer partyPaymentMethod, Boolean wasPresent, Long unformattedMaximumAmount, String maximumAmount, Integer sortOrder) { 037 this.orderPaymentPreferenceSequence = orderPaymentPreferenceSequence; 038 this.paymentMethod = paymentMethod; 039 this.partyPaymentMethod = partyPaymentMethod; 040 this.wasPresent = wasPresent; 041 this.unformattedMaximumAmount = unformattedMaximumAmount; 042 this.maximumAmount = maximumAmount; 043 this.sortOrder = sortOrder; 044 } 045 046 /** 047 * Returns the orderPaymentPreferenceSequence. 048 * @return the orderPaymentPreferenceSequence 049 */ 050 public Integer getOrderPaymentPreferenceSequence() { 051 return orderPaymentPreferenceSequence; 052 } 053 054 /** 055 * Sets the orderPaymentPreferenceSequence. 056 * @param orderPaymentPreferenceSequence the orderPaymentPreferenceSequence to set 057 */ 058 public void setOrderPaymentPreferenceSequence(Integer orderPaymentPreferenceSequence) { 059 this.orderPaymentPreferenceSequence = orderPaymentPreferenceSequence; 060 } 061 062 /** 063 * Returns the paymentMethod. 064 * @return the paymentMethod 065 */ 066 public PaymentMethodTransfer getPaymentMethod() { 067 return paymentMethod; 068 } 069 070 /** 071 * Sets the paymentMethod. 072 * @param paymentMethod the paymentMethod to set 073 */ 074 public void setPaymentMethod(PaymentMethodTransfer paymentMethod) { 075 this.paymentMethod = paymentMethod; 076 } 077 078 /** 079 * Returns the partyPaymentMethod. 080 * @return the partyPaymentMethod 081 */ 082 public PartyPaymentMethodTransfer getPartyPaymentMethod() { 083 return partyPaymentMethod; 084 } 085 086 /** 087 * Sets the partyPaymentMethod. 088 * @param partyPaymentMethod the partyPaymentMethod to set 089 */ 090 public void setPartyPaymentMethod(PartyPaymentMethodTransfer partyPaymentMethod) { 091 this.partyPaymentMethod = partyPaymentMethod; 092 } 093 094 /** 095 * Returns the wasPresent. 096 * @return the wasPresent 097 */ 098 public Boolean getWasPresent() { 099 return wasPresent; 100 } 101 102 /** 103 * Sets the wasPresent. 104 * @param wasPresent the wasPresent to set 105 */ 106 public void setWasPresent(Boolean wasPresent) { 107 this.wasPresent = wasPresent; 108 } 109 110 /** 111 * Returns the unformattedMaximumAmount. 112 * @return the unformattedMaximumAmount 113 */ 114 public Long getUnformattedMaximumAmount() { 115 return unformattedMaximumAmount; 116 } 117 118 /** 119 * Sets the unformattedMaximumAmount. 120 * @param unformattedMaximumAmount the unformattedMaximumAmount to set 121 */ 122 public void setUnformattedMaximumAmount(Long unformattedMaximumAmount) { 123 this.unformattedMaximumAmount = unformattedMaximumAmount; 124 } 125 126 /** 127 * Returns the maximumAmount. 128 * @return the maximumAmount 129 */ 130 public String getMaximumAmount() { 131 return maximumAmount; 132 } 133 134 /** 135 * Sets the maximumAmount. 136 * @param maximumAmount the maximumAmount to set 137 */ 138 public void setMaximumAmount(String maximumAmount) { 139 this.maximumAmount = maximumAmount; 140 } 141 142 /** 143 * Returns the sortOrder. 144 * @return the sortOrder 145 */ 146 public Integer getSortOrder() { 147 return sortOrder; 148 } 149 150 /** 151 * Sets the sortOrder. 152 * @param sortOrder the sortOrder to set 153 */ 154 public void setSortOrder(Integer sortOrder) { 155 this.sortOrder = sortOrder; 156 } 157 158}