-
Notifications
You must be signed in to change notification settings - Fork 0
/
letters.go
36 lines (33 loc) · 1.14 KB
/
letters.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
package pingen
type LetterList struct {
Data []LetterData `json:"data"`
}
type Letter struct {
Data LetterData `json:"data"`
}
type LetterData struct {
ID string `json:"id"`
Type string `json:"type"`
Attributes struct {
Status string `json:"status"`
FileOriginalName string `json:"file_original_name"`
FilePages int `json:"file_pages"`
Address string `json:"address"`
AddressPosition string `json:"address_position"`
Country string `json:"country"`
DeliveryProduct string `json:"delivery_product"`
PrintMode string `json:"print_mode"`
PrintSpectrum string `json:"print_spectrum"`
PriceCurrency string `json:"price_currency"`
PriceValue float64 `json:"price_value"`
PaperTypes []string `json:"paper_types"`
Fonts []struct {
Name string `json:"name"`
IsEmbedded bool `json:"is_embedded"`
} `json:"fonts"`
TrackingNumber string `json:"tracking_number"`
SubmittedAt string `json:"submitted_at"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
} `json:"attributes"`
}