From 1b1d6f450877423e66c6202aba6e9c7caea9d100 Mon Sep 17 00:00:00 2001 From: Yao Renaud WOANA Date: Wed, 20 Apr 2022 11:00:18 +0000 Subject: [PATCH 1/2] added getLink & sendLink methods to subscription resource --- resources/subscription.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/resources/subscription.js b/resources/subscription.js index 71f15d5..79eab4a 100644 --- a/resources/subscription.js +++ b/resources/subscription.js @@ -47,5 +47,21 @@ module.exports = { get: { method: "get", route: `${route}/{id}` + }, + + /* + Generate Update Subscription Link + */ + getLink: { + method: "get", + route: `${route}/{code}/manage/link` + }, + + /* + Send Update Subscription Link + */ + sendLink: { + method: "post", + route: `${route}/{code}/manage/email` } }; From 4002633fb6c1b1ece9fb5a69f985d39e2317fd59 Mon Sep 17 00:00:00 2001 From: Yao Renaud WOANA Date: Wed, 20 Apr 2022 11:01:47 +0000 Subject: [PATCH 2/2] added getLink & sendLink methods to docs --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b840ea1..2b65a02 100644 --- a/README.md +++ b/README.md @@ -199,6 +199,8 @@ const paystack = new Paystack("secret_key"); * enable * get * list + * getLink + * sendLink * transfer_control * balance * resendOTP