paystack-sdk 2.5.19 → 2.5.26

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.
@@ -9,6 +9,7 @@ export interface Settlement {
9
9
  settlement_date: Date;
10
10
  domain: string;
11
11
  total_amount: number;
12
+ total_fees: number;
12
13
  status: string;
13
14
  id: number;
14
15
  createdAt: Date;
@@ -21,7 +21,7 @@ class Settlement {
21
21
  }
22
22
  transactions(id, queryParams) {
23
23
  return __awaiter(this, void 0, void 0, function* () {
24
- return yield this.http.get(`/settlement/$[id]/transactions`, {
24
+ return yield this.http.get(`/settlement/${id}/transactions`, {
25
25
  params: Object.assign({}, queryParams),
26
26
  });
27
27
  });
@@ -86,9 +86,11 @@ export interface TransactionInitialized extends Response {
86
86
  };
87
87
  }
88
88
  export interface Transaction {
89
+ id: number;
89
90
  amount: number;
90
91
  currency: string;
91
- transaction_date: Date;
92
+ paid_at: Date;
93
+ created_at: Date;
92
94
  status: string;
93
95
  reference: string;
94
96
  domain: string;
@@ -120,7 +122,7 @@ export interface Transaction {
120
122
  authorization: Authorization;
121
123
  customer: Customer;
122
124
  pin: string;
123
- required_amount: number;
125
+ requested_amount: number;
124
126
  }
125
127
  export interface GetTransactionResponse extends Response {
126
128
  data: Transaction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paystack-sdk",
3
- "version": "2.5.19",
3
+ "version": "2.5.26",
4
4
  "description": "Paystack SDK written in Typescript",
5
5
  "main": "dist/index.js",
6
6
  "author": "Tech Priest",