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

de.adorsys.multibanking.banking_gateway_b2c.model.PaymentTO Maven / Gradle / Ivy

/*
 * Bankinggateway B2C Rest API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 0.2-SNAPSHOT
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package de.adorsys.multibanking.banking_gateway_b2c.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import de.adorsys.multibanking.banking_gateway_b2c.model.AccountReferenceTO;
import de.adorsys.multibanking.banking_gateway_b2c.model.PaymentTOCurrency;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.OffsetDateTime;
/**
 * PaymentTO
 */

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2020-03-31T11:42:30.614Z[UTC]")
public class PaymentTO {
  @SerializedName("paymentId")
  private String paymentId = null;

  @SerializedName("executionId")
  private String executionId = null;

  @SerializedName("endToEndIdentification")
  private String endToEndIdentification = null;

  @SerializedName("debtorAccount")
  private AccountReferenceTO debtorAccount = null;

  @SerializedName("ultimateDebtor")
  private String ultimateDebtor = null;

  @SerializedName("currency")
  private PaymentTOCurrency currency = null;

  @SerializedName("amount")
  private BigDecimal amount = null;

  @SerializedName("creditorAccount")
  private AccountReferenceTO creditorAccount = null;

  @SerializedName("creditorAgent")
  private String creditorAgent = null;

  @SerializedName("creditorName")
  private String creditorName = null;

  @SerializedName("remittanceInformationUnstructured")
  private String remittanceInformationUnstructured = null;

  @SerializedName("requestedExecutionDate")
  private LocalDate requestedExecutionDate = null;

  @SerializedName("requestedExecutionTime")
  private OffsetDateTime requestedExecutionTime = null;

  @SerializedName("ultimateCreditor")
  private String ultimateCreditor = null;

  @SerializedName("purposeCode")
  private String purposeCode = null;

  @SerializedName("startDate")
  private LocalDate startDate = null;

  @SerializedName("endDate")
  private LocalDate endDate = null;

  /**
   * Gets or Sets executionRule
   */
  @JsonAdapter(ExecutionRuleEnum.Adapter.class)
  public enum ExecutionRuleEnum {
    FOLLOWING("FOLLOWING"),
    PRECEDING("PRECEDING");

    private String value;

    ExecutionRuleEnum(String value) {
      this.value = value;
    }
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }
    public static ExecutionRuleEnum fromValue(String text) {
      for (ExecutionRuleEnum b : ExecutionRuleEnum.values()) {
        if (String.valueOf(b.value).equals(text)) {
          return b;
        }
      }
      return null;
    }
    public static class Adapter extends TypeAdapter {
      @Override
      public void write(final JsonWriter jsonWriter, final ExecutionRuleEnum enumeration) throws IOException {
        jsonWriter.value(enumeration.getValue());
      }

