@delopay/sdk 0.50.0 → 0.51.0
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/dist/internal.cjs +29 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +20 -3
- package/dist/internal.d.ts +20 -3
- package/dist/internal.js +29 -0
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
package/dist/internal.cjs
CHANGED
|
@@ -4148,6 +4148,35 @@ var AdminPortal = class {
|
|
|
4148
4148
|
query: params
|
|
4149
4149
|
});
|
|
4150
4150
|
}
|
|
4151
|
+
/**
|
|
4152
|
+
* Full detail for a single transaction of ANY merchant — the same
|
|
4153
|
+
* `PaymentResponse` the merchant `payments.retrieve` returns. Admin-scoped:
|
|
4154
|
+
* the JWT (or admin API key) does not need to belong to the payment's
|
|
4155
|
+
* merchant; the backend resolves the owning merchant and reads it read-only
|
|
4156
|
+
* (no connector sync).
|
|
4157
|
+
*/
|
|
4158
|
+
async getTransaction(paymentId) {
|
|
4159
|
+
return this.request("GET", `/admin-portal/transactions/${encodeURIComponent(paymentId)}`);
|
|
4160
|
+
}
|
|
4161
|
+
/**
|
|
4162
|
+
* Per-attempt history (retries across connectors, decline reasons) for a
|
|
4163
|
+
* single transaction of ANY merchant.
|
|
4164
|
+
*/
|
|
4165
|
+
async getTransactionAttempts(paymentId) {
|
|
4166
|
+
return this.request(
|
|
4167
|
+
"GET",
|
|
4168
|
+
`/admin-portal/transactions/${encodeURIComponent(paymentId)}/attempts`
|
|
4169
|
+
);
|
|
4170
|
+
}
|
|
4171
|
+
/**
|
|
4172
|
+
* Refunds for a single transaction of ANY merchant.
|
|
4173
|
+
*/
|
|
4174
|
+
async getTransactionRefunds(paymentId) {
|
|
4175
|
+
return this.request(
|
|
4176
|
+
"GET",
|
|
4177
|
+
`/admin-portal/transactions/${encodeURIComponent(paymentId)}/refunds`
|
|
4178
|
+
);
|
|
4179
|
+
}
|
|
4151
4180
|
async analytics(params) {
|
|
4152
4181
|
return this.request("GET", "/admin-portal/analytics", {
|
|
4153
4182
|
query: params
|