vismanet

package module
v0.0.0-...-e991ce8 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BaseURL = url.URL{
		Scheme: "https",
		Host:   "api.analytics1.hrm.visma.net",
		Path:   "/",
	}
)

Functions

func CheckResponse

func CheckResponse(r *http.Response) error

CheckResponse checks the Client response for errors, and returns them if present. A response is considered an error if it has a status code outside the 200 range. Client error responses are expected to have either no response body, or a json response body that maps to ErrorResponse. Any other response body will be silently ignored.

Types

type BeforeRequestDoCallback

type BeforeRequestDoCallback func(*http.Client, *http.Request, interface{})

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client manages communication with Exact Globe Client

func NewClient

func NewClient(httpClient *http.Client) *Client

NewClient returns a new Exact Globe Client client

func (Client) AccessToken

func (c Client) AccessToken() string

func (Client) BaseURL

func (c Client) BaseURL() url.URL

func (Client) Charset

func (c Client) Charset() string

func (Client) Debug

func (c Client) Debug() bool

func (*Client) Do

func (c *Client) Do(req *http.Request, body interface{}) (*http.Response, error)

Do sends an Client request and returns the Client response. The Client response is json decoded and stored in the value pointed to by v, or returned as an error if an Client error has occurred. If v implements the io.Writer interface, the raw response will be written to v, without attempting to decode it.

func (*Client) GetEndpointURL

func (c *Client) GetEndpointURL(p string, pathParams PathParams) url.URL

func (Client) MediaType

func (c Client) MediaType() string

func (*Client) NewContractsGet

func (c *Client) NewContractsGet() ContractsGet

func (*Client) NewContractsPost

func (c *Client) NewContractsPost() ContractsPost

func (*Client) NewCostCentersGet

func (c *Client) NewCostCentersGet() CostCentersGet

func (*Client) NewCostCentersPost

func (c *Client) NewCostCentersPost() CostCentersPost

func (*Client) NewEmployeesGet

func (c *Client) NewEmployeesGet() EmployeesGet

func (*Client) NewEmployeesPost

func (c *Client) NewEmployeesPost() EmployeesPost

func (*Client) NewOrganizationUnitsGet

func (c *Client) NewOrganizationUnitsGet() OrganizationUnitsGet

func (*Client) NewOrganizationUnitsPost

func (c *Client) NewOrganizationUnitsPost() OrganizationUnitsPost

func (*Client) NewRequest

func (c *Client) NewRequest(ctx context.Context, req Request) (*http.Request, error)

func (*Client) SetAccessToken

func (c *Client) SetAccessToken(accessToken string)

func (*Client) SetBaseURL

func (c *Client) SetBaseURL(baseURL url.URL)

func (*Client) SetBeforeRequestDo

func (c *Client) SetBeforeRequestDo(fun BeforeRequestDoCallback)

func (*Client) SetCharset

func (c *Client) SetCharset(charset string)

func (*Client) SetDebug

func (c *Client) SetDebug(debug bool)

func (*Client) SetDisallowUnknownFields

func (c *Client) SetDisallowUnknownFields(disallowUnknownFields bool)

func (*Client) SetHTTPClient

func (c *Client) SetHTTPClient(client *http.Client)

func (*Client) SetMediaType

func (c *Client) SetMediaType(mediaType string)

func (*Client) SetUserAgent

func (c *Client) SetUserAgent(userAgent string)

func (*Client) Unmarshal

func (c *Client) Unmarshal(r io.Reader, vv ...interface{}) error

func (Client) UserAgent

func (c Client) UserAgent() string

type Contract

