-
Notifications
You must be signed in to change notification settings - Fork 58
/
ewallet.go
28 lines (24 loc) · 1.18 KB
/
ewallet.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
package xendit
import "time"
// EWalletTypeEnum constants are the available e-wallet type
type EWalletTypeEnum string
// This consists the values that EWalletTypeEnum can take
const (
EWalletTypeOVO EWalletTypeEnum = "OVO"
EWalletTypeDANA EWalletTypeEnum = "DANA"
EWalletTypeLINKAJA EWalletTypeEnum = "LINKAJA"
)
// EWallet contains data from Xendit's API response of e-wallet related requests.
// For more details see https://xendit.github.io/apireference/?bash#ewallets.
// For documentation of subpackage ewallet, checkout https://pkg.go.dev/github.com/xendit/xendit-go/ewallet
type EWallet struct {
EWalletType EWalletTypeEnum `json:"ewallet_type"`
ExternalID string `json:"external_id"`
Status string `json:"status"`
Amount float64 `json:"amount"`
TransactionDate *time.Time `json:"transaction_date,omitempty"`
CheckoutURL string `json:"checkout_url,omitempty"`
BusinessID string `json:"business_id,omitempty"`
Created *time.Time `json:"created,omitempty"`
EWalletTransactionID string `json:"e_wallet_transaction_id,omitempty"`
}