kodiak
kodiak copied to clipboard
add(web_api): new billing UI
This change replaces most of our UI for modifying subscriptions with a link to the Stripe Customer Portal.
The Stripe Customer Portal recently added the ability to modify seats and change plan periods.
Squawk Report
✅ 0 violations across 3 file(s)
web_api/migrations/0026_auto_20201024_2319.sql
BEGIN;
--
-- Alter field customer_currency on stripecustomerinformation
--
--
-- Alter field payment_method_card_brand on stripecustomerinformation
--
--
-- Alter field payment_method_card_exp_month on stripecustomerinformation
--
--
-- Alter field payment_method_card_exp_year on stripecustomerinformation
--
--
-- Alter field payment_method_card_last4 on stripecustomerinformation
--
--
-- Alter field payment_method_id on stripecustomerinformation
--
COMMIT;
✅ Rule Violations (0)
No violations found.
web_api/migrations/0027_auto_20201024_2320.sql
BEGIN;
--
-- Rename field customer_currency on stripecustomerinformation to _deprecated_customer_currency
--
--
-- Rename field payment_method_card_brand on stripecustomerinformation to _deprecated_payment_method_card_brand
--
--
-- Rename field payment_method_card_exp_month on stripecustomerinformation to _deprecated_payment_method_card_exp_month
--
--
-- Rename field payment_method_card_exp_year on stripecustomerinformation to _deprecated_payment_method_card_exp_year
--
--
-- Rename field payment_method_card_last4 on stripecustomerinformation to _deprecated_payment_method_card_last4
--
--
-- Rename field payment_method_id on stripecustomerinformation to _deprecated_payment_method_id
--
--
-- Add field customer_discount_coupon_amount_off to stripecustomerinformation
--
ALTER TABLE "stripe_customer_information" ADD COLUMN "customer_discount_coupon_amount_off" integer NULL;
--
-- Add field customer_discount_coupon_duration to stripecustomerinformation
--
ALTER TABLE "stripe_customer_information" ADD COLUMN "customer_discount_coupon_duration" varchar(255) NULL;
--
-- Add field customer_discount_coupon_duration_in_months to stripecustomerinformation
--
ALTER TABLE "stripe_customer_information" ADD COLUMN "customer_discount_coupon_duration_in_months" integer NULL;
--
-- Add field customer_discount_coupon_id to stripecustomerinformation
--
ALTER TABLE "stripe_customer_information" ADD COLUMN "customer_discount_coupon_id" varchar(255) NULL;
--
-- Add field customer_discount_coupon_name to stripecustomerinformation
--
ALTER TABLE "stripe_customer_information" ADD COLUMN "customer_discount_coupon_name" varchar(255) NULL;
--
-- Add field customer_discount_coupon_percent_off to stripecustomerinformation
--
ALTER TABLE "stripe_customer_information" ADD COLUMN "customer_discount_coupon_percent_off" double precision NULL;
--
-- Add field customer_discount_id to stripecustomerinformation
--
ALTER TABLE "stripe_customer_information" ADD COLUMN "customer_discount_id" varchar(255) NULL;
--
-- Add field plan_product_name to stripecustomerinformation
--
ALTER TABLE "stripe_customer_information" ADD COLUMN "plan_product_name" varchar(255) NULL;
--
-- Add field subscription_cancel_at to stripecustomerinformation
--
ALTER TABLE "stripe_customer_information" ADD COLUMN "subscription_cancel_at" integer NULL;
--
-- Add field subscription_cancel_at_period_end to stripecustomerinformation
--
ALTER TABLE "stripe_customer_information" ADD COLUMN "subscription_cancel_at_period_end" boolean NULL;
--
-- Add field subscription_canceled_at to stripecustomerinformation
--
ALTER TABLE "stripe_customer_information" ADD COLUMN "subscription_canceled_at" integer NULL;
--
-- Add field upcoming_invoice_total to stripecustomerinformation
--
ALTER TABLE "stripe_customer_information" ADD COLUMN "upcoming_invoice_total" integer NULL;
COMMIT;
✅ Rule Violations (0)
No violations found.
web_api/migrations/0028_set_upcoming_invoice.sql
BEGIN;
--
-- MIGRATION NOW PERFORMS OPERATION THAT CANNOT BE WRITTEN AS SQL:
-- Raw Python operation
--
COMMIT;
✅ Rule Violations (0)
No violations found.
⚡️ Powered by Squawk, a linter for PostgreSQL, focused on migrations