@delopay/sdk 0.214.0 → 0.216.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-RG4EO47H.js → chunk-2FVZDCET.js} +31 -1
- package/dist/chunk-2FVZDCET.js.map +1 -0
- package/dist/index.cjs +30 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +152 -5
- package/dist/index.d.ts +152 -5
- package/dist/index.js +1 -1
- package/dist/internal.cjs +46 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +7 -3
- package/dist/internal.d.ts +7 -3
- package/dist/internal.js +17 -1
- package/dist/internal.js.map +1 -1
- package/package.json +18 -17
- package/dist/chunk-RG4EO47H.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -5306,6 +5306,36 @@ var CheckoutRecovery = class {
|
|
|
5306
5306
|
`/checkout-recovery/payments/${encodeURIComponent(paymentId)}/resume`
|
|
5307
5307
|
);
|
|
5308
5308
|
}
|
|
5309
|
+
/**
|
|
5310
|
+
* Whether the checkout can be reactivated now, why not when it cannot, and
|
|
5311
|
+
* what it would continue: order, amount, the current page's expiry and the
|
|
5312
|
+
* validity a reactivation gives. Changes nothing.
|
|
5313
|
+
* `GET /checkout-recovery/payments/{payment_id}/reactivation`
|
|
5314
|
+
*/
|
|
5315
|
+
async previewReactivation(paymentId) {
|
|
5316
|
+
return this.request(
|
|
5317
|
+
"GET",
|
|
5318
|
+
`/checkout-recovery/payments/${encodeURIComponent(paymentId)}/reactivation`
|
|
5319
|
+
);
|
|
5320
|
+
}
|
|
5321
|
+
/**
|
|
5322
|
+
* Continue an expired, unpaid checkout on a new payment for the same order,
|
|
5323
|
+
* amount and currency. The payment it replaces is closed first, so the two
|
|
5324
|
+
* can never both be charged; nothing is charged and nothing is sent to the
|
|
5325
|
+
* buyer. A repeated request answers with the same checkout
|
|
5326
|
+
* (`already_active`). Refused (`IR_16`, `error.data.reason` a
|
|
5327
|
+
* `ReactivationBlockedReason`, or `invalid_validity`) while the checkout is
|
|
5328
|
+
* paid, being paid, awaiting capture or authentication, cancelled or still
|
|
5329
|
+
* open, or when no payment method could pay it.
|
|
5330
|
+
* `POST /checkout-recovery/payments/{payment_id}/reactivate`
|
|
5331
|
+
*/
|
|
5332
|
+
async reactivate(paymentId, params = {}) {
|
|
5333
|
+
return this.request(
|
|
5334
|
+
"POST",
|
|
5335
|
+
`/checkout-recovery/payments/${encodeURIComponent(paymentId)}/reactivate`,
|
|
5336
|
+
{ body: params }
|
|
5337
|
+
);
|
|
5338
|
+
}
|
|
5309
5339
|
/**
|
|
5310
5340
|
* A message by hand as it would be sent now: recipient, sender, text, link
|
|
5311
5341
|
* and destination, and why it would be refused. Nothing is sent.
|