Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions invopop/silo_entries.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ type CreateSiloEntry struct {
ContentType string `json:"content_type,omitempty" title:"Content Type" description:"The content type of the data being uploaded." example:"application/json"`
Correct json.RawMessage `json:"correct,omitempty" title:"Correct" description:"JSON object containing the GOBL correction option data." example:"{\"credit\": true}"`
AllowInvalid bool `json:"allow_invalid,omitempty" title:"Allow Invalid" description:"When true, the envelope's contents are allowed to be invalid." example:"true"`
Sign bool `json:"sign,omitempty" title:"Sign" description:"When true, the GOBL envelope will be signed automatically." example:"false"`
}

// UpdateSiloEntry allows for a silo document to be updated under certain conditions.
Expand All @@ -85,6 +86,7 @@ type UpdateSiloEntry struct {
ContentType string `json:"content_type,omitempty" title:"Content Type" description:"The content type of the data being uploaded which by default expects application/json for a complete document, merge patch application/merge-patch+json (RFC7396), or a simple patch application/json-patch+json (RFC6902)" example:"application/json"`
Data json.RawMessage `json:"data" title:"Data" description:"Updated envelope data either a complete envelope or document, or patched data according to the content type."`
AllowInvalid bool `json:"allow_invalid,omitempty" title:"Allow Invalid" description:"When true, the updated envelope's contents are allowed to be invalid." example:"true"`
Sign bool `json:"sign,omitempty" title:"Sign" description:"When true, the GOBL envelope will be signed automatically." example:"false"`
}

// FindSiloEntries is used to list entries ordered by date.
Expand Down
Loading