@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/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.