type Contract struct {
	StartDate                Date    `csv:"startdate"`
	EndDate                  Date    `csv:"enddate"`
	Probation                Date    `csv:"probation"`
	ContractTypeIndicationEN string  `csv:"contracttypeindication_en"`
	ContractTypeIndicationNL string  `csv:"contracttypeindication_nl"`
	EndReason                string  `csv:"endreason"`
	EndReasonNameEN          string  `csv:"endreasonname_en"`
	EndReasonName            string  `csv:"endreasonname"`
	BaseSubContractID        string  `csv:"basesubcontractid"`
	CAO                      string  `csv:"cao"`
	ExternalCAOCode          string  `csv:"externalcaocode"`
	TypeEn                   string  `csv:"type_en"`
	Type                     string  `csv:"type"`
	CostCenterEN             string  `csv:"costcenter_en"`
	CostCenter               string  `csv:"costcenter"`
	OrgUnit                  string  `csv:"orgunit"`
	OrgunitNameEN            string  `csv:"orgunitname_en"`
	OrgUnitName              string  `csv:"orgunitname"`
	ExtDepartmentID          string  `csv:"extdepartmentid"`
	ExtDepartmentNameEN      string  `csv:"extdepartmentname_en"`
	ExtDepartmentName        string  `csv:"extdepartmentname"`
	EmpType                  string  `csv:"emptype"`
	EmpTypeNameEN            string  `csv:"emptypename_en"`
	EmpTypeName              string  `csv:"emptypename"`
	ExpertiseID              string  `csv:"expertiseid"`
	ExpertiseNameEN          string  `csv:"expertisename_en"`
	ExpertiseName            string  `csv:"expertisename"`
	CostUnitEN               string  `csv:"costunit_en"`
	CostUnit                 string  `csv:"costunit"`
	FunctionID               string  `csv:"functionid"`
	FunctionNameEN           string  `csv:"functionname_en"`
	FunctionName             string  `csv:"functionname"`
	RosterID                 string  `csv:"rosterid"`
	PTFactor                 float64 `csv:"ptfactor"`
	WeekHoursFixed           float64 `csv:"weekhoursfixed"`
	WeekHoursVar             float64 `csv:"weekhoursvar"`
	NormalHours              float64 `csv:"normalhours"`
	ScaleTypeEN              string  `csv:"scaletype_en"`
	ScaleType                string  `csv:"scaletype"`
	Scale                    string  `csv:"scale"`
	Step                     string  `csv:"step"`
	StepName                 string  `csv:"stepname"`
	GarScaleTypeEN           string  `csv:"garscaletype_en"`
	GarScaleType             string  `csv:"garscaletype"`
	GarScale                 string  `csv:"garscale"`
	GarStep                  string  `csv:"garstep"`
	GarStepName              string  `csv:"garstepname"`
	CatsScale                string  `csv:"catsscale"`
	CatsScaleName            string  `csv:"catsscalename"`
	CatsScaleID              string  `csv:"catsscaleid"`
	CatsRSPFactor            string  `csv:"catsrspfactor"`
	SalaryHour               float64 `csv:"salaryhour"`
	GarSalaryHour            float64 `csv:"garsalaryhour"`
	SalaryHourORT            float64 `csv:"salaryhourort"`
	SalaryHourTravel         float64 `csv:"salaryhourtravel"`
	SalaryHourExtra          float64 `csv:"salaryhourextra"`
	SalaryType               string  `csv:"salarytype"`
	Distance                 string  `csv:"distance"`
	MaxDistance              string  `csv:"maxdistance"`
	DaySPW                   string  `csv:"dayspw"`
	TariffID                 string  `csv:"tariffid"`
	TariffNameEN             string  `csv:"tariffname_en"`
	TariffName               string  `csv:"tariffname"`
	PublicTransportRegID     string  `csv:"publictransportregid"`
	PublicTransportRegNameEN string  `csv:"publictransportregname_en"`
	PublicTransportRegName   string  `csv:"publictransportregname"`
	PublicTransportUnits     string  `csv:"publictransportunits"`
	IsPooler                 string  `csv:"ispooler"`
	InsuranceType            string  `csv:"insurancetype"`
	InsuranceTypeNameEN      string  `csv:"insurancetypename_en"`
	InsuranceTypeName        string  `csv:"insurancetypename"`
	FinanceSource            string  `csv:"financesource"`
	FinanceSourceNameEN      string  `csv:"financesourcename_en"`
	FinanceSourceName        string  `csv:"financesourcename"`
	ODPOrgID                 string  `csv:"odporgid"`
	EmployeeID               string  `csv:"employeeid"`
	ContractID               string  `csv:"contractid"`
	SubContractID            string  `csv:"subcontractid"`
	ExistenceStartUTC        string  `csv:"existencestartutc"`
	NickName                 string  `csv:"nickname"`
	BirthName                string  `csv:"birthname"`
	PrefixBirthName          string  `csv:"prefixbirthname"`
	FormattedName            string  `csv:"formattedname"`
	DateOfBirth              Date    `csv:"dateofbirth"`
	Gender                   string  `csv:"gender"`
	ManagerUserID            string  `csv:"manageruserid"`
	ManagerName              string  `csv:"managername"`
}

