2019-10-10 18:12:23 +01:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
package stripecoinpayments
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/skyrings/skyring-common/tools/uuid"
|
|
|
|
)
|
|
|
|
|
2019-10-11 16:00:35 +01:00
|
|
|
// CustomersDB is interface for working with stripe customers table.
|
|
|
|
type CustomersDB interface {
|
2019-10-10 18:12:23 +01:00
|
|
|
// Insert inserts a stripe customer into the database.
|
|
|
|
Insert(ctx context.Context, userID uuid.UUID, customerID string) error
|
2019-10-11 16:00:35 +01:00
|
|
|
|
|
|
|
// GetCustomerID return stripe customers id.
|
|
|
|
GetCustomerID(ctx context.Context, userID uuid.UUID) (string, error)
|
2019-10-10 18:12:23 +01:00
|
|
|
}
|