Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderStatus ¶
type OrderStatus struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id"` OrderId string `bson:"orderId"` UserId string `bson:"userId"` Placed bool `bson:"placed"` PartialValidated bool `bson:"partialValidated"` Validated bool `bson:"validated"` PartialPayment bool `bson:"partialPayment"` PaymentCompleted bool `bson:"paymentCompleted"` Created time.Time `bson:"created"` Updated time.Time `bson:"updated"` }
Estuctura basica de del evento
func (*OrderStatus) ValidateSchema ¶
func (e *OrderStatus) ValidateSchema() error
ValidateSchema valida la estructura para ser insertada en la db
type StatusRepository ¶
type StatusRepository interface { Insert(order *OrderStatus) (*OrderStatus, error) FindByOrderId(orderId string) (*OrderStatus, error) }
func NewStatusRepository ¶
func NewStatusRepository(log log.LogRusEntry, collection db.Collection) StatusRepository
type StatusService ¶
func NewStatusService ¶
func NewStatusService(log log.LogRusEntry, repository StatusRepository) StatusService
Click to show internal directories.
Click to hide internal directories.