aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-11-07 14:15:25 +0700
committerShulhan <ms@kilabit.info>2022-11-07 14:15:25 +0700
commit1cf5da9119f2e23b7de5c2500c3cea521ee6e73e (patch)
treeeae22ecb0f1aa1ca9aa10bc336945b0388c78de5
parentb633c4bb046138db8b5d7f47f1cdf5d97e4de818 (diff)
downloadduitku-1cf5da9119f2e23b7de5c2500c3cea521ee6e73e.tar.xz
all: add missing field Purpose and UserID in RtolTransferResponse
While at it, use and embed RtolInquiryResponse inside RtolTransferResponse to minimize duplication.
-rw-r--r--rtol_transfer_response.go13
1 files changed, 4 insertions, 9 deletions
diff --git a/rtol_transfer_response.go b/rtol_transfer_response.go
index 5392b76..8753d72 100644
--- a/rtol_transfer_response.go
+++ b/rtol_transfer_response.go
@@ -1,15 +1,10 @@
package duitku
-import "github.com/shuLhan/share/lib/math/big"
-
// RtolTransferResponse contains response from online transfer.
type RtolTransferResponse struct {
- Email string `json:"email"`
- BankCode string `json:"bankCode"`
- BankAccount string `json:"bankAccount"`
- AccountName string `json:"accountName"`
- CustRefNumber string `json:"custRefNumber"`
- Amount *big.Rat `json:"amountTransfer"`
+ Purpose string `json:"purpose"`
+
+ RtolInquiryResponse
- Response
+ UserID int64 `json:"userId"`
}