type Contracts

type Contracts []Contract

type ContractsGet

type ContractsGet struct {
	// contains filtered or unexported fields
}

func (*ContractsGet) Do

func (*ContractsGet) Method

func (r *ContractsGet) Method() string

func (ContractsGet) NewPathParams

func (r ContractsGet) NewPathParams() *ContractsGetPathParams

func (ContractsGet) NewQueryParams

func (r ContractsGet) NewQueryParams() *ContractsGetQueryParams

func (ContractsGet) NewRequestBody

func (r ContractsGet) NewRequestBody() ContractsGetBody

func (*ContractsGet) NewResponseBody

func (r *ContractsGet) NewResponseBody() *ContractsGetResponseBody

func (*ContractsGet) PathParams

func (r *ContractsGet) PathParams() *ContractsGetPathParams

func (*ContractsGet) PathParamsInterface

func (r *ContractsGet) PathParamsInterface() PathParams

func (*ContractsGet) QueryParams

func (r *ContractsGet) QueryParams() *ContractsGetQueryParams

func (*ContractsGet) RequestBody

func (r *ContractsGet) RequestBody() *ContractsGetBody

func (*ContractsGet) RequestBodyInterface

func (r *ContractsGet) RequestBodyInterface() interface{}

func (*ContractsGet) SetMethod

func (r *ContractsGet) SetMethod(method string)

func (*ContractsGet) SetRequestBody

func (r *ContractsGet) SetRequestBody(body ContractsGetBody)

func (*ContractsGet) URL

func (r *ContractsGet) URL() *url.URL

type ContractsGetBody

type ContractsGetBody struct {
}

type ContractsGetPathParams

type ContractsGetPathParams struct {
	JobID string `schema:"jobId"`
}

func (*ContractsGetPathParams) Params

func (p *ContractsGetPathParams) Params() map[string]string

type ContractsGetQueryParams

type ContractsGetQueryParams struct{}

func (ContractsGetQueryParams) ToURLValues

func (p ContractsGetQueryParams) ToURLValues() (url.Values, error)

type ContractsGetResponseBody

type ContractsGetResponseBody struct {
	ChangeTimestampBefore time.Time `json:"changeTimestampBefore"`
	ContractFileUris      []string  `json:"contractFileUris"`
	Status                string    `json:"status"`
}

type ContractsPost

type ContractsPost struct {
	// contains filtered or unexported fields
}

func (*ContractsPost) Do

func (*ContractsPost) DoCSV

func (r *ContractsPost) DoCSV() (Contracts, error)

func (*ContractsPost) Method

func (r *ContractsPost) Method() string

func (ContractsPost) NewPathParams

func (r ContractsPost) NewPathParams() *ContractsPostPathParams

func (ContractsPost) NewQueryParams

func (r ContractsPost) NewQueryParams() *ContractsPostQueryParams

func (ContractsPost) NewRequestBody

func (r ContractsPost) NewRequestBody() ContractsPostBody

func (*ContractsPost) NewResponseBody

func (r *ContractsPost) NewResponseBody() *ContractsPostResponseBody

func (*ContractsPost) PathParams

func (r *ContractsPost) PathParams() *ContractsPostPathParams

func (*ContractsPost) PathParamsInterface

func (r *ContractsPost) PathParamsInterface() PathParams

func (*ContractsPost) QueryParams

func (r *ContractsPost) QueryParams() QueryParams

func (*ContractsPost) RequestBody

func (r *ContractsPost) RequestBody() *ContractsPostBody

func (*ContractsPost) RequestBodyInterface

func (r *ContractsPost) RequestBodyInterface() interface{}

func (*ContractsPost) SetMethod

func (r *ContractsPost) SetMethod(method string)

func (*ContractsPost) SetRequestBody

func (r *ContractsPost) SetRequestBody(body ContractsPostBody)

func (*ContractsPost) URL

func (r *ContractsPost) URL() *url.URL

type ContractsPostBody

type ContractsPostBody struct {
}

type ContractsPostPathParams

type ContractsPostPathParams struct {
}

func (*ContractsPostPathParams) Params

func (p *ContractsPostPathParams) Params() map[string]string

type ContractsPostQueryParams

type ContractsPostQueryParams struct {
}

