binlookup

package module
v0.0.0-...-8a9a220 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

README

binlookup

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents host and access token for accessing wallet api

func NewClient

func NewClient(t time.Duration) *Client

NewClient returns a new client instance

func (*Client) LookUp

func (c *Client) LookUp(bin string) (*LookUpResponse, error)

LookUp ...

type LookUpResponse

type LookUpResponse 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  float64 `json:"latitude"`
		Longitude float64 `json:"longitude"`
	} `json:"country"`
	Bank struct {
		Name  string `json:"name"`
		URL   string `json:"url"`
		Phone string `json:"phone"`
		City  string `json:"city"`
	} `json:"bank"`
}

LookUpResponse ...

Jump to

Keyboard shortcuts

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