storj/satellite/payments
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
..
coinpayments satellite/payments/stripecoinpayments: don't request anything from 2020-05-26 19:38:12 +02:00
paymentsconfig satellite: Change Default Project Limits and minimum STORJ Payment (#3877) 2020-05-12 14:18:58 +03:00
stripecoinpayments satellite/payments: add deposit bonus to stripe balance 2020-06-01 17:41:10 +00:00
account.go satellite: account balance divided into Free Credits and Coins 2020-05-18 14:25:26 +00:00
balance.go satellite: account balance divided into Free Credits and Coins 2020-05-18 14:25:26 +00:00
charges.go satellite/console: add credit card charges to billing history 2020-01-03 17:34:59 +02:00
coupons_test.go satellite/payments: coupon expiration bug fixed 2020-06-01 12:20:08 +03:00
coupons.go satellite/payments/stripecoinpayments: remove ProjectID from Coupon 2020-06-01 11:37:20 +00:00
creditcards.go all: switch to storj.io/common/uuid 2020-03-31 19:16:41 +03:00
credits.go all: switch to storj.io/common/uuid 2020-03-31 19:16:41 +03:00
invoices.go all: switch to storj.io/common/uuid 2020-03-31 19:16:41 +03:00
projectcharges.go all: switch to storj.io/common/uuid 2020-03-31 19:16:41 +03:00
tokens.go satellite/payments: add deposit bonus to stripe balance 2020-06-01 17:41:10 +00:00