2025-06-24 02:47:44 +07:00

30 lines
554 B
Go

package transaction
type PaymentStatus string
const (
New PaymentStatus = "NEW"
Paid PaymentStatus = "PAID"
Cancel PaymentStatus = "CANCEL"
Refund PaymentStatus = "REFUND"
)
func (b PaymentStatus) toString() string {
return string(b)
}
type PaymentMethod string
const (
Cash PaymentMethod = "CASH"
Debit PaymentMethod = "DEBIT"
Transfer PaymentMethod = "TRANSFER"
QRIS PaymentMethod = "QRIS"
Online PaymentMethod = "ONLINE"
VA PaymentMethod = "VA"
)
func (b PaymentMethod) toString() string {
return string(b)
}