17 lines
554 B
Go
17 lines
554 B
Go
package models
|
|||
|
|
|
||
|
|
import "github.com/google/uuid"
|
||
|
|
|
||
|
|
// CustomerOutlet is one outlet in GET /customer/outlets: where the customer can shop,
|
||
|
|
// and what the outlet does with EnakPoint and EnakCoin.
|
||
|
|
type CustomerOutlet struct {
|
||
|
|
ID uuid.UUID `json:"id"`
|
||
|
|
Name string `json:"name"`
|
||
|
|
Address *string `json:"address"`
|
||
|
|
// The cashier accepts EnakPoint as payment here.
|
||
|
|
AcceptsPointPayment bool `json:"accepts_point_payment"`
|
||
|
|
// Orders here earn EnakPoint / EnakCoin.
|
||
|
|
EarnsPoints bool `json:"earns_points"`
|
||
|
|
EarnsCoins bool `json:"earns_coins"`
|
||
|
|
}
|