Versions in this module Expand all Collapse all v0 v0.5.5 Jun 16, 2021 Changes in this version + const BRI_TIME_FORMAT + const TOKEN_PATH + const VA_INFORMATION_PATH + const VA_PATH + const VA_REPORT_PATH + type Client struct + BaseUrl string + BrivaNo string + ClientId string + ClientSecret string + InstitutionCode string + LogLevel int + Logger *log.Logger + func NewClient() Client + func (c *Client) Call(method, path string, header map[string]string, body io.Reader, v interface{}) error + func (c *Client) ExecuteRequest(req *http.Request, v interface{}) error + func (c *Client) NewRequest(method string, fullPath string, headers map[string]string, body io.Reader) (*http.Request, error) + type CoreGateway struct + Client Client + func (gateway *CoreGateway) Call(method, path string, header map[string]string, body io.Reader, v interface{}) error + func (gateway *CoreGateway) CreateVA(token string, req CreateVaRequest) (res VaResponse, err error) + func (gateway *CoreGateway) DeleteVA(token string, req DeleteVaRequest) (res VaDeleteResponse, err error) + func (gateway *CoreGateway) GetInformationVA(token string, req GetInformationVaRequest) (res VaInformationResponse, err error) + func (gateway *CoreGateway) GetReportVA(token string, req GetReportVaRequest) (res VaReportResponse, err error) + func (gateway *CoreGateway) GetToken() (res TokenResponse, err error) + func (gateway *CoreGateway) UpdateVA(token string, req CreateVaRequest) (res VaResponse, err error) + type CreateVaRequest struct + Amount string + BrivaNo string + CustCode string + Description string + ExpiredDate string + InstitutionCode string + Name string + type DeleteVaRequest struct + BrivaNo string + CustCode string + InstitutionCode string + type GetInformationVaRequest struct + BrivaNo string + CustCode string + InstitutionCode string + type GetReportVaRequest struct + BrivaNo string + EndDate string + InstitutionCode string + StartDate string + type TokenResponse struct + AccessToken string + ExpiredTime string + ProductList []string + type VaData struct + Amount string + BrivaNo string + CustCode string + Description string + ExpiredDate string + InstitutionCode string + Name string + type VaDeleteData struct + BrivaNo string + CustCode string + InstitutionCode string + type VaDeleteResponse struct + Data VaDeleteData + ResponseCode string + ResponseDescription string + Status bool + type VaInformationData struct + Status string + type VaInformationResponse struct + Data VaInformationData + ResponseCode string + ResponseDescription string + Status bool + type VaReportData struct + AccountNo string + Amount string + BrivaNo string + CustCode string + Description string + Nama string + PaymentDate string + TellerId string + type VaReportResponse struct + Data []VaReportData + Description string + ErrDesc string + ResponseCode string + Status bool + type VaResponse struct + Data VaData + ErrDesc string + ResponseCode string + ResponseDescription string + Status bool