@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.
@@ -645,8 +645,10 @@ var Connectors = class {
645
645
  );
646
646
  }
647
647
  /**
648
- * Stop a connector serving one shop it is shared with. The home shop is
649
- * refused: it holds the connector's name, limits and webhook.
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 a PayPal order's progress from `onApprove` on an experimental PayPal
12744
- * SDK pane: the approval, before asking PayPal to capture — and capture only
12745
- * once the router has it — then the capture PayPal answered, or a decline.
12746
- * When the approval's answer is lost, do not capture: report `NOT_CAPTURED`
12747
- * instead, which releases an approval the router may have recorded.
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
- * The router records each on the payment and relays a capture that took money
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 epayoutsPaypalCapture(params, options) {
12758
- return this.client.request("POST", `${this.linkBase}/epayouts/paypal-capture`, {
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-HEDL3UHE.js.map
14011
+ //# sourceMappingURL=chunk-42VYNDXJ.js.map