binlist

package
v0.0.0-...-24939ff Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(key string) iin.Service

Types

type BinList

type BinList struct {
	// contains filtered or unexported fields
}

BinList is the Service implementation for the https://binlist.net/ service.

func (BinList) Lookup

func (b BinList) Lookup(number string) (*iin.CardMetadata, error)

func (BinList) State

func (b BinList) State() connectivity.State

type Result

type Result struct {
	Number struct {
		Length int  `json:"length"`
		Luhn   bool `json:"luhn"`
	} `json:"number"`
	Scheme  string `json:"scheme"`
	Type    string `json:"type"`
	Brand   string `json:"brand"`
	Prepaid bool   `json:"prepaid"`
	Country struct {
		Numeric   string `json:"numeric"`
		Alpha2    string `json:"alpha2"`
		Name      string `json:"name"`
		Emoji     string `json:"emoji"`
		Currency  string `json:"currency"`
		Latitude  int    `json:"latitude"`
		Longitude int    `json:"longitude"`
	} `json:"country"`
	Bank struct {
		Name  string `json:"name"`
		URL   string `json:"url"`
		Phone string `json:"phone"`
		City  string `json:"city"`
	} `json:"bank"`
}

Jump to

Keyboard shortcuts

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