com.plaid.client.model.PaymentInitiationPaymentGetResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plaid-java Show documentation
Show all versions of plaid-java Show documentation
Bindings for the Plaid (plaid.com) API.
/*
* The Plaid API
* The Plaid REST API. Please see https://plaid.com/docs/api for more details.
*
* The version of the OpenAPI document: 2020-09-14_1.565.0
*
*
* 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.plaid.client.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 com.plaid.client.model.ExternalPaymentRefundDetails;
import com.plaid.client.model.ExternalPaymentScheduleGet;
import com.plaid.client.model.PaymentAmount;
import com.plaid.client.model.PaymentAmountRefunded;
import com.plaid.client.model.PaymentInitiationPayment;
import com.plaid.client.model.PaymentInitiationPaymentStatus;
import com.plaid.client.model.PaymentInitiationRecipientGetResponseAllOf;
import com.plaid.client.model.PaymentScheme;
import com.plaid.client.model.SenderBACSNullable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
/**
* PaymentInitiationPaymentGetResponse defines the response schema for `/payment_initation/payment/get`
*/
@ApiModel(description = "PaymentInitiationPaymentGetResponse defines the response schema for `/payment_initation/payment/get`")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-17T16:42:02.150702Z[Etc/UTC]")
public class PaymentInitiationPaymentGetResponse {
public static final String SERIALIZED_NAME_PAYMENT_ID = "payment_id";
@SerializedName(SERIALIZED_NAME_PAYMENT_ID)
private String paymentId;
public static final String SERIALIZED_NAME_AMOUNT = "amount";
@SerializedName(SERIALIZED_NAME_AMOUNT)
private PaymentAmount amount;
public static final String SERIALIZED_NAME_STATUS = "status";
@SerializedName(SERIALIZED_NAME_STATUS)
private PaymentInitiationPaymentStatus status;
public static final String SERIALIZED_NAME_RECIPIENT_ID = "recipient_id";
@SerializedName(SERIALIZED_NAME_RECIPIENT_ID)
private String recipientId;
public static final String SERIALIZED_NAME_REFERENCE = "reference";
@SerializedName(SERIALIZED_NAME_REFERENCE)
private String reference;
public static final String SERIALIZED_NAME_ADJUSTED_REFERENCE = "adjusted_reference";
@SerializedName(SERIALIZED_NAME_ADJUSTED_REFERENCE)
private String adjustedReference;
public static final String SERIALIZED_NAME_LAST_STATUS_UPDATE = "last_status_update";
@SerializedName(SERIALIZED_NAME_LAST_STATUS_UPDATE)
private OffsetDateTime lastStatusUpdate;
public static final String SERIALIZED_NAME_SCHEDULE = "schedule";
@SerializedName(SERIALIZED_NAME_SCHEDULE)
private ExternalPaymentScheduleGet schedule;
public static final String SERIALIZED_NAME_REFUND_DETAILS = "refund_details";
@SerializedName(SERIALIZED_NAME_REFUND_DETAILS)
private ExternalPaymentRefundDetails refundDetails;
public static final String SERIALIZED_NAME_BACS = "bacs";
@SerializedName(SERIALIZED_NAME_BACS)
private SenderBACSNullable bacs;
public static final String SERIALIZED_NAME_IBAN = "iban";
@SerializedName(SERIALIZED_NAME_IBAN)
private String iban;
public static final String SERIALIZED_NAME_REFUND_IDS = "refund_ids";
@SerializedName(SERIALIZED_NAME_REFUND_IDS)
private List refundIds = null;
public static final String SERIALIZED_NAME_AMOUNT_REFUNDED = "amount_refunded";
@SerializedName(SERIALIZED_NAME_AMOUNT_REFUNDED)
private PaymentAmountRefunded amountRefunded;
public static final String SERIALIZED_NAME_WALLET_ID = "wallet_id";
@SerializedName(SERIALIZED_NAME_WALLET_ID)
private String walletId;
public static final String SERIALIZED_NAME_SCHEME = "scheme";
@SerializedName(SERIALIZED_NAME_SCHEME)
private PaymentScheme scheme;
public static final String SERIALIZED_NAME_ADJUSTED_SCHEME = "adjusted_scheme";
@SerializedName(SERIALIZED_NAME_ADJUSTED_SCHEME)
private PaymentScheme adjustedScheme;
public static final String SERIALIZED_NAME_CONSENT_ID = "consent_id";
@SerializedName(SERIALIZED_NAME_CONSENT_ID)
private String consentId;
public static final String SERIALIZED_NAME_TRANSACTION_ID = "transaction_id";
@SerializedName(SERIALIZED_NAME_TRANSACTION_ID)
private String transactionId;
public static final String SERIALIZED_NAME_REQUEST_ID = "request_id";
@SerializedName(SERIALIZED_NAME_REQUEST_ID)
private String requestId;
public PaymentInitiationPaymentGetResponse paymentId(String paymentId) {
this.paymentId = paymentId;
return this;
}
/**
* The ID of the payment. Like all Plaid identifiers, the `payment_id` is case sensitive.
* @return paymentId
**/
@ApiModelProperty(required = true, value = "The ID of the payment. Like all Plaid identifiers, the `payment_id` is case sensitive.")
public String getPaymentId() {
return paymentId;
}
public void setPaymentId(String paymentId) {
this.paymentId = paymentId;
}
public PaymentInitiationPaymentGetResponse amount(PaymentAmount amount) {
this.amount = amount;
return this;
}
/**
* Get amount
* @return amount
**/
@ApiModelProperty(required = true, value = "")
public PaymentAmount getAmount() {
return amount;
}
public void setAmount(PaymentAmount amount) {
this.amount = amount;
}
public PaymentInitiationPaymentGetResponse status(PaymentInitiationPaymentStatus status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@ApiModelProperty(required = true, value = "")
public PaymentInitiationPaymentStatus getStatus() {
return status;
}
public void setStatus(PaymentInitiationPaymentStatus status) {
this.status = status;
}
public PaymentInitiationPaymentGetResponse recipientId(String recipientId) {
this.recipientId = recipientId;
return this;
}
/**
* The ID of the recipient
* @return recipientId
**/
@ApiModelProperty(required = true, value = "The ID of the recipient")
public String getRecipientId() {
return recipientId;
}
public void setRecipientId(String recipientId) {
this.recipientId = recipientId;
}
public PaymentInitiationPaymentGetResponse reference(String reference) {
this.reference = reference;
return this;
}
/**
* A reference for the payment.
* @return reference
**/
@ApiModelProperty(required = true, value = "A reference for the payment.")
public String getReference() {
return reference;
}
public void setReference(String reference) {
this.reference = reference;
}
public PaymentInitiationPaymentGetResponse adjustedReference(String adjustedReference) {
this.adjustedReference = adjustedReference;
return this;
}
/**
* The value of the reference sent to the bank after adjustment to pass bank validation rules.
* @return adjustedReference
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The value of the reference sent to the bank after adjustment to pass bank validation rules.")
public String getAdjustedReference() {
return adjustedReference;
}
public void setAdjustedReference(String adjustedReference) {
this.adjustedReference = adjustedReference;
}
public PaymentInitiationPaymentGetResponse lastStatusUpdate(OffsetDateTime lastStatusUpdate) {
this.lastStatusUpdate = lastStatusUpdate;
return this;
}
/**
* The date and time of the last time the `status` was updated, in IS0 8601 format
* @return lastStatusUpdate
**/
@ApiModelProperty(required = true, value = "The date and time of the last time the `status` was updated, in IS0 8601 format")
public OffsetDateTime getLastStatusUpdate() {
return lastStatusUpdate;
}
public void setLastStatusUpdate(OffsetDateTime lastStatusUpdate) {
this.lastStatusUpdate = lastStatusUpdate;
}
public PaymentInitiationPaymentGetResponse schedule(ExternalPaymentScheduleGet schedule) {
this.schedule = schedule;
return this;
}
/**
* Get schedule
* @return schedule
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public ExternalPaymentScheduleGet getSchedule() {
return schedule;
}
public void setSchedule(ExternalPaymentScheduleGet schedule) {
this.schedule = schedule;
}
public PaymentInitiationPaymentGetResponse refundDetails(ExternalPaymentRefundDetails refundDetails) {
this.refundDetails = refundDetails;
return this;
}
/**
* Get refundDetails
* @return refundDetails
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public ExternalPaymentRefundDetails getRefundDetails() {
return refundDetails;
}
public void setRefundDetails(ExternalPaymentRefundDetails refundDetails) {
this.refundDetails = refundDetails;
}
public PaymentInitiationPaymentGetResponse bacs(SenderBACSNullable bacs) {
this.bacs = bacs;
return this;
}
/**
* Get bacs
* @return bacs
**/
@javax.annotation.Nullable
@ApiModelProperty(required = true, value = "")
public SenderBACSNullable getBacs() {
return bacs;
}
public void setBacs(SenderBACSNullable bacs) {
this.bacs = bacs;
}
public PaymentInitiationPaymentGetResponse iban(String iban) {
this.iban = iban;
return this;
}
/**
* The International Bank Account Number (IBAN) for the sender, if specified in the `/payment_initiation/payment/create` call.
* @return iban
**/
@javax.annotation.Nullable
@ApiModelProperty(required = true, value = "The International Bank Account Number (IBAN) for the sender, if specified in the `/payment_initiation/payment/create` call.")
public String getIban() {
return iban;
}
public void setIban(String iban) {
this.iban = iban;
}
public PaymentInitiationPaymentGetResponse refundIds(List refundIds) {
this.refundIds = refundIds;
return this;
}
public PaymentInitiationPaymentGetResponse addRefundIdsItem(String refundIdsItem) {
if (this.refundIds == null) {
this.refundIds = new ArrayList<>();
}
this.refundIds.add(refundIdsItem);
return this;
}
/**
* Refund IDs associated with the payment.
* @return refundIds
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Refund IDs associated with the payment.")
public List getRefundIds() {
return refundIds;
}
public void setRefundIds(List refundIds) {
this.refundIds = refundIds;
}
public PaymentInitiationPaymentGetResponse amountRefunded(PaymentAmountRefunded amountRefunded) {
this.amountRefunded = amountRefunded;
return this;
}
/**
* Get amountRefunded
* @return amountRefunded
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public PaymentAmountRefunded getAmountRefunded() {
return amountRefunded;
}
public void setAmountRefunded(PaymentAmountRefunded amountRefunded) {
this.amountRefunded = amountRefunded;
}
public PaymentInitiationPaymentGetResponse walletId(String walletId) {
this.walletId = walletId;
return this;
}
/**
* The EMI (E-Money Institution) wallet that this payment is associated with, if any. This wallet is used as an intermediary account to enable Plaid to reconcile the settlement of funds for Payment Initiation requests.
* @return walletId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The EMI (E-Money Institution) wallet that this payment is associated with, if any. This wallet is used as an intermediary account to enable Plaid to reconcile the settlement of funds for Payment Initiation requests.")
public String getWalletId() {
return walletId;
}
public void setWalletId(String walletId) {
this.walletId = walletId;
}
public PaymentInitiationPaymentGetResponse scheme(PaymentScheme scheme) {
this.scheme = scheme;
return this;
}
/**
* Get scheme
* @return scheme
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public PaymentScheme getScheme() {
return scheme;
}
public void setScheme(PaymentScheme scheme) {
this.scheme = scheme;
}
public PaymentInitiationPaymentGetResponse adjustedScheme(PaymentScheme adjustedScheme) {
this.adjustedScheme = adjustedScheme;
return this;
}
/**
* Get adjustedScheme
* @return adjustedScheme
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public PaymentScheme getAdjustedScheme() {
return adjustedScheme;
}
public void setAdjustedScheme(PaymentScheme adjustedScheme) {
this.adjustedScheme = adjustedScheme;
}
public PaymentInitiationPaymentGetResponse consentId(String consentId) {
this.consentId = consentId;
return this;
}
/**
* The payment consent ID that this payment was initiated with. Is present only when payment was initiated using the payment consent.
* @return consentId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The payment consent ID that this payment was initiated with. Is present only when payment was initiated using the payment consent.")
public String getConsentId() {
return consentId;
}
public void setConsentId(String consentId) {
this.consentId = consentId;
}
public PaymentInitiationPaymentGetResponse transactionId(String transactionId) {
this.transactionId = transactionId;
return this;
}
/**
* The transaction ID that this payment is associated with, if any. This is present only when a payment was initiated using virtual accounts.
* @return transactionId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The transaction ID that this payment is associated with, if any. This is present only when a payment was initiated using virtual accounts.")
public String getTransactionId() {
return transactionId;
}
public void setTransactionId(String transactionId) {
this.transactionId = transactionId;
}
public PaymentInitiationPaymentGetResponse requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive.
* @return requestId
**/
@ApiModelProperty(required = true, value = "A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive.")
public String getRequestId() {
return requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PaymentInitiationPaymentGetResponse paymentInitiationPaymentGetResponse = (PaymentInitiationPaymentGetResponse) o;
return Objects.equals(this.paymentId, paymentInitiationPaymentGetResponse.paymentId) &&
Objects.equals(this.amount, paymentInitiationPaymentGetResponse.amount) &&
Objects.equals(this.status, paymentInitiationPaymentGetResponse.status) &&
Objects.equals(this.recipientId, paymentInitiationPaymentGetResponse.recipientId) &&
Objects.equals(this.reference, paymentInitiationPaymentGetResponse.reference) &&
Objects.equals(this.adjustedReference, paymentInitiationPaymentGetResponse.adjustedReference) &&
Objects.equals(this.lastStatusUpdate, paymentInitiationPaymentGetResponse.lastStatusUpdate) &&
Objects.equals(this.schedule, paymentInitiationPaymentGetResponse.schedule) &&
Objects.equals(this.refundDetails, paymentInitiationPaymentGetResponse.refundDetails) &&
Objects.equals(this.bacs, paymentInitiationPaymentGetResponse.bacs) &&
Objects.equals(this.iban, paymentInitiationPaymentGetResponse.iban) &&
Objects.equals(this.refundIds, paymentInitiationPaymentGetResponse.refundIds) &&
Objects.equals(this.amountRefunded, paymentInitiationPaymentGetResponse.amountRefunded) &&
Objects.equals(this.walletId, paymentInitiationPaymentGetResponse.walletId) &&
Objects.equals(this.scheme, paymentInitiationPaymentGetResponse.scheme) &&
Objects.equals(this.adjustedScheme, paymentInitiationPaymentGetResponse.adjustedScheme) &&
Objects.equals(this.consentId, paymentInitiationPaymentGetResponse.consentId) &&
Objects.equals(this.transactionId, paymentInitiationPaymentGetResponse.transactionId) &&
Objects.equals(this.requestId, paymentInitiationPaymentGetResponse.requestId);
}
@Override
public int hashCode() {
return Objects.hash(paymentId, amount, status, recipientId, reference, adjustedReference, lastStatusUpdate, schedule, refundDetails, bacs, iban, refundIds, amountRefunded, walletId, scheme, adjustedScheme, consentId, transactionId, requestId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PaymentInitiationPaymentGetResponse {\n");
sb.append(" paymentId: ").append(toIndentedString(paymentId)).append("\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" recipientId: ").append(toIndentedString(recipientId)).append("\n");
sb.append(" reference: ").append(toIndentedString(reference)).append("\n");
sb.append(" adjustedReference: ").append(toIndentedString(adjustedReference)).append("\n");
sb.append(" lastStatusUpdate: ").append(toIndentedString(lastStatusUpdate)).append("\n");
sb.append(" schedule: ").append(toIndentedString(schedule)).append("\n");
sb.append(" refundDetails: ").append(toIndentedString(refundDetails)).append("\n");
sb.append(" bacs: ").append(toIndentedString(bacs)).append("\n");
sb.append(" iban: ").append(toIndentedString(iban)).append("\n");
sb.append(" refundIds: ").append(toIndentedString(refundIds)).append("\n");
sb.append(" amountRefunded: ").append(toIndentedString(amountRefunded)).append("\n");
sb.append(" walletId: ").append(toIndentedString(walletId)).append("\n");
sb.append(" scheme: ").append(toIndentedString(scheme)).append("\n");
sb.append(" adjustedScheme: ").append(toIndentedString(adjustedScheme)).append("\n");
sb.append(" consentId: ").append(toIndentedString(consentId)).append("\n");
sb.append(" transactionId: ").append(toIndentedString(transactionId)).append("\n");
sb.append(" requestId: ").append(toIndentedString(requestId)).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 ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy