storj/satellite/console
Kaloyan Raev d66e646b57 satellite/payments: add deposit bonus to stripe balance
Jira issue: https://storjlabs.atlassian.net/browse/USR-820

The bonus for depositing STORJ tokens is now added as to the Stripe
balance instead of the to `credits` DB table on the satellite.

Existing unspent bonuses in the `credits` DB table are still processed
as usual when generating invoices. They will be migrated to the Stripe
balance with a separate change.

The bonus is added to the Stripe balance with a separate Credit
transaction. The balance transactions for the deposit and the bonus can
be differentiate by their different description.

The billing history is modified to list the bonus from the Stripe
transactions list.

The workflow for depositing STORJ tokens to the Stripe balance is
improved to survive failures in the middle of the process.

Change-Id: I6a1017984eae34e97c580f9093f7e51ca417b962
2020-06-01 17:41:10 +00:00
..
consoleauth all: remove old uuid 2020-04-02 19:30:36 +03:00
consoleweb web/satellite: logic for new signup/login flow 2020-05-29 17:11:44 +00:00
apikeys_test.go satellite/satellitedb/satellitedbtest: pass ctx as an argument 2020-01-20 16:35:42 +02:00
apikeys.go all: switch to storj.io/common/uuid 2020-03-31 19:16:41 +03:00
auth.go web/satellite: unauthorize error handled 2020-02-10 11:14:51 +00:00
billinghistoryitem.go satellite/payments: add deposit bonus to stripe balance 2020-06-01 17:41:10 +00:00
database.go satellite/console: use transaction helpers in consoledb 2020-01-07 17:59:10 +00:00
projectmembers_test.go all: remove old uuid 2020-04-02 19:30:36 +03:00
projectmembers.go all: switch to storj.io/common/uuid 2020-03-31 19:16:41 +03:00
projects_test.go satellite/console: fix flaky TestProjectsList 2020-04-30 13:48:29 +03:00
projects.go all: switch to storj.io/common/uuid 2020-03-31 19:16:41 +03:00
projectusagelimits.go satellite/console: project usage limits api (#3702) 2019-12-12 14:58:15 +02:00
registrationtoken.go all: switch to storj.io/common/uuid 2020-03-31 19:16:41 +03:00
resetpasswordtoken_test.go all: remove old uuid 2020-04-02 19:30:36 +03:00
resetpasswordtoken.go all: switch to storj.io/common/uuid 2020-03-31 19:16:41 +03:00
service.go satellite/payments: add deposit bonus to stripe balance 2020-06-01 17:41:10 +00:00
sortdirection.go web/satellite: API keys paged backend (#2839) 2019-09-12 17:19:30 +03:00
usercredits_test.go all: remove old uuid 2020-04-02 19:30:36 +03:00
usercredits.go all: switch to storj.io/common/uuid 2020-03-31 19:16:41 +03:00
users_test.go all: remove old uuid 2020-04-02 19:30:36 +03:00
users.go all: simplify uuid usage 2020-04-02 13:45:19 +00:00
validation.go golangci: Enable new linter added to last release 2020-01-24 18:09:37 +00:00