0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Supported cancellation_reason in @tryghost/members-api (#12406)

refs #12403 

This adds support for passing a cancellation_reason when updating a
subscription to cancel_at_end_of_period. The reason will be stored on
the Subscription metadata, as well as in the cancellation_reason column
in the members_stripe_customers_subscriptions table.

refs https://github.com/TryGhost/Members/pull/221
refs https://github.com/TryGhost/Members/pull/222
This commit is contained in:
Fabien 'egg' O'Carroll 2020-11-23 17:34:40 +00:00 committed by GitHub
parent 47e266e6d3
commit b9eb835498
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 8 deletions

View file

@ -56,7 +56,7 @@
"@tryghost/kg-markdown-html-renderer": "2.0.4",
"@tryghost/kg-mobiledoc-html-renderer": "3.0.1",
"@tryghost/magic-link": "0.6.1",
"@tryghost/members-api": "0.34.2",
"@tryghost/members-api": "0.35.0",
"@tryghost/members-csv": "0.3.2",
"@tryghost/members-ssr": "0.8.5",
"@tryghost/mw-session-from-token": "0.1.11",

View file

@ -510,7 +510,7 @@
dependencies:
"@tryghost/kg-clean-basic-html" "^1.0.10"
"@tryghost/magic-link@0.6.1", "@tryghost/magic-link@^0.6.1":
"@tryghost/magic-link@0.6.1":
version "0.6.1"
resolved "https://registry.yarnpkg.com/@tryghost/magic-link/-/magic-link-0.6.1.tgz#47eb501b054a388f6ee897df406c65cf4cd093c3"
integrity sha512-KsKa/bspRYfaiVOqvbILlMWNZ5E8xM7a2tBom2ujUdu0KDgx8t7uyhNF0ai6Qa2TppIwyMhofnWWdIsMUzavXg==
@ -520,17 +520,27 @@
jsonwebtoken "^8.5.1"
lodash "^4.17.15"
"@tryghost/members-api@0.34.2":
version "0.34.2"
resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-0.34.2.tgz#039208e5510a050ce7faa7e90ef2758101b037f4"
integrity sha512-R3T+E2GdHnXY1vRaHkqen63Hr2AGEuWiuXW+lczIACRwV7KlptMpnIKfLr8NF951eykIw7HQc6fF1PxkrUi0jg==
"@tryghost/magic-link@^0.6.2":
version "0.6.2"
resolved "https://registry.yarnpkg.com/@tryghost/magic-link/-/magic-link-0.6.2.tgz#a429870a41b640dc51ba640747f4da002aa52163"
integrity sha512-cCCcwlN+hHxKSyxk2D9fIgfXKo2iLOyM5A/U011d/QcqJbCaVv9QYn6HgfWoz40vgV6xEmHrMGLPn4SapLBZZw==
dependencies:
"@tryghost/magic-link" "^0.6.1"
bluebird "^3.5.5"
ghost-ignition "4.2.4"
jsonwebtoken "^8.5.1"
lodash "^4.17.15"
"@tryghost/members-api@0.35.0":
version "0.35.0"
resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-0.35.0.tgz#413de8614ba431aaaa683425ab633084eefc010f"
integrity sha512-8N9npMF01B5463NCcKlN9Rli+8nfde2OS2/vw4VJqDdNqgMnoZTyJh43iRqTZbDNH4/47tFAm0fHwyfRdsJ3nA==
dependencies:
"@tryghost/magic-link" "^0.6.2"
bluebird "^3.5.4"
body-parser "^1.19.0"
cookies "^0.8.0"
express "^4.16.4"
ghost-ignition "4.2.2"
ghost-ignition "4.2.4"
got "^9.6.0"
jsonwebtoken "^8.5.1"
leaky-bucket "2.2.0"