gleif

package
v5.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LocMatch added in v5.1.1

func LocMatch(e *et.Event, orgent *dbt.Entity, rec *LEIRecord) bool

LocMatch checks if the LEI record matches the location of the organization entity.

func NewGLEIF

func NewGLEIF() et.Plugin

Types

type FuzzyCompletionsResponse added in v5.1.1

type FuzzyCompletionsResponse struct {
	Data []struct {
		Type       string `json:"type"`
		Attributes struct {
			Value string `json:"value"`
		} `json:"attributes"`
		Relationships struct {
			LEIRecords struct {
				Data struct {
					Type string `json:"type"`
					ID   string `json:"id"`
				} `json:"data"`
				Links struct {
					Related string `json:"related"`
				} `json:"links"`
			} `json:"lei-records"`
		} `json:"relationships"`
	} `json:"data"`
}

func GLEIFSearchFuzzyCompletions added in v5.1.1

func GLEIFSearchFuzzyCompletions(ctx context.Context, name string) (*FuzzyCompletionsResponse, error)

GLEIFSearchFuzzyCompletions performs the fuzzy completion search for the given name.

type LEIAddress added in v5.1.1

type LEIAddress struct {
	Language                    string   `json:"language"`
	AddressLines                []string `json:"addressLines"`
	AddressNumber               string   `json:"addressNumber"`
	AddressNumberWithinBuilding string   `json:"addressNumberWithinBuilding"`
	MailRouting                 string   `json:"mailRouting"`
	City                        string   `json:"city"`
	Region                      string   `json:"region"`
	Country                     string   `json:"country"`
	PostalCode                  string   `json:"postalCode"`
}

type LEIEntity added in v5.1.1

type LEIEntity struct {
	LEI  string `json:"lei"`
	Name string `json:"name"`
}

type LEIRecord added in v5.1.1

type LEIRecord struct {
	Type       string `json:"type"`
	ID         string `json:"id"`
	Attributes struct {
		LEI    string `json:"lei"`
		Entity struct {
			LegalName struct {
				Name     string `json:"name"`
				Language string `json:"language"`
			} `json:"legalName"`
			OtherNames []struct {
				Name     string `json:"name"`
				Language string `json:"language"`
				Type     string `json:"type"`
			} `json:"otherNames"`
			TransliteratedOtherNames []struct {
				Name     string `json:"name"`
				Language string `json:"language"`
				Type     string `json:"type"`
			} `json:"transliteratedOtherNames"`
			LegalAddress        LEIAddress `json:"legalAddress"`
			HeadquartersAddress LEIAddress `json:"headquartersAddress"`
			RegisteredAt        struct {
				ID    string `json:"id"`
				Other string `json:"other"`
			} `json:"registeredAt"`
			RegisteredAs string `json:"registeredAs"`
			Jurisdiction string `json:"jurisdiction"`
			Category     string `json:"category"`
			LegalForm    struct {
				ID    string `json:"id"`
				Other string `json:"other"`
			} `json:"legalForm"`
			AssociatedEntity LEIEntity `json:"associatedEntity"`
			Status           string    `json:"status"`
			Expiration       struct {
				Date   string `json:"date"`
				Reason string `json:"reason"`
			} `json:"expiration"`
			SuccessorEntity   LEIEntity    `json:"successorEntity"`
			SuccessorEntities []LEIEntity  `json:"successorEntities"`
			CreationDate      string       `json:"creationDate"`
			SubCategory       string       `json:"subCategory"`
			OtherAddresses    []LEIAddress `json:"otherAddresses"`
			EventGroups       []struct {
				GroupType string `json:"groupType"`
				Events    []struct {
					ValidationDocuments string `json:"validationDocuments"`
					ValidationReference string `json:"validationReference"`
					EffectiveDate       string `json:"effectiveDate"`
					RecordedDate        string `json:"recordedDate"`
					Type                string `json:"type"`
					Status              string `json:"status"`
				} `json:"events"`
			} `json:"eventGroups"`
		} `json:"entity"`
		Registration struct {
			InitialRegistrationDate string `json:"initialRegistrationDate"`
			LastUpdateDate          string `json:"lastUpdateDate"`
			Status                  string `json:"status"`
			NextRenewalDate         string `json:"nextRenewalDate"`
			ManagingLOU             string `json:"managingLou"`
			CorroborationLevel      string `json:"corroborationLevel"`
			ValidatedAt             struct {
				ID    string `json:"id"`
				Other string `json:"other"`
			} `json:"validatedAt"`
			ValidatedAs                string `json:"validatedAs"`
			OtherValidationAuthorities []struct {
				ValidatedAt struct {
					ID string `json:"id"`
				} `json:"validatedAt"`
				ValidatedAs string `json:"validatedAs"`
			} `json:"otherValidationAuthorities"`
		} `json:"registration"`
		BIC            []string `json:"bic"`
		MIC            []string `json:"mic"`
		OCID           string   `json:"ocid"`
		SPGlobal       []string `json:"spglobal"`
		ConformityFlag string   `json:"conformityFlag"`
	} `json:"attributes"`
	Relationships struct {
		ManagingLOU struct {
			Links LEIRelationshipLinks `json:"links"`
		} `json:"managing-lou"`
		LEIIssuer struct {
			Links LEIRelationshipLinks `json:"links"`
		} `json:"lei-issuer"`
		FieldModifications struct {
			Links LEIRelationshipLinks `json:"links"`
		} `json:"field-modifications"`
		DirectParent struct {
			Links LEIRelationshipLinks `json:"links"`
		} `json:"direct-parent"`
		UltimateParent struct {
			Links LEIRelationshipLinks `json:"links"`
		} `json:"ultimate-parent"`
		DirectChildren struct {
			Links LEIRelationshipLinks `json:"links"`
		} `json:"direct-children"`
		UltimateChildren struct {
			Links LEIRelationshipLinks `json:"links"`
		} `json:"ultimate-children"`
		FundManager struct {
			Links LEIRelationshipLinks `json:"links"`
		} `json:"fund-manager"`
		ISINs struct {
			Links LEIRelationshipLinks `json:"links"`
		} `json:"isins"`
	} `json:"relationships"`
	Links struct {
		Self string `json:"self"`
	} `json:"links"`
}

