41 lines
606 B
Go
41 lines
606 B
Go
package domain
|
|
|
|
import "time"
|
|
|
|
type TransferType string
|
|
|
|
const (
|
|
DEPOSIT TransferType = "deposit"
|
|
WITHDRAW TransferType = "withdraw"
|
|
)
|
|
|
|
type PaymentMethod int
|
|
|
|
const (
|
|
TRANSFER_CASH PaymentMethod = iota + 1
|
|
TRANSFER_BANK
|
|
TRANSFER_CHAPA
|
|
TRANSFER_ARIFPAY
|
|
TRANSFER_SANTIM
|
|
TRANSFER_ADDISPAY
|
|
TRANSFER_OTHER
|
|
)
|
|
|
|
type Transfer struct {
|
|
ID int64
|
|
Amount Currency
|
|
Verified bool
|
|
WalletID int64
|
|
Type TransferType
|
|
PaymentMethod PaymentMethod
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
type CreateTransfer struct {
|
|
Amount Currency
|
|
Verified bool
|
|
WalletID int64
|
|
Type TransferType
|
|
}
|