ex_bank_id v0.1.1 ExBankID View Source
Simple abstraction over the swedish BankID API.
Link to this section Summary
Link to this section Functions
Specs
auth(String.t(), url: String.t(), cert_file: String.t()) :: {:error, %ExBankID.Error.Api{details: term(), errorCode: term()} | binary()} | {:error, NimbleOptions.ValidationError.t()} | {:ok, %ExBankID.Auth.Response{ autoStartToken: term(), orderRef: term(), qrStartSecret: term(), qrStartToken: term() }}
See ExBankID.Auth.auth/2
.
Specs
cancel( String.t() | %ExBankID.Sign.Response{ autoStartToken: term(), orderRef: term(), qrStartSecret: term(), qrStartToken: term() } | %ExBankID.Auth.Response{ autoStartToken: term(), orderRef: term(), qrStartSecret: term(), qrStartToken: term() }, url: String.t(), cert_file: String.t() ) :: {:error, %ExBankID.Error.Api{details: term(), errorCode: term()} | binary()} | {:error, NimbleOptions.ValidationError.t()} | {:ok, %{}}
Specs
collect( String.t() | %ExBankID.Sign.Response{ autoStartToken: term(), orderRef: term(), qrStartSecret: term(), qrStartToken: term() } | %ExBankID.Auth.Response{ autoStartToken: term(), orderRef: term(), qrStartSecret: term(), qrStartToken: term() }, url: String.t(), cert_file: String.t() ) :: {:error, %ExBankID.Error.Api{details: term(), errorCode: term()} | binary()} | {:error, NimbleOptions.ValidationError.t()} | {:ok, %ExBankID.Collect.Response{ completionData: term(), hintCode: term(), orderRef: term(), status: term() }}
Specs
sign(String.t(), String.t(), url: String.t(), cert_file: String.t(), personal_number: String.t(), user_non_visible_data: String.t() ) :: {:error, %ExBankID.Error.Api{details: term(), errorCode: term()} | binary()} | {:error, NimbleOptions.ValidationError.t()} | {:ok, %ExBankID.Sign.Response{ autoStartToken: term(), orderRef: term(), qrStartSecret: term(), qrStartToken: term() }}
See ExBankID.Sign.sign/3
.