forked from xendit/xendit-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
retailoutlet.go
30 lines (26 loc) · 1.33 KB
/
retailoutlet.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
package xendit
import "time"
// RetailOutletNameEnum constants are the available retail outlet names
type RetailOutletNameEnum string
// This consists the values that RetailOutletNameEnum can take
const (
RetailOutletNameAlfamart RetailOutletNameEnum = "ALFAMART"
RetailOutletNameIndomaret RetailOutletNameEnum = "INDOMARET"
)
// RetailOutlet contains data from Xendit's API response of retail outlet related requests.
// For more details see https://xendit.github.io/apireference/?bash#retail-outlets.
// For documentation of subpackage retailoutlet, checkout https://pkg.go.dev/github.com/xendit/xendit-go/retailoutlet
type RetailOutlet struct {
IsSingleUse bool `json:"is_single_use"`
Status string `json:"status"`
OwnerID string `json:"owner_id"`
ExternalID string `json:"external_id"`
RetailOutletName RetailOutletNameEnum `json:"retail_outlet_name"`
Prefix string `json:"prefix"`
Name string `json:"name"`
PaymentCode string `json:"payment_code"`
Type string `json:"type"`
ExpectedAmount float64 `json:"expected_amount"`
ExpirationDate *time.Time `json:"expiration_date"`
ID string `json:"id"`
}