forked from xendit/xendit-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbalance.go
23 lines (19 loc) · 835 Bytes
/
balance.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package xendit
// BalanceAccountTypeEnum constants are the available balance account type
type BalanceAccountTypeEnum string
// This consists the values that BalanceAccountType can take
const (
BalanceAccountTypeCash BalanceAccountTypeEnum = "CASH"
BalanceAccountTypeHolding BalanceAccountTypeEnum = "HOLDING"
BalanceAccountTypeTax BalanceAccountTypeEnum = "TAX"
)
// String returns the BalanceAccountTypeEnum in type string
func (b *BalanceAccountTypeEnum) String() string {
return string(*b)
}
// Balance contains data from Xendit's API response of balance related request.
// For more details see https://xendit.github.io/apireference/?bash#balances.
// For documentation of subpackage balance, checkout https://pkg.go.dev/github.com/xendit/xendit-go/balance
type Balance struct {
Balance float64 `json:"balance"`
}