paystack-sdk 2.5.17 → 2.5.24

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
@@ -2,7 +2,10 @@
2
2
 
3
3
  #### Why Another [Paystack](https://paystack.com) Package?
4
4
 
5
- Other packages are either outdated or don't support types.
5
+ Existing Paystack libraries are either outdated, lack modern features, or fail to support TypeScript. This package addresses these gaps by providing:
6
+ - Full TypeScript support for type safety and better developer experience.
7
+ - A modern, actively maintained library aligned with Paystack’s latest API updates.
8
+ - Clean, intuitive APIs designed for ease of use.
6
9
 
7
10
  ### Installation
8
11
 
@@ -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;
@@ -88,7 +88,7 @@ export interface ListTransferQueryParams {
88
88
  */
89
89
  to?: Date;
90
90
  }
91
- interface Transfer {
91
+ export interface Transfer {
92
92
  integration: number;
93
93
  domain: string;
94
94
  amount: number;
@@ -126,4 +126,3 @@ export interface CheckBalanceResponse extends Response {
126
126
  export interface LedgerBalanceResponse extends Response {
127
127
  data: LedgerBalance[];
128
128
  }
129
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paystack-sdk",
3
- "version": "2.5.17",
3
+ "version": "2.5.24",
4
4
  "description": "Paystack SDK written in Typescript",
5
5
  "main": "dist/index.js",
6
6
  "author": "Tech Priest",