@delopay/sdk 0.67.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 +101 -4
- package/dist/index.d.ts +101 -4
- 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
|
@@ -1222,6 +1222,30 @@ var Payments = class {
|
|
|
1222
1222
|
async listAttempts(paymentId, options) {
|
|
1223
1223
|
return this.request("GET", `/payments/${encodeURIComponent(paymentId)}/attempts`, options);
|
|
1224
1224
|
}
|
|
1225
|
+
/**
|
|
1226
|
+
* The status timeline of a payment: every recorded creation / status
|
|
1227
|
+
* transition of the intent and its attempts, refunds and disputes, oldest
|
|
1228
|
+
* first. `complete: false` marks timelines partially reconstructed from
|
|
1229
|
+
* current records (payments created before the status log existed).
|
|
1230
|
+
*
|
|
1231
|
+
* @param paymentId - The payment intent ID.
|
|
1232
|
+
* @returns The ordered status-history events.
|
|
1233
|
+
*
|
|
1234
|
+
* @example
|
|
1235
|
+
* ```typescript
|
|
1236
|
+
* const { events, complete } = await delopay.payments.listStatusHistory('pay_abc123');
|
|
1237
|
+
* for (const event of events) {
|
|
1238
|
+
* console.log(event.timestamp, event.entity_type, event.status);
|
|
1239
|
+
* }
|
|
1240
|
+
* ```
|
|
1241
|
+
*/
|
|
1242
|
+
async listStatusHistory(paymentId, options) {
|
|
1243
|
+
return this.request(
|
|
1244
|
+
"GET",
|
|
1245
|
+
`/payments/${encodeURIComponent(paymentId)}/status-history`,
|
|
1246
|
+
options
|
|
1247
|
+
);
|
|
1248
|
+
}
|
|
1225
1249
|
/**
|
|
1226
1250
|
* Update an existing payment intent before it is confirmed.
|
|
1227
1251
|
*
|
|
@@ -4336,4 +4360,4 @@ export {
|
|
|
4336
4360
|
applyBrandingVariables,
|
|
4337
4361
|
shadowFor
|
|
4338
4362
|
};
|
|
4339
|
-
//# sourceMappingURL=chunk-
|
|
4363
|
+
//# sourceMappingURL=chunk-XIRQPEI6.js.map
|