aboutsummaryrefslogtreecommitdiff
path: root/balance.go
diff options
context:
space:
mode:
Diffstat (limited to 'balance.go')
-rw-r--r--balance.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/balance.go b/balance.go
new file mode 100644
index 0000000..e589889
--- /dev/null
+++ b/balance.go
@@ -0,0 +1,17 @@
+package duitku
+
+import "github.com/shuLhan/share/lib/math/big"
+
+// Balance contains the current user balances.
+type Balance struct {
+ response
+
+ // Current balance before settlement.
+ Current *big.Rat `json:"balance"`
+
+ // Effective Balance that can be used for disbursement.
+ Effective *big.Rat `json:"effectiveBalance"`
+
+ Email string `json:"email"`
+ UserID int64 `json:"userId"`
+}