func (ContractsPostQueryParams) ToURLValues

func (p ContractsPostQueryParams) ToURLValues() (url.Values, error)

type ContractsPostResponseBody

type ContractsPostResponseBody struct {
	JobID string `json:"jobId"`
}

type CostCentersGet

type CostCentersGet struct {
	// contains filtered or unexported fields
}

func (*CostCentersGet) Do

func (*CostCentersGet) Method

func (r *CostCentersGet) Method() string

func (CostCentersGet) NewPathParams

func (r CostCentersGet) NewPathParams() *CostCentersGetPathParams

func (CostCentersGet) NewQueryParams

func (r CostCentersGet) NewQueryParams() *CostCentersGetQueryParams

func (CostCentersGet) NewRequestBody

func (r CostCentersGet) NewRequestBody() CostCentersGetBody

func (*CostCentersGet) NewResponseBody

func (r *CostCentersGet) NewResponseBody() *CostCentersGetResponseBody

func (*CostCentersGet) PathParams

func (r *CostCentersGet) PathParams() *CostCentersGetPathParams

func (*CostCentersGet) PathParamsInterface

func (r *CostCentersGet) PathParamsInterface() PathParams

func (*CostCentersGet) QueryParams

func (r *CostCentersGet) QueryParams() *CostCentersGetQueryParams

func (*CostCentersGet) RequestBody

func (r *CostCentersGet) RequestBody() *CostCentersGetBody

func (*CostCentersGet) RequestBodyInterface

func (r *CostCentersGet) RequestBodyInterface() interface{}

func (*CostCentersGet) SetMethod

func (r *CostCentersGet) SetMethod(method string)

func (*CostCentersGet) SetRequestBody

func (r *CostCentersGet) SetRequestBody(body CostCentersGetBody)

func (*CostCentersGet) URL

func (r *CostCentersGet) URL() *url.URL

type CostCentersGetBody

type CostCentersGetBody struct {
}

type CostCentersGetPathParams

type CostCentersGetPathParams struct {
	JobID string `schema:"jobId"`
}

func (*CostCentersGetPathParams) Params

func (p *CostCentersGetPathParams) Params() map[string]string

type CostCentersGetQueryParams

type CostCentersGetQueryParams struct{}

func (CostCentersGetQueryParams) ToURLValues

func (p CostCentersGetQueryParams) ToURLValues() (url.Values, error)

type CostCentersGetResponseBody

type CostCentersGetResponseBody struct {
	CostCentersFileUris []string `json:"costCentersFileUris"`
	Status              string   `json:"status"`
}

type CostCentersPost

type CostCentersPost struct {
	// contains filtered or unexported fields
}

func (*CostCentersPost) Do

func (*CostCentersPost) Method

func (r *CostCentersPost) Method() string

func (CostCentersPost) NewPathParams

func (r CostCentersPost) NewPathParams() *CostCentersPostPathParams

func (CostCentersPost) NewQueryParams

func (r CostCentersPost) NewQueryParams() *CostCentersPostQueryParams

func (CostCentersPost) NewRequestBody

func (r CostCentersPost) NewRequestBody() CostCentersPostBody

func (*CostCentersPost) NewResponseBody

func (r *CostCentersPost) NewResponseBody() *CostCentersPostResponseBody

func (*CostCentersPost) PathParams

func (r *CostCentersPost) PathParams() *CostCentersPostPathParams

func (*CostCentersPost) PathParamsInterface

func (r *CostCentersPost) PathParamsInterface() PathParams

func (*CostCentersPost) QueryParams

func (r *CostCentersPost) QueryParams() QueryParams

func (*CostCentersPost) RequestBody

func (r *CostCentersPost) RequestBody() *CostCentersPostBody

func (*CostCentersPost) RequestBodyInterface

func (r *CostCentersPost) RequestBodyInterface() interface{}

func (*CostCentersPost) SetMethod

func (r *CostCentersPost) SetMethod(method string)

func (*CostCentersPost) SetRequestBody

func (r *CostCentersPost) SetRequestBody(body CostCentersPostBody)

func (*CostCentersPost) URL

func (r *CostCentersPost) URL() *url.URL

type CostCentersPostBody

type CostCentersPostBody struct {
}

type CostCentersPostPathParams

type CostCentersPostPathParams struct {
}

func (*CostCentersPostPathParams) Params

