@@ -36,27 +36,36 @@ type SupplierOrdering interface {
3636 GetSymbol () string
3737 GetPriority () int
3838 GetCost () float64
39+ GetLocationPreference () int
40+ GetShelvingPreference () int
3941 GetRatio () float32
4042 IsLocal () bool
4143}
4244
4345type Supplier struct {
44- LocalIdentifier string
45- PeerId string
46- CustomData directory.Entry
47- Symbol string
48- Priority int
49- Cost float64
50- Local bool
51- Ratio float32
52- SupplierStatus pgtype.Text
46+ LocalIdentifier string
47+ PeerId string
48+ CustomData directory.Entry
49+ Symbol string
50+ Priority int
51+ Cost float64
52+ Local bool
53+ Ratio float32
54+ SupplierStatus pgtype.Text
55+ Location string
56+ ShelvingLocation string
57+ ItemLoanPolicy string
58+ LocationPreference int
59+ ShelvingPreference int
5360}
5461
55- func (s Supplier ) GetSymbol () string { return s .Symbol }
56- func (s Supplier ) GetPriority () int { return s .Priority }
57- func (s Supplier ) GetCost () float64 { return s .Cost }
58- func (s Supplier ) IsLocal () bool { return s .Local }
59- func (s Supplier ) GetRatio () float32 { return s .Ratio }
62+ func (s Supplier ) GetSymbol () string { return s .Symbol }
63+ func (s Supplier ) GetPriority () int { return s .Priority }
64+ func (s Supplier ) GetCost () float64 { return s .Cost }
65+ func (s Supplier ) GetLocationPreference () int { return s .LocationPreference }
66+ func (s Supplier ) GetShelvingPreference () int { return s .ShelvingPreference }
67+ func (s Supplier ) IsLocal () bool { return s .Local }
68+ func (s Supplier ) GetRatio () float32 { return s .Ratio }
6069
6170type Network struct {
6271 Name string `json:"name"`
@@ -96,14 +105,19 @@ type TierMatch struct {
96105}
97106
98107type SupplierMatch struct {
99- Match bool `json:"match"`
100- Networks []NetworkMatch `json:"networks"`
101- Tiers []TierMatch `json:"tiers"`
102- Symbol string `json:"symbol"`
103- Priority int `json:"priority"`
104- Cost string `json:"cost"`
105- Local bool `json:"local"`
106- Ratio float32 `json:"ratio"`
108+ Match bool `json:"match"`
109+ Networks []NetworkMatch `json:"networks"`
110+ Tiers []TierMatch `json:"tiers"`
111+ Symbol string `json:"symbol"`
112+ Priority int `json:"priority"`
113+ Cost string `json:"cost"`
114+ Local bool `json:"local"`
115+ Ratio float32 `json:"ratio"`
116+ Location string `json:"location,omitempty"`
117+ ShelvingLocation string `json:"shelvingLocation,omitempty"`
118+ ItemLoanPolicy string `json:"itemLoanPolicy,omitempty"`
119+ LocationPreference int `json:"locationPreference"`
120+ ShelvingPreference int `json:"shelvingPreference"`
107121}
108122
109123func (s SupplierMatch ) GetSymbol () string { return s .Symbol }
@@ -112,8 +126,10 @@ func (s SupplierMatch) GetCost() float64 {
112126 f , _ := strconv .ParseFloat (s .Cost , 64 )
113127 return f
114128}
115- func (s SupplierMatch ) IsLocal () bool { return s .Local }
116- func (s SupplierMatch ) GetRatio () float32 { return s .Ratio }
129+ func (s SupplierMatch ) IsLocal () bool { return s .Local }
130+ func (s SupplierMatch ) GetRatio () float32 { return s .Ratio }
131+ func (s SupplierMatch ) GetLocationPreference () int { return s .LocationPreference }
132+ func (s SupplierMatch ) GetShelvingPreference () int { return s .ShelvingPreference }
117133
118134type RotaInfo struct {
119135 Request Request `json:"request"`
0 commit comments