@delopay/sdk 0.270.0 → 0.272.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-HEDL3UHE.js → chunk-42VYNDXJ.js} +38 -17
- package/dist/chunk-42VYNDXJ.js.map +1 -0
- package/dist/index.cjs +37 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +94 -69
- package/dist/index.d.ts +94 -69
- package/dist/index.js +1 -1
- package/dist/internal.cjs +37 -16
- 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 +17 -18
- package/dist/chunk-HEDL3UHE.js.map +0 -1
|
@@ -645,8 +645,10 @@ var Connectors = class {
|
|
|
645
645
|
);
|
|
646
646
|
}
|
|
647
647
|
/**
|
|
648
|
-
* Stop a connector serving one shop
|
|
649
|
-
*
|
|
648
|
+
* Stop a connector serving one shop (todos#407). Any shop may leave, the
|
|
649
|
+
* one the connector was created in included, while another one stays: the
|
|
650
|
+
* last shop is refused, and the connector is deleted instead. The account,
|
|
651
|
+
* its limits and every other shop on it are unaffected.
|
|
650
652
|
* `DELETE /account/{accountId}/connectors/{connectorId}/shops/{profileId}`
|
|
651
653
|
*/
|
|
652
654
|
async removeShop(accountId, connectorId, profileId) {
|
|
@@ -12740,22 +12742,18 @@ var CheckoutSession = class {
|
|
|
12740
12742
|
});
|
|
12741
12743
|
}
|
|
12742
12744
|
/**
|
|
12743
|
-
* Report
|
|
12744
|
-
*
|
|
12745
|
-
*
|
|
12746
|
-
*
|
|
12747
|
-
*
|
|
12745
|
+
* Report PayPal's refusal of the card or the payer on the PayPal Express or
|
|
12746
|
+
* Pay with card pane (for example `INSTRUMENT_DECLINED`, `PAYER_CANNOT_PAY`,
|
|
12747
|
+
* or `AUTHENTICATION_FAILED` for a failed 3-D Secure). The attempt is
|
|
12748
|
+
* recorded declined and the payment stays payable with another card or
|
|
12749
|
+
* method. An issue that is not a refusal, or a payment that no longer awaits
|
|
12750
|
+
* PayPal, is left as it is (`declined: false`). Nothing here captures: the
|
|
12751
|
+
* payment settles from e-Payouts' notification.
|
|
12748
12752
|
*
|
|
12749
|
-
*
|
|
12750
|
-
* to e-Payouts the way e-Payouts' own PayPal page does. It does not mark the
|
|
12751
|
-
* payment paid: that happens only on e-Payouts' notification, so poll the
|
|
12752
|
-
* payment's status afterwards. A repeated report is answered, not recorded
|
|
12753
|
-
* twice.
|
|
12754
|
-
*
|
|
12755
|
-
* `POST /payment-link/{merchantId}/{paymentId}/epayouts/paypal-capture`
|
|
12753
|
+
* `POST /payment-link/{merchantId}/{paymentId}/epayouts/paypal-decline`
|
|
12756
12754
|
*/
|
|
12757
|
-
async
|
|
12758
|
-
return this.client.request("POST", `${this.linkBase}/epayouts/paypal-
|
|
12755
|
+
async epayoutsPaypalDecline(params, options) {
|
|
12756
|
+
return this.client.request("POST", `${this.linkBase}/epayouts/paypal-decline`, {
|
|
12759
12757
|
body: params,
|
|
12760
12758
|
...options,
|
|
12761
12759
|
headers: this.bearerHeaders(options?.headers)
|
|
@@ -13117,6 +13115,29 @@ var CheckoutSession = class {
|
|
|
13117
13115
|
}
|
|
13118
13116
|
);
|
|
13119
13117
|
}
|
|
13118
|
+
/**
|
|
13119
|
+
* Reopen a provider session the buyer switched away from, when they pick the
|
|
13120
|
+
* same method again, instead of opening a second session at the provider
|
|
13121
|
+
* (delopay-todos#401). Pass an `attempt_id` from the checkout's
|
|
13122
|
+
* `reopenable_attempts`; the attempt becomes the payment's active one again
|
|
13123
|
+
* and `redirect_url` sends the buyer back to it. Refused (`IR_16`) when the
|
|
13124
|
+
* payment no longer awaits a method, a payment is under way on the checkout,
|
|
13125
|
+
* or the session can no longer be reopened (settled, lapsed at the provider,
|
|
13126
|
+
* ended by the switch); open a new session as usual then.
|
|
13127
|
+
*
|
|
13128
|
+
* `POST /payments/{paymentId}/reopen-attempt` (publishable key + client secret)
|
|
13129
|
+
*/
|
|
13130
|
+
async reopenAttempt(attemptId, options) {
|
|
13131
|
+
return this.client.request(
|
|
13132
|
+
"POST",
|
|
13133
|
+
`/payments/${encodeURIComponent(this.paymentId)}/reopen-attempt`,
|
|
13134
|
+
{
|
|
13135
|
+
body: { client_secret: this.requireClientSecret(), attempt_id: attemptId },
|
|
13136
|
+
...options,
|
|
13137
|
+
headers: this.pkHeaders(options?.headers)
|
|
13138
|
+
}
|
|
13139
|
+
);
|
|
13140
|
+
}
|
|
13120
13141
|
/**
|
|
13121
13142
|
* Payment methods available for this payment.
|
|
13122
13143
|
*
|
|
@@ -13987,4 +14008,4 @@ export {
|
|
|
13987
14008
|
decodeNativePanes,
|
|
13988
14009
|
encodeNativePanes
|
|
13989
14010
|
};
|
|
13990
|
-
//# sourceMappingURL=chunk-
|
|
14011
|
+
//# sourceMappingURL=chunk-42VYNDXJ.js.map
|