inn

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate() string

Generate generate random type inn string value.

func GenerateLegal

func GenerateLegal() string

GenerateLegal generate legal type inn string value.

func GeneratePhysical

func GeneratePhysical() string

GeneratePhysical generate physical type inn string value.

func IsCompany

func IsCompany(inn string) bool

IsCompany check inn for Company type

func IsEntrepreneur

func IsEntrepreneur(inn string) bool

IsEntrepreneur check inn for Entrepreneur type

func Validate

func Validate(inn string) (bool, error)

Validate check to valid inn from input string. example: input format is 7707083893

Types

type INN

type INN struct {
	Code         models.TaxRegionCode
	SerialNumber models.SerialNumber
	Hash10       uint
	Hash11       uint
	Hash12       uint
}

Jump to

Keyboard shortcuts

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