Versions in this module Expand all Collapse all v0 v0.9.1 Mar 16, 2020 v0.9.0 Mar 16, 2020 Changes in this version + func Unmarshal(resp ForpayResponse, httpResponse *http.Response) error + type BaseResponse struct + func (baseResponse *BaseResponse) GetHTTPContentBytes() []byte + func (baseResponse *BaseResponse) GetHTTPHeaders() map[string][]string + func (baseResponse *BaseResponse) GetHTTPStatus() int + func (baseResponse *BaseResponse) GetOriginHTTPResponse() *http.Response + func (baseResponse *BaseResponse) IsSuccess() bool + func (baseResponse *BaseResponse) String() string + type Error struct + Code int + HTTPStatus int + Msg string + SubCode string + SubMsg string + func (err *Error) Error() string + func (err *Error) IsBusinessFailed() bool + type ForpayResponse interface + GetHTTPContentBytes func() []byte + GetHTTPHeaders func() map[string][]string + GetHTTPStatus func() int + GetOriginHTTPResponse func() *http.Response + IsSuccess func() bool