edfd3d7661
Jira: https://storjlabs.atlassian.net/browse/USR-822 This the last step of dropping these 2 db tables. It also deletes all code associate with them. Change-Id: I8be840dc2a7be255cf6308c9434b729fe4d9391e
39 lines
1.1 KiB
Go
39 lines
1.1 KiB
Go
// Copyright (C) 2019 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
package satellitedb
|
|
|
|
import (
|
|
"storj.io/storj/satellite/payments/stripecoinpayments"
|
|
)
|
|
|
|
// ensures that *stripeCoinPaymentsDB implements stripecoinpayments.DB.
|
|
var _ stripecoinpayments.DB = (*stripeCoinPaymentsDB)(nil)
|
|
|
|
// stripeCoinPaymentsDB is stripecoinpayments DB.
|
|
//
|
|
// architecture: Database
|
|
type stripeCoinPaymentsDB struct {
|
|
db *satelliteDB
|
|
}
|
|
|
|
// Customers is getter for customers db.
|
|
func (db *stripeCoinPaymentsDB) Customers() stripecoinpayments.CustomersDB {
|
|
return &customers{db: db.db}
|
|
}
|
|
|
|
// Transactions is getter for transactions db.
|
|
func (db *stripeCoinPaymentsDB) Transactions() stripecoinpayments.TransactionsDB {
|
|
return &coinPaymentsTransactions{db: db.db}
|
|
}
|
|
|
|
// ProjectRecords is getter for invoice project records db.
|
|
func (db *stripeCoinPaymentsDB) ProjectRecords() stripecoinpayments.ProjectRecordsDB {
|
|
return &invoiceProjectRecords{db: db.db}
|
|
}
|
|
|
|
// Coupons is getter for coupons db.
|
|
func (db *stripeCoinPaymentsDB) Coupons() stripecoinpayments.CouponsDB {
|
|
return &coupons{db: db.db}
|
|
}
|