iin

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: 1 Imported by: 0

Documentation

Overview

Package iin provides a common interface for Issuer Identification Number services. ref: https://en.wikipedia.org/wiki/Payment_card_number#Issuer_identification_number_.28IIN.29

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardMetadata

type CardMetadata struct {
	Issuer            string
	IssuerURL         string
	IssuerPhone       string
	IssuerCity        string
	IssuerCountry     string
	IssuerCountryCode string // alpha2

	CardScheme    string // visa/mastercard
	CardBrand     string // Visa/Platinum
	CardType      string // debit/credit
	CardIsPrepaid bool   // false
	CardCurrency  string // DKK

	// GeoMapping
	IssuerLatitude  float32
	IssuerLongitude float32
	IssuerMap       string
}

type Service

type Service interface {
	Lookup(s string) (*CardMetadata, error)
	State() connectivity.State
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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