diff options
| author | Shulhan <ms@kilabit.info> | 2022-11-04 19:26:30 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-11-04 19:26:30 +0700 |
| commit | f56f142d9a9b10beac2081695cfbbbff481d4297 (patch) | |
| tree | 93b1fe112dd2bc5e0db0055165f710e6d3ba2b00 /client.go | |
| parent | 84e72cd4f383db1bfbf8b04471911217538bd49d (diff) | |
| download | duitku-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.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"` |
