
de.adorsys.psd2.model.AdditionalInformationAccess Maven / Gradle / Ivy
package de.adorsys.psd2.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* Optional if supported by API provider. Is asking for additional information as added within this structured object. The usage of this data element requires at least one of the entries \"accounts\", \"transactions\" or \"balances\" also to be contained in the object. If detailed accounts are referenced, it is required in addition that any account addressed within the additionalInformation attribute is also addressed by at least one of the attributes \"accounts\", \"transactions\" or \"balances\".
*/
@ApiModel(description = "Optional if supported by API provider. Is asking for additional information as added within this structured object. The usage of this data element requires at least one of the entries \"accounts\", \"transactions\" or \"balances\" also to be contained in the object. If detailed accounts are referenced, it is required in addition that any account addressed within the additionalInformation attribute is also addressed by at least one of the attributes \"accounts\", \"transactions\" or \"balances\". ")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-05-24T13:41:46.273636+03:00[Europe/Kiev]")
public class AdditionalInformationAccess {
@JsonProperty("ownerName")
@Valid
private List ownerName = null;
@JsonProperty("trustedBeneficiaries")
@Valid
private List trustedBeneficiaries = null;
public AdditionalInformationAccess ownerName(List ownerName) {
this.ownerName = ownerName;
return this;
}
public AdditionalInformationAccess addOwnerNameItem(AccountReference ownerNameItem) {
if (this.ownerName == null) {
this.ownerName = new ArrayList<>();
}
this.ownerName.add(ownerNameItem);
return this;
}
/**
* Is asking for account owner name of the accounts referenced within. If the array is empty in the request, the TPP is asking for the account owner name of all accessible accounts. This may be restricted in a PSU/ASPSP authorization dialogue. If the array is empty, also the arrays for accounts, balances or transactions shall be empty, if used. The ASPSP will indicate in the consent resource after a successful authorisation, whether the ownerName consent can be accepted by providing the accounts on which the ownerName will be delivered. This array can be empty.
* @return ownerName
**/
@ApiModelProperty(value = "Is asking for account owner name of the accounts referenced within. If the array is empty in the request, the TPP is asking for the account owner name of all accessible accounts. This may be restricted in a PSU/ASPSP authorization dialogue. If the array is empty, also the arrays for accounts, balances or transactions shall be empty, if used. The ASPSP will indicate in the consent resource after a successful authorisation, whether the ownerName consent can be accepted by providing the accounts on which the ownerName will be delivered. This array can be empty. ")
@Valid
@JsonProperty("ownerName")
public List getOwnerName() {
return ownerName;
}
public void setOwnerName(List ownerName) {
this.ownerName = ownerName;
}
public AdditionalInformationAccess trustedBeneficiaries(List trustedBeneficiaries) {
this.trustedBeneficiaries = trustedBeneficiaries;
return this;
}
public AdditionalInformationAccess addTrustedBeneficiariesItem(AccountReference trustedBeneficiariesItem) {
if (this.trustedBeneficiaries == null) {
this.trustedBeneficiaries = new ArrayList<>();
}
this.trustedBeneficiaries.add(trustedBeneficiariesItem);
return this;
}
/**
* Optional if supported by API provider. Is asking for the trusted beneficiaries related to the accounts referenced within and related to the PSU. If the array is empty in the request, the TPP is asking for the lists of trusted beneficiaries of all accessible accounts. This may be restricted in a PSU/ASPSP authorization dialogue by the PSU if also the account lists addressed by the tags “accounts”, “balances” or “transactions” are empty. The ASPSP will indicate in the consent resource after a successful authorisation, whether the trustedBeneficiaries consent can be accepted by providing the accounts on which the list of trusted beneficiaries will be delivered. This array can be empty.
* @return trustedBeneficiaries
**/
@ApiModelProperty(value = "Optional if supported by API provider. Is asking for the trusted beneficiaries related to the accounts referenced within and related to the PSU. If the array is empty in the request, the TPP is asking for the lists of trusted beneficiaries of all accessible accounts. This may be restricted in a PSU/ASPSP authorization dialogue by the PSU if also the account lists addressed by the tags “accounts”, “balances” or “transactions” are empty. The ASPSP will indicate in the consent resource after a successful authorisation, whether the trustedBeneficiaries consent can be accepted by providing the accounts on which the list of trusted beneficiaries will be delivered. This array can be empty. ")
@Valid
@JsonProperty("trustedBeneficiaries")
public List getTrustedBeneficiaries() {
return trustedBeneficiaries;
}
public void setTrustedBeneficiaries(List trustedBeneficiaries) {
this.trustedBeneficiaries = trustedBeneficiaries;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
} AdditionalInformationAccess additionalInformationAccess = (AdditionalInformationAccess) o;
return Objects.equals(this.ownerName, additionalInformationAccess.ownerName) &&
Objects.equals(this.trustedBeneficiaries, additionalInformationAccess.trustedBeneficiaries);
}
@Override
public int hashCode() {
return Objects.hash(ownerName, trustedBeneficiaries);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AdditionalInformationAccess {\n");
sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n");
sb.append(" trustedBeneficiaries: ").append(toIndentedString(trustedBeneficiaries)).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 - 2025 Weber Informatics LLC | Privacy Policy