storj/satellite
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
..
accounting pkg/,private/: merge with private package 2021-04-23 16:37:28 +03:00
admin satellite/payments: Convert coupon duration to be nullable 2021-04-01 16:28:23 +02:00
analytics satellite/analytics: Add analytics for "path selected" in onboarding step (#4086) 2021-04-19 09:44:25 -07:00
attribution all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
audit satellite/metabase/metaloop: move loop under metabase 2021-04-22 12:58:09 +03:00
compensation satellite/compensation: add wallet features to invoice csv 2021-02-08 22:13:48 +02:00
console satellite/payments: Populate new coupons during invoice generation 2021-04-28 18:07:05 +00:00
contact pkg/,private/: merge with private package 2021-04-23 16:37:28 +03:00
gc storj: use multipart API 2021-04-26 13:15:09 +00:00
gracefulexit storj: use multipart API 2021-04-26 13:15:09 +00:00
inspector satellite/metabase: move package one level higher 2021-04-21 15:54:22 +03:00
internalpb satellite/overlay: remove Inspector 2021-03-29 12:26:10 +03:00
mailservice all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
metabase satellite/metabase: add migration step for index on pending objects 2021-04-28 09:54:10 +00:00
metainfo satellite/metainfo/expireddeletion: change chore interval to 24h 2021-04-27 12:30:23 +00:00
metrics satellite/metrics: join for monitoring 2021-04-23 12:21:48 +03:00
nodeapiversion satellite/nodeapiversion: new table for tracking node api usage 2020-07-09 15:02:25 +00:00
nodeselection satellite/overlay: use DownloadSelectionCache for getting node IPs 2021-01-29 16:47:10 +02:00
nodestats pb: use *UnimplementedServer to avoid breaking API changes 2021-03-29 12:26:10 +03:00
orders satellite/metabase: move package one level higher 2021-04-21 15:54:22 +03:00
overlay satellite/satellitedb: in stray nodes DQ, don't DQ nodes where last_contact_success = '0001-01-01 00:00:00+00' 2021-04-22 10:13:13 -04:00
payments satellite/payments: Populate new coupons during invoice generation 2021-04-28 18:07:05 +00:00
repair storj: use multipart API 2021-04-26 13:15:09 +00:00
revocation satellite/satellitedb: move tests to their domains 2021-02-19 17:29:15 +02:00
rewards storj/storj: some domain changes we can make now 2021-04-13 17:12:06 +00:00
satellitedb satellite/payments: Populate new coupons during invoice generation 2021-04-28 18:07:05 +00:00
snopayouts pb: use *UnimplementedServer to avoid breaking API changes 2021-03-29 12:26:10 +03:00
admin.go satellite/payments: Convert coupon duration to be nullable 2021-04-01 16:28:23 +02:00
api.go pkg/,private/: merge with private package 2021-04-23 16:37:28 +03:00
configlock_test.go all: fix linter complaints 2020-10-13 15:59:01 +03:00
core.go satellite/metabase/metaloop: move loop under metabase 2021-04-22 12:58:09 +03:00
gc.go satellite/metabase/metaloop: move loop under metabase 2021-04-22 12:58:09 +03:00
peer.go pkg/,private/: merge with private package 2021-04-23 16:37:28 +03:00
repairer.go all: remove code related to PointerDB 2021-04-21 12:35:31 +00:00