func GLEIFGetDirectChildrenRecords added in v5.1.1

func GLEIFGetDirectChildrenRecords(ctx context.Context, id string) ([]*LEIRecord, error)

GLEIFGetDirectChildrenRecords retrieves the direct children LEI records for the given identifier.

func GLEIFGetDirectParentRecord added in v5.1.1

func GLEIFGetDirectParentRecord(ctx context.Context, id string) (*LEIRecord, error)

GLEIFGetDirectParentRecord retrieves the direct parent LEI record for the given identifier.

func GLEIFGetLEIRecord added in v5.1.1

func GLEIFGetLEIRecord(ctx context.Context, id string) (*LEIRecord, error)

GLEIFGetLEIRecord retrieves the LEI record for the given identifier.

type LEIRelationshipLinks struct {
	Related             string `json:"related"`
	LEIRecord           string `json:"lei-record"`
	RelationshipRecord  string `json:"relationship-record"`
	RelationshipRecords string `json:"relationship-records"`
	ReportingException  string `json:"reporting-exception"`
}

type MultipleResponse added in v5.1.1

type MultipleResponse struct {
	Meta struct {
		GoldenCopy struct {
			PublishDate string `json:"publishDate"`
		} `json:"goldenCopy"`
		Pagination struct {
			CurrentPage int `json:"currentPage"`
			PerPage     int `json:"perPage"`
			From        int `json:"from"`
			To          int `json:"to"`
			Total       int `json:"total"`
			LastPage    int `json:"lastPage"`
		} `json:"pagination"`
	} `json:"meta"`
	Links struct {
		First string `json:"first"`
		Next  string `json:"next"`
		Last  string `json:"last"`
	} `json:"links"`
	Data []LEIRecord `json:"data"`
}

type SingleResponse added in v5.1.1

type SingleResponse struct {
	Meta struct {
		GoldenCopy struct {
			PublishDate string `json:"publishDate"`
		} `json:"goldenCopy"`
	} `json:"meta"`
	Data LEIRecord `json:"data"`
}

Jump to

Keyboard shortcuts

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