Versions in this module Expand all Collapse all v0 v0.1.3 Aug 12, 2026 Changes in this version + type CompanyRef struct + ExternalID string + ID int + type EmployeeDetail struct + AdmissionDate string + BirthDate *string + CPF string + CTPS string + CanViewWorkgroup bool + Company CompanyRef + CurrentWorkSchedule WorkScheduleRef + DoubleBindEmployee bool + EffectiveDate UnixMilliTime + Email string + ExternalID string + Fired bool + Gender string + ID int + JobRole JobRoleRef + LastManager EntityRef + Managers []ManagerRef + Name string + PIS string + Phone string + RecordsPunch bool + Series string + SocialName string + State string + Status int + WorkplaceList []WorkplaceRef + type JobRoleRef struct + AlterationDate UnixMilliTime + Description string + ID int + type ManagerEmployeeRef struct + AdmissionDate string + CanViewWorkgroup bool + DoubleBindEmployee bool + Fired bool + ID int + Name string + RecordsPunch bool + Status int + type ManagerRef struct + Employee ManagerEmployeeRef + ID int + type WorkplaceRef struct + Active bool + ID int + Name string v0.1.2 Aug 12, 2026 Changes in this version type EmployeesService + func (s *EmployeesService) Find(ctx context.Context, params FindEmployeeParams) (*Employee, error) + type FindEmployeeParams struct + ExternalID string + IgnoreFired bool + TangerinoID int v0.1.1 Jun 23, 2026 v0.1.0 Jun 11, 2026 Changes in this version type Client + Punches *PunchesService + Workplaces *WorkplacesService type ListCompaniesParams + Page int + Size int + type ListWorkSchedulesParams struct + Page int + Size int + type ListWorkplacesParams struct + Page int + Size int + type LocalDateTime struct + func (d *LocalDateTime) UnmarshalJSON(data []byte) error + func (d LocalDateTime) MarshalJSON() ([]byte, error) + func (d LocalDateTime) String() string + func (d LocalDateTime) Time() time.Time + type Punch struct + Accredited bool + Adjustment bool + Canceled bool + Date string + EndDate *LocalDateTime + EndManual bool + ID int + Pending bool + StartDate LocalDateTime + StartManual bool + Status int + TotalHours int64 + type PunchSummary struct + Absences int + Balance int64 + Delays int64 + EmployeeID int + HoursBank int64 + Overtime int64 + TotalExpected int64 + TotalWorked int64 + type PunchesParams struct + Adjustment *bool + EndDate time.Time + Pending *bool + StartDate time.Time + Status int + type PunchesService struct + func (s *PunchesService) List(ctx context.Context, employeeID int, params PunchesParams) ([]Punch, error) + type Workplace struct + Address string + City string + Company EntityRef + ExternalID string + ID int + Inactive bool + Name string + State string + ZipCode string + type WorkplacesService struct + func (s *WorkplacesService) List(ctx context.Context, params ListWorkplacesParams) (*Page[Workplace], error) v0.0.1 Jun 11, 2026 Changes in this version + func IsForbidden(err error) bool + func IsNotFound(err error) bool + func IsRateLimited(err error) bool + func IsServerError(err error) bool + func IsUnauthorized(err error) bool + type APIError struct + Body []byte + StatusCode int + func (e *APIError) Error() string + type Client struct + Companies *CompaniesService + Employees *EmployeesService + HolidayCalendars *HolidayCalendarsService + WorkSchedules *WorkSchedulesService + func NewClient(username, password string, opts ...Option) (*Client, error) + type CompaniesService struct + func (s *CompaniesService) List(ctx context.Context, params ListCompaniesParams) (*Page[Company], error) + type Company struct + CNPJ string + DescriptionName string + ExternalID string + FantasyName string + ID int + SocialReason string + type DayOffset int64 + func (d DayOffset) Duration() time.Duration + func (d DayOffset) Raw() int64 + func (d DayOffset) String() string + type Employee struct + AdmissionDate UnixMilliTime + BirthDate *UnixMilliTime + CPF string + CanViewWorkgroup bool + Company EntityRef + CurrentWorkSchedule WorkScheduleRef + DoubleBindEmployee bool + EffectiveDate UnixMilliTime + Email string + ExternalID string + Fired bool + Gender string + ID int + JobRole EntityRef + LastManager EntityRef + Managers []EntityRef + Name string + PIS string + RecordsPunch bool + SocialName string + Status int + WorkplaceList []EntityRef + type EmployeesService struct + func (s *EmployeesService) List(ctx context.Context, params ListEmployeesParams) (*Page[Employee], error) + type EntityRef struct + ID int + type Environment struct + type Holiday struct + Date string + Description string + ID int + type HolidayCalendar struct + Description string + Holidays []Holiday + ID int + Name string + Year int + type HolidayCalendarsService struct + func (s *HolidayCalendarsService) List(ctx context.Context) ([]HolidayCalendar, error) + type ListCompaniesParams struct + Offset int + PageNumber int + PageSize int + type ListEmployeesParams struct + BranchExternalID string + LastUpdate int64 + ManagerExternalID string + Offset int + Page int + PageNumber int + PageSize int + ShowFired int + Size int + type Option func(*Client) + func WithBaseURL(rawURL string) (Option, error) + func WithHTTPClient(hc *http.Client) Option + func WithStagingEnv() Option + type Page struct + Content []T + First bool + Last bool + Number int + NumberOfElements int + Size int + TotalElements int + TotalPages int + func (p *Page[T]) HasNext() bool + func (p *Page[T]) NextPageNumber() int + type UnixMilliTime int64 + func (t UnixMilliTime) Format(layout string) string + func (t UnixMilliTime) Raw() int64 + func (t UnixMilliTime) String() string + func (t UnixMilliTime) Time() time.Time + type WorkSchedule struct + AlterationDate UnixMilliTime + ID int + IgnoreHoliday bool + Inactive bool + Name string + PreAssignedInterval bool + ShowIntradayInTimeSheet bool + Standard bool + Timetable []WorkScheduleTimetable + type WorkScheduleRef struct + ID int + Inactive bool + StartDate UnixMilliTime + type WorkScheduleTimetable struct + Day int + EndMainInterval *DayOffset + EndShift1 *DayOffset + EndShift2 *DayOffset + ID int + IntervalPreAssigned1And2 bool + IntervalPreAssigned2And3 bool + IntervalPreAssigned3And4 bool + IntervalPreAssigned4And5 bool + IntervalPreAssigned5And6 bool + StartMainInterval DayOffset + StartShift1 DayOffset + StartShift2 *DayOffset + type WorkSchedulesService struct + func (s *WorkSchedulesService) List(ctx context.Context) (*Page[WorkSchedule], error)