Versions in this module Expand all Collapse all v0 v0.0.2 Jan 5, 2023 v0.0.1 Jan 2, 2023 Changes in this version + const RequestNewTokenBeforeExpiresIn + type BankAccount struct + AccountName string + AccountNumber string + Amount string + Bsb string + Id string + PrimaryAccount bool + type BankAccountList struct + Items []BankAccount + type BankAccountListReponse struct + Data BankAccountList + type BasicData struct + Id string + Name string + type Certification struct + Id string + Name string + Type string + type CertificationListData struct + Items []Certification + type CertificationListResponse struct + Data CertificationListData + type Client struct + APIBase string + Client HTTPClient + ClientID string + Log io.Writer + OAuthBase string + RedirectURI string + Secret string + Token *TokenResponse + func NewClient(clientID, secret, redirectUri, OAuthBase, APIBase string) (*Client, error) + func (c *Client) GetAccessToken(ctx context.Context) (*TokenResponse, error) + func (c *Client) GetEmployee(ctx context.Context, oid string, eid string) (*EmployeeResponse, error) + func (c *Client) GetLeaveRequest(ctx context.Context, oid string, lid string) (*LeaveRequestResponse, error) + func (c *Client) GetOAuth2Access(ctx context.Context, code string) (*TokenResponse, error) + func (c *Client) GetOrganisation(ctx context.Context, oid string) (*OrganisationResponse, error) + func (c *Client) GetSuperannuationDetail(ctx context.Context, oid string, eid string, ep ListParams) (*SuperannuationDetailResponse, error) + func (c *Client) GetTaxDeclaration(ctx context.Context, oid string, eid string, ep ListParams) (*TaxDelcarationResponse, error) + func (c *Client) ListBankAccounts(ctx context.Context, oid string, eid string, ep ListParams) (*BankAccountListReponse, error) + func (c *Client) ListCertifications(ctx context.Context, oid string, tp ListParams) (*CertificationListResponse, error) + func (c *Client) ListEmergencyContacts(ctx context.Context, oid string, eid string, ep ListParams) (*EmergencyContactListResponse, error) + func (c *Client) ListEmployeeCertifications(ctx context.Context, oid string, eid string, hp ListParams) (*EmployeeCertificationListResponse, error) + func (c *Client) ListEmployees(ctx context.Context, oid string, ep ListParams) (*EmployeeListReponse, error) + func (c *Client) ListEmployeesByTeam(ctx context.Context, oid string, tid string, tp ListParams) (*EmployeeListReponse, error) + func (c *Client) ListEmploymentHistories(ctx context.Context, oid string, eid string, hp ListParams) (*EmploymentHistoryListResponse, error) + func (c *Client) ListLeaveRequests(ctx context.Context, oid string, ep ListParams) (*LeaveRequestListResponse, error) + func (c *Client) ListOrganisations(ctx context.Context, op ListParams) (*OrganisationListResponse, error) + func (c *Client) ListPayDetails(ctx context.Context, oid string, eid string, tp ListParams) (*PayDetailListResponse, error) + func (c *Client) ListPayslips(ctx context.Context, oid string, eid string, hp ListParams) (*PayslipListReponse, error) + func (c *Client) ListPolicies(ctx context.Context, oid string, tp ListParams) (*PolicyListResponse, error) + func (c *Client) ListTeams(ctx context.Context, oid string, tp ListParams) (*TeamListDataResponse, error) + func (c *Client) ListTimesheetEntries(ctx context.Context, oid string, eid string, tp ListParams) (*TimesheetListResponse, error) + func (c *Client) NewRequest(ctx context.Context, method, url string, payload interface{}) (*http.Request, error) + func (c *Client) Send(req *http.Request, v interface{}) error + func (c *Client) SendWithAuth(req *http.Request, v interface{}) error + func (c *Client) SetLog(log io.Writer) + func (c *Client) SetRefreshToken(refreshToken string) + type EmergencyContact struct + AfterHoursNo string + AfterMobileNo string + ContactName string + ContactType string + DaytimeContactNumber string + Id int + Relationship string + type EmergencyContactList struct + Items []EmergencyContact + type EmergencyContactListResponse struct + Data EmergencyContactList + type Employee struct + AccountEmail string + Address string + AvatarURL string + Code string + CompanyEmail string + CompanyLandline string + CompanyNumber string + Country string + DateOfBirth string + EmployingEntity string + ExternalId string + FirstName string + Gender string + HomePhone string + Id string + JobTitle string + KnownAs string + LastName string + Location string + MartialStatus string + MiddleName string + Nationality string + PersonalEmail string + PersonalMobileNumber string + PrimaryCostCentre BasicData + PrimaryManager BasicData + Role string + SecondaryCostCentres []BasicData + SecondaryManager BasicData + StartDate string + TerminationDate string + Title string + type EmployeeCertification struct + CertificationId string + CompletionDate string + DriverDetails string + DriverProblem bool + ExpiryDate string + Id string + Name string + Reason string + Status string + Type string + type EmployeeCertificationList struct + Items []EmployeeCertification + type EmployeeCertificationListResponse struct + Data EmployeeCertificationList + type EmployeeListData struct + Items []Employee + type EmployeeListReponse struct + Data EmployeeListData + type EmployeeResponse struct + Data Employee + type EmploymentHistory struct + EmploymentType string + EndDate string + Id string + StartDate string + Title string + type EmploymentHistoryList struct + Items []EmploymentHistory + type EmploymentHistoryListResponse struct + Data EmploymentHistoryList + type ErrorResponse struct + Response *http.Response + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type LeaveRequest struct + Comment string + EmployeeId string + EndDate string + Id string + LeaveBalanceAmount float32 + LeaveCategoryName string + Reason string + StartDate string + Status string + TotalHours float32 + type LeaveRequestListData struct + Items []LeaveRequest + type LeaveRequestListResponse struct + Data LeaveRequestListData + type LeaveRequestResponse struct + Data LeaveRequest + type ListParams struct + ItemPerPage string + PageIndex string + type ListResponse struct + ItemPerPage int + PageIndex int + TotalItems int + TotalPages int + type Organisation struct + Country string + Id string + LogoURL string + Name string + Phone string + type OrganisationData struct + Items []Organisation + type OrganisationDetail struct + ActiveEmployeesCount int + Country string + CreatedAt string + EmployeesCount int + EndOfWeek string + Id string + LogoURL string + Name string + PayrollAdminEmails []string + PendingEmployeesCount int + Phone string + PrimaryAddress string + SubscriptionPlan string + SuperfundName string + TimeZone string + TypicalWorkDay string + type OrganisationListResponse struct + Data OrganisationData + type OrganisationResponse struct + Data OrganisationDetail + type PayDetail struct + AnniversaryDate string + ChangeReason string + Classification string + Comments string + EffectiveFrom string + Id string + IndustrialInstrument string + LeaveAllowanceTemplate string + PayCategory string + PayRateTemplate string + PayUnit string + Salary float32 + SalaryType string + type PayDetailListData struct + Items []PayDetail + type PayDetailListResponse struct + Data PayDetailListData + type Payslip struct + AddressLine1 string + AddressLine2 string + BaseRate float32 + BaseRateUnit string + EmploymentType string + FirstName string + HourlyRate float32 + Id string + LastName string + Name string + NetPay float32 + PaymentDate string + PostTaxDeduction float32 + Postcode string + PreTaxDeduction float32 + Reimbursements float32 + Suburb string + Super float32 + Tax float32 + TotalDeduction int + Wages float32 + type PayslipList struct + Items []Payslip + type PayslipListReponse struct + Data PayslipList + type Policy struct + CreatedAt string + Id string + Induction bool + Name string + type PolicyListData struct + Items []Policy + type PolicyListResponse struct + Data PolicyListData + type SuperannuationDetail struct + AccountBSB string + AccountName string + AccountNumber string + ElectronicServiceAddress string + EmployerNominatedFund bool + FundAbn string + FundEmail string + FundName string + MemberNumber string + ProductCode string + type SuperannuationDetailResponse struct + Data SuperannuationDetail + type TaxDeclaration struct + FirstName string + LastName string + TaxAuResident bool + TaxFileNumber string + TaxFinancialSupplementDebt bool + TaxForeignResident bool + TaxFree bool + TaxHelpDebt bool + WorkingHolidayMaker bool + type TaxDelcarationResponse struct + Data TaxDeclaration + type Team struct + Id string + Name string + Status string + type TeamListData struct + Items []Team + type TeamListDataResponse struct + Data TeamListData + type Timesheet struct + Comment string + CostCentre BasicData + Date string + EmployeeId string + EndTime string + Id string + Reason string + StartTime string + Status string + Time int + Units float32 + type TimesheetListData struct + Items []Timesheet + type TimesheetListResponse struct + Data TimesheetListData + type TokenResponse struct + ExpiresIn int + RefreshToken string + Token string + Type string