Class AspspProfileServiceWrapper


  • @Service
    public class AspspProfileServiceWrapper
    extends Object
    • Constructor Detail

      • AspspProfileServiceWrapper

        public AspspProfileServiceWrapper()
    • Method Detail

      • getSupportedPaymentTypeAndProductMatrix

        public Map<de.adorsys.psd2.xs2a.core.profile.PaymentType,​Set<String>> getSupportedPaymentTypeAndProductMatrix()
        Gets a map with payment types and products allowed by current ASPSP from ASPSP profile service
        Returns:
        Map with payment types and products supported by current ASPSP
      • getScaApproaches

        public List<de.adorsys.psd2.xs2a.core.profile.ScaApproach> getScaApproaches()
        Reads list of sca approaches from ASPSP profile service
        Returns:
        List of Available SCA approaches for tpp
      • isTppSignatureRequired

        public boolean isTppSignatureRequired()
        Reads requirement of tpp signature from ASPSP profile service
        Returns:
        'true' if tpp signature is required, 'false' if not
      • getPisRedirectUrlToAspsp

        public String getPisRedirectUrlToAspsp()
        Reads get PIS redirect url to aspsp from ASPSP profile service
        Returns:
        Url in order to redirect SCA approach
      • getAisRedirectUrlToAspsp

        public String getAisRedirectUrlToAspsp()
        Reads get AIS redirect url to aspsp from ASPSP profile service
        Returns:
        Url in order to redirect SCA approach
      • getPiisRedirectUrlToAspsp

        public String getPiisRedirectUrlToAspsp()
        Reads get PIIS redirect url to aspsp from ASPSP profile service
        Returns:
        Url in order to redirect SCA approach
      • getSupportedAccountReferenceFields

        public List<SupportedAccountReferenceField> getSupportedAccountReferenceFields()
        Retrieves list of supported Xs2aAccountReference fields from ASPSP profile service
        Returns:
        List of supported fields
      • getMaxConsentValidityDays

        public int getMaxConsentValidityDays()
        Reads maximum lifetime of consent set in days
        Returns:
        int maximum lifetime of consent set in days
      • isGlobalConsentSupported

        public Boolean isGlobalConsentSupported()
        Reads value of globalConsentSupported from ASPSP profile service
        Returns:
        true if ASPSP supports Global consents, false if doesn't
      • isBankOfferedConsentSupported

        public boolean isBankOfferedConsentSupported()
        Reads value BankOfferedConsentSupported
        Returns:
        boolean representation of support of Bank Offered Consent
      • isTransactionsWithoutBalancesSupported

        public boolean isTransactionsWithoutBalancesSupported()
        Reads value of transactions without balances supported from ASPSP profile service
        Returns:
        true if ASPSP transactions without balances supported, false if doesn't
      • isSigningBasketSupported

        public boolean isSigningBasketSupported()
        Reads if signing basket supported from ASPSP profile service
        Returns:
        true if ASPSP supports signing basket , false if doesn't
      • isPaymentCancellationAuthorisationMandated

        public boolean isPaymentCancellationAuthorisationMandated()
        Reads if is payment cancellation authorisation mandated from ASPSP profile service
        Returns:
        true if payment cancellation authorisation is mandated, false if doesn't
      • getPiisConsentSupported

        public de.adorsys.psd2.xs2a.core.profile.PiisConsentSupported getPiisConsentSupported()
        Reads piis consent supported parameter
        Returns:
        piis consent supported parameter
      • getRedirectUrlExpirationTimeMs

        public long getRedirectUrlExpirationTimeMs()
        Reads redirect url expiration time in milliseconds
        Returns:
        long value of redirect url expiration time
      • getAuthorisationExpirationTimeMs

        public long getAuthorisationExpirationTimeMs()
        Reads authorisation expiration time in milliseconds
        Returns:
        long value of authorisation expiration time
      • getPisPaymentCancellationRedirectUrlToAspsp

        public String getPisPaymentCancellationRedirectUrlToAspsp()
        Reads get PIS payment cancellation redirect url to aspsp from ASPSP profile service
        Returns:
        Url in order to redirect SCA approach
      • isAvailableAccountsConsentSupported

        public boolean isAvailableAccountsConsentSupported()
        Reads if available accounts for a consent are supported from ASPSP profile service
        Returns:
        true if ASPSP supports available accounts for consent
      • isScaByOneTimeAvailableAccountsConsentRequired

        public boolean isScaByOneTimeAvailableAccountsConsentRequired()
        Reads if ASPSP requires usage of SCA to validate a one-time available accounts consent
        Returns:
        true if ASPSP requires usage of SCA to validate a one-time available accounts consent
      • isScaByOneTimeGlobalConsentRequired

        public boolean isScaByOneTimeGlobalConsentRequired()
        Reads if ASPSP requires usage of SCA to validate a one-time global consent
        Returns:
        true if ASPSP requires usage of SCA to validate a one-time global consent
      • isPsuInInitialRequestMandated

        public boolean isPsuInInitialRequestMandated()
        Reads if ASPSP requires PSU in initial request for payment initiation or establishing consent
        Returns:
        true if ASPSP requires PSU in initial request for payment initiation or establishing consent
      • isForceXs2aBaseLinksUrl

        public boolean isForceXs2aBaseLinksUrl()
        Reads if links shall be generated with the base URL set by `xs2aBaseLinksUrl`
        Returns:
        true if ASPSP requires that links shall be generated with the base URL set by `xs2aBaseLinksUrl` property
      • getXs2aBaseLinksUrl

        public String getXs2aBaseLinksUrl()
        Reads the url, which is used as base url for TPP Links in case when `forceXs2aBaseLinksUrl` property is set to "true"
        Returns:
        String value of the url
      • isAisPisSessionsSupported

        public boolean isAisPisSessionsSupported()
        Reads whether a payment initiation service will be addressed in the same "session" or not
        Returns:
        true if a payment initiation service will be addressed in the same session
      • isDeltaListSupported

        public boolean isDeltaListSupported()
        Reads if 'deltaListSupported' parameter in transaction report is supported from ASPSP profile service
        Returns:
        true if ASPSP supports 'deltaListSupported' parameter in transaction report
      • isEntryReferenceFromSupported

        public boolean isEntryReferenceFromSupported()
        Reads if 'entryReferenceFromSupported' parameter in transaction report is supported from ASPSP profile service
        Returns:
        true if ASPSP supports 'entryReferenceFromSupported' parameter in transaction report
      • getAvailableBookingStatuses

        public List<de.adorsys.psd2.xs2a.core.ais.BookingStatus> getAvailableBookingStatuses()
        Retrieves a list of available booking statuses from the ASPSP profile service
        Returns:
        list of available booking statuses
      • getStartAuthorisationMode

        public de.adorsys.psd2.xs2a.core.profile.StartAuthorisationMode getStartAuthorisationMode()
        Reads the mode of authorisation from the ASPSP profile service.
        Returns:
        String with the selected mode.
      • getScaRedirectFlow

        public de.adorsys.psd2.xs2a.core.profile.ScaRedirectFlow getScaRedirectFlow()
        Reads the variant of redirect approach to be used.
        Returns:
        the variant of redirect approach to be used.
      • getOauthConfigurationUrl

        public String getOauthConfigurationUrl()
        Reads the link to IDP.
        Returns:
        the URL.
      • getAccountAccessFrequencyPerDay

        public int getAccountAccessFrequencyPerDay()
        Reads the maximum allowed by bank accesses for consent's usage per unique resource for each endpoint.
        Returns:
        int limit of each endpoint usages.
      • getSupportedTransactionApplicationTypes

        public List<String> getSupportedTransactionApplicationTypes()
        Reads transaction application type supported by ASPSP (application/json, application/xml etc).
        Returns:
        List of transaction application type supported by ASPSP.
      • isAccountOwnerInformationSupported

        public boolean isAccountOwnerInformationSupported()
        Reads if 'accountOwnerInformationSupported' parameter is supported from ASPSP profile service
        Returns:
        true if ASPSP supports 'entryReferenceFromSupported' parameter in transaction report
      • isTrustedBeneficiariesSupported

        public boolean isTrustedBeneficiariesSupported()
        Reads if 'trustedBenefeciariesSupported' parameter is supported from ASPSP profile service
        Returns:
        true if ASPSP supports 'trustedBenefeciariesSupported', else otherwise
      • getSupportedPaymentCountryValidation

        public String getSupportedPaymentCountryValidation()
        For which country payment is supported
        Returns:
        country in ISO 3166-1 alpha-2 code (DE, AT, etc)
      • getMulticurrencyAccountLevel

        public de.adorsys.psd2.aspsp.profile.domain.MulticurrencyAccountLevel getMulticurrencyAccountLevel()
        Reads Multicurrency account level
        Returns:
        MulticurrencyAccountLevel object
      • getSupportedTransactionStatusFormats

        public List<String> getSupportedTransactionStatusFormats()
        Reads transaction status application types supported by ASPSP (application/json, application/xml etc).
        Returns:
        list of transaction status application types
      • isCheckTppRolesFromCertificateSupported

        public boolean isCheckTppRolesFromCertificateSupported()
        Reads if ASPSP supports validation TPP roles from certificate
        Returns:
        true if ASPSP supports validation TPP roles from certificate
      • getNotificationSupportedModes

        public List<de.adorsys.psd2.xs2a.core.profile.NotificationSupportedMode> getNotificationSupportedModes()
        Reads the supported modes of notification status services. Default and only value is 'NONE'.
        Returns:
        list of supported modes
      • isAuthorisationConfirmationRequestMandated

        public boolean isAuthorisationConfirmationRequestMandated()
        Shows if the confirmation of authorisation supported.
        Returns:
        true if ASPSP supports confirmation of authorisation, false otherwise.
      • isAuthorisationConfirmationCheckByXs2a

        public boolean isAuthorisationConfirmationCheckByXs2a()
        Shows if the authentication data should be checked by XS2A.
        Returns:
        true if XS2A must check the authentication data, false if it is ASPSP duty.
      • isCheckUriComplianceToDomainSupported

        public boolean isCheckUriComplianceToDomainSupported()
        Indicates whether ASPSP supports validation URIs with domain from certificate.
        Returns:
        true if ASPSP supports validation URIs with domain from certificate, false otherwise.
      • getTppUriComplianceResponse

        public de.adorsys.psd2.xs2a.core.profile.TppUriCompliance getTppUriComplianceResponse()
        Indicates which response TPP will get in case of invalid TPP URIs
        Returns:
        WARNING if in case of invalid URIs response should contain correct response and warning, REJECT if in case of invalid URIs request should be rejected with error
      • isPsuInInitialRequestIgnored

        public boolean isPsuInInitialRequestIgnored()
        Indicates if PSU-ID is ignored by XS2A, in case it's provided in Initial request for Payment request or Establishing Consent.
        Returns:
        true if PSU-ID is ignored by XS2A, in case it's provided in Initial request for Payment request or Establishing Consent, false otherwise.
      • isIbanValidationDisabled

        public boolean isIbanValidationDisabled()
        Indicates if iban validation is disabled
        Returns:
        true if iban validation is disabled, false otherwise.
      • isDebtorAccountOptionalInInitialRequest

        public boolean isDebtorAccountOptionalInInitialRequest()
        Indicates if debtorAccount is optional in initial request
        Returns:
        true if debtorAccount is optional in initial request, false otherwise.