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.
|
@@ -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/$
|
|
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
|
-
|
|
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
|
-
|
|
125
|
+
requested_amount: number;
|
|
124
126
|
}
|
|
125
127
|
export interface GetTransactionResponse extends Response {
|
|
126
128
|
data: Transaction;
|