diff options
| author | Shulhan <ms@kilabit.info> | 2023-01-20 17:16:29 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-01-20 18:33:08 +0700 |
| commit | 616ed53618f7df87f1b13c3f3c9e3821121872c2 (patch) | |
| tree | e57060b3845985bf7df391272d3a43e2a5008fd9 /inquiry_status_response.go | |
| parent | 94f3139e32b16008e239b708f31366dc8d57bc48 (diff) | |
| download | duitku-616ed53618f7df87f1b13c3f3c9e3821121872c2.tar.xz | |
all: implement client API for InquiryStatus
The InquiryStatus get the status of previous Transfer.
Ref: https://docs.duitku.com/disbursement/en/#inquiry-status
Diffstat (limited to 'inquiry_status_response.go')
| -rw-r--r-- | inquiry_status_response.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/inquiry_status_response.go b/inquiry_status_response.go new file mode 100644 index 0000000..ced3f0e --- /dev/null +++ b/inquiry_status_response.go @@ -0,0 +1,26 @@ +// 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 InquiryStatusResponse struct { + Response + + // Destination Bank Code. + BankCode string `json:"bankCode"` + + // Destination account number. + BankAccount string `json:"bankAccount"` + + // Disbursement transfer amount. + Amount *big.Rat `json:"amountTransfer"` + + // Bank Account owner. + AccountName string `json:"accountName"` + + // 9 Digit Customer reference number that will be printed when the + // transaction is successful. + CustRefNumber string `json:"custRefNumber"` +} |
