aboutsummaryrefslogtreecommitdiff
path: root/rtol_inquiry_response.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-11-04 13:49:28 +0700
committerShulhan <ms@kilabit.info>2022-11-04 19:01:07 +0700
commit0eef440900eda71b3a257707e49e0ad53be5353f (patch)
tree7682364bc2f6ac826afd27fe71980ede98160b73 /rtol_inquiry_response.go
parent1846d3fc5d6a364986c073afccc66936ab3e469d (diff)
downloadduitku-0eef440900eda71b3a257707e49e0ad53be5353f.tar.xz
all: implement API for online transfer inquiry
The RtolInquiry method get the information of the name of the account owner of the transfer destination. After getting this information, customers can determine whether the purpose of such a transfer is in accordance with the intended or not. If appropriate, the customer can proceed to the transfer process. Ref: https://docs.duitku.com/disbursement/en/#transfer-online
Diffstat (limited to 'rtol_inquiry_response.go')
-rw-r--r--rtol_inquiry_response.go30
1 files changed, 30 insertions, 0 deletions
diff --git a/rtol_inquiry_response.go b/rtol_inquiry_response.go
new file mode 100644
index 0000000..1edc7a0
--- /dev/null
+++ b/rtol_inquiry_response.go
@@ -0,0 +1,30 @@
+package duitku
+
+import "github.com/shuLhan/share/lib/math/big"
+
+// RtolInquiryResponse contains response from inquiry for Online Transfer.
+type RtolInquiryResponse struct {
+ response
+
+ // Email sent when inquiry process.
+ Email string `json:"email"`
+
+ // 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"`
+
+ // Disbursement ID from duitku. Please save it for checking purpose.
+ DisburseID int64 `json:"disburseId"`
+}