treasurer/payway/payways/pw.go
2023-05-16 19:21:56 +03:00

27 lines
536 B
Go

package pw
import (
"time"
"go.mongodb.org/mongo-driver/bson"
)
type PayWayI interface {
Type() string
Copy() *Payway
//MarshalJSON() ([]byte, error)
}
type Payway struct {
PayWayI
ID string `json:"id" bson:"_id"`
Name string `json:"name" bson:"name"`
Description string `json:"desc" bson:"desc"`
Svc string `json:"svc" bson:"svc"`
RawCredentials bson.Raw `json:"-" bson:"credentials"`
Credentials any `json:"cred" bson:"-"`
CreatedAt time.Time `json:"created_at" bson:"created_at"`
}