paystack-sdk 1.0.4 → 1.0.5
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/README.md +1 -0
- package/dist/paystack.d.ts +2 -0
- package/dist/paystack.js +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,3 +29,4 @@ All methods use promise meaning you can either use the `async...await` or `then.
|
|
|
29
29
|
### Available Docs
|
|
30
30
|
- [Charge](https://github.com/en1tan/paystack-node/blob/main/src/charge/README.md)
|
|
31
31
|
- [Transaction](https://github.com/en1tan/paystack-node/blob/main/src/transaction/README.md)
|
|
32
|
+
- [Plan](https://github.com/en1tan/paystack-node/blob/main/src/plan/README.md)
|
package/dist/paystack.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ICharge } from './charge/charge';
|
|
2
|
+
import { IPlan } from './plan/plan';
|
|
2
3
|
import { ITransaction } from './transaction/transaction';
|
|
3
4
|
/**
|
|
4
5
|
* Paystack SDK
|
|
@@ -9,5 +10,6 @@ export default class Paystack {
|
|
|
9
10
|
private http;
|
|
10
11
|
charge: ICharge;
|
|
11
12
|
transaction: ITransaction;
|
|
13
|
+
plan: IPlan;
|
|
12
14
|
constructor(key: string);
|
|
13
15
|
}
|
package/dist/paystack.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const axios_1 = require("axios");
|
|
4
4
|
const charge_1 = require("./charge/charge");
|
|
5
|
+
const plan_1 = require("./plan/plan");
|
|
5
6
|
const transaction_1 = require("./transaction/transaction");
|
|
6
7
|
/**
|
|
7
8
|
* Paystack SDK
|
|
@@ -12,6 +13,7 @@ class Paystack {
|
|
|
12
13
|
http;
|
|
13
14
|
charge;
|
|
14
15
|
transaction;
|
|
16
|
+
plan;
|
|
15
17
|
constructor(key) {
|
|
16
18
|
this.key = key;
|
|
17
19
|
this.http = new axios_1.Axios({
|
|
@@ -24,6 +26,7 @@ class Paystack {
|
|
|
24
26
|
});
|
|
25
27
|
this.charge = new charge_1.Charge(this.http);
|
|
26
28
|
this.transaction = new transaction_1.Transaction(this.http);
|
|
29
|
+
this.plan = new plan_1.Plan(this.http);
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
32
|
exports.default = Paystack;
|