mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
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:
parent
7bbbeeb5b0
commit
217f069085
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ const StripeCustomerSubscription = ghostBookshelf.Model.extend({
|
||||||
start_date: defaultSerializedObject.start_date,
|
start_date: defaultSerializedObject.start_date,
|
||||||
default_payment_card_last4: defaultSerializedObject.default_payment_card_last4,
|
default_payment_card_last4: defaultSerializedObject.default_payment_card_last4,
|
||||||
cancel_at_period_end: defaultSerializedObject.cancel_at_period_end,
|
cancel_at_period_end: defaultSerializedObject.cancel_at_period_end,
|
||||||
|
cancellation_reason: defaultSerializedObject.cancellation_reason,
|
||||||
current_period_end: defaultSerializedObject.current_period_end
|
current_period_end: defaultSerializedObject.current_period_end
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue