All Downloads are FREE. Search and download functionalities are using the official Maven repository.

au.org.consumerdatastandards.holder.model.banking.BankingScheduledPaymentRecurrenceEventBased Maven / Gradle / Ivy

The newest version!
package au.org.consumerdatastandards.holder.model.banking;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Embeddable;
import java.util.Objects;

@ApiModel(description = "Indicates that the schedule of payments is defined according to an external event that cannot be predetermined. Mandatory if recurrenceUType is set to eventBased")
@Embeddable
public class BankingScheduledPaymentRecurrenceEventBased  {

    /**
     * Description of the event and conditions that will result in the payment. Expected to be formatted for display to a customer
     */
    private String description;

    public BankingScheduledPaymentRecurrenceEventBased description(String description) {
        this.description = description;
        return this;
    }

    @ApiModelProperty(required = true, value = "Description of the event and conditions that will result in the payment. Expected to be formatted for display to a customer")
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        BankingScheduledPaymentRecurrenceEventBased bankingScheduledPaymentRecurrenceEventBased = (BankingScheduledPaymentRecurrenceEventBased) o;
        return Objects.equals(this.description, bankingScheduledPaymentRecurrenceEventBased.description);
    }

    @Override
    public int hashCode() {
        return Objects.hash(
            description);
    }

    @Override
    public String toString() {
        return "class BankingScheduledPaymentRecurrenceEventBased {\n" +
            "   description: " + toIndentedString(description) + "\n" + 
            "}";
    }

    /**
     * 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    ");
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy