aboutsummaryrefslogtreecommitdiff
path: root/rtol_inquiry_response.go
diff options
context:
space:
mode:
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"`
+}