Versions in this module Expand all Collapse all v2 v2.11.1 Mar 31, 2024 v2.11.0 Mar 31, 2024 Changes in this version + const NameGenderFemale + const NameGenderMale + const NameGenderUnknown + const NamePartName + const NamePartPatronymic + const NamePartSurname + const PartyBranchTypeBranch + const PartyBranchTypeMain + const PartyTypeIndividual + const PartyTypeLegal + type AddressResponse struct + Suggestions []*AddressSuggestion + type AddressSuggestion struct + Data *model.Address + UnrestrictedValue string + Value string + type Api struct + Client Requester + func (a *Api) Address(ctx context.Context, params *RequestParams) (ret []*AddressSuggestion, err error) + func (a *Api) AddressByID(ctx context.Context, id string) (addresses []*AddressSuggestion, err error) + func (a *Api) Bank(ctx context.Context, params *RequestParams) (ret []*BankSuggestion, err error) + func (a *Api) Country(ctx context.Context, params *RequestParams) (ret []*CountrySuggestion, err error) + func (a *Api) CountryByID(ctx context.Context, id string) (addresses []*CountrySuggestion, err error) + func (a *Api) Email(ctx context.Context, params *RequestParams) (ret []*EmailSuggestion, err error) + func (a *Api) FMSUnit(ctx context.Context, params *RequestParams) (ret []*FMSUnitSuggestion, err error) + func (a *Api) GeoIP(ctx context.Context, ip string) (result *GeoIPResponse, err error) + func (a *Api) Name(ctx context.Context, requestParams *RequestParams, opts ...NameOption) (ret []*NameSuggestion, err error) + func (a *Api) Party(ctx context.Context, params *RequestParams) (ret []*PartySuggestion, err error) + func (a *Api) PartyByID(ctx context.Context, params *PartyByIDParams) (ret []*PartySuggestion, err error) + type BankResponse struct + Suggestions []*BankSuggestion + type BankSuggestion struct + Data *model.Bank + UnrestrictedValue string + Value string + type Bound struct + Value model.BoundValue + type CountryResponse struct + Suggestions []*CountrySuggestion + type CountrySuggestion struct + Data *model.Country + Value string + type EmailResponse struct + Suggestions []*EmailSuggestion + type EmailSuggestion struct + Data *model.Email + UnrestrictedValue string + Value string + type FMSUnitResponse struct + Suggestions []*FMSUnitSuggestion + type FMSUnitSuggestion struct + Data *model.FMSUnit + UnrestrictedValue string + Value string + type GeoIPResponse struct + Location *AddressSuggestion + type NameOption func(params *NameParams) + func WithNameGender(gender string) NameOption + func WithNameParts(parts ...string) NameOption + type NameParams struct + Count int + Gender string + Parts []string + Query string + type NameResponse struct + Suggestions []*NameSuggestion + type NameSuggestion struct + Data *model.Name + UnrestrictedValue string + Value string + type PartyBranchType string + type PartyByIDParams struct + BranchType *PartyBranchType + Count *int + KPP *string + Query string + Type *PartyType + func NewPartyByIDParams(query string) *PartyByIDParams + func (o *PartyByIDParams) SetBranchType(t PartyBranchType) *PartyByIDParams + func (o *PartyByIDParams) SetCount(count int) *PartyByIDParams + func (o *PartyByIDParams) SetKPP(kpp string) *PartyByIDParams + func (o *PartyByIDParams) SetQuery(query string) *PartyByIDParams + func (o *PartyByIDParams) SetType(t PartyType) *PartyByIDParams + type PartyResponse struct + Suggestions []*PartySuggestion + type PartySuggestion struct + Data *model.Party + UnrestrictedValue string + Value string + type PartyType string + type RequestParams struct + Count int + FromBound *Bound + Locations []*RequestParamsLocation + Query string + RestrictValue bool + ToBound *Bound + type RequestParamsLocation struct + AreaTypeFull string + City string + CityDistrictTypeFull string + CityFiasID string + CityKladrID string + CityTypeFull string + Country string + CountryISOCode string + FiasID string + KladrID string + Region string + RegionFiasID string + RegionKladrID string + RegionTypeFull string + Settlement string + SettlementFiasID string + SettlementKladrID string + SettlementTypeFull string + Street string + StreetFiasID string + StreetKladrID string + StreetTypeFull string + type Requester interface + Get func(ctx context.Context, apiMethod string, params url.Values, result interface{}) error + Post func(ctx context.Context, apiMethod string, params, result interface{}) error