@delopay/sdk 0.214.0 → 0.215.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 +130 -5
- package/dist/index.d.ts +130 -5
- package/dist/index.js +1 -1
- package/dist/internal.cjs +30 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-RG4EO47H.js.map +0 -1
|
@@ -5060,6 +5060,36 @@ var CheckoutRecovery = class {
|
|
|
5060
5060
|
`/checkout-recovery/payments/${encodeURIComponent(paymentId)}/resume`
|
|
5061
5061
|
);
|
|
5062
5062
|
}
|
|
5063
|
+
/**
|
|
5064
|
+
* Whether the checkout can be reactivated now, why not when it cannot, and
|
|
5065
|
+
* what it would continue: order, amount, the current page's expiry and the
|
|
5066
|
+
* validity a reactivation gives. Changes nothing.
|
|
5067
|
+
* `GET /checkout-recovery/payments/{payment_id}/reactivation`
|
|
5068
|
+
*/
|
|
5069
|
+
async previewReactivation(paymentId) {
|
|
5070
|
+
return this.request(
|
|
5071
|
+
"GET",
|
|
5072
|
+
`/checkout-recovery/payments/${encodeURIComponent(paymentId)}/reactivation`
|
|
5073
|
+
);
|
|
5074
|
+
}
|
|
5075
|
+
/**
|
|
5076
|
+
* Continue an expired, unpaid checkout on a new payment for the same order,
|
|
5077
|
+
* amount and currency. The payment it replaces is closed first, so the two
|
|
5078
|
+
* can never both be charged; nothing is charged and nothing is sent to the
|
|
5079
|
+
* buyer. A repeated request answers with the same checkout
|
|
5080
|
+
* (`already_active`). Refused (`IR_16`, `error.data.reason` a
|
|
5081
|
+
* `ReactivationBlockedReason`, or `invalid_validity`) while the checkout is
|
|
5082
|
+
* paid, being paid, awaiting capture or authentication, cancelled or still
|
|
5083
|
+
* open, or when no payment method could pay it.
|
|
5084
|
+
* `POST /checkout-recovery/payments/{payment_id}/reactivate`
|
|
5085
|
+
*/
|
|
5086
|
+
async reactivate(paymentId, params = {}) {
|
|
5087
|
+
return this.request(
|
|
5088
|
+
"POST",
|
|
5089
|
+
`/checkout-recovery/payments/${encodeURIComponent(paymentId)}/reactivate`,
|
|
5090
|
+
{ body: params }
|
|
5091
|
+
);
|
|
5092
|
+
}
|
|
5063
5093
|
/**
|
|
5064
5094
|
* A message by hand as it would be sent now: recipient, sender, text, link
|
|
5065
5095
|
* and destination, and why it would be refused. Nothing is sent.
|
|
@@ -11849,4 +11879,4 @@ export {
|
|
|
11849
11879
|
decodeNativePanes,
|
|
11850
11880
|
encodeNativePanes
|
|
11851
11881
|
};
|
|
11852
|
-
//# sourceMappingURL=chunk-
|
|
11882
|
+
//# sourceMappingURL=chunk-2FVZDCET.js.map
|