Package de.adorsys.psd2.model
Enum ConsentStatus
- java.lang.Object
-
- java.lang.Enum<ConsentStatus>
-
- de.adorsys.psd2.model.ConsentStatus
-
- All Implemented Interfaces:
Serializable,Comparable<ConsentStatus>
public enum ConsentStatus extends Enum<ConsentStatus>
This is the overall lifecycle status of the consent. Valid values are: - 'received': The consent data have been received and are technically correct. The data is not authorised yet. - 'rejected': The consent data have been rejected e.g. since no successful authorisation has taken place. - 'valid': The consent is accepted and valid for GET account data calls and others as specified in the consent object. - 'revokedByPsu': The consent has been revoked by the PSU towards the ASPSP. - 'expired': The consent expired. - 'terminatedByTpp': The corresponding TPP has terminated the consent by applying the DELETE method to the consent resource. - 'partiallyAuthorised': The consent is due to a multi-level authorisation, some but not all mandated authorisations have been performed yet. The ASPSP might add further codes. These codes then shall be contained in the ASPSP's documentation of the XS2A interface and has to be added to this API definition as well.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXPIREDPARTIALLYAUTHORISEDRECEIVEDREJECTEDREVOKEDBYPSUTERMINATEDBYTPPVALID
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConsentStatusfromValue(String text)StringtoString()static ConsentStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static ConsentStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RECEIVED
public static final ConsentStatus RECEIVED
-
REJECTED
public static final ConsentStatus REJECTED
-
VALID
public static final ConsentStatus VALID
-
REVOKEDBYPSU
public static final ConsentStatus REVOKEDBYPSU
-
EXPIRED
public static final ConsentStatus EXPIRED
-
TERMINATEDBYTPP
public static final ConsentStatus TERMINATEDBYTPP
-
PARTIALLYAUTHORISED
public static final ConsentStatus PARTIALLYAUTHORISED
-
-
Method Detail
-
values
public static ConsentStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConsentStatus c : ConsentStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConsentStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<ConsentStatus>
-
fromValue
public static ConsentStatus fromValue(String text)
-
-