
com.adyen.model.checkout.AdditionalDataRatepay Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adyen-java-api-library Show documentation
Show all versions of adyen-java-api-library Show documentation
Adyen API Client Library for Java
/*
* Adyen Checkout API
*
* The version of the OpenAPI document: 71
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.adyen.model.checkout;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.core.JsonProcessingException;
/**
* AdditionalDataRatepay
*/
@JsonPropertyOrder({
AdditionalDataRatepay.JSON_PROPERTY_RATEPAY_INSTALLMENT_AMOUNT,
AdditionalDataRatepay.JSON_PROPERTY_RATEPAY_INTEREST_RATE,
AdditionalDataRatepay.JSON_PROPERTY_RATEPAY_LAST_INSTALLMENT_AMOUNT,
AdditionalDataRatepay.JSON_PROPERTY_RATEPAY_PAYMENT_FIRSTDAY,
AdditionalDataRatepay.JSON_PROPERTY_RATEPAYDATA_DELIVERY_DATE,
AdditionalDataRatepay.JSON_PROPERTY_RATEPAYDATA_DUE_DATE,
AdditionalDataRatepay.JSON_PROPERTY_RATEPAYDATA_INVOICE_DATE,
AdditionalDataRatepay.JSON_PROPERTY_RATEPAYDATA_INVOICE_ID
})
public class AdditionalDataRatepay {
public static final String JSON_PROPERTY_RATEPAY_INSTALLMENT_AMOUNT = "ratepay.installmentAmount";
private String ratepayInstallmentAmount;
public static final String JSON_PROPERTY_RATEPAY_INTEREST_RATE = "ratepay.interestRate";
private String ratepayInterestRate;
public static final String JSON_PROPERTY_RATEPAY_LAST_INSTALLMENT_AMOUNT = "ratepay.lastInstallmentAmount";
private String ratepayLastInstallmentAmount;
public static final String JSON_PROPERTY_RATEPAY_PAYMENT_FIRSTDAY = "ratepay.paymentFirstday";
private String ratepayPaymentFirstday;
public static final String JSON_PROPERTY_RATEPAYDATA_DELIVERY_DATE = "ratepaydata.deliveryDate";
private String ratepaydataDeliveryDate;
public static final String JSON_PROPERTY_RATEPAYDATA_DUE_DATE = "ratepaydata.dueDate";
private String ratepaydataDueDate;
public static final String JSON_PROPERTY_RATEPAYDATA_INVOICE_DATE = "ratepaydata.invoiceDate";
private String ratepaydataInvoiceDate;
public static final String JSON_PROPERTY_RATEPAYDATA_INVOICE_ID = "ratepaydata.invoiceId";
private String ratepaydataInvoiceId;
public AdditionalDataRatepay() {
}
/**
* Amount the customer has to pay each month.
*
* @param ratepayInstallmentAmount Amount the customer has to pay each month.
* @return the current {@code AdditionalDataRatepay} instance, allowing for method chaining
*/
public AdditionalDataRatepay ratepayInstallmentAmount(String ratepayInstallmentAmount) {
this.ratepayInstallmentAmount = ratepayInstallmentAmount;
return this;
}
/**
* Amount the customer has to pay each month.
* @return ratepayInstallmentAmount Amount the customer has to pay each month.
*/
@JsonProperty(JSON_PROPERTY_RATEPAY_INSTALLMENT_AMOUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRatepayInstallmentAmount() {
return ratepayInstallmentAmount;
}
/**
* Amount the customer has to pay each month.
*
* @param ratepayInstallmentAmount Amount the customer has to pay each month.
*/
@JsonProperty(JSON_PROPERTY_RATEPAY_INSTALLMENT_AMOUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRatepayInstallmentAmount(String ratepayInstallmentAmount) {
this.ratepayInstallmentAmount = ratepayInstallmentAmount;
}
/**
* Interest rate of this installment.
*
* @param ratepayInterestRate Interest rate of this installment.
* @return the current {@code AdditionalDataRatepay} instance, allowing for method chaining
*/
public AdditionalDataRatepay ratepayInterestRate(String ratepayInterestRate) {
this.ratepayInterestRate = ratepayInterestRate;
return this;
}
/**
* Interest rate of this installment.
* @return ratepayInterestRate Interest rate of this installment.
*/
@JsonProperty(JSON_PROPERTY_RATEPAY_INTEREST_RATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRatepayInterestRate() {
return ratepayInterestRate;
}
/**
* Interest rate of this installment.
*
* @param ratepayInterestRate Interest rate of this installment.
*/
@JsonProperty(JSON_PROPERTY_RATEPAY_INTEREST_RATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRatepayInterestRate(String ratepayInterestRate) {
this.ratepayInterestRate = ratepayInterestRate;
}
/**
* Amount of the last installment.
*
* @param ratepayLastInstallmentAmount Amount of the last installment.
* @return the current {@code AdditionalDataRatepay} instance, allowing for method chaining
*/
public AdditionalDataRatepay ratepayLastInstallmentAmount(String ratepayLastInstallmentAmount) {
this.ratepayLastInstallmentAmount = ratepayLastInstallmentAmount;
return this;
}
/**
* Amount of the last installment.
* @return ratepayLastInstallmentAmount Amount of the last installment.
*/
@JsonProperty(JSON_PROPERTY_RATEPAY_LAST_INSTALLMENT_AMOUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRatepayLastInstallmentAmount() {
return ratepayLastInstallmentAmount;
}
/**
* Amount of the last installment.
*
* @param ratepayLastInstallmentAmount Amount of the last installment.
*/
@JsonProperty(JSON_PROPERTY_RATEPAY_LAST_INSTALLMENT_AMOUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRatepayLastInstallmentAmount(String ratepayLastInstallmentAmount) {
this.ratepayLastInstallmentAmount = ratepayLastInstallmentAmount;
}
/**
* Calendar day of the first payment.
*
* @param ratepayPaymentFirstday Calendar day of the first payment.
* @return the current {@code AdditionalDataRatepay} instance, allowing for method chaining
*/
public AdditionalDataRatepay ratepayPaymentFirstday(String ratepayPaymentFirstday) {
this.ratepayPaymentFirstday = ratepayPaymentFirstday;
return this;
}
/**
* Calendar day of the first payment.
* @return ratepayPaymentFirstday Calendar day of the first payment.
*/
@JsonProperty(JSON_PROPERTY_RATEPAY_PAYMENT_FIRSTDAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRatepayPaymentFirstday() {
return ratepayPaymentFirstday;
}
/**
* Calendar day of the first payment.
*
* @param ratepayPaymentFirstday Calendar day of the first payment.
*/
@JsonProperty(JSON_PROPERTY_RATEPAY_PAYMENT_FIRSTDAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRatepayPaymentFirstday(String ratepayPaymentFirstday) {
this.ratepayPaymentFirstday = ratepayPaymentFirstday;
}
/**
* Date the merchant delivered the goods to the customer.
*
* @param ratepaydataDeliveryDate Date the merchant delivered the goods to the customer.
* @return the current {@code AdditionalDataRatepay} instance, allowing for method chaining
*/
public AdditionalDataRatepay ratepaydataDeliveryDate(String ratepaydataDeliveryDate) {
this.ratepaydataDeliveryDate = ratepaydataDeliveryDate;
return this;
}
/**
* Date the merchant delivered the goods to the customer.
* @return ratepaydataDeliveryDate Date the merchant delivered the goods to the customer.
*/
@JsonProperty(JSON_PROPERTY_RATEPAYDATA_DELIVERY_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRatepaydataDeliveryDate() {
return ratepaydataDeliveryDate;
}
/**
* Date the merchant delivered the goods to the customer.
*
* @param ratepaydataDeliveryDate Date the merchant delivered the goods to the customer.
*/
@JsonProperty(JSON_PROPERTY_RATEPAYDATA_DELIVERY_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRatepaydataDeliveryDate(String ratepaydataDeliveryDate) {
this.ratepaydataDeliveryDate = ratepaydataDeliveryDate;
}
/**
* Date by which the customer must settle the payment.
*
* @param ratepaydataDueDate Date by which the customer must settle the payment.
* @return the current {@code AdditionalDataRatepay} instance, allowing for method chaining
*/
public AdditionalDataRatepay ratepaydataDueDate(String ratepaydataDueDate) {
this.ratepaydataDueDate = ratepaydataDueDate;
return this;
}
/**
* Date by which the customer must settle the payment.
* @return ratepaydataDueDate Date by which the customer must settle the payment.
*/
@JsonProperty(JSON_PROPERTY_RATEPAYDATA_DUE_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRatepaydataDueDate() {
return ratepaydataDueDate;
}
/**
* Date by which the customer must settle the payment.
*
* @param ratepaydataDueDate Date by which the customer must settle the payment.
*/
@JsonProperty(JSON_PROPERTY_RATEPAYDATA_DUE_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRatepaydataDueDate(String ratepaydataDueDate) {
this.ratepaydataDueDate = ratepaydataDueDate;
}
/**
* Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date.
*
* @param ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date.
* @return the current {@code AdditionalDataRatepay} instance, allowing for method chaining
*/
public AdditionalDataRatepay ratepaydataInvoiceDate(String ratepaydataInvoiceDate) {
this.ratepaydataInvoiceDate = ratepaydataInvoiceDate;
return this;
}
/**
* Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date.
* @return ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date.
*/
@JsonProperty(JSON_PROPERTY_RATEPAYDATA_INVOICE_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRatepaydataInvoiceDate() {
return ratepaydataInvoiceDate;
}
/**
* Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date.
*
* @param ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date.
*/
@JsonProperty(JSON_PROPERTY_RATEPAYDATA_INVOICE_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRatepaydataInvoiceDate(String ratepaydataInvoiceDate) {
this.ratepaydataInvoiceDate = ratepaydataInvoiceDate;
}
/**
* Identification name or number for the invoice, defined by the merchant.
*
* @param ratepaydataInvoiceId Identification name or number for the invoice, defined by the merchant.
* @return the current {@code AdditionalDataRatepay} instance, allowing for method chaining
*/
public AdditionalDataRatepay ratepaydataInvoiceId(String ratepaydataInvoiceId) {
this.ratepaydataInvoiceId = ratepaydataInvoiceId;
return this;
}
/**
* Identification name or number for the invoice, defined by the merchant.
* @return ratepaydataInvoiceId Identification name or number for the invoice, defined by the merchant.
*/
@JsonProperty(JSON_PROPERTY_RATEPAYDATA_INVOICE_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRatepaydataInvoiceId() {
return ratepaydataInvoiceId;
}
/**
* Identification name or number for the invoice, defined by the merchant.
*
* @param ratepaydataInvoiceId Identification name or number for the invoice, defined by the merchant.
*/
@JsonProperty(JSON_PROPERTY_RATEPAYDATA_INVOICE_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRatepaydataInvoiceId(String ratepaydataInvoiceId) {
this.ratepaydataInvoiceId = ratepaydataInvoiceId;
}
/**
* Return true if this AdditionalDataRatepay object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AdditionalDataRatepay additionalDataRatepay = (AdditionalDataRatepay) o;
return Objects.equals(this.ratepayInstallmentAmount, additionalDataRatepay.ratepayInstallmentAmount) &&
Objects.equals(this.ratepayInterestRate, additionalDataRatepay.ratepayInterestRate) &&
Objects.equals(this.ratepayLastInstallmentAmount, additionalDataRatepay.ratepayLastInstallmentAmount) &&
Objects.equals(this.ratepayPaymentFirstday, additionalDataRatepay.ratepayPaymentFirstday) &&
Objects.equals(this.ratepaydataDeliveryDate, additionalDataRatepay.ratepaydataDeliveryDate) &&
Objects.equals(this.ratepaydataDueDate, additionalDataRatepay.ratepaydataDueDate) &&
Objects.equals(this.ratepaydataInvoiceDate, additionalDataRatepay.ratepaydataInvoiceDate) &&
Objects.equals(this.ratepaydataInvoiceId, additionalDataRatepay.ratepaydataInvoiceId);
}
@Override
public int hashCode() {
return Objects.hash(ratepayInstallmentAmount, ratepayInterestRate, ratepayLastInstallmentAmount, ratepayPaymentFirstday, ratepaydataDeliveryDate, ratepaydataDueDate, ratepaydataInvoiceDate, ratepaydataInvoiceId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AdditionalDataRatepay {\n");
sb.append(" ratepayInstallmentAmount: ").append(toIndentedString(ratepayInstallmentAmount)).append("\n");
sb.append(" ratepayInterestRate: ").append(toIndentedString(ratepayInterestRate)).append("\n");
sb.append(" ratepayLastInstallmentAmount: ").append(toIndentedString(ratepayLastInstallmentAmount)).append("\n");
sb.append(" ratepayPaymentFirstday: ").append(toIndentedString(ratepayPaymentFirstday)).append("\n");
sb.append(" ratepaydataDeliveryDate: ").append(toIndentedString(ratepaydataDeliveryDate)).append("\n");
sb.append(" ratepaydataDueDate: ").append(toIndentedString(ratepaydataDueDate)).append("\n");
sb.append(" ratepaydataInvoiceDate: ").append(toIndentedString(ratepaydataInvoiceDate)).append("\n");
sb.append(" ratepaydataInvoiceId: ").append(toIndentedString(ratepaydataInvoiceId)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
/**
* Create an instance of AdditionalDataRatepay given an JSON string
*
* @param jsonString JSON string
* @return An instance of AdditionalDataRatepay
* @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataRatepay
*/
public static AdditionalDataRatepay fromJson(String jsonString) throws JsonProcessingException {
return JSON.getMapper().readValue(jsonString, AdditionalDataRatepay.class);
}
/**
* Convert an instance of AdditionalDataRatepay to an JSON string
*
* @return JSON string
*/
public String toJson() throws JsonProcessingException {
return JSON.getMapper().writeValueAsString(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy