package
1.2.8
Repository: https://github.com/gidyon/mpesapayments.git
Documentation: pkg.go.dev

# Functions

GetDateFromString converts the dateStr in format 2020-01-12 to time.Time.
ParseDatePayload parses the date provided and fails if it's greater than current time.
ParseDay parses the day and fails if it's incorrect.
ParseDayEndTime parses the provided year, month and day into latest time of the day.
ParseDayStartTime parses the provided year, month and day into the earliest time of the day.
ParseMonth parses the month and fails if it's incorrect.
ParseMonthPayload parses month payload and fails if month is greater than current time.
ParseYear parses the year and fails it it's incorrect.
TimeGreaterThanCurrentDay checks whether the provided time details is greater than current day.
TimeGreaterThanCurrentMonth checks whether the month is greater than current month.