com.unzer.payment.communication.json.JsonInstallmentSecuredRatePlan Maven / Gradle / Ivy
package com.unzer.payment.communication.json;
/*-
* #%L
* Unzer Java SDK
* %%
* Copyright (C) 2020 Unzer E-Com GmbH
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.unzer.payment.business.paymenttypes.InstallmentSecuredRate;
import com.unzer.payment.communication.JsonDateConverter;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class JsonInstallmentSecuredRatePlan extends JsonIdObject implements JsonObject {
private String iban;
private String bic;
private String accountHolder;
@JsonAdapter(JsonDateConverter.class)
private Date invoiceDate;
@JsonAdapter(JsonDateConverter.class)
private Date invoiceDueDate;
private int numberOfRates;
@SerializedName("dayOfPurchase")
@JsonAdapter(JsonDateConverter.class)
private Date orderDate;
private BigDecimal totalPurchaseAmount;
private BigDecimal totalInterestAmount;
private BigDecimal totalAmount;
private BigDecimal effectiveInterestRate;
private BigDecimal nominalInterestRate;
private BigDecimal feeFirstRate;
private BigDecimal feePerRate;
private BigDecimal monthlyRate;
private BigDecimal lastRate;
private List rateList = new ArrayList();
public int getNumberOfRates() {
return numberOfRates;
}
public void setNumberOfRates(int numberOfRates) {
this.numberOfRates = numberOfRates;
}
public Date getOrderDate() {
return orderDate;
}
public void setOrderDate(Date orderDate) {
this.orderDate = orderDate;
}
public BigDecimal getTotalPurchaseAmount() {
return totalPurchaseAmount;
}
public void setTotalPurchaseAmount(BigDecimal totalPurchaseAmount) {
this.totalPurchaseAmount = totalPurchaseAmount;
}
public BigDecimal getTotalInterestAmount() {
return totalInterestAmount;
}
public void setTotalInterestAmount(BigDecimal totalInterestAmount) {
this.totalInterestAmount = totalInterestAmount;
}
public BigDecimal getTotalAmount() {
return totalAmount;
}
public void setTotalAmount(BigDecimal totalAmount) {
this.totalAmount = totalAmount;
}
public BigDecimal getEffectiveInterestRate() {
return effectiveInterestRate;
}
public void setEffectiveInterestRate(BigDecimal effectiveInterestRate) {
this.effectiveInterestRate = effectiveInterestRate;
}
public BigDecimal getNominalInterestRate() {
return nominalInterestRate;
}
public void setNominalInterestRate(BigDecimal nominalInterestRate) {
this.nominalInterestRate = nominalInterestRate;
}
public BigDecimal getFeeFirstRate() {
return feeFirstRate;
}
public void setFeeFirstRate(BigDecimal feeFirstRate) {
this.feeFirstRate = feeFirstRate;
}
public BigDecimal getFeePerRate() {
return feePerRate;
}
public void setFeePerRate(BigDecimal feePerRate) {
this.feePerRate = feePerRate;
}
public BigDecimal getMonthlyRate() {
return monthlyRate;
}
public void setMonthlyRate(BigDecimal monthlyRate) {
this.monthlyRate = monthlyRate;
}
public BigDecimal getLastRate() {
return lastRate;
}
public void setLastRate(BigDecimal lastRate) {
this.lastRate = lastRate;
}
public List getRateList() {
return rateList;
}
public void setRateList(List rateList) {
this.rateList = rateList;
}
public String getIban() {
return iban;
}
public void setIban(String iban) {
this.iban = iban;
}
public String getBic() {
return bic;
}
public void setBic(String bic) {
this.bic = bic;
}
public Date getInvoiceDate() {
return invoiceDate;
}
public void setInvoiceDate(Date invoiceDate) {
this.invoiceDate = invoiceDate;
}
public Date getInvoiceDueDate() {
return invoiceDueDate;
}
public void setInvoiceDueDate(Date invoiceDueDate) {
this.invoiceDueDate = invoiceDueDate;
}
public String getAccountHolder() {
return accountHolder;
}
public void setAccountHolder(String accountHolder) {
this.accountHolder = accountHolder;
}
}