iinbindata

package
v0.0.0-...-698db54 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseType

type BaseType struct {
	SequenceNumber string
	Rank           int
	DocType
}

type Bin

type Bin struct {
	BaseType
	Type               CompanyType
	RegistrationDate   time.Time
	SpecialCompanyType SpecialCompanyType
	// contains filtered or unexported fields
}

Bin it is document

func NewBin

func NewBin(idn string) (*Bin, error)

NewBin it represented a new type Bin

func (Bin) Data

func (b Bin) Data() Bin

Data document data

func (Bin) SetIdn

func (b Bin) SetIdn(idn []int) *Bin

SetIdn set parsed identity

func (Bin) String

func (b Bin) String() string

type CompanyType

type CompanyType int
const (
	LegalResident   CompanyType = 4
	LegalNoResident CompanyType = 5
	Individual      CompanyType = 6
)

func (CompanyType) String

func (i CompanyType) String() string

type DocType

type DocType int
const (
	IIN DocType = 0
	BIN DocType = 1
)

func (DocType) String

func (i DocType) String() string

type GenderType

type GenderType int
const (
	Male   GenderType = 0
	Female GenderType = 1
)
const (
	Unk GenderType = -1
)

func (GenderType) String

func (i GenderType) String() string

type Iin

type Iin struct {
	BaseType
	BirthDate time.Time
	Gender    GenderType
	Century   int
	// contains filtered or unexported fields
}

Iin it is document

func NewIin

func NewIin(idn string) (*Iin, error)

NewIin it represented a new type Iin

func (Iin) Data

func (i Iin) Data() Iin

Data document data

func (Iin) SetIdn

func (i Iin) SetIdn(idn []int) *Iin

Init set set parsed identity

func (Iin) String

func (i Iin) String() string

type SpecialCompanyType

type SpecialCompanyType int
const (
	HeadOffice   SpecialCompanyType = 0
	DepartOffice SpecialCompanyType = 1
	Agency       SpecialCompanyType = 2
	Other        SpecialCompanyType = 3
	Farm         SpecialCompanyType = 4
)

func (SpecialCompanyType) String

func (i SpecialCompanyType) String() string

Jump to

Keyboard shortcuts

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