Update template email
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
package constants
|
||||
|
||||
import (
|
||||
"github.com/google/uuid"
|
||||
"time"
|
||||
)
|
||||
|
||||
const (
|
||||
ContextRequestID string = "requestId"
|
||||
)
|
||||
@@ -9,3 +14,41 @@ type UserType string
|
||||
func (u UserType) toString() string {
|
||||
return string(u)
|
||||
}
|
||||
|
||||
const (
|
||||
StatusPending = "PENDING"
|
||||
StatusPaid = "PAID"
|
||||
StatusCanceled = "CANCELED"
|
||||
StatusExpired = "EXPIRED"
|
||||
StatusExecuted = "EXECUTED"
|
||||
)
|
||||
|
||||
const (
|
||||
PaymentCash = "CASH"
|
||||
PaymentCreditCard = "CREDIT_CARD"
|
||||
PaymentDebitCard = "DEBIT_CARD"
|
||||
PaymentEWallet = "E_WALLET"
|
||||
)
|
||||
|
||||
const (
|
||||
SourcePOS = "POS"
|
||||
SourceMobile = "MOBILE"
|
||||
SourceWeb = "WEB"
|
||||
)
|
||||
|
||||
const (
|
||||
DefaultInquiryExpiryDuration = 30 * time.Minute
|
||||
)
|
||||
|
||||
func GenerateUUID() string {
|
||||
return uuid.New().String()
|
||||
}
|
||||
|
||||
func GenerateRefID() string {
|
||||
now := time.Now()
|
||||
return now.Format("20060102") + "-" + uuid.New().String()[:8]
|
||||
}
|
||||
|
||||
var TimeNow = func() time.Time {
|
||||
return time.Now()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user