Added support for creating subscriptions

refs https://github.com/TryGhost/Team/issues/616
refs https://github.com/TryGhost/Ghost/commit/33f26fbf

This adds the createSubscription method to the MemberRepository, which
is used by the Member controller in the references commit.

We also fix updating products to correctly handle stripe_prices and the
product name.
This commit is contained in:
Fabien O'Carroll 2021-04-26 17:20:36 +01:00
parent 33f26fbf32
commit 740d1b052f
2 changed files with 5 additions and 5 deletions

View File

@ -58,7 +58,7 @@
"@tryghost/kg-mobiledoc-html-renderer": "4.0.0",
"@tryghost/limit-service": "0.4.2",
"@tryghost/magic-link": "1.0.2",
"@tryghost/members-api": "1.3.2",
"@tryghost/members-api": "1.4.0",
"@tryghost/members-csv": "1.0.0",
"@tryghost/members-ssr": "1.0.2",
"@tryghost/mw-session-from-token": "0.1.19",

View File

@ -559,10 +559,10 @@
jsonwebtoken "^8.5.1"
lodash "^4.17.15"
"@tryghost/members-api@1.3.2":
version "1.3.2"
resolved "https://registry.npmjs.org/@tryghost/members-api/-/members-api-1.3.2.tgz#13d604308d7eac86ed12973a7164859d6b0b0f62"
integrity sha512-jFoFURag59rsMuyk9U5qmrk866DtIwQjEDXTmWXPvMWhnzlenL1JVUIRNtV8Ez9jH2tK6/Td2KkTZuCVd5Su0Q==
"@tryghost/members-api@1.4.0":
version "1.4.0"
resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-1.4.0.tgz#4e801156e2bf1fa1f2917ab73ec6a14afefad183"
integrity sha512-Wi0yKY1XHuYNR9CFsQD6Iro4gjHC++iZkQt5hYTCUrsTni7wK2B1dAtVcbq7/HdOoRJn2t4t7n1WmN3jsKbT9A==
dependencies:
"@tryghost/errors" "^0.2.9"
"@tryghost/magic-link" "^1.0.2"