func (p *CostCentersPostPathParams) Params() map[string]string

type CostCentersPostQueryParams

type CostCentersPostQueryParams struct {
}

func (CostCentersPostQueryParams) ToURLValues

func (p CostCentersPostQueryParams) ToURLValues() (url.Values, error)

type CostCentersPostResponseBody

type CostCentersPostResponseBody struct {
	JobID string `json:"jobId"`
}

type Date

type Date struct {
	time.Time
}

func (Date) MarshalSchema

func (d Date) MarshalSchema() string

func (*Date) UnmarshalCSV

func (d *Date) UnmarshalCSV(s string) error

type DateTime

type DateTime struct {
	time.Time
}

func (DateTime) MarshalSchema

func (d DateTime) MarshalSchema() string

type Employee

type Employee struct {
	SalutationID               string `csv:"salutationid"`
	Salutation                 string `csv:"salutation"`
	Initials                   string `csv:"initials"`
	FirstName                  string `csv:"firstname"`
	Nickname                   string `csv:"nickname"`
	NameUsageEn                string `csv:"nameusage_en"`
	NameUsage                  string `csv:"nameusage"`
	Namecode                   string `csv:"namecode"`
	BirthName                  string `csv:"birthname"`
	PrefixBirthName            string `csv:"prefixbirthname"`
	FormattedName              string `csv:"formattedname"`
	DateOfBirth                Date   `csv:"dateofbirth"`
	Gender                     string `csv:"gender"`
	NationalityEn              string `csv:"nationality_en"`
	Nationality                string `csv:"nationality"`
	CorrAddressEn              string `csv:"corraddress_en"`
	CorrAddress                string `csv:"corraddress"`
	TitleBeforeEn              string `csv:"titlebefore_en"`
	TitleBefore                string `csv:"titlebefore"`
	TitleAfterEn               string `csv:"titleafter_en"`
	TitleAfter                 string `csv:"titleafter"`
	LanguageEn                 string `csv:"language_en"`
	Language                   string `csv:"language"`
	PartnerName                string `csv:"partnername"`
	PrefixPartnerName          string `csv:"prefixpartnername"`
	MaritalStatusID            string `csv:"maritalstatusid"`
	MaritalStatus              string `csv:"maritalstatus"`
	OfficialDate               Date   `csv:"officialdate"`
	EmployeeGroupID            string `csv:"employeegroupid"`
	EmployeeGroupNameEn        string `csv:"employeegroupname_en"`
	EmployeeGroupName          string `csv:"employeegroupname"`
	IsManager                  string `csv:"ismanager"`
	CompanyID                  string `csv:"companyid"`
	CompanyName                string `csv:"companyname"`
	BoardNumber                string `csv:"boardnumber"`
	SicknessStreet             string `csv:"sicknessstreet"`
	SicknessHouseNumber        string `csv:"sicknesshousenumber"`
	SicknessHouseNumberExt     string `csv:"sicknesshousenumberext"`
	SicknessZipcode            string `csv:"sicknesszipcode"`
	SicknessCity               string `csv:"sicknesscity"`
	SicknessCountryEn          string `csv:"sicknesscountry_en"`
	SicknessCountry            string `csv:"sicknesscountry"`
	PostalStreet               string `csv:"postalstreet"`
	PostalHouseNumber          string `csv:"postalhousenumber"`
	PostalHouseNumberExt       string `csv:"postalhousenumberext"`
	PostalZipCode              string `csv:"postalzipcode"`
	PostalCity                 string `csv:"postalcity"`
	PostalCountryEn            string `csv:"postalcountry_en"`
	PostalCountry              string `csv:"postalcountry"`
	HomeStreet                 string `csv:"homestreet"`
	HomeHouseNumber            string `csv:"homehousenumber"`
	HomeHouseNumberext         string `csv:"homehousenumberext"`
	HomeZipCode                string `csv:"homezipcode"`
	HomeCity                   string `csv:"homecity"`
	HomeCountryEn              string `csv:"homecountry_en"`
	HomeCountry                string `csv:"homecountry"`
	OtherAddressesEn           string `csv:"otheraddresses_en"`
	OtherAddresses             string `csv:"otheraddresses"`
	HomeEmailAddress           string `csv:"homeemailaddress"`
	BusinessEmailAddress       string `csv:"businessemailaddress"`
	HomewebEmailAddress        string `csv:"homewebemailaddress"`
	Businesswebemailaddress    string `csv:"businesswebemailaddress"`
	OtherEmailAddressesEn      string `csv:"otheremailaddresses_en"`
	OtherEmailaddresses        string `csv:"otheremailaddresses"`
	HomePhoneNumber            string `csv:"homephonenumber"`
	OfficeMobilePhoneNumber    string `csv:"officemobilephonenumber"`
	HomeFaxPhoneNumber         string `csv:"homefaxphonenumber"`
	PrivateMobilePhoneNumber   string `csv:"privatemobilephonenumber"`
	OfficetelPhoneNumber       string `csv:"officetelphonenumber"`
	OfficeextPhoneNumber       string `csv:"officeextphonenumber"`
	OfficefaxPhoneNumber       string `csv:"officefaxphonenumber"`
	SecretaryPhoneNumber       string `csv:"secretaryphonenumber"`
	SicknessAddressPhoneNumber string `csv:"sicknessaddressphonenumber"`
	EmergencyPhoneNumber       string `csv:"emergencyphonenumber"`
	OtherPhoneNumbersEn        string `csv:"otherphonenumbers_en"`
	OtherPhoneNumbers          string `csv:"otherphonenumbers"`
	ODPOrgID                   string `csv:"odporgid"`
	EmployeeID                 string `csv:"employeeid"`
	ExistenceStartUTC          string `csv:"existencestartutc"`
}

