package sample

type RequestContext struct {
	AccountID string
	TraceID   string
}

type InvoiceRequest struct {
	DocumentID string
}

type InvoiceResponse struct {
	Accepted bool
	TraceID  string
}

func HandleRequest(ctx RequestContext, request InvoiceRequest) InvoiceResponse {
	if request.DocumentID == "" {
		return InvoiceResponse{Accepted: false, TraceID: ctx.TraceID}
	}

	return InvoiceResponse{Accepted: true, TraceID: ctx.TraceID}
}