-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverpayment.go
28 lines (26 loc) · 1.26 KB
/
overpayment.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
package xero
// Overpayment is used when a debtor overpays an invoice.
type OverPayment struct {
Type string `json:"Type,omitempty"`
Contact Contact `json:"Contact"`
Date string `json:"Date,omitempty"`
DateString string `json:"DateString,omitempty"`
Status string `json:"Status,omitempty"`
LineAmountTypes string `json:"LineAmountTypes,omitempty"`
LineItems []LineItem `json:"LineItems,omitempty"`
SubTotal string `json:"SubTotal,omitempty"`
TotalTax string `json:"TotalTax,omitempty"`
Total string `json:"Total,omitempty"`
UpdatedDateUTC string `json:"UpdatedDateUTC,omitempty"`
CurrencyCode string `json:"CurrencyCode,omitempty"`
OverpaymentID string `json:"OverpaymentID,omitempty"`
CurrencyRate string `json:"CurrencyRate,omitempty"`
RemainingCredit string `json:"RemainingCredit,omitempty"`
Allocations []Allocation `json:"Allocations,omitempty"`
Payments []Payment `json:"Payments,omitempty"`
HasAttachments string `json:"HasAttachments,omitempty"`
}
// OverPayments is a collection of OverPayments.
type OverPayments struct {
OverPayments []OverPayment `json:"Overpayments"`
}