diff options
| author | yogi sofiharja <hardja.ogie@gmail.com> | 2023-07-11 22:15:44 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-07-12 00:18:49 +0700 |
| commit | e6348a81f15d5930016162eb77404b4f08612bc1 (patch) | |
| tree | 4c2b539cfe4320e19be00914d36480cbb77888dc | |
| parent | 1ec4c69017704b76b2a45210c132ac91f6f83be7 (diff) | |
| download | duitku-e6348a81f15d5930016162eb77404b4f08612bc1.tar.xz | |
merchant_inquiry_response: add struct ErrorMessage to catch HTTP error message
| -rw-r--r-- | merchant_inquiry_response.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/merchant_inquiry_response.go b/merchant_inquiry_response.go index 4d6706d..10bf50d 100644 --- a/merchant_inquiry_response.go +++ b/merchant_inquiry_response.go @@ -32,4 +32,7 @@ type MerchantInquiryResponse struct { // Description that explain the status Code. Message string `json:"statusMessage"` + + // Response body when http request failed + ErrorMessage string `json:"Message,omitempty"` } |
