Skip to content

Commit b324ffc

Browse files
committed
Availability Suggestions
1 parent 61ddc3c commit b324ffc

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

response/availability.check.go

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
package response
22

3-
import "github.com/fortifi/productmanager-go/pmtime"
3+
import (
4+
"github.com/fortifi/productmanager-go/pmtime"
5+
"github.com/fortifi/productmanager-go/transport"
6+
)
47

58
func NewAvailabilityCheck() *AvailabilityCheck {
69
r := &AvailabilityCheck{}
@@ -11,6 +14,12 @@ func NewAvailabilityCheck() *AvailabilityCheck {
1114

1215
type AvailabilityCheck struct {
1316
Response
14-
IsAvailable bool `json:"isAvailable"`
15-
AvailableSKUs []string `json:"availableSkus"`
17+
IsAvailable bool `json:"isAvailable"`
18+
AvailableSKUs []string `json:"availableSkus"`
19+
Suggestions []AvailabilityCheckSuggestion `json:"suggestions"`
20+
}
21+
22+
type AvailabilityCheckSuggestion struct {
23+
Sku string `json:"sku"`
24+
Properties []transport.Property `json:"properties"`
1625
}

0 commit comments

Comments
 (0)