storj/satellite/payments
Moby von Briesen 4c0817bcfb satellite/payments: Populate new coupons during invoice generation
The previously configured never-expiring coupon does not refill every
month. Eventually, even though it never expires, it will run out. This
commit makes several small changes to address this issue for the free
tier:
* Change the config for the promotional coupon to be $1.65 for 1 month
(the change from $10 to $1.65 is due to our recent pricing changes)
* Update PopulatePromotionalCoupons (PPC for brevity) to add promotional
coupons to users with expired and consumed coupons (all users with a
project and no active coupons should get a new coupon when PPC is called)
* Call PPC at the end of the `create-invoice-coupons` stage of invoice
generation - after current coupons are processed and expired/exhausted.
* Remove legacy admin functionality for PPC from satellite/console - we
do not currently use it, but if we did, it should be in satellite/admin
instead.

Change-Id: I77727b97bef972df32ebb23cdc05055827076e2a
2021-04-28 18:07:05 +00:00
..
coinpayments satellite/satellitedb: move tests to their domains 2021-02-19 17:29:15 +02:00
paymentsconfig satellite/payments: Populate new coupons during invoice generation 2021-04-28 18:07:05 +00:00
stripecoinpayments satellite/payments: Populate new coupons during invoice generation 2021-04-28 18:07:05 +00:00
account.go satellite/{console/payments/satellitedb}: add validation for deletion of account and project 2020-10-13 07:55: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: Convert coupon duration to be nullable 2021-04-01 16:28:23 +02:00
coupons.go satellite/payments: Populate new coupons during invoice generation 2021-04-28 18:07:05 +00:00
creditcards.go satellite/{payments,admin}: add deletion of user creditcards on account deletion 2020-08-27 10:18:19 +00:00
credits.go all: switch to storj.io/common/uuid 2020-03-31 19:16:41 +03:00
invoices.go satellite/admin: add user deletion 2020-07-14 11:37:00 +00: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