paystack-sdk 1.0.17 → 1.0.18

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 CHANGED
@@ -31,7 +31,7 @@ const paystack = new Paystack("secret_key");
31
31
 
32
32
  All methods use promise meaning you can either use the `async...await` or `then...catch` or `try...catch`
33
33
 
34
- ### Available Endpoints
34
+ ### Available Functions
35
35
 
36
36
  - [Charge](https://github.com/en1tan/paystack-node/blob/main/src/charge/README.md)
37
37
  - [Transaction](https://github.com/en1tan/paystack-node/blob/main/src/transaction/README.md)
@@ -1,4 +1,5 @@
1
1
  import { Charge } from './charge';
2
+ import { Customer } from './customer/customer';
2
3
  import { Plan } from './plan';
3
4
  import { Transaction } from './transaction';
4
5
  /**
@@ -11,5 +12,6 @@ export declare class Paystack {
11
12
  charge: Charge;
12
13
  transaction: Transaction;
13
14
  plan: Plan;
15
+ customer: Customer;
14
16
  constructor(key: string);
15
17
  }
package/dist/paystack.js CHANGED
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Paystack = void 0;
4
4
  const axios_1 = require("axios");
5
5
  const charge_1 = require("./charge");
6
+ const customer_1 = require("./customer/customer");
6
7
  const plan_1 = require("./plan");
7
8
  const transaction_1 = require("./transaction");
8
9
  /**
@@ -21,6 +22,7 @@ class Paystack {
21
22
  this.charge = new charge_1.Charge(this.http);
22
23
  this.transaction = new transaction_1.Transaction(this.http);
23
24
  this.plan = new plan_1.Plan(this.http);
25
+ this.customer = new customer_1.Customer(this.http);
24
26
  }
25
27
  }
26
28
  exports.Paystack = Paystack;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paystack-sdk",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "Paystack SDK written in Typescript",
5
5
  "main": "dist/index.js",
6
6
  "author": "Koderant",