paystack-sdk 1.1.20 → 1.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,29 @@
1
+ #### 1.0.4 (2021-12-06)
2
+
3
+ ##### Other Changes
4
+
5
+ * **plan:** added methods for plan ([d68ff371](https://github.com/en1tan/paystack-node/commit/d68ff371a90b363ea087bbd5d7cfbece14ca216b))
6
+
7
+ #### 1.0.3 (2021-12-06)
8
+
9
+ ##### Other Changes
10
+
11
+ * **transactions:** added initialize transaction, verify transaction, list transactions ([73c85a83](https://github.com/en1tan/paystack-node/commit/73c85a83b1ae52b4be63e3d77b8c8ff64588b8e2))
12
+ * **charge:** compeleted the endpoints, what remains is custom validtion and comments ([cc3165ce](https://github.com/en1tan/paystack-node/commit/cc3165ce772ac574cdfbcda082ff22f67e9c8945))
13
+
14
+ #### 1.0.3 (2021-12-06)
15
+
16
+ ##### Other Changes
17
+
18
+ * **charge:** compeleted the endpoints, what remains is custom validtion and comments ([cc3165ce](https://github.com/en1tan/paystack-node/commit/cc3165ce772ac574cdfbcda082ff22f67e9c8945))
19
+
20
+ - ✍🏻 UPDATE(charge): compeleted the endpoints, what remains is custom validtion and comments
21
+ - 1.0.3
22
+ - ✍🏻 UPDATE(charge): compeleted the endpoints, what remains is custom validtion and comments
23
+ - 1.0.2
24
+ - 🐞 FIX(main entry file):
25
+ - 1.0.1
26
+ - ✍🏻 UPDATE(travis): for automated builds
27
+ - 🐞 FIX(main entry file):
28
+ - 📦 NEW(set up sdk):
29
+ - Initial commit
package/README.md CHANGED
@@ -40,3 +40,4 @@ All methods use promise meaning you can either use the `async...await` or `then.
40
40
  - Subscription
41
41
  - Transaction
42
42
  - Transfer
43
+ - dedicated (For dedicated accounts)
@@ -16,7 +16,7 @@ class DedicatedAccount {
16
16
  }
17
17
  create(data) {
18
18
  return __awaiter(this, void 0, void 0, function* () {
19
- return yield this.http.post('/dedicated_account', data);
19
+ return yield this.http.post('/dedicated_account', JSON.stringify(data));
20
20
  });
21
21
  }
22
22
  list(queryParams) {
@@ -36,7 +36,7 @@ class DedicatedAccount {
36
36
  }
37
37
  splitTransaction(data) {
38
38
  return __awaiter(this, void 0, void 0, function* () {
39
- return yield this.http.post('/dedicated_account/split', data);
39
+ return yield this.http.post('/dedicated_account/split', JSON.stringify(data));
40
40
  });
41
41
  }
42
42
  removeSplit(accountNumber) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paystack-sdk",
3
- "version": "1.1.20",
3
+ "version": "1.1.21",
4
4
  "description": "Paystack SDK written in Typescript",
5
5
  "main": "dist/index.js",
6
6
  "author": "Tech Priest",