# Packages
Package api_test provides tools for testing the api.
# Functions
FetchInvoiceStatus gets the status of the invoice being processed.
FetchSessionToken requests new session token.
GetSessionStatus gets the session status of the current session.
GetSessionStatusByReference gets the session status by reference number.
NewClient returns a KSeF API client.
SendInvoice puts the invoice to the KSeF API.
Sign reads the UPO file and adds the QR code values to the envelope.
TerminateSession ends the current session.
WithClient allows to customize the http client used for making the requests.
WithDebugClient uses a more verbose client.
WithDemoURL sets the client url to KSeF demo.
WithID allows customizing the Polish tax id number (NIP).
WithKeyPath allows customizing the public key for KSeF API authorization.
WithProductionURL sets the client url to KSeF production.
WithToken allows customizing the KSeF authorization token.
# Constants
RootElementName root element name for token initialization XML.
XMLNamespace namespace setting for token initialization XML.
XMLNamespace2 namespace setting for token initialization XML.
XMLNamespace3 namespace setting for token initialization XML.
XSINamespace namespace setting for token initialization XML.
XSIType namespace setting for token initialization XML.
# Structs
AuthorisationChallengeRequest defines the structure of the token session initialization.
AuthorisationChallengeResponse defines the authorization challenge response.
Client defines KSeF client.
ClientOpts defines the client parameters.
ContextIdentifier defines the ContextIdentifier part of the authorization challenge.
ErrorResponse parses error responses.
HashSHA defines the HashSHA part of the post invoice request.
InitSessionTokenContext defines the Context part of the token session initialization.
InitSessionTokenDocumentType defines the DocumentType part of the token session initialization.
InitSessionTokenFormCode defines the FormCode part of the token session initialization.
InitSessionTokenIdentifier defines the Identifier part of the token session initialization.
InitSessionTokenRequest defines the structure of the token session initialization.
InitSessionTokenResponse defines the token session initialization response structure.
InvoiceHash defines the InvoiceHash part of the post invoice request.
InvoicePayload defines the InvoicePayload part of the post invoice request.
InvoiceStatusResponse defines the post invoice response structure.
SendInvoiceRequest defines the post invoice request structure.
SendInvoiceResponse defines the post invoice response structure.
SessionStatusByReferenceResponse defines the response of the session status.
SessionStatusResponse defines the response of the session status.
SessionToken defines the session token part of the token session initialization response.
TerminateSessionResponse defines the response of the session termination.
UPO defines the XML structure for KSeF UPO.
# Type aliases
ClientOptFunc defines function for customizing the KSeF client.