type Employees

type Employees []Employee

type EmployeesGet

type EmployeesGet struct {
	// contains filtered or unexported fields
}

func (*EmployeesGet) Do

func (*EmployeesGet) Method

func (r *EmployeesGet) Method() string

func (EmployeesGet) NewPathParams

func (r EmployeesGet) NewPathParams() *EmployeesGetPathParams

func (EmployeesGet) NewQueryParams

func (r EmployeesGet) NewQueryParams() *EmployeesGetQueryParams

func (EmployeesGet) NewRequestBody

func (r EmployeesGet) NewRequestBody() EmployeesGetBody

func (*EmployeesGet) NewResponseBody

func (r *EmployeesGet) NewResponseBody() *EmployeesGetResponseBody

func (*EmployeesGet) PathParams

func (r *EmployeesGet) PathParams() *EmployeesGetPathParams

func (*EmployeesGet) PathParamsInterface

func (r *EmployeesGet) PathParamsInterface() PathParams

func (*EmployeesGet) QueryParams

func (r *EmployeesGet) QueryParams() *EmployeesGetQueryParams

func (*EmployeesGet) RequestBody

func (r *EmployeesGet) RequestBody() *EmployeesGetBody

func (*EmployeesGet) RequestBodyInterface

func (r *EmployeesGet) RequestBodyInterface() interface{}

func (*EmployeesGet) SetMethod

func (r *EmployeesGet) SetMethod(method string)

func (*EmployeesGet) SetRequestBody

func (r *EmployeesGet) SetRequestBody(body EmployeesGetBody)

func (*EmployeesGet) URL

func (r *EmployeesGet) URL() *url.URL

type EmployeesGetBody

type EmployeesGetBody struct {
}

type EmployeesGetPathParams

type EmployeesGetPathParams struct {
	JobID string `schema:"jobId"`
}

func (*EmployeesGetPathParams) Params

func (p *EmployeesGetPathParams) Params() map[string]string

type EmployeesGetQueryParams

type EmployeesGetQueryParams struct{}

func (EmployeesGetQueryParams) ToURLValues

func (p EmployeesGetQueryParams) ToURLValues() (url.Values, error)

type EmployeesGetResponseBody

type EmployeesGetResponseBody struct {
	ChangeTimestampBefore time.Time `json:"changeTimestampBefore"`
	EmployeeFileUris      []string  `json:"employeeFileUris"`
	Status                string    `json:"status"`
}

type EmployeesPost

type EmployeesPost struct {
	// contains filtered or unexported fields
}

func (*EmployeesPost) Do

func (*EmployeesPost) DoCSV

func (r *EmployeesPost) DoCSV() (Employees, error)

func (*EmployeesPost) Method

func (r *EmployeesPost) Method() string

func (EmployeesPost) NewPathParams

func (r EmployeesPost) NewPathParams() *EmployeesPostPathParams

func (EmployeesPost) NewQueryParams

