Граф коммитов

2 Коммитов

Автор SHA1 Сообщение Дата
Marty Ballard 2e63e6b4b5 COPS-862
Implement new payload for processing upgrades
The basket payload should include the following information, per this API spec:

    event_id - The Stripe Event ID
    event_type - customer.subscription.upgrade OR customer.subscription.downgrade
    close_date - Date that the event occurs (when the customer makes the change to their subscription)
    customer_id - The Stripe Customer ID
    nickname_old - This is created from the old Product name and the old Plan interval
    nickname_new - This is created from the new Product name and the new Product interval
    plan_amount_old - This is the price of the old Plan
    plan_amount_new - This is the price of the new Plan
    proration_amount - Use the upcoming invoice API to retrieve the prorated amount to provide. It will be calculated by summing together the line item amounts found within the Invoice object https://stripe.com/docs/api/invoices/object
    interval - This is the interval for the new Plan
    current_period_end - Billing cycle end date; this will populate the {NextInvoiceDate}

    in the email body for reactivated subscriptions
    subscription_id - Subscription id - so we can group charges for a specific subscription
    invoice_number - Invoice Number (customer facing value, to be included on the customer's invoice sent via email)
    invoice_id - Unique identifier of the invoice from Stripe
2019-11-19 11:52:02 -06:00
Stewart Henderson ceec1e86c8 mypy pre-commit hook addition 2019-11-07 21:29:01 -06:00