4c0817bcfb
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 |
||
---|---|---|
.. | ||
coinpayments | ||
paymentsconfig | ||
stripecoinpayments | ||
account.go | ||
balance.go | ||
charges.go | ||
coupons_test.go | ||
coupons.go | ||
creditcards.go | ||
credits.go | ||
invoices.go | ||
projectcharges.go | ||
tokens.go |