altinn

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

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

Go to latest
Published: Jul 30, 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:   "www.altinn.no",
		Path:   "/api/",
	}
)

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 AuthenticateWithPassword

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

func (*AuthenticateWithPassword) Do

func (*AuthenticateWithPassword) Method

func (r *AuthenticateWithPassword) Method() string

func (AuthenticateWithPassword) NewPathParams

func (AuthenticateWithPassword) NewQueryParams

func (AuthenticateWithPassword) NewRequestBody

func (*AuthenticateWithPassword) NewResponseBody

func (*AuthenticateWithPassword) PathParams

func (*AuthenticateWithPassword) PathParamsInterface

func (r *AuthenticateWithPassword) PathParamsInterface() PathParams

func (*AuthenticateWithPassword) QueryParams

func (*AuthenticateWithPassword) RequestBody

func (*AuthenticateWithPassword) RequestBodyInterface

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

func (*AuthenticateWithPassword) SetMethod

func (r *AuthenticateWithPassword) SetMethod(method string)

func (*AuthenticateWithPassword) SetRequestBody

func (*AuthenticateWithPassword) URL

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

type AuthenticateWithPasswordBody

type AuthenticateWithPasswordBody struct {
	UserName     string `json:"UserName"`
	UserPassword string `json:"UserPassword"`
}

type AuthenticateWithPasswordPathParams

type AuthenticateWithPasswordPathParams struct {
}

func (*AuthenticateWithPasswordPathParams) Params

type AuthenticateWithPasswordQueryParams

type AuthenticateWithPasswordQueryParams struct {
	ForceEIAuthentication bool `schema:"ForceEIAuthentication"`
}

func (AuthenticateWithPasswordQueryParams) ToURLValues

type AuthenticateWithPasswordResponseBody

type AuthenticateWithPasswordResponseBody struct{}

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) APIKey

func (c Client) APIKey() string

func (*Client) Authenticate

func (c *Client) Authenticate(req *http.Request) error

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) IsAuthenticated

func (c *Client) IsAuthenticated() bool

func (Client) MediaType

func (c Client) MediaType() string

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 (c *Client) NewRequest(ctx context.Context, req Request) (*http.Request, error)

func (*Client) SetAPIKey

func (c *Client) SetAPIKey(apiKey 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) SetUserName

func (c *Client) SetUserName(userName string)

func (*Client) SetUserPassword

func (c *Client) SetUserPassword(userPassword string)

func (*Client) Unmarshal

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

func (Client) UserAgent

func (c Client) UserAgent() string

func (Client) UserName

func (c Client) UserName() string

func (Client) UserPassword

func (c Client) UserPassword() string

type Date

type Date struct {
	time.Time
}

func (Date) MarshalSchema

func (d Date) MarshalSchema() string

type DateTime

type DateTime struct {
	time.Time
}

func (DateTime) MarshalSchema

func (d DateTime) MarshalSchema() string

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 Form

type Form struct {
	Type              string  `json:"Type"`
	DataFormatId      string  `json:"DataFormatId"`
	DataFormatVersion string  `json:"DataFormatVersion"`
	FormData          Melding `json:"FormData"`
}

type Forms

type Forms []Form

type IntList

type IntList map[string]int

func (IntList) MarshalXML

func (c IntList) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*IntList) UnmarshalXML

func (c *IntList) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error

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

func (m Melding) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type MessagePost

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

func (*MessagePost) Do

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 MessagePostResponseBody []struct {
	Name               string `json:"Name"`
	Type               string `json:"Type"`
	OrganizationNumber string `json:"OrganizationNumber"`
	Status             string `json:"Status"`
}

type MetadataFormtaskFormXSDGet

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

func (*MetadataFormtaskFormXSDGet) Do

func (*MetadataFormtaskFormXSDGet) Method

func (r *MetadataFormtaskFormXSDGet) Method() string

func (MetadataFormtaskFormXSDGet) NewPathParams

func (MetadataFormtaskFormXSDGet) NewQueryParams

func (MetadataFormtaskFormXSDGet) NewRequestBody

func (*MetadataFormtaskFormXSDGet) NewResponseBody

func (*MetadataFormtaskFormXSDGet) PathParams

func (*MetadataFormtaskFormXSDGet) PathParamsInterface

func (r *MetadataFormtaskFormXSDGet) PathParamsInterface() PathParams

func (*MetadataFormtaskFormXSDGet) QueryParams

func (*MetadataFormtaskFormXSDGet) RequestBody

func (*MetadataFormtaskFormXSDGet) RequestBodyInterface

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

func (*MetadataFormtaskFormXSDGet) SetMethod

func (r *MetadataFormtaskFormXSDGet) SetMethod(method string)

func (*MetadataFormtaskFormXSDGet) SetRequestBody

func (*MetadataFormtaskFormXSDGet) 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

type MetadataFormtaskFormXSDGetQueryParams

type MetadataFormtaskFormXSDGetQueryParams struct {
	Language int `schema:"language,omitempty"`
}

func (MetadataFormtaskFormXSDGetQueryParams) ToURLValues

type MetadataFormtaskFormXSDGetResponseBody

type MetadataFormtaskFormXSDGetResponseBody struct {
}

type MetadataFormtaskGet

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

func (*MetadataFormtaskGet) Do

func (*MetadataFormtaskGet) Method

func (r *MetadataFormtaskGet) Method() string

func (MetadataFormtaskGet) NewPathParams

func (MetadataFormtaskGet) NewQueryParams

func (MetadataFormtaskGet) NewRequestBody

func (r MetadataFormtaskGet) NewRequestBody() MetadataFormtaskGetBody

func (*MetadataFormtaskGet) NewResponseBody

func (*MetadataFormtaskGet) PathParams

func (*MetadataFormtaskGet) PathParamsInterface

func (r *MetadataFormtaskGet) PathParamsInterface() PathParams

func (*MetadataFormtaskGet) QueryParams

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

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 (*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

type Oauth2Config struct {
	oauth2.Config
}

func NewOauth2Config

func NewOauth2Config() *Oauth2Config

type OrganizationsGet

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

func (*OrganizationsGet) Do

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 (*OrganizationsGet) PathParamsInterface

func (r *OrganizationsGet) PathParamsInterface() PathParams

func (*OrganizationsGet) QueryParams

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 OrganizationsGetResponseBody

type OrganizationsGetResponseBody []struct {
	Name               string `json:"Name"`
	Type               string `json:"Type"`
	OrganizationNumber string `json:"OrganizationNumber"`
	Status             string `json:"Status"`
}

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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