blob: 24ed4037ac08be3419cbc4340f66712af366f6d2 (
plain)
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
|
package model
import "time"
type Contract struct {
Accepted bool `json:"accepted"`
DeadlineToAccept time.Time `json:"deadlineToAccept"`
Expiration time.Time `json:"expiration"`
FactionSymbol string `json:"factionSymbol"`
Fullfilled bool `json:"fulfilled"`
Id string `json:"id"`
Terms *Terms `json:"terms"`
Type string `json:"type"`
}
type Deliver struct {
DestinationSymbol string `json:"destinationSymbol"`
TradeSymbol string `json:"tradeSymbol"`
UnitsFulfilled int `json:"unitsFulfilled"`
UnitsRequired int `json:"unitsRequired"`
}
type Payment struct {
OnAccepted int `json:"onAccepted"`
OnFulfilled int `json:"onFulfilled"`
}
type Terms struct {
Deadline time.Time `json:"deadline"`
Payment *Payment `json:"payment"`
Deliver []Deliver `json:"deliver"`
}
|