func (r EmployeesPost) NewQueryParams() *EmployeesPostQueryParams

func (EmployeesPost) NewRequestBody

func (r EmployeesPost) NewRequestBody() EmployeesPostBody

func (*EmployeesPost) NewResponseBody

func (r *EmployeesPost) NewResponseBody() *EmployeesPostResponseBody

func (*EmployeesPost) PathParams

func (r *EmployeesPost) PathParams() *EmployeesPostPathParams

func (*EmployeesPost) PathParamsInterface

func (r *EmployeesPost) PathParamsInterface() PathParams

func (*EmployeesPost) QueryParams

func (r *EmployeesPost) QueryParams() QueryParams

func (*EmployeesPost) RequestBody

func (r *EmployeesPost) RequestBody() *EmployeesPostBody

func (*EmployeesPost) RequestBodyInterface

func (r *EmployeesPost) RequestBodyInterface() interface{}

func (*EmployeesPost) SetMethod

func (r *EmployeesPost) SetMethod(method string)

func (*EmployeesPost) SetRequestBody

func (r *EmployeesPost) SetRequestBody(body EmployeesPostBody)

func (*EmployeesPost) URL

func (r *EmployeesPost) URL() *url.URL

type EmployeesPostBody

type EmployeesPostBody struct {
}

type EmployeesPostPathParams

type EmployeesPostPathParams struct {
}

func (*EmployeesPostPathParams) Params

func (p *EmployeesPostPathParams) Params() map[string]string

type EmployeesPostQueryParams

type EmployeesPostQueryParams struct {
}

func (EmployeesPostQueryParams) ToURLValues

func (p EmployeesPostQueryParams) ToURLValues() (url.Values, error)

type EmployeesPostResponseBody

type EmployeesPostResponseBody struct {
	JobID string `json:"jobId"`
}

type ErrorResponse

type ErrorResponse struct {
	// HTTP response that caused this error
	Response *http.Response

	Message string `json:"Message"`
}

func (*ErrorResponse) Error

func (r *ErrorResponse) Error() string

type ExceptionResponse

type ExceptionResponse struct {
	// HTTP response that caused this error
	Response *http.Response

	ExceptionType      string `json:"ExceptionType"`
	ExceptionMessage   string `json:"ExceptionMessage"`
	ExceptionFaultCode string `json:"ExceptionFaultCode"`
	ExceptionMessageID string `json:"ExceptionMessageID"`
	ExceptionDetails   string `json:"ExceptionDetails"`
}

func (*ExceptionResponse) Error

func (r *ExceptionResponse) Error() string

type Oauth2Config

type Oauth2Config struct {
	clientcredentials.Config
}

func NewOauth2Config

func NewOauth2Config(tenantID string) *Oauth2Config

type OrganizationUnit

type OrganizationUnit struct {
	ODPOrgID             string `csv:"odporgid"`
	PublicID             string `csv:"publicid"`
	OrgUnitID            string `csv:"orgunitid"`
	OrgUnitParentID      string `csv:"orgunitparentid"`
	OrgUnitType          string `csv:"orgunittype"`
	OrgReportType        string `csv:"orgreporttype"`
	Manager              string `csv:"manager"`
	ManagerUserID        string `csv:"manageruserid"`
	CostCenter           string `csv:"costcenter"`
	CostcenterName_en    string `csv:"costcentername_en"`
	CostcenterName       string `csv:"costcentername"`
	OrgDescription_en    string `csv:"orgdescription_en"`
	OrgDescription       string `csv:"orgdescription"`
	OrgName_en           string `csv:"orgname_en"`
	OrgName              string `csv:"orgname"`
	ExtDepartmentID      string `csv:"extdepartmentid"`
	ExtDepartmentName_en string `csv:"extdepartmentname_en"`
	ExtDepartmentName    string `csv:"extdepartmentname"`
	ExistenceStartUTC    string `csv:"existencestartutc"`
	StartDate            string `csv:"startdate"`
	EndDate              string `csv:"enddate"`
}

type OrganizationUnits

type OrganizationUnits []OrganizationUnit

type OrganizationUnitsGet

type OrganizationUnitsGet struct {
	// contains filtered or unexported fields
}

func (*OrganizationUnitsGet) Do

func (*OrganizationUnitsGet) Method

func (r *OrganizationUnitsGet) Method() string

func (OrganizationUnitsGet) NewPathParams

func (OrganizationUnitsGet) NewQueryParams

func (OrganizationUnitsGet) NewRequestBody

func (*OrganizationUnitsGet) NewResponseBody

func (*OrganizationUnitsGet) PathParams

func (*OrganizationUnitsGet) PathParamsInterface

func (r *OrganizationUnitsGet) PathParamsInterface() PathParams

func (*OrganizationUnitsGet) QueryParams

func (*OrganizationUnitsGet) RequestBody

func (*OrganizationUnitsGet) RequestBodyInterface

func (r *OrganizationUnitsGet) RequestBodyInterface() interface{}

func (*OrganizationUnitsGet) SetMethod

func (r *OrganizationUnitsGet) SetMethod(method string)

func (*OrganizationUnitsGet) SetRequestBody

func (r *OrganizationUnitsGet) SetRequestBody(body OrganizationUnitsGetBody)

func (*OrganizationUnitsGet) URL

func (r *OrganizationUnitsGet) URL() *url.URL

type OrganizationUnitsGetBody

type OrganizationUnitsGetBody struct {
}

type OrganizationUnitsGetPathParams

type OrganizationUnitsGetPathParams struct {
	JobID string `schema:"jobId"`
}

func (*OrganizationUnitsGetPathParams) Params

type OrganizationUnitsGetQueryParams

type OrganizationUnitsGetQueryParams struct{}

func (OrganizationUnitsGetQueryParams) ToURLValues

func (p OrganizationUnitsGetQueryParams) ToURLValues() (url.Values, error)

type OrganizationUnitsGetResponseBody

type OrganizationUnitsGetResponseBody struct {
	OrganizationUnitsFileUris []string `json:"organizationUnitsFileUris"`
	Status                    string   `json:"status"`
}

type OrganizationUnitsPost

type OrganizationUnitsPost struct {
	// contains filtered or unexported fields
}

func (*OrganizationUnitsPost) Do

func (*OrganizationUnitsPost) DoCSV

func (*OrganizationUnitsPost) Method

func (r *OrganizationUnitsPost) Method() string

func (OrganizationUnitsPost) NewPathParams

func (OrganizationUnitsPost) NewQueryParams

func (OrganizationUnitsPost) NewRequestBody

func (*OrganizationUnitsPost) NewResponseBody

func (*OrganizationUnitsPost) PathParams

func (*OrganizationUnitsPost) PathParamsInterface

func (r *OrganizationUnitsPost) PathParamsInterface() PathParams

func (*OrganizationUnitsPost) QueryParams

func (r *OrganizationUnitsPost) QueryParams() QueryParams

func (*OrganizationUnitsPost) RequestBody

func (*OrganizationUnitsPost) RequestBodyInterface

func (r *OrganizationUnitsPost) RequestBodyInterface() interface{}

func (*OrganizationUnitsPost) SetMethod

func (r *OrganizationUnitsPost) SetMethod(method string)

func (*OrganizationUnitsPost) SetRequestBody

func (r *OrganizationUnitsPost) SetRequestBody(body OrganizationUnitsPostBody)

func (*OrganizationUnitsPost) URL

func (r *OrganizationUnitsPost) URL() *url.URL

type OrganizationUnitsPostBody

type OrganizationUnitsPostBody struct {
}

type OrganizationUnitsPostPathParams

type OrganizationUnitsPostPathParams struct {
}

func (*OrganizationUnitsPostPathParams) Params

type OrganizationUnitsPostQueryParams

type OrganizationUnitsPostQueryParams struct {
}

func (OrganizationUnitsPostQueryParams) ToURLValues

func (p OrganizationUnitsPostQueryParams) ToURLValues() (url.Values, error)

type OrganizationUnitsPostResponseBody

type OrganizationUnitsPostResponseBody struct {
	JobID string `json:"jobId"`
}

type PathParams

type PathParams interface {
	Params() map[string]string
}

type QueryParams

type QueryParams interface {
	ToURLValues() (url.Values, error)
}

type Request

type Request interface {
	Method() string
	// QueryParams() QueryParams
	PathParamsInterface() PathParams
	RequestBodyInterface() interface{}
	URL() *url.URL
}

type RequestCompletionCallback

type RequestCompletionCallback func(*http.Request, *http.Response)

RequestCompletionCallback defines the type of the request callback function

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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