      @Override
      public ExecutionRuleEnum read(final JsonReader jsonReader) throws IOException {
        String value = jsonReader.nextString();
        return ExecutionRuleEnum.fromValue(String.valueOf(value));
      }
    }
  }  @SerializedName("executionRule")
  private ExecutionRuleEnum executionRule = null;

  @SerializedName("frequency")
  private String frequency = null;

  @SerializedName("dayOfExecution")
  private String dayOfExecution = null;

  public PaymentTO paymentId(String paymentId) {
    this.paymentId = paymentId;
    return this;
  }

   /**
   * Get paymentId
   * @return paymentId
  **/
  @Schema(description = "")
  public String getPaymentId() {
    return paymentId;
  }

  public void setPaymentId(String paymentId) {
    this.paymentId = paymentId;
  }

  public PaymentTO executionId(String executionId) {
    this.executionId = executionId;
    return this;
  }

   /**
   * Get executionId
   * @return executionId
  **/
  @Schema(description = "")
  public String getExecutionId() {
    return executionId;
  }

  public void setExecutionId(String executionId) {
    this.executionId = executionId;
  }

  public PaymentTO endToEndIdentification(String endToEndIdentification) {
    this.endToEndIdentification = endToEndIdentification;
    return this;
  }

   /**
   * Get endToEndIdentification
   * @return endToEndIdentification
  **/
  @Schema(description = "")
  public String getEndToEndIdentification() {
    return endToEndIdentification;
  }

  public void setEndToEndIdentification(String endToEndIdentification) {
    this.endToEndIdentification = endToEndIdentification;
  }

  public PaymentTO debtorAccount(AccountReferenceTO debtorAccount) {
    this.debtorAccount = debtorAccount;
    return this;
  }

   /**
   * Get debtorAccount
   * @return debtorAccount
  **/
  @Schema(description = "")
  public AccountReferenceTO getDebtorAccount() {
    return debtorAccount;
  }

  public void setDebtorAccount(AccountReferenceTO debtorAccount) {
    this.debtorAccount = debtorAccount;
  }

  public PaymentTO ultimateDebtor(String ultimateDebtor) {
    this.ultimateDebtor = ultimateDebtor;
    return this;
  }

   /**
   * Get ultimateDebtor
   * @return ultimateDebtor
  **/
  @Schema(description = "")
  public String getUltimateDebtor() {
    return ultimateDebtor;
  }

  public void setUltimateDebtor(String ultimateDebtor) {
    this.ultimateDebtor = ultimateDebtor;
  }

  public PaymentTO currency(PaymentTOCurrency currency) {
    this.currency = currency;
    return this;
  }

   /**
   * Get currency
   * @return currency
  **/
  @Schema(description = "")
  public PaymentTOCurrency getCurrency() {
    return currency;
  }

  public void setCurrency(PaymentTOCurrency currency) {
    this.currency = currency;
  }

  public PaymentTO amount(BigDecimal amount) {
    this.amount = amount;
    return this;
  }

   /**
   * Get amount
   * @return amount
  **/
  @Schema(description = "")
  public BigDecimal getAmount() {
    return amount;
  }

  public void setAmount(BigDecimal amount) {
    this.amount = amount;
  }

  public PaymentTO creditorAccount(AccountReferenceTO creditorAccount) {
    this.creditorAccount = creditorAccount;
    return this;
  }

   /**
   * Get creditorAccount
   * @return creditorAccount
  **/
  @Schema(description = "")
  public AccountReferenceTO getCreditorAccount() {
    return creditorAccount;
  }

  public void setCreditorAccount(AccountReferenceTO creditorAccount) {
    this.creditorAccount = creditorAccount;
  }

  public PaymentTO creditorAgent(String creditorAgent) {
    this.creditorAgent = creditorAgent;
    return this;
  }

   /**
   * Get creditorAgent
   * @return creditorAgent
  **/
  @Schema(description = "")
  public String getCreditorAgent() {
    return creditorAgent;
  }

  public void setCreditorAgent(String creditorAgent) {
    this.creditorAgent = creditorAgent;
  }

  public PaymentTO creditorName(String creditorName) {
    this.creditorName = creditorName;
    return this;
  }

   /**
   * Get creditorName
   * @return creditorName
  **/
  @Schema(description = "")
  public String getCreditorName() {
    return creditorName;
  }

  public void setCreditorName(String creditorName) {
    this.creditorName = creditorName;
  }

  public PaymentTO remittanceInformationUnstructured(String remittanceInformationUnstructured) {
    this.remittanceInformationUnstructured = remittanceInformationUnstructured;
    return this;
  }

   /**
   * Get remittanceInformationUnstructured
   * @return remittanceInformationUnstructured
  **/
  @Schema(description = "")
  public String getRemittanceInformationUnstructured() {
    return remittanceInformationUnstructured;
  }

  public void setRemittanceInformationUnstructured(String remittanceInformationUnstructured) {
    this.remittanceInformationUnstructured = remittanceInformationUnstructured;
  }

  public PaymentTO requestedExecutionDate(LocalDate requestedExecutionDate) {
    this.requestedExecutionDate = requestedExecutionDate;
    return this;
  }

   /**
   * Get requestedExecutionDate
   * @return requestedExecutionDate
  **/
  @Schema(description = "")
  public LocalDate getRequestedExecutionDate() {
    return requestedExecutionDate;
  }

  public void setRequestedExecutionDate(LocalDate requestedExecutionDate) {
    this.requestedExecutionDate = requestedExecutionDate;
  }

  public PaymentTO requestedExecutionTime(OffsetDateTime requestedExecutionTime) {
    this.requestedExecutionTime = requestedExecutionTime;
    return this;
  }

   /**
   * Get requestedExecutionTime
   * @return requestedExecutionTime
  **/
  @Schema(description = "")
  public OffsetDateTime getRequestedExecutionTime() {
    return requestedExecutionTime;
  }

  public void setRequestedExecutionTime(OffsetDateTime requestedExecutionTime) {
    this.requestedExecutionTime = requestedExecutionTime;
  }

  public PaymentTO ultimateCreditor(String ultimateCreditor) {
    this.ultimateCreditor = ultimateCreditor;
    return this;
  }

   /**
   * Get ultimateCreditor
   * @return ultimateCreditor
  **/
  @Schema(description = "")
  public String getUltimateCreditor() {
    return ultimateCreditor;
  }

  public void setUltimateCreditor(String ultimateCreditor) {
    this.ultimateCreditor = ultimateCreditor;
  }

  public PaymentTO purposeCode(String purposeCode) {
    this.purposeCode = purposeCode;
    return this;
  }

   /**
   * Get purposeCode
   * @return purposeCode
  **/
  @Schema(description = "")
  public String getPurposeCode() {
    return purposeCode;
  }

  public void setPurposeCode(String purposeCode) {
    this.purposeCode = purposeCode;
  }

  public PaymentTO startDate(LocalDate startDate) {
    this.startDate = startDate;
    return this;
  }

   /**
   * Get startDate
   * @return startDate
  **/
  @Schema(description = "")
  public LocalDate getStartDate() {
    return startDate;
  }

  public void setStartDate(LocalDate startDate) {
    this.startDate = startDate;
  }

  public PaymentTO endDate(LocalDate endDate) {
    this.endDate = endDate;
    return this;
  }

   /**
   * Get endDate
   * @return endDate
  **/
  @Schema(description = "")
  public LocalDate getEndDate() {
    return endDate;
  }

  public void setEndDate(LocalDate endDate) {
    this.endDate = endDate;
  }

  public PaymentTO executionRule(ExecutionRuleEnum executionRule) {
    this.executionRule = executionRule;
    return this;
  }

   /**
   * Get executionRule
   * @return executionRule
  **/
  @Schema(description = "")
  public ExecutionRuleEnum getExecutionRule() {
    return executionRule;
  }

  public void setExecutionRule(ExecutionRuleEnum executionRule) {
    this.executionRule = executionRule;
  }

  public PaymentTO frequency(String frequency) {
    this.frequency = frequency;
    return this;
  }

   /**
   * Get frequency
   * @return frequency
  **/
  @Schema(description = "")
  public String getFrequency() {
    return frequency;
  }

  public void setFrequency(String frequency) {
    this.frequency = frequency;
  }

  public PaymentTO dayOfExecution(String dayOfExecution) {
    this.dayOfExecution = dayOfExecution;
    return this;
  }

   /**
   * Get dayOfExecution
   * @return dayOfExecution
  **/
  @Schema(description = "")
  public String getDayOfExecution() {
    return dayOfExecution;
  }

  public void setDayOfExecution(String dayOfExecution) {
    this.dayOfExecution = dayOfExecution;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PaymentTO paymentTO = (PaymentTO) o;
    return Objects.equals(this.paymentId, paymentTO.paymentId) &&
        Objects.equals(this.executionId, paymentTO.executionId) &&
        Objects.equals(this.endToEndIdentification, paymentTO.endToEndIdentification) &&
        Objects.equals(this.debtorAccount, paymentTO.debtorAccount) &&
        Objects.equals(this.ultimateDebtor, paymentTO.ultimateDebtor) &&
        Objects.equals(this.currency, paymentTO.currency) &&
        Objects.equals(this.amount, paymentTO.amount) &&
        Objects.equals(this.creditorAccount, paymentTO.creditorAccount) &&
        Objects.equals(this.creditorAgent, paymentTO.creditorAgent) &&
        Objects.equals(this.creditorName, paymentTO.creditorName) &&
        Objects.equals(this.remittanceInformationUnstructured, paymentTO.remittanceInformationUnstructured) &&
        Objects.equals(this.requestedExecutionDate, paymentTO.requestedExecutionDate) &&
        Objects.equals(this.requestedExecutionTime, paymentTO.requestedExecutionTime) &&
        Objects.equals(this.ultimateCreditor, paymentTO.ultimateCreditor) &&
        Objects.equals(this.purposeCode, paymentTO.purposeCode) &&
        Objects.equals(this.startDate, paymentTO.startDate) &&
        Objects.equals(this.endDate, paymentTO.endDate) &&
        Objects.equals(this.executionRule, paymentTO.executionRule) &&
        Objects.equals(this.frequency, paymentTO.frequency) &&
        Objects.equals(this.dayOfExecution, paymentTO.dayOfExecution);
  }

  @Override
  public int hashCode() {
    return Objects.hash(paymentId, executionId, endToEndIdentification, debtorAccount, ultimateDebtor, currency, amount, creditorAccount, creditorAgent, creditorName, remittanceInformationUnstructured, requestedExecutionDate, requestedExecutionTime, ultimateCreditor, purposeCode, startDate, endDate, executionRule, frequency, dayOfExecution);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PaymentTO {\n");
    
    sb.append("    paymentId: ").append(toIndentedString(paymentId)).append("\n");
    sb.append("    executionId: ").append(toIndentedString(executionId)).append("\n");
    sb.append("    endToEndIdentification: ").append(toIndentedString(endToEndIdentification)).append("\n");
    sb.append("    debtorAccount: ").append(toIndentedString(debtorAccount)).append("\n");
    sb.append("    ultimateDebtor: ").append(toIndentedString(ultimateDebtor)).append("\n");
    sb.append("    currency: ").append(toIndentedString(currency)).append("\n");
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
    sb.append("    creditorAccount: ").append(toIndentedString(creditorAccount)).append("\n");
    sb.append("    creditorAgent: ").append(toIndentedString(creditorAgent)).append("\n");
    sb.append("    creditorName: ").append(toIndentedString(creditorName)).append("\n");
    sb.append("    remittanceInformationUnstructured: ").append(toIndentedString(remittanceInformationUnstructured)).append("\n");
    sb.append("    requestedExecutionDate: ").append(toIndentedString(requestedExecutionDate)).append("\n");
    sb.append("    requestedExecutionTime: ").append(toIndentedString(requestedExecutionTime)).append("\n");
    sb.append("    ultimateCreditor: ").append(toIndentedString(ultimateCreditor)).append("\n");
    sb.append("    purposeCode: ").append(toIndentedString(purposeCode)).append("\n");
    sb.append("    startDate: ").append(toIndentedString(startDate)).append("\n");
    sb.append("    endDate: ").append(toIndentedString(endDate)).append("\n");
    sb.append("    executionRule: ").append(toIndentedString(executionRule)).append("\n");
    sb.append("    frequency: ").append(toIndentedString(frequency)).append("\n");
    sb.append("    dayOfExecution: ").append(toIndentedString(dayOfExecution)).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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy