btc-pay-checker/internal/domain/order.go

21 lines
695 B
Go
Raw Normal View History

2023-07-19 11:47:46 +02:00
package domain
import (
"time"
"go.mongodb.org/mongo-driver/bson/primitive"
)
type Order struct {
2023-07-19 21:20:59 +02:00
ID primitive.ObjectID `bson:"_id" json:"-"`
OrderID string `bson:"order_id" json:"order_id"`
ClientID string `bson:"client_id" json:"client_id"`
Email string `bson:"email" json:"email"`
2023-07-19 11:47:46 +02:00
Amount float64 `bson:"amount" json:"amount"`
Tx string `bson:"tx" json:"tx"`
Block string `bson:"block" json:"block"`
PaidAt time.Time `bson:"paid_at" json:"paid_at"`
2023-12-26 10:58:26 +01:00
CreatedAt time.Time `bson:"created_at" json:"-"`
ExpiresAt time.Time `bson:"expires_at" json:"-"`
2023-07-19 11:47:46 +02:00
}