Documentation ¶
Index ¶
- type Psd2HttpServer
- func (s Psd2HttpServer) AuthorisationBroker(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (s Psd2HttpServer) AuthorisePSU(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (s Psd2HttpServer) AuthoriseTransaction(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (s Psd2HttpServer) GetAccounts(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (s Psd2HttpServer) GetAccountsByID(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (s Psd2HttpServer) InitiatePayment(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (s Psd2HttpServer) StartAuthorisationWithPsuAuthentication(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Psd2HttpServer ¶
type Psd2HttpServer struct {
// contains filtered or unexported fields
}
Psd2HttpServer holds all http handlers for the PSD2 API
func NewMockedPsd2HttpServer ¶
func NewMockedPsd2HttpServer() (http.Handler, Psd2HttpServer)
NewMockedPsd2HttpServer creates an mocked PSD2 API server
func Psd2HttpServerFactory ¶
func Psd2HttpServerFactory(b data.BankRepository) (http.Handler, Psd2HttpServer)
Psd2HttpServerFactory injects the required dependencies into the PSD2 API server
func (Psd2HttpServer) AuthorisationBroker ¶
func (s Psd2HttpServer) AuthorisationBroker(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
AuthorisationBroker calls authorisation method
func (Psd2HttpServer) AuthorisePSU ¶
func (s Psd2HttpServer) AuthorisePSU(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
AuthorisePSU authorises a PSU by payment- and authorisation ID
func (Psd2HttpServer) AuthoriseTransaction ¶
func (s Psd2HttpServer) AuthoriseTransaction(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
AuthoriseTransaction authorises a payment by payment- and authorisation ID
func (Psd2HttpServer) GetAccounts ¶
func (s Psd2HttpServer) GetAccounts(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
GetAccounts returns a list of accounts
func (Psd2HttpServer) GetAccountsByID ¶
func (s Psd2HttpServer) GetAccountsByID(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
GetAccountsByID return an account by ID
func (Psd2HttpServer) InitiatePayment ¶
func (s Psd2HttpServer) InitiatePayment(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
InitiatePayment returns an payment by ID
func (Psd2HttpServer) StartAuthorisationWithPsuAuthentication ¶
func (s Psd2HttpServer) StartAuthorisationWithPsuAuthentication(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
StartAuthorisationWithPsuAuthentication creates authorisation for a payment by ID
Source Files ¶
Click to show internal directories.
Click to hide internal directories.