aboutsummaryrefslogtreecommitdiff
path: root/bank.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-10-19 18:44:47 +0700
committerShulhan <ms@kilabit.info>2022-10-19 18:54:29 +0700
commitbc1c453eb8a3c8b5bac406c5c4f09af06034247c (patch)
tree57588c03d7e9b7a935f678e80700a43b158f4394 /bank.go
downloadduitku-bc1c453eb8a3c8b5bac406c5c4f09af06034247c.tar.xz
duitku: library and HTTP client for duitku.com
Currently, the client provide API for fetching list of banks for disbursement. See https://docs.duitku.com/ for reference.
Diffstat (limited to 'bank.go')
-rw-r--r--bank.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/bank.go b/bank.go
new file mode 100644
index 0000000..2f0ab3c
--- /dev/null
+++ b/bank.go
@@ -0,0 +1,14 @@
+// SPDX-FileCopyrightText: 2022 M. Shulhan <ms@kilabit.info>
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+package duitku
+
+import (
+ "github.com/shuLhan/share/lib/math/big"
+)
+
+type Bank struct {
+ Code string `json:"bankCode"`
+ Name string `json:"bankName"`
+ MaxTransfer *big.Rat `json:"maxAmountTransfer"`
+}