lib/sepa/attribute_checks.rb
# Commands which are allowed for a specific bank
#
# @return [Array<Symbol>] the commands which are allowed for {Client#bank}.
Commands which are allowed for a specific bank
Commands which are allowed for a specific bank
def allowed_commands
      case bank
      when :nordea
        [
          STANDARD_COMMANDS,
          :get_certificate,
          :renew_certificate,
        ].flatten
      when :danske
        [
          STANDARD_COMMANDS - [:get_user_info],
          :create_certificate,
          :get_bank_certificate,
          :renew_certificate,
        ].flatten
      when :op
        [
          STANDARD_COMMANDS - [:get_user_info],
          :get_certificate,
          :get_service_certificates,
          :renew_certificate
        ].flatten
      when :samlink
        [
          STANDARD_COMMANDS - [:get_user_info],
          :get_certificate,
          :renew_certificate,
        ].flatten
      else
        []
      end
    end
def allowed_commands case bank when :nordea [ STANDARD_COMMANDS , :get_certificate , :renew_certificate , ] . flatten when :danske [ STANDARD_COMMANDS - [ :get_user_info ] , :create_certificate , :get_bank_certificate , :renew_certificate , ] . flatten when :op [ STANDARD_COMMANDS - [ :get_user_info ] , :get_certificate , :get_service_certificates , :renew_certificate ] . flatten when :samlink [ STANDARD_COMMANDS - [ :get_user_info ] , :get_certificate , :renew_certificate , ] . flatten else [ ] end end
Commands which are allowed for a specific bank
Commands which are allowed for a specific bank
the commands which are allowed for {Client#bank}.
the commands which are allowed for { Client#bank } .
Array<Symbol>