storj/satellite/payments/stripecoinpayments
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
..
accounts_test.go satellite/console: make paywall optional 2020-07-28 10:57:49 +00:00
accounts.go all: fix linter complaints 2020-10-13 15:59:01 +03:00
clearing.go satellite/payments: remove unused code 2020-02-20 16:04:19 +02:00
client.go satellite/admin: add user deletion 2020-07-14 11:37:00 +00:00
conversion.go satellite/payments: token deposit accept cents (#3628) 2019-11-21 16:25:37 +02:00
coupons_test.go satellite/payments: Populate new coupons during invoice generation 2021-04-28 18:07:05 +00:00
coupons.go satellite/payments: Convert coupon duration to be nullable 2021-04-01 16:28:23 +02:00
creditcards_test.go satellite/{payments,admin}: add deletion of user creditcards on account deletion 2020-08-27 10:18:19 +00:00
creditcards.go satellite/{payments,admin}: add deletion of user creditcards on account deletion 2020-08-27 10:18:19 +00:00
customers_test.go satellite/payments/stripecoinpayments: fix test flakyness 2020-04-29 12:06:35 +00:00
customers.go all: switch to storj.io/common/uuid 2020-03-31 19:16:41 +03:00
db.go satellite/payments: delete credits and credits_spendings db tables 2020-07-30 12:19:57 +03:00
invoices.go satellite/admin: add user deletion 2020-07-14 11:37:00 +00:00
projectrecords_test.go satellite/payments: delete credits and credits_spendings db tables 2020-07-30 12:19:57 +03:00
projectrecords.go satellite/payments: delete credits and credits_spendings db tables 2020-07-30 12:19:57 +03:00
service_test.go satellite/payments: Populate new coupons during invoice generation 2021-04-28 18:07:05 +00:00
service.go satellite/payments: Populate new coupons during invoice generation 2021-04-28 18:07:05 +00:00
stripemock.go satellite/payments: De-shadow customer page var in stripe mock 2021-03-03 20:51:43 -05:00
tokens_test.go satellite/payments: fetch old deposit bonuses from Stripe metadata 2020-07-23 12:11:17 +00:00
tokens.go satellite/payments: fetch old deposit bonuses from Stripe metadata 2020-07-23 12:11:17 +00:00
transactions_test.go satellite/payments: add STORJ amount and rate to Stripe TX metadata 2020-07-22 11:57:21 +03:00
transactions.go all: fix dots 2020-07-16 14:58:28 +00:00
version.go common: separate repository 2019-12-27 14:11:15 +02:00