-
Notifications
You must be signed in to change notification settings - Fork 3
/
invoice.go
48 lines (39 loc) · 1.34 KB
/
invoice.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
package model
import "time"
type SendEncryptedInvoiceRequest struct {
InvoiceHash InvoiceHash `json:"invoiceHash"`
InvoicePayload EncryptedInvoicePayload `json:"invoicePayload"`
}
type SendInvoiceRequest struct {
InvoiceHash InvoiceHash `json:"invoiceHash"`
InvoicePayload InvoicePayload `json:"invoicePayload"`
}
type EncryptedInvoicePayload struct {
Type string `json:"type"`
EncryptedInvoiceHash EncryptedInvoiceHash `json:"encryptedInvoiceHash"`
EncryptedInvoiceBody string `json:"encryptedInvoiceBody"`
}
type InvoicePayload struct {
Type string `json:"type"`
InvoiceBody string `json:"invoiceBody"`
}
type HashSHA struct {
Algorithm string `json:"algorithm"`
Encoding string `json:"encoding"`
Value string `json:"value"`
}
type InvoiceHash struct {
HashSHA HashSHA `json:"hashSHA"`
FileSize int `json:"fileSize"`
}
type EncryptedInvoiceHash struct {
HashSHA HashSHA `json:"hashSHA"`
FileSize int `json:"fileSize"`
}
type SendInvoiceResponse struct {
Timestamp time.Time `json:"timestamp"`
ReferenceNumber string `json:"referenceNumber"`
ProcessingCode int `json:"processingCode"`
ProcessingDescription string `json:"processingDescription"`
ElementReferenceNumber string `json:"elementReferenceNumber"`
}