@delopay/sdk 0.68.0 → 0.69.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/{chunk-2DNFEA5T.js → chunk-XIRQPEI6.js} +25 -1
- package/dist/chunk-XIRQPEI6.js.map +1 -0
- package/dist/index.cjs +24 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +69 -1
- package/dist/index.d.ts +69 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +35 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +9 -3
- package/dist/internal.d.ts +9 -3
- package/dist/internal.js +12 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-2DNFEA5T.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1297,6 +1297,30 @@ var Payments = class {
|
|
|
1297
1297
|
async listAttempts(paymentId, options) {
|
|
1298
1298
|
return this.request("GET", `/payments/${encodeURIComponent(paymentId)}/attempts`, options);
|
|
1299
1299
|
}
|
|
1300
|
+
/**
|
|
1301
|
+
* The status timeline of a payment: every recorded creation / status
|
|
1302
|
+
* transition of the intent and its attempts, refunds and disputes, oldest
|
|
1303
|
+
* first. `complete: false` marks timelines partially reconstructed from
|
|
1304
|
+
* current records (payments created before the status log existed).
|
|
1305
|
+
*
|
|
1306
|
+
* @param paymentId - The payment intent ID.
|
|
1307
|
+
* @returns The ordered status-history events.
|
|
1308
|
+
*
|
|
1309
|
+
* @example
|
|
1310
|
+
* ```typescript
|
|
1311
|
+
* const { events, complete } = await delopay.payments.listStatusHistory('pay_abc123');
|
|
1312
|
+
* for (const event of events) {
|
|
1313
|
+
* console.log(event.timestamp, event.entity_type, event.status);
|
|
1314
|
+
* }
|
|
1315
|
+
* ```
|
|
1316
|
+
*/
|
|
1317
|
+
async listStatusHistory(paymentId, options) {
|
|
1318
|
+
return this.request(
|
|
1319
|
+
"GET",
|
|
1320
|
+
`/payments/${encodeURIComponent(paymentId)}/status-history`,
|
|
1321
|
+
options
|
|
1322
|
+
);
|
|
1323
|
+
}
|
|
1300
1324
|
/**
|
|
1301
1325
|
* Update an existing payment intent before it is confirmed.
|
|
1302
1326
|
*
|