Versions in this module Expand all Collapse all v0 v0.1.0 Sep 27, 2024 Changes in this version + const RootElementName + const XMLNamespace + const XMLNamespace2 + const XMLNamespace3 + const XSINamespace + const XSIType + func FetchSessionToken(ctx context.Context, c *Client) error + func Sign(env *gobl.Envelope, upoBytes []byte, c *Client) error + func WithDemoURL(o *ClientOpts) + func WithProductionURL(o *ClientOpts) + type AuthorisationChallengeRequest struct + ContextIdentifier *ContextIdentifier + type AuthorisationChallengeResponse struct + Challenge string + Timestamp time.Time + type Client struct + func NewClient(opts ...ClientOptFunc) *Client + type ClientOptFunc func(*ClientOpts) + func WithClient(client *resty.Client) ClientOptFunc + func WithDebugClient() ClientOptFunc + func WithID(id string) ClientOptFunc + func WithKeyPath(keyPath string) ClientOptFunc + func WithToken(token string) ClientOptFunc + type ClientOpts struct + Client *resty.Client + ID string + KeyPath string + SessionReference string + SessionToken string + Token string + URL string + type ContextIdentifier struct + Identifier string + Type string + type ErrorResponse struct + Exception struct{ ... } + func (e ErrorResponse) Error() string + type HashSHA struct + Algorithm string + Encoding string + Value string + type InitSessionTokenContext struct + Challenge string + DocumentType *InitSessionTokenDocumentType + Identifier *InitSessionTokenIdentifier + Token string + type InitSessionTokenDocumentType struct + FormCode *InitSessionTokenFormCode + Service string + type InitSessionTokenFormCode struct + SchemaVersion string + SystemCode string + TargetNamespace string + Value string + type InitSessionTokenIdentifier struct + Identifier string + Namespace string + Type string + type InitSessionTokenRequest struct + Context *InitSessionTokenContext + XMLName xml.Name + XMLNamespace string + XMLNamespace2 string + XMLNamespace3 string + type InitSessionTokenResponse struct + ReferenceNumber string + SessionToken *SessionToken + Timestamp string + type InvoiceHash struct + FileSize int + HashSHA *HashSHA + type InvoicePayload struct + InvoiceBody string + Type string + type InvoiceStatusResponse struct + ElementReferenceNumber string + InvoiceStatus struct{ ... } + ProcessingCode int + ProcessingDescription string + ReferenceNumber string + Timestamp string + func FetchInvoiceStatus(ctx context.Context, c *Client, referenceNumber string) (*InvoiceStatusResponse, error) + type SendInvoiceRequest struct + InvoiceHash *InvoiceHash + InvoicePayload *InvoicePayload + type SendInvoiceResponse struct + ElementReferenceNumber string + ProcessingCode int + ProcessingDescription string + ReferenceNumber string + Timestamp string + func SendInvoice(ctx context.Context, c *Client, data []byte) (*SendInvoiceResponse, error) + type SessionStatusByReferenceResponse struct + ProcessingCode int + ProcessingDescription string + ReferenceNumber string + Timestamp string + Upo string + func GetSessionStatusByReference(ctx context.Context, c *Client) (*SessionStatusByReferenceResponse, error) + type SessionStatusResponse struct + InvoiceStatusList []struct{ ... } + NumberOfElements int + PageOffset int + PageSize int + ProcessingCode int + ProcessingDescription string + ReferenceNumber string + Timestamp string + func GetSessionStatus(ctx context.Context, c *Client) (*SessionStatusResponse, error) + type SessionToken struct + Context struct{ ... } + Token string + type TerminateSessionResponse struct + ProcessingCode int + ProcessingDescription string + ReferenceNumber string + Timestamp string + func TerminateSession(ctx context.Context, s *Client) (*TerminateSessionResponse, error) + type UPO struct + KSeFHash string + KSeFNumber string