This repository has been archived by the owner on Jan 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_receipt.go
49 lines (48 loc) · 1.9 KB
/
model_receipt.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* Accounting API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 2.2.8
* Contact: [email protected]
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
import (
"time"
)
// Receipt struct for Receipt
type Receipt struct {
// Date of receipt – YYYY-MM-DD
Date string `json:"Date,omitempty"`
Contact Contact `json:"Contact,omitempty"`
LineItems []LineItem `json:"LineItems,omitempty"`
User User `json:"User,omitempty"`
// Additional reference number
Reference string `json:"Reference,omitempty"`
LineAmountTypes LineAmountTypes `json:"LineAmountTypes,omitempty"`
// Total of receipt excluding taxes
SubTotal float64 `json:"SubTotal,omitempty"`
// Total tax on receipt
TotalTax float64 `json:"TotalTax,omitempty"`
// Total of receipt tax inclusive (i.e. SubTotal + TotalTax)
Total float64 `json:"Total,omitempty"`
// Xero generated unique identifier for receipt
ReceiptID string `json:"ReceiptID,omitempty"`
// Current status of receipt – see status types
Status string `json:"Status,omitempty"`
// Xero generated sequence number for receipt in current claim for a given user
ReceiptNumber string `json:"ReceiptNumber,omitempty"`
// Last modified date UTC format
UpdatedDateUTC time.Time `json:"UpdatedDateUTC,omitempty"`
// boolean to indicate if a receipt has an attachment
HasAttachments bool `json:"HasAttachments,omitempty"`
// URL link to a source document – shown as “Go to [appName]” in the Xero app
Url string `json:"Url,omitempty"`
// Displays array of validation error messages from the API
ValidationErrors []ValidationError `json:"ValidationErrors,omitempty"`
// Displays array of warning messages from the API
Warnings []ValidationError `json:"Warnings,omitempty"`
// Displays array of attachments from the API
Attachments []Attachment `json:"Attachments,omitempty"`
}