controllers

package
v0.0.0-...-a2f3510 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountValidatorController

func AccountValidatorController(parser models.Parser, limiter *middlewares.Limiter) service.WebController

Create a new account validator controller

Types

type ValidityResponse

type ValidityResponse struct {
	// The bank account sort code
	SortCode string `json:"sort_code"`
	// The bank account number
	AccountNumber string `json:"account_number"`
	// The validity of the given bank account
	Valid bool `json:"is_valid"`
}

Tell in JSON if a bank account is valid

Jump to

Keyboard shortcuts

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