aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-11-04 19:26:30 +0700
committerShulhan <ms@kilabit.info>2022-11-04 19:26:30 +0700
commitf56f142d9a9b10beac2081695cfbbbff481d4297 (patch)
tree93b1fe112dd2bc5e0db0055165f710e6d3ba2b00 /client.go
parent84e72cd4f383db1bfbf8b04471911217538bd49d (diff)
downloadduitku-f56f142d9a9b10beac2081695cfbbbff481d4297.tar.xz
all: export the request and response types
This is to make documentation for the type that embed those types more clear.
Diffstat (limited to 'client.go')
-rw-r--r--client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/client.go b/client.go
index 7bdc272..4fb1a83 100644
--- a/client.go
+++ b/client.go
@@ -60,7 +60,7 @@ func NewClient(opts ClientOptions) (cl *Client, err error) {
func (cl *Client) DisbursementCheckBalance() (bal *Balance, err error) {
var (
logp = `DisbursementCheckBalance`
- req = createRequest(cl.opts)
+ req = CreateRequest(cl.opts)
httpRes *http.Response
resBody []byte
@@ -89,7 +89,7 @@ func (cl *Client) DisbursementCheckBalance() (bal *Balance, err error) {
func (cl *Client) DisbursementListBank() (banks []Bank, err error) {
var (
logp = `DisbursementListBank`
- req = createRequest(cl.opts)
+ req = CreateRequest(cl.opts)
res = struct {
Data interface{} `json:"Banks"`
Code string `json:"responseCode"`