storj/satellite/console/userpayments.go
2019-09-10 16:24:16 +03:00

28 lines
561 B
Go

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
package console
import (
"context"
"time"
"github.com/skyrings/skyring-common/tools/uuid"
)
// UserPayments is user payment infos store
//
// architecture: Database
type UserPayments interface {
Create(ctx context.Context, info UserPayment) (*UserPayment, error)
Get(ctx context.Context, userID uuid.UUID) (*UserPayment, error)
}
// UserPayment represents user payment information
type UserPayment struct {
UserID uuid.UUID
CustomerID []byte
CreatedAt time.Time
}