storj/satellite
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
..
accounting all: use common/storj 2020-05-29 11:57:32 +03:00
admin satellite/admin: Add the proper documentation for bandwidth limits (#3900) 2020-05-27 09:22:45 +03:00
attribution all: remove old uuid 2020-04-02 19:30:36 +03:00
audit private/testplanet: remove old libuplink from testplanet 2020-05-28 13:50:23 +00:00
compensation all: use common/storj 2020-05-29 11:57:32 +03:00
console satellite/payments: add deposit bonus to stripe balance 2020-06-01 17:41:10 +00:00
contact storagenode: remove dependency to overlay.NodeDossier 2020-05-21 08:37:13 +03:00
dbcleanup satellite: remove some unnecessary UTC() calls 2020-03-13 13:49:44 +00:00
downtime storagenode: remove dependency to overlay.NodeDossier 2020-05-21 08:37:13 +03:00
gc private/testplanet: remove old libuplink from testplanet 2020-05-28 13:50:23 +00:00
gracefulexit storagenode/gracefulexit: revalidate existing pieces 2020-05-28 09:50:14 -05:00
heldamount storagenode/heldamount payments removed 2020-04-21 17:15:31 +00:00
inspector all: simplify uuid usage 2020-04-02 13:45:19 +00:00
mailservice all: use monkit v3 2020-02-05 23:53:17 +00:00
marketingweb all: separate err check for http 2020-04-16 18:50:24 +03:00
metainfo pkg/macaroon: remove aliased package 2020-05-29 13:34:20 +00:00
metrics all: don't depend on gogo/proto directly 2020-04-08 17:32:15 +00:00
nodeselection satellite/nodeselection: use NodeURL 2020-05-27 05:46:11 +00:00
nodestats storagenode/reputation: unknown_score (unknown_alpha / unknown_alpha+unknown_beta) added to reputation stats, https://storjlabs.atlassian.net/browse/SG-326 2020-05-20 11:25:14 +00:00
orders satellite/orders: use serial SerialNumber 2020-05-15 11:33:53 +00:00
overlay satellite/nodeselection: use NodeURL 2020-05-27 05:46:11 +00:00
payments satellite/payments: add deposit bonus to stripe balance 2020-06-01 17:41:10 +00:00
referrals all: use DialNodeURL throughout the codebase 2020-05-20 10:36:30 +00:00
repair satellite/repair/repairer/ec.go: Add monkit tracing for ec repairer 2020-05-29 14:00:45 +00:00
rewards all: simplify uuid usage 2020-04-02 13:45:19 +00:00
satellitedb satellite/payments/stripecoinpayments: remove ProjectID from Coupon 2020-06-01 11:37:20 +00:00
vouchers all: use DialNodeURL throughout the codebase 2020-05-20 10:36:30 +00:00
admin.go Add logging listener for retrieving and setting log levels 2020-05-12 16:38:06 -04:00
api.go satellite/payments: add deposit bonus to stripe balance 2020-06-01 17:41:10 +00:00
config-lock_test.go satellite: add Go test version of satellite-config-lock tests 2020-05-13 08:14:24 +00:00
core.go satellite/payments: remove mockpayments and add Stripe client mock 2020-05-19 09:35:37 +02:00
gc.go Add logging listener for retrieving and setting log levels 2020-05-12 16:38:06 -04:00
peer.go all: rename CreateTables to MigrateToLatest 2020-04-30 07:21:17 +00:00
repairer.go Add logging listener for retrieving and setting log levels 2020-05-12 16:38:06 -04:00