Included cancellation_reason in subscription serialization (#12411)

refs #12403 

This new property needed to be exposed in serialization so that Ghost-Admin
can use it via the API.
This commit is contained in:
Fabien 'egg' O'Carroll 2020-11-23 21:19:27 +00:00 committed by GitHub
parent 7bbbeeb5b0
commit 217f069085
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,6 +39,7 @@ const StripeCustomerSubscription = ghostBookshelf.Model.extend({
start_date: defaultSerializedObject.start_date,
default_payment_card_last4: defaultSerializedObject.default_payment_card_last4,
cancel_at_period_end: defaultSerializedObject.cancel_at_period_end,
cancellation_reason: defaultSerializedObject.cancellation_reason,
current_period_end: defaultSerializedObject.current_period_end
};
}