storj/satellite/payments/stripecoinpayments
Moby von Briesen c334fd090e satellite/payments: Convert coupon duration to be nullable
* Add a nullable billing_periods column in the coupons table
* Add nullable billing_periods column to the currently unused
coupon_codes table
* Drop the duration column from the coupon_codes table
* Replace duration config type so that the default promotional coupon
can be configured to never expire

Zero downtime migration plan:
* Add billing_periods column to coupons and coupon_codes tables (this change)
* After one release, remove all references to the old duration column,
replacing with references to billing_periods. At this point, we can also
change the defult promotional coupon to never expire and migrate over
values from the old duration column.
* After another release, drop the duration column.

Change-Id: I374e8dc9fab9f81b4a5bc681771955662d4c007a
2021-04-01 16:28:23 +02: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: Convert coupon duration to be nullable 2021-04-01 16:28:23 +02: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: Convert coupon duration to be nullable 2021-04-01 16:28:23 +02:00
service.go satellite/payments: Convert coupon duration to be nullable 2021-04-01 16:28:23 +02: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