Versions in this module Expand all Collapse all v1 v1.0.0 Jan 8, 2023 Changes in this version + const ChannelB2BClient + const ChannelEBizKezbek + const DefaultTrxId + const ErrCodeBadPayload + const ErrCodeBussClientAddTransaction + const ErrCodeBussH2HCashbackFailed + const ErrCodeBussMerchantCodeInvalid + const ErrCodeBussNoCashback + const ErrCodeBussPartnerExists + const ErrCodeBussPartnerOTPInvalid + const ErrCodeBussRewardFailed + const ErrCodeESBUnavailable + const ErrCodeInvalidChannel + const ErrCodeNotFound + const ErrCodeSomethingWrong + const ErrCodeSubmitted + const ErrCodeTokenExpired + const ErrCodeUnauthorized + const ErrMsgBadPayload + const ErrMsgBussClientAddTransaction + const ErrMsgBussH2HCashbackFailed + const ErrMsgBussMerchantCodeInvalid + const ErrMsgBussNoCashback + const ErrMsgBussPartnerExists + const ErrMsgBussPartnerOTPInvalid + const ErrMsgBussRewardFailed + const ErrMsgESBUnavailable + const ErrMsgInvalidChannel + const ErrMsgNotFound + const ErrMsgSomethingWrong + const ErrMsgSubmitted + const ErrMsgTokenExpired + const ErrMsgUnauthorized + const H2HGpaid + const H2HJosvo + const H2HLinksaja + const H2HMidtrans + const H2HXenit + const HeaderApiKey + const HeaderClientChannel + const HeaderClientDeviceId + const HeaderClientOs + const HeaderClientRefToken + const HeaderClientSignature + const HeaderClientTimestamp + const HeaderClientTrxId + const HeaderClientVersion + const HeaderSessionEmail + const HeaderSessionFullname + const HeaderSessionId + const HeaderSessionMsisdn + const HeaderSessionRole + const HeaderSessionUsername + const StatusActive + const StatusInactive + const SuccessCode + const SuccessMsgDataFound + const SuccessMsgSubmit + func BusinessErrorResponse(e *model.BusinessError) *model.Response + func Decrypt(data []byte, hash string, logger *zap.Logger) (res string, ex *model.TechnicalError) + func DefaultSuccessResponse(m string, data interface{}) *model.Response + func Encrypt(d string, h string, logger *zap.Logger) (res []byte, ex *model.TechnicalError) + func Exception(msg string, err error, d zap.Field, logger *zap.Logger) *model.TechnicalError + func HMAC(d string, s string) string + func Hash(key string) string + func NewEnv(logger *zap.Logger) (*viper.Viper, *model.TechnicalError) + func NewLog(prod bool) (z *zap.Logger, fh fiber.Handler) + func RandomOtp(d int) (string, error) + func RandomPassword(len int, d int, sym int, logger *zap.Logger) (res string, e *model.TechnicalError) + func StringExists(key string, strs []string) bool + func Transaction(identifier string) model.TransactionResponse + func TransactionId(identifier string) string + func ValidateStruct(err error) []*model.BadPayloadResponse