Versions in this module Expand all Collapse all v0 v0.0.2 Jun 19, 2023 Changes in this version + type Config struct + LinkAPI string + LinkAuth string + Password string + User string + func NewConfig() *Config + func (c *Config) GetConfig() map[string]interface{} + func (c *Config) Load(file string) error v0.0.1 Jun 18, 2023 Changes in this version + const PARTICIPATION_TYPE_CUSTOMER + const POSITION_CREDITOR + const TOKEN_VALIDITY + type Appeal struct + CreationDate string + DistributionDate string + Folder string + ID int + IdentifierNumber string + OldNumber string + OtherNumber string + OtherNumberTypeID int + RelatedLitigationID int + RelatedLitigationType string + StatusID int + TerminationDate string + Title string + Type string + type AppealResponse struct + Value []Appeal + type AuthResponse struct + APIProductList string + APIProductListJSON []string + AccessToken string + ApplicationName string + ClientID string + DeveloperEmail string + ExpiresIn string + IssuedAt string + OrganizationName string + RefreshCount string + RefreshTokenExpiresIn string + Scope string + Status string + TokenType string + type Contact struct + CountryID int + CreationDate time.Time + ExternalCode string + ID int + IdentificationNumber string + Name string + Notes any + Queries []query + Reason any + RexMonitoring bool + Type string + type ContactResponse struct + Value []Contact + type ErrorDetail struct + Code string + Message string + Target string + type Individual struct + BirthDate any + CountryID int + CreationDate string + ExternalCode any + Gender any + ID int + IdentificationNumber string + Nacionality any + Name string + NitPisPasep any + Notes any + PersonStateIdentificationNumber any + Reason any + RexMonitoring bool + VoterGeoraphicZone any + VoterID any + VoterSection any + WorkerNumber any + WorkerSeries any + type Lawsuit struct + CreationDate string + DistributionDate string + Folder string + ID int + IdentifierNumber string + Notes string + OldNumber string + OriginOfficeID int + OtherNumber string + OtherNumberTypeID int + StatusID int + Title string + Type string + type LawsuitResponse struct + Value []Lawsuit + type LegalOne struct + func NewLegalOne(rest *rest.Rest) *LegalOne + func (l *LegalOne) AppealParticipationDelete(appealID int, participationID int) error + func (l *LegalOne) AppealParticipationRegistrate(data map[string]interface{}) (*LitigationParticipant, error) + func (l *LegalOne) Autenticate() error + func (l *LegalOne) GetAppealByFolder(folder string) (*AppealResponse, error) + func (l *LegalOne) GetAppealParticipationByContactID(appealID int, contactID int) (*LitigationParticipationResponse, error) + func (l *LegalOne) GetContactByCPF(cpf string) (*ContactResponse, error) + func (l *LegalOne) GetLawsuitByFolder(folder string) (*LawsuitResponse, error) + func (l *LegalOne) GetLawsuitByProcessNumber(processNumber string) (*LawsuitResponse, error) + func (l *LegalOne) GetLawsuitParticipationByContactID(lawsuitID int, contactID int) (*LitigationParticipationResponse, error) + func (l *LegalOne) GetLawsuits() (*LawsuitResponse, error) + func (l *LegalOne) GetLitigationByContactID(contactID int) (*LitigationResponse, error) + func (l *LegalOne) GetLitigationUpdateByID(lawsuitID int, count int) (*LitigationUpdateResponse, error) + func (l *LegalOne) IndividualDelete(id int) error + func (l *LegalOne) IndividualRegistrate(data map[string]interface{}) (*Individual, error) + func (l *LegalOne) ParticipationDelete(lawsuitID int, participationID int) error + func (l *LegalOne) ParticipationRegistrate(data map[string]interface{}) (*LitigationParticipant, error) + type Litigation struct + CreationDate string + DistributionDate string + Folder string + ID int + IdentifierNumber string + LitigationType string + Notes string + OldNumber string + OtherNumber string + OtherNumberTypeID int + StatusID int + TerminationDate string + Title string + Type string + type LitigationParticipant struct + ContactID int + ID int + IsMainParticipant bool + PositionID int + Type string + type LitigationParticipationResponse struct + Value []LitigationParticipant + type LitigationResponse struct + Value []Litigation + type LitigationUpdate struct + ActExecutorID any + ContactCreatorID any + CreationDate string + Date string + Description string + ID int + IsConfidential bool + IsSubType bool + Notes any + OriginType string + TypeID int + type LitigationUpdateResponse struct + Value []LitigationUpdate + type Parser struct + func NewParser() *Parser + func (p *Parser) AuthResponse(data string) (*AuthResponse, error) + func (p *Parser) GetAppealResponse(data string) (*AppealResponse, error) + func (p *Parser) GetContactResponse(data string) (*ContactResponse, error) + func (p *Parser) GetLawsuitResponse(data string) (*LawsuitResponse, error) + func (p *Parser) GetLitigationResponse(data string) (*LitigationResponse, error) + func (p *Parser) IndividualRegistrateRequest() (*Individual, error) + func (p *Parser) IndividualRegistrateResponse(data string) (*Individual, error) + func (p *Parser) LitigationParticipationResponse(data string) (*LitigationParticipationResponse, error) + func (p *Parser) LitigationUpdateResponse(data string) (*LitigationUpdateResponse, error) + func (p *Parser) ParticipationRegistrateRequest() (*LitigationParticipant, error) + func (p *Parser) ParticipationRegistrateResponse(data string) (*LitigationParticipant, error) + func (p *Parser) ResponseError(data string) (string, error) + type ResponseError struct + Error struct{ ... }