From 1cf5da9119f2e23b7de5c2500c3cea521ee6e73e Mon Sep 17 00:00:00 2001 From: Shulhan Date: Mon, 7 Nov 2022 14:15:25 +0700 Subject: all: add missing field Purpose and UserID in RtolTransferResponse While at it, use and embed RtolInquiryResponse inside RtolTransferResponse to minimize duplication. --- rtol_transfer_response.go | 13 ++++--------- 1 file 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"` } -- cgit v1.3