api

package
v0.0.0-...-bbf597c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2018 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL