Documentation ¶
Index ¶
- Variables
- func CheckResponse(r *http.Response) error
- type AuthenticateWithPassword
- func (r *AuthenticateWithPassword) Do() (AuthenticateWithPasswordResponseBody, error)
- func (r *AuthenticateWithPassword) Method() string
- func (r AuthenticateWithPassword) NewPathParams() *AuthenticateWithPasswordPathParams
- func (r AuthenticateWithPassword) NewQueryParams() *AuthenticateWithPasswordQueryParams
- func (r AuthenticateWithPassword) NewRequestBody() AuthenticateWithPasswordBody
- func (r *AuthenticateWithPassword) NewResponseBody() *AuthenticateWithPasswordResponseBody
- func (r *AuthenticateWithPassword) PathParams() *AuthenticateWithPasswordPathParams
- func (r *AuthenticateWithPassword) PathParamsInterface() PathParams
- func (r *AuthenticateWithPassword) QueryParams() *AuthenticateWithPasswordQueryParams
- func (r *AuthenticateWithPassword) RequestBody() *AuthenticateWithPasswordBody
- func (r *AuthenticateWithPassword) RequestBodyInterface() interface{}
- func (r *AuthenticateWithPassword) SetMethod(method string)
- func (r *AuthenticateWithPassword) SetRequestBody(body AuthenticateWithPasswordBody)
- func (r *AuthenticateWithPassword) URL() *url.URL
- type AuthenticateWithPasswordBody
- type AuthenticateWithPasswordPathParams
- type AuthenticateWithPasswordQueryParams
- type AuthenticateWithPasswordResponseBody
- type BeforeRequestDoCallback
- type Client
- func (c Client) APIKey() string
- func (c *Client) Authenticate(req *http.Request) error
- func (c Client) BaseURL() url.URL
- func (c Client) Charset() string
- func (c Client) Debug() bool
- func (c *Client) Do(req *http.Request, body interface{}) (*http.Response, error)
- func (c *Client) GetEndpointURL(p string, pathParams PathParams) url.URL
- func (c *Client) IsAuthenticated() bool
- func (c Client) MediaType() string
- func (c *Client) NewAuthenticateWithPassword() AuthenticateWithPassword
- func (c *Client) NewMessagePost() MessagePost
- func (c *Client) NewMetadataFormtaskFormXSDGet() MetadataFormtaskFormXSDGet
- func (c *Client) NewMetadataFormtaskGet() MetadataFormtaskGet
- func (c *Client) NewMetadataGet() MetadataGet
- func (c *Client) NewOrganizationsGet() OrganizationsGet
- func (c *Client) NewRequest(ctx context.Context, req Request) (*http.Request, error)
- func (c *Client) SetAPIKey(apiKey string)
- func (c *Client) SetBaseURL(baseURL url.URL)
- func (c *Client) SetBeforeRequestDo(fun BeforeRequestDoCallback)
- func (c *Client) SetCharset(charset string)
- func (c *Client) SetDebug(debug bool)
- func (c *Client) SetDisallowUnknownFields(disallowUnknownFields bool)
- func (c *Client) SetHTTPClient(client *http.Client)
- func (c *Client) SetMediaType(mediaType string)
- func (c *Client) SetUserAgent(userAgent string)
- func (c *Client) SetUserName(userName string)
- func (c *Client) SetUserPassword(userPassword string)
- func (c *Client) Unmarshal(r io.Reader, vv ...interface{}) error
- func (c Client) UserAgent() string
- func (c Client) UserName() string
- func (c Client) UserPassword() string
- type Date
- type DateTime
- type ErrorResponse
- type Form
- type Forms
- type IntList
- type Melding
- type MessagePost
- func (r *MessagePost) Do() (MessagePostResponseBody, error)
- func (r *MessagePost) Method() string
- func (r MessagePost) NewPathParams() *MessagePostPathParams
- func (r MessagePost) NewQueryParams() *MessagePostQueryParams
- func (r MessagePost) NewRequestBody() MessagePostRequestBody
- func (r *MessagePost) NewResponseBody() *MessagePostResponseBody
- func (r *MessagePost) PathParams() *MessagePostPathParams
- func (r *MessagePost) PathParamsInterface() PathParams
- func (r *MessagePost) QueryParams() *MessagePostQueryParams
- func (r *MessagePost) RequestBody() *MessagePostRequestBody
- func (r *MessagePost) RequestBodyInterface() interface{}
- func (r *MessagePost) SetMethod(method string)
- func (r *MessagePost) SetRequestBody(body MessagePostRequestBody)
- func (r *MessagePost) URL() *url.URL
- type MessagePostPathParams
- type MessagePostQueryParams
- type MessagePostRequestBody
- type MessagePostResponseBody
- type MetadataFormtaskFormXSDGet
- func (r *MetadataFormtaskFormXSDGet) Do() (MetadataFormtaskFormXSDGetResponseBody, error)
- func (r *MetadataFormtaskFormXSDGet) Method() string
- func (r MetadataFormtaskFormXSDGet) NewPathParams() *MetadataFormtaskFormXSDGetPathParams
- func (r MetadataFormtaskFormXSDGet) NewQueryParams() *MetadataFormtaskFormXSDGetQueryParams
- func (r MetadataFormtaskFormXSDGet) NewRequestBody() MetadataFormtaskFormXSDGetBody
- func (r *MetadataFormtaskFormXSDGet) NewResponseBody() *MetadataFormtaskFormXSDGetResponseBody
- func (r *MetadataFormtaskFormXSDGet) PathParams() *MetadataFormtaskFormXSDGetPathParams
- func (r *MetadataFormtaskFormXSDGet) PathParamsInterface() PathParams
- func (r *MetadataFormtaskFormXSDGet) QueryParams() *MetadataFormtaskFormXSDGetQueryParams
- func (r *MetadataFormtaskFormXSDGet) RequestBody() *MetadataFormtaskFormXSDGetBody
- func (r *MetadataFormtaskFormXSDGet) RequestBodyInterface() interface{}
- func (r *MetadataFormtaskFormXSDGet) SetMethod(method string)
- func (r *MetadataFormtaskFormXSDGet) SetRequestBody(body MetadataFormtaskFormXSDGetBody)
- func (r *MetadataFormtaskFormXSDGet) URL() *url.URL
- type MetadataFormtaskFormXSDGetBody
- type MetadataFormtaskFormXSDGetPathParams
- type MetadataFormtaskFormXSDGetQueryParams
- type MetadataFormtaskFormXSDGetResponseBody
- type MetadataFormtaskGet
- func (r *MetadataFormtaskGet) Do() (MetadataFormtaskGetResponseBody, error)
- func (r *MetadataFormtaskGet) Method() string
- func (r MetadataFormtaskGet) NewPathParams() *MetadataFormtaskGetPathParams
- func (r MetadataFormtaskGet) NewQueryParams() *MetadataFormtaskGetQueryParams
- func (r MetadataFormtaskGet) NewRequestBody() MetadataFormtaskGetBody
- func (r *MetadataFormtaskGet) NewResponseBody() *MetadataFormtaskGetResponseBody
- func (r *MetadataFormtaskGet) PathParams() *MetadataFormtaskGetPathParams
- func (r *MetadataFormtaskGet) PathParamsInterface() PathParams
- func (r *MetadataFormtaskGet) QueryParams() *MetadataFormtaskGetQueryParams
- func (r *MetadataFormtaskGet) RequestBody() *MetadataFormtaskGetBody
- func (r *MetadataFormtaskGet) RequestBodyInterface() interface{}
- func (r *MetadataFormtaskGet) SetMethod(method string)
- func (r *MetadataFormtaskGet) SetRequestBody(body MetadataFormtaskGetBody)
- func (r *MetadataFormtaskGet) URL() *url.URL
- type MetadataFormtaskGetBody
- type MetadataFormtaskGetPathParams
- type MetadataFormtaskGetQueryParams
- type MetadataFormtaskGetResponseBody
- type MetadataGet
- func (r *MetadataGet) Do() (MetadataGetResponseBody, error)
- func (r *MetadataGet) Method() string
- func (r MetadataGet) NewPathParams() *MetadataGetPathParams
- func (r MetadataGet) NewQueryParams() *MetadataGetQueryParams
- func (r MetadataGet) NewRequestBody() MetadataGetBody
- func (r *MetadataGet) NewResponseBody() *MetadataGetResponseBody
- func (r *MetadataGet) PathParams() *MetadataGetPathParams
- func (r *MetadataGet) PathParamsInterface() PathParams
- func (r *MetadataGet) QueryParams() *MetadataGetQueryParams
- func (r *MetadataGet) RequestBody() *MetadataGetBody
- func (r *MetadataGet) RequestBodyInterface() interface{}
- func (r *MetadataGet) SetMethod(method string)
- func (r *MetadataGet) SetRequestBody(body MetadataGetBody)
- func (r *MetadataGet) URL() *url.URL
- type MetadataGetBody
- type MetadataGetPathParams
- type MetadataGetQueryParams
- type MetadataGetResponseBody
- type Oauth2Config
- type OrganizationsGet
- func (r *OrganizationsGet) Do() (OrganizationsGetResponseBody, error)
- func (r *OrganizationsGet) Method() string
- func (r OrganizationsGet) NewPathParams() *OrganizationsGetPathParams
- func (r OrganizationsGet) NewQueryParams() *OrganizationsGetQueryParams
- func (r OrganizationsGet) NewRequestBody() OrganizationsGetBody
- func (r *OrganizationsGet) NewResponseBody() *OrganizationsGetResponseBody
- func (r *OrganizationsGet) PathParams() *OrganizationsGetPathParams
- func (r *OrganizationsGet) PathParamsInterface() PathParams
- func (r *OrganizationsGet) QueryParams() *OrganizationsGetQueryParams
- func (r *OrganizationsGet) RequestBody() *OrganizationsGetBody
- func (r *OrganizationsGet) RequestBodyInterface() interface{}
- func (r *OrganizationsGet) SetMethod(method string)
- func (r *OrganizationsGet) SetRequestBody(body OrganizationsGetBody)
- func (r *OrganizationsGet) URL() *url.URL
- type OrganizationsGetBody
- type OrganizationsGetPathParams
- type OrganizationsGetQueryParams
- type OrganizationsGetResponseBody
- type PathParams
- type QueryParams
- type Request
- type RequestCompletionCallback
- type ValidationResponse
Constants ¶
This section is empty.
Variables ¶
var (
BaseURL = url.URL{
Scheme: "https",
Host: "www.altinn.no",
Path: "/api/",
}
)
Functions ¶
func CheckResponse ¶
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 AuthenticateWithPassword ¶
type AuthenticateWithPassword struct {
// contains filtered or unexported fields
}
func (*AuthenticateWithPassword) Do ¶
func (r *AuthenticateWithPassword) Do() (AuthenticateWithPasswordResponseBody, error)
func (*AuthenticateWithPassword) Method ¶
func (r *AuthenticateWithPassword) Method() string
func (AuthenticateWithPassword) NewPathParams ¶
func (r AuthenticateWithPassword) NewPathParams() *AuthenticateWithPasswordPathParams
func (AuthenticateWithPassword) NewQueryParams ¶
func (r AuthenticateWithPassword) NewQueryParams() *AuthenticateWithPasswordQueryParams
func (AuthenticateWithPassword) NewRequestBody ¶
func (r AuthenticateWithPassword) NewRequestBody() AuthenticateWithPasswordBody
func (*AuthenticateWithPassword) NewResponseBody ¶
func (r *AuthenticateWithPassword) NewResponseBody() *AuthenticateWithPasswordResponseBody
func (*AuthenticateWithPassword) PathParams ¶
func (r *AuthenticateWithPassword) PathParams() *AuthenticateWithPasswordPathParams
func (*AuthenticateWithPassword) PathParamsInterface ¶
func (r *AuthenticateWithPassword) PathParamsInterface() PathParams
func (*AuthenticateWithPassword) QueryParams ¶
func (r *AuthenticateWithPassword) QueryParams() *AuthenticateWithPasswordQueryParams
func (*AuthenticateWithPassword) RequestBody ¶
func (r *AuthenticateWithPassword) RequestBody() *AuthenticateWithPasswordBody
func (*AuthenticateWithPassword) RequestBodyInterface ¶
func (r *AuthenticateWithPassword) RequestBodyInterface() interface{}
func (*AuthenticateWithPassword) SetMethod ¶
func (r *AuthenticateWithPassword) SetMethod(method string)
func (*AuthenticateWithPassword) SetRequestBody ¶
func (r *AuthenticateWithPassword) SetRequestBody(body AuthenticateWithPasswordBody)
func (*AuthenticateWithPassword) URL ¶
func (r *AuthenticateWithPassword) URL() *url.URL
type AuthenticateWithPasswordPathParams ¶
type AuthenticateWithPasswordPathParams struct { }
func (*AuthenticateWithPasswordPathParams) Params ¶
func (p *AuthenticateWithPasswordPathParams) Params() map[string]string
type AuthenticateWithPasswordQueryParams ¶
type AuthenticateWithPasswordQueryParams struct {
ForceEIAuthentication bool `schema:"ForceEIAuthentication"`
}
func (AuthenticateWithPasswordQueryParams) ToURLValues ¶
func (p AuthenticateWithPasswordQueryParams) ToURLValues() (url.Values, error)
type AuthenticateWithPasswordResponseBody ¶
type AuthenticateWithPasswordResponseBody struct{}
type BeforeRequestDoCallback ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client manages communication with Exact Globe Client
func (*Client) Do ¶
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) IsAuthenticated ¶
func (*Client) NewAuthenticateWithPassword ¶
func (c *Client) NewAuthenticateWithPassword() AuthenticateWithPassword
func (*Client) NewMessagePost ¶
func (c *Client) NewMessagePost() MessagePost
func (*Client) NewMetadataFormtaskFormXSDGet ¶
func (c *Client) NewMetadataFormtaskFormXSDGet() MetadataFormtaskFormXSDGet
func (*Client) NewMetadataFormtaskGet ¶
func (c *Client) NewMetadataFormtaskGet() MetadataFormtaskGet
func (*Client) NewMetadataGet ¶
func (c *Client) NewMetadataGet() MetadataGet
func (*Client) NewOrganizationsGet ¶
func (c *Client) NewOrganizationsGet() OrganizationsGet
func (*Client) NewRequest ¶
func (*Client) SetBaseURL ¶
func (*Client) SetBeforeRequestDo ¶
func (c *Client) SetBeforeRequestDo(fun BeforeRequestDoCallback)
func (*Client) SetCharset ¶
func (*Client) SetDisallowUnknownFields ¶
func (*Client) SetHTTPClient ¶
func (*Client) SetMediaType ¶
func (*Client) SetUserAgent ¶
func (*Client) SetUserName ¶
func (*Client) SetUserPassword ¶
func (Client) UserPassword ¶
type Date ¶
func (Date) MarshalSchema ¶
type DateTime ¶
func (DateTime) MarshalSchema ¶
type ErrorResponse ¶
type ErrorResponse struct { // HTTP response that caused this error Response *http.Response Message string `json:"Message"` ModelState struct { MessageServiceEdition []string `json:"message.ServiceEdition"` MessageType []string `json:"message.Type"` MessageServiceCode []string `json:"message.ServiceCode"` } `json:"ModelState"` }
func (*ErrorResponse) Error ¶
func (r *ErrorResponse) Error() string
type Melding ¶
type Melding struct { XMLName xml.Name `xml:"melding"` Seres string `xml:"xmlns:seres,attr"` DataFormatProvider string `xml:"dataFormatProvider,attr"` DataFormatId string `xml:"dataFormatId,attr"` DataFormatVersion string `xml:"dataFormatVersion,attr"` InternInformasjon struct { PeriodeFritekst string `xml:"periodeFritekst"` RapportPeriode struct { FomDato string `xml:"fomDato"` TomDato string `xml:"tomDato"` } `xml:"rapportPeriode"` RaNummer string `xml:"raNummer"` DelRegNummer string `xml:"delRegNummer"` IdentnummerEnhet string `xml:"identnummerEnhet"` SendtFraSluttbrukersystem string `xml:"sendtFraSluttbrukersystem"` StatistiskEnhet struct { Enhetsident string `xml:"enhetsident"` Enhetstype string `xml:"enhetstype"` } `xml:"statistiskEnhet"` Skjemaidentifikasjon struct { Periodenummer string `xml:"periodenummer"` Periodetype string `xml:"periodetype"` PeriodeAAr string `xml:"periodeAAr"` Undersoekelsesnummer string `xml:"undersoekelsesnummer"` } `xml:"skjemaidentifikasjon"` } `xml:"InternInformasjon"` KontaktpersonOgKommentarfelt struct { Kontaktperson struct { Epostadresse string `xml:"epostadresse"` Navn string `xml:"navn"` TelefonSFU string `xml:"telefonSFU"` } `xml:"kontaktperson"` } `xml:"KontaktpersonOgKommentarfelt"` ForetakOgVirksomhetsopplysninger struct { Virksomhet struct { OrganisasjonsnummerVirksomhet string `xml:"organisasjonsnummerVirksomhet"` NavnVirksomhet string `xml:"navnVirksomhet"` AdresseVirksomhet struct { Gateadresse string `xml:"gateadresse"` Postnummer string `xml:"postnummer"` Poststed string `xml:"poststed"` } `xml:"adresseVirksomhet"` } `xml:"virksomhet"` } `xml:"ForetakOgVirksomhetsopplysninger"` StatusVirksomhetMedDriftsperiode struct { DriftsstatusPeriode string `xml:"driftsstatusPeriode"` } `xml:"StatusVirksomhetMedDriftsperiode"` Naeringskontrollspoersmaal struct { VisNaeringskontrollJaNeiPrefill string `xml:"visNaeringskontrollJaNeiPrefill"` Naeringskontroll struct { Naeringskode string `xml:"naeringskode"` Naeringstekst string `xml:"naeringstekst"` Naeringsbeskrivelse string `xml:"naeringsbeskrivelse"` NyNaeringsbeskrivelse struct { AlltidViktigsteAktivitet string `xml:"alltidViktigsteAktivitet"` } `xml:"nyNaeringsbeskrivelse"` } `xml:"Naeringskontroll"` } `xml:"Naeringskontrollspoersmaal"` Oppgavebyrde struct { VisOppgavebyrdeJaNeiPrefill string `xml:"visOppgavebyrdeJaNeiPrefill"` TidsbrukSamleInformasjon string `xml:"tidsbrukSamleInformasjon"` TidsbrukSelveSkjemautfyllingen string `xml:"tidsbrukSelveSkjemautfyllingen"` TidsbrukTotalHjelpAvAndre string `xml:"tidsbrukTotalHjelpAvAndre"` } `xml:"Oppgavebyrde"` Skjemadata struct { Rapporteringsenhet struct { TypeHotell string `xml:"typeHotell"` TypeVandrehjem string `xml:"typeVandrehjem"` TypeHytter string `xml:"typeHytter"` TypeCamping string `xml:"typeCamping"` TypeAnnen string `xml:"typeAnnen"` } `xml:"rapporteringsenhet"` Kapasitet struct { KapasitetHotell struct { AntDager struct { Endret string `xml:"endret"` AntallEndret string `xml:"antallEndret"` } `xml:"antDager"` AntGjesterom struct { Endret string `xml:"endret"` AntallEndret string `xml:"antallEndret"` } `xml:"antGjesterom"` AntRullestol struct { Endret string `xml:"endret"` AntallEndret string `xml:"antallEndret"` } `xml:"antRullestol"` AntFasteSengeplasser struct { Endret string `xml:"endret"` AntallEndret string `xml:"antallEndret"` } `xml:"antFasteSengeplasser"` } `xml:"kapasitetHotell"` KapasitetHytte struct { AntDager string `xml:"antDager"` AntUtleieenheter string `xml:"antUtleieenheter"` AntFasteSengeplasser string `xml:"antFasteSengeplasser"` } `xml:"kapasitetHytte"` KapasitetCamping struct { AntDager string `xml:"antDager"` AntUtekapasitet string `xml:"antUtekapasitet"` AntInnekapasitet string `xml:"antInnekapasitet"` AntFasteSengeplasser string `xml:"antFasteSengeplasser"` } `xml:"kapasitetCamping"` } `xml:"kapasitet"` OmsetningHotell struct { Romdoegn string `xml:"romdoegn"` Losjiomsetning string `xml:"losjiomsetning"` } `xml:"omsetningHotell"` Belegg struct { BeleggHotell struct { AntGjester string `xml:"antGjester"` AntNorskeGjester string `xml:"antNorskeGjester"` AntGjestedoegn string `xml:"antGjestedoegn"` FerieFritidGjestedoegn string `xml:"ferieFritidGjestedoegn"` KursGjestedoegn string `xml:"kursGjestedoegn"` ForretningsGjestedoegn string `xml:"forretningsGjestedoegn"` Land struct { Norden struct { GJD_DANMARK int `xml:"GJD_DANMARK"` GJD_FINLAND int `xml:"GJD_FINLAND"` GJD_ISLAND int `xml:"GJD_ISLAND"` GJD_NORGE int `xml:"GJD_NORGE"` GJD_SVERIGE int `xml:"GJD_SVERIGE"` } `xml:"norden"` Europa struct { GJD_ALBANIA int `xml:"GJD_ALBANIA,omitempty"` GJD_ANDORRA int `xml:"GJD_ANDORRA,omitempty"` GJD_BELGIA int `xml:"GJD_BELGIA,omitempty"` GJD_BOSNIAOGHERZEGOVINA int `xml:"GJD_BOSNIAOGHERZEGOVINA,omitempty"` GJD_BULGARIA int `xml:"GJD_BULGARIA,omitempty"` GJD_ESTLAND int `xml:"GJD_ESTLAND,omitempty"` GJD_FRANKRIKE int `xml:"GJD_FRANKRIKE,omitempty"` GJD_HELLAS int `xml:"GJD_HELLAS,omitempty"` GJD_HVITERUSSLAND int `xml:"GJD_HVITERUSSLAND,omitempty"` GJD_IRLAND int `xml:"GJD_IRLAND,omitempty"` GJD_ITALIA int `xml:"GJD_ITALIA,omitempty"` GJD_KOSOVO int `xml:"GJD_KOSOVO,omitempty"` GJD_KROATIA int `xml:"GJD_KROATIA,omitempty"` GJD_KYPROS int `xml:"GJD_KYPROS,omitempty"` GJD_LATVIA int `xml:"GJD_LATVIA,omitempty"` GJD_LIECHTENSTEIN int `xml:"GJD_LIECHTENSTEIN,omitempty"` GJD_LITAUEN int `xml:"GJD_LITAUEN,omitempty"` GJD_LUXEMBOURG int `xml:"GJD_LUXEMBOURG,omitempty"` GJD_MAKEDONIA int `xml:"GJD_MAKEDONIA,omitempty"` GJD_MALTA int `xml:"GJD_MALTA,omitempty"` GJD_MOLDOVA int `xml:"GJD_MOLDOVA,omitempty"` GJD_MONACO int `xml:"GJD_MONACO,omitempty"` GJD_MONTNEGRO int `xml:"GJD_MONTNEGRO,omitempty"` GJD_NEDERLAND int `xml:"GJD_NEDERLAND,omitempty"` GJD_POLEN int `xml:"GJD_POLEN,omitempty"` GJD_PORTUGAL int `xml:"GJD_PORTUGAL,omitempty"` GJD_ROMANIA int `xml:"GJD_ROMANIA,omitempty"` GJD_RUSSLAND int `xml:"GJD_RUSSLAND,omitempty"` GJD_SANMARINO int `xml:"GJD_SANMARINO,omitempty"` GJD_SERBIA int `xml:"GJD_SERBIA,omitempty"` GJD_SLOVAKIA int `xml:"GJD_SLOVAKIA,omitempty"` GJD_SLOVENIA int `xml:"GJD_SLOVENIA,omitempty"` GJD_SPANIA int `xml:"GJD_SPANIA,omitempty"` GJD_STORBRITANNIA int `xml:"GJD_STORBRITANNIA,omitempty"` GJD_SVEITS int `xml:"GJD_SVEITS,omitempty"` GJD_TSJEKKIA int `xml:"GJD_TSJEKKIA,omitempty"` GJD_TYRKIA int `xml:"GJD_TYRKIA,omitempty"` GJD_TYSKLAND int `xml:"GJD_TYSKLAND,omitempty"` GJD_UKRAINA int `xml:"GJD_UKRAINA,omitempty"` GJD_UNGARN int `xml:"GJD_UNGARN,omitempty"` GJD_VATIKANSTATEN int `xml:"GJD_VATIKANSTATEN,omitempty"` GJD_OSTERRIKE int `xml:"GJD_OSTERRIKE,omitempty"` } `xml:"europa,omitempty"` Asia struct { GJD_EMIRATER int `xml:"GJD_EMIRATER,omitempty"` GJD_INDIA int `xml:"GJD_INDIA,omitempty"` GJD_INDONESIA int `xml:"GJD_INDONESIA,omitempty"` GJD_ISRAEL int `xml:"GJD_ISRAEL,omitempty"` GJD_JAPAN int `xml:"GJD_JAPAN,omitempty"` GJD_KINA int `xml:"GJD_KINA,omitempty"` GJD_MALAYSIA int `xml:"GJD_MALAYSIA,omitempty"` GJD_QATAR int `xml:"GJD_QATAR,omitempty"` GJD_SINGAPORE int `xml:"GJD_SINGAPORE,omitempty"` GJD_SOR_KOREA int `xml:"GJD_SOR_KOREA,omitempty"` GJD_TAIWAN int `xml:"GJD_TAIWAN,omitempty"` GJD_THAILAND int `xml:"GJD_THAILAND,omitempty"` GJD_ASIA_ELLERS int `xml:"GJD_ASIA_ELLERS,omitempty"` } `xml:"asia,omitempty"` Amerika struct { GJD_BRASIL int `xml:"GJD_BRASIL,omitempty"` GJD_CANADA int `xml:"GJD_CANADA,omitempty"` GJD_MEXICO int `xml:"GJD_MEXICO,omitempty"` GJD_USA int `xml:"GJD_USA,omitempty"` GJD_LATIN_AMERIKA_ELLERS int `xml:"GJD_LATIN_AMERIKA_ELLERS,omitempty"` } `xml:"amerika,omitempty"` Oceania struct { GJD_AUSTRALIA int `xml:"GJD_AUSTRALIA,omitempty"` GJD_OCEANIA_ELLERS int `xml:"GJD_OCEANIA_ELLERS,omitempty"` } `xml:"oceania,omitempty"` Afrika struct { GJD_SOR_AFRIKA int `xml:"GJD_SOR_AFRIKA,omitempty"` GJD_AFRIKA_ELLERS int `xml:"GJD_AFRIKA_ELLERS,omitempty"` } `xml:"afrika,omitempty"` } `xml:"land"` } `xml:"beleggHotell"` } `xml:"belegg"` } `xml:"Skjemadata"` }
func (Melding) MarshalXML ¶
type MessagePost ¶
type MessagePost struct {
// contains filtered or unexported fields
}
func (*MessagePost) Do ¶
func (r *MessagePost) Do() (MessagePostResponseBody, error)
func (*MessagePost) Method ¶
func (r *MessagePost) Method() string
func (MessagePost) NewPathParams ¶
func (r MessagePost) NewPathParams() *MessagePostPathParams
func (MessagePost) NewQueryParams ¶
func (r MessagePost) NewQueryParams() *MessagePostQueryParams
func (MessagePost) NewRequestBody ¶
func (r MessagePost) NewRequestBody() MessagePostRequestBody
func (*MessagePost) NewResponseBody ¶
func (r *MessagePost) NewResponseBody() *MessagePostResponseBody
func (*MessagePost) PathParams ¶
func (r *MessagePost) PathParams() *MessagePostPathParams
func (*MessagePost) PathParamsInterface ¶
func (r *MessagePost) PathParamsInterface() PathParams
func (*MessagePost) QueryParams ¶
func (r *MessagePost) QueryParams() *MessagePostQueryParams
func (*MessagePost) RequestBody ¶
func (r *MessagePost) RequestBody() *MessagePostRequestBody
func (*MessagePost) RequestBodyInterface ¶
func (r *MessagePost) RequestBodyInterface() interface{}
func (*MessagePost) SetMethod ¶
func (r *MessagePost) SetMethod(method string)
func (*MessagePost) SetRequestBody ¶
func (r *MessagePost) SetRequestBody(body MessagePostRequestBody)
func (*MessagePost) URL ¶
func (r *MessagePost) URL() *url.URL
type MessagePostPathParams ¶
type MessagePostPathParams struct {
OrganizationNumber string `schema:"organization_number"`
}
func (*MessagePostPathParams) Params ¶
func (p *MessagePostPathParams) Params() map[string]string
type MessagePostQueryParams ¶
type MessagePostQueryParams struct { Language string `schema:"language,omitempty"` Complete bool `schema:"complete"` Sign bool `schema:"sign"` }
func (MessagePostQueryParams) ToURLValues ¶
func (p MessagePostQueryParams) ToURLValues() (url.Values, error)
type MessagePostRequestBody ¶
type MessagePostRequestBody struct { Type string `json:"Type"` ServiceCode string `json:"ServiceCode"` ServiceEdition string `json:"ServiceEdition"` Embedded struct { Forms Forms `json:"forms"` } `json:"_embedded"` }
func (MessagePostRequestBody) MarshalJSON ¶
func (b MessagePostRequestBody) MarshalJSON() ([]byte, error)
type MessagePostResponseBody ¶
type MetadataFormtaskFormXSDGet ¶
type MetadataFormtaskFormXSDGet struct {
// contains filtered or unexported fields
}
func (*MetadataFormtaskFormXSDGet) Do ¶
func (r *MetadataFormtaskFormXSDGet) Do() (MetadataFormtaskFormXSDGetResponseBody, error)
func (*MetadataFormtaskFormXSDGet) Method ¶
func (r *MetadataFormtaskFormXSDGet) Method() string
func (MetadataFormtaskFormXSDGet) NewPathParams ¶
func (r MetadataFormtaskFormXSDGet) NewPathParams() *MetadataFormtaskFormXSDGetPathParams
func (MetadataFormtaskFormXSDGet) NewQueryParams ¶
func (r MetadataFormtaskFormXSDGet) NewQueryParams() *MetadataFormtaskFormXSDGetQueryParams
func (MetadataFormtaskFormXSDGet) NewRequestBody ¶
func (r MetadataFormtaskFormXSDGet) NewRequestBody() MetadataFormtaskFormXSDGetBody
func (*MetadataFormtaskFormXSDGet) NewResponseBody ¶
func (r *MetadataFormtaskFormXSDGet) NewResponseBody() *MetadataFormtaskFormXSDGetResponseBody
func (*MetadataFormtaskFormXSDGet) PathParams ¶
func (r *MetadataFormtaskFormXSDGet) PathParams() *MetadataFormtaskFormXSDGetPathParams
func (*MetadataFormtaskFormXSDGet) PathParamsInterface ¶
func (r *MetadataFormtaskFormXSDGet) PathParamsInterface() PathParams
func (*MetadataFormtaskFormXSDGet) QueryParams ¶
func (r *MetadataFormtaskFormXSDGet) QueryParams() *MetadataFormtaskFormXSDGetQueryParams
func (*MetadataFormtaskFormXSDGet) RequestBody ¶
func (r *MetadataFormtaskFormXSDGet) RequestBody() *MetadataFormtaskFormXSDGetBody
func (*MetadataFormtaskFormXSDGet) RequestBodyInterface ¶
func (r *MetadataFormtaskFormXSDGet) RequestBodyInterface() interface{}
func (*MetadataFormtaskFormXSDGet) SetMethod ¶
func (r *MetadataFormtaskFormXSDGet) SetMethod(method string)
func (*MetadataFormtaskFormXSDGet) SetRequestBody ¶
func (r *MetadataFormtaskFormXSDGet) SetRequestBody(body MetadataFormtaskFormXSDGetBody)
func (*MetadataFormtaskFormXSDGet) URL ¶
func (r *MetadataFormtaskFormXSDGet) URL() *url.URL
type MetadataFormtaskFormXSDGetBody ¶
type MetadataFormtaskFormXSDGetBody struct { }
type MetadataFormtaskFormXSDGetPathParams ¶
type MetadataFormtaskFormXSDGetPathParams struct { ServiceCode int `schema:"service_code"` ServiceEditionCode int `schema:"service_edition_code"` DataFormatID int `schema:"data_format_id"` DataFormatVersion int `schema:"data_format_version"` }
func (*MetadataFormtaskFormXSDGetPathParams) Params ¶
func (p *MetadataFormtaskFormXSDGetPathParams) Params() map[string]string
type MetadataFormtaskFormXSDGetQueryParams ¶
type MetadataFormtaskFormXSDGetQueryParams struct {
Language int `schema:"language,omitempty"`
}
func (MetadataFormtaskFormXSDGetQueryParams) ToURLValues ¶
func (p MetadataFormtaskFormXSDGetQueryParams) ToURLValues() (url.Values, error)
type MetadataFormtaskFormXSDGetResponseBody ¶
type MetadataFormtaskFormXSDGetResponseBody struct { }
type MetadataFormtaskGet ¶
type MetadataFormtaskGet struct {
// contains filtered or unexported fields
}
func (*MetadataFormtaskGet) Do ¶
func (r *MetadataFormtaskGet) Do() (MetadataFormtaskGetResponseBody, error)
func (*MetadataFormtaskGet) Method ¶
func (r *MetadataFormtaskGet) Method() string
func (MetadataFormtaskGet) NewPathParams ¶
func (r MetadataFormtaskGet) NewPathParams() *MetadataFormtaskGetPathParams
func (MetadataFormtaskGet) NewQueryParams ¶
func (r MetadataFormtaskGet) NewQueryParams() *MetadataFormtaskGetQueryParams
func (MetadataFormtaskGet) NewRequestBody ¶
func (r MetadataFormtaskGet) NewRequestBody() MetadataFormtaskGetBody
func (*MetadataFormtaskGet) NewResponseBody ¶
func (r *MetadataFormtaskGet) NewResponseBody() *MetadataFormtaskGetResponseBody
func (*MetadataFormtaskGet) PathParams ¶
func (r *MetadataFormtaskGet) PathParams() *MetadataFormtaskGetPathParams
func (*MetadataFormtaskGet) PathParamsInterface ¶
func (r *MetadataFormtaskGet) PathParamsInterface() PathParams
func (*MetadataFormtaskGet) QueryParams ¶
func (r *MetadataFormtaskGet) QueryParams() *MetadataFormtaskGetQueryParams
func (*MetadataFormtaskGet) RequestBody ¶
func (r *MetadataFormtaskGet) RequestBody() *MetadataFormtaskGetBody
func (*MetadataFormtaskGet) RequestBodyInterface ¶
func (r *MetadataFormtaskGet) RequestBodyInterface() interface{}
func (*MetadataFormtaskGet) SetMethod ¶
func (r *MetadataFormtaskGet) SetMethod(method string)
func (*MetadataFormtaskGet) SetRequestBody ¶
func (r *MetadataFormtaskGet) SetRequestBody(body MetadataFormtaskGetBody)
func (*MetadataFormtaskGet) URL ¶
func (r *MetadataFormtaskGet) URL() *url.URL
type MetadataFormtaskGetBody ¶
type MetadataFormtaskGetBody struct { }
type MetadataFormtaskGetPathParams ¶
type MetadataFormtaskGetPathParams struct { ServiceCode int `schema:"service_code"` ServiceEditionCode int `schema:"service_edition_code"` }
func (*MetadataFormtaskGetPathParams) Params ¶
func (p *MetadataFormtaskGetPathParams) Params() map[string]string
type MetadataFormtaskGetQueryParams ¶
type MetadataFormtaskGetQueryParams struct {
Language int `schema:"language,omitempty"`
}
func (MetadataFormtaskGetQueryParams) ToURLValues ¶
func (p MetadataFormtaskGetQueryParams) ToURLValues() (url.Values, error)
type MetadataFormtaskGetResponseBody ¶
type MetadataFormtaskGetResponseBody struct { ServiceOwnerCode string `json:"ServiceOwnerCode"` ServiceOwnerName string `json:"ServiceOwnerName"` ServiceName string `json:"ServiceName"` ServiceCode string `json:"ServiceCode"` ServiceEditionName string `json:"ServiceEditionName"` ServiceEditionCode int `json:"ServiceEditionCode"` ValidFrom string `json:"ValidFrom"` ValidTo string `json:"ValidTo"` ServiceType string `json:"ServiceType"` RestEnabled bool `json:"RestEnabled"` FormsMetaData []struct { FormID int `json:"FormID"` FormName string `json:"FormName"` DataFormatProviderType string `json:"DataFormatProviderType"` DataFormatID string `json:"DataFormatID"` DataFormatVersion int `json:"DataFormatVersion"` IsOnlyXsdValidation bool `json:"IsOnlyXsdValidation"` FormType string `json:"FormType"` } `json:"FormsMetaData"` EUSEnabled bool `json:"EUSEnabled"` EnterpriseUserEnabled bool `json:"EnterpriseUserEnabled"` ProcessSteps []struct { SequenceNumber int `json:"SequenceNumber"` Name string `json:"Name"` SecurityLevel int `json:"SecurityLevel"` } `json:"ProcessSteps"` }
type MetadataGet ¶
type MetadataGet struct {
// contains filtered or unexported fields
}
func (*MetadataGet) Do ¶
func (r *MetadataGet) Do() (MetadataGetResponseBody, error)
func (*MetadataGet) Method ¶
func (r *MetadataGet) Method() string
func (MetadataGet) NewPathParams ¶
func (r MetadataGet) NewPathParams() *MetadataGetPathParams
func (MetadataGet) NewQueryParams ¶
func (r MetadataGet) NewQueryParams() *MetadataGetQueryParams
func (MetadataGet) NewRequestBody ¶
func (r MetadataGet) NewRequestBody() MetadataGetBody
func (*MetadataGet) NewResponseBody ¶
func (r *MetadataGet) NewResponseBody() *MetadataGetResponseBody
func (*MetadataGet) PathParams ¶
func (r *MetadataGet) PathParams() *MetadataGetPathParams
func (*MetadataGet) PathParamsInterface ¶
func (r *MetadataGet) PathParamsInterface() PathParams
func (*MetadataGet) QueryParams ¶
func (r *MetadataGet) QueryParams() *MetadataGetQueryParams
func (*MetadataGet) RequestBody ¶
func (r *MetadataGet) RequestBody() *MetadataGetBody
func (*MetadataGet) RequestBodyInterface ¶
func (r *MetadataGet) RequestBodyInterface() interface{}
func (*MetadataGet) SetMethod ¶
func (r *MetadataGet) SetMethod(method string)
func (*MetadataGet) SetRequestBody ¶
func (r *MetadataGet) SetRequestBody(body MetadataGetBody)
func (*MetadataGet) URL ¶
func (r *MetadataGet) URL() *url.URL
type MetadataGetBody ¶
type MetadataGetBody struct { }
type MetadataGetPathParams ¶
type MetadataGetPathParams struct { }
func (*MetadataGetPathParams) Params ¶
func (p *MetadataGetPathParams) Params() map[string]string
type MetadataGetQueryParams ¶
type MetadataGetQueryParams struct { QueryOptions string `schema:"queryOptions"` IncludeInactiveReportees bool `schema:"includeInactiveReportees"` }
func (MetadataGetQueryParams) ToURLValues ¶
func (p MetadataGetQueryParams) ToURLValues() (url.Values, error)
type MetadataGetResponseBody ¶
type MetadataGetResponseBody []struct { ServiceOwnerCode string `json:"ServiceOwnerCode"` ServiceOwnerName string `json:"ServiceOwnerName"` ServiceName string `json:"ServiceName"` ServiceCode string `json:"ServiceCode"` ServiceEditionName string `json:"ServiceEditionName"` AltinnAppID string `json:"AltinnAppId,omitempty"` ServiceEditionCode int `json:"ServiceEditionCode"` ValidFrom string `json:"ValidFrom"` ValidTo string `json:"ValidTo"` ServiceType string `json:"ServiceType"` EnterpriseUserEnabled bool `json:"EnterpriseUserEnabled,omitempty"` ConfidentialService bool `json:"ConfidentialService,omitempty"` }
type Oauth2Config ¶
func NewOauth2Config ¶
func NewOauth2Config() *Oauth2Config
type OrganizationsGet ¶
type OrganizationsGet struct {
// contains filtered or unexported fields
}
func (*OrganizationsGet) Do ¶
func (r *OrganizationsGet) Do() (OrganizationsGetResponseBody, error)
func (*OrganizationsGet) Method ¶
func (r *OrganizationsGet) Method() string
func (OrganizationsGet) NewPathParams ¶
func (r OrganizationsGet) NewPathParams() *OrganizationsGetPathParams
func (OrganizationsGet) NewQueryParams ¶
func (r OrganizationsGet) NewQueryParams() *OrganizationsGetQueryParams
func (OrganizationsGet) NewRequestBody ¶
func (r OrganizationsGet) NewRequestBody() OrganizationsGetBody
func (*OrganizationsGet) NewResponseBody ¶
func (r *OrganizationsGet) NewResponseBody() *OrganizationsGetResponseBody
func (*OrganizationsGet) PathParams ¶
func (r *OrganizationsGet) PathParams() *OrganizationsGetPathParams
func (*OrganizationsGet) PathParamsInterface ¶
func (r *OrganizationsGet) PathParamsInterface() PathParams
func (*OrganizationsGet) QueryParams ¶
func (r *OrganizationsGet) QueryParams() *OrganizationsGetQueryParams
func (*OrganizationsGet) RequestBody ¶
func (r *OrganizationsGet) RequestBody() *OrganizationsGetBody
func (*OrganizationsGet) RequestBodyInterface ¶
func (r *OrganizationsGet) RequestBodyInterface() interface{}
func (*OrganizationsGet) SetMethod ¶
func (r *OrganizationsGet) SetMethod(method string)
func (*OrganizationsGet) SetRequestBody ¶
func (r *OrganizationsGet) SetRequestBody(body OrganizationsGetBody)
func (*OrganizationsGet) URL ¶
func (r *OrganizationsGet) URL() *url.URL
type OrganizationsGetBody ¶
type OrganizationsGetBody struct { }
type OrganizationsGetPathParams ¶
type OrganizationsGetPathParams struct { }
func (*OrganizationsGetPathParams) Params ¶
func (p *OrganizationsGetPathParams) Params() map[string]string
type OrganizationsGetQueryParams ¶
type OrganizationsGetQueryParams struct { QueryOptions string `schema:"queryOptions"` IncludeInactiveReportees bool `schema:"includeInactiveReportees"` }
func (OrganizationsGetQueryParams) ToURLValues ¶
func (p OrganizationsGetQueryParams) ToURLValues() (url.Values, error)
type PathParams ¶
type QueryParams ¶
type Request ¶
type Request interface { Method() string // QueryParams() QueryParams PathParamsInterface() PathParams RequestBodyInterface() interface{} URL() *url.URL }
type RequestCompletionCallback ¶
RequestCompletionCallback defines the type of the request callback function
type ValidationResponse ¶
type ValidationResponse struct { // HTTP response that caused this error Response *http.Response ValidationErrors []struct { FieldName string `json:"FieldName"` ErrorMessage string `json:"ErrorMessage"` } }
func (*ValidationResponse) Error ¶
func (r *ValidationResponse) Error() string