storj/satellite/console
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
..
consoleauth all: fix linter complaints 2020-10-13 15:59:01 +03:00
consolewasm satellite/wasm: support restricting full access grants to paths 2021-03-26 19:49:21 +00:00
consoleweb satellite/payments: Populate new coupons during invoice generation 2021-04-28 18:07:05 +00:00
wasm satellite/wasm: support restricting full access grants to paths 2021-03-26 19:49:21 +00:00
apikeys_test.go satellite/satellitedb/satellitedbtest: pass ctx as an argument 2020-01-20 16:35:42 +02:00
apikeys.go all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
attribution_test.go satellite/satellitedb: move tests to their domains 2021-02-19 17:29:15 +02:00
auth.go all: fix linter complaints 2020-10-13 15:59:01 +03:00
billinghistoryitem.go satellite/payments: available coupon value feature 2020-06-02 10:00:45 +00:00
buckets.go satellite/metabase: move package one level higher 2021-04-21 15:54:22 +03:00
database.go satellite: remove referral program related code 2021-02-08 13:52:50 +00:00
projectmembers_test.go all: remove old uuid 2020-04-02 19:30:36 +03:00
projectmembers.go all: add missing dots 2020-08-11 17:50:01 +03:00
projects_test.go satellite/console: Add pagination fields for ListProjectsByOwnerID 2021-01-20 16:15:29 +00:00
projects.go satellite/console: change default project and usage limits 2021-03-24 14:24:27 +00:00
projectusagelimits.go satellite/console: project usage limits api (#3702) 2019-12-12 14:58:15 +02:00
registrationtoken.go all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
request.go audit logging: log important user activity 2020-09-07 15:26:34 +00:00
resetpasswordtoken_test.go all: fix linter complaints 2020-10-13 15:59:01 +03:00
resetpasswordtoken.go all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
service_test.go satellite/console: delete api key by name and project id endpoint 2021-03-23 20:21:07 +00:00
service.go satellite/payments: Populate new coupons during invoice generation 2021-04-28 18:07:05 +00:00
sortdirection.go all: fix comments 2020-07-16 19:13:14 +03:00
users_test.go satellite/satellitedb: add employee size column to users 2021-02-12 09:15:15 -05:00
users.go satellite/satellitedb: add employee size column to users 2021-02-12 09:15:15 -05:00
validation.go all: fix dots 2020-07-16 14:58:28 +00:00