@delopay/sdk 0.271.0 → 0.274.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-PTELZZG3.js → chunk-R6E57AD4.js} +53 -20
- package/dist/chunk-R6E57AD4.js.map +1 -0
- package/dist/index.cjs +52 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +153 -75
- package/dist/index.d.ts +153 -75
- package/dist/index.js +1 -1
- package/dist/internal.cjs +66 -19
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +49 -2
- package/dist/internal.d.ts +49 -2
- package/dist/internal.js +15 -1
- package/dist/internal.js.map +1 -1
- package/package.json +18 -17
- package/dist/chunk-PTELZZG3.js.map +0 -1
package/dist/internal.cjs
CHANGED
|
@@ -7862,8 +7862,9 @@ var BuyerAccount = class {
|
|
|
7862
7862
|
});
|
|
7863
7863
|
}
|
|
7864
7864
|
/**
|
|
7865
|
-
* A message from a confirmed record to one of its shops.
|
|
7866
|
-
*
|
|
7865
|
+
* A message from a confirmed record to one of its shops. A message to a
|
|
7866
|
+
* closed conversation reopens it. Sending again with the same
|
|
7867
|
+
* `client_message_id` returns the message the first send stored.
|
|
7867
7868
|
*/
|
|
7868
7869
|
async sendRecordMessage(record, message, options) {
|
|
7869
7870
|
return this.request("POST", `/buyer-account/records/${encodeURIComponent(record)}/messages`, {
|
|
@@ -8090,8 +8091,9 @@ var BuyerPortal = class {
|
|
|
8090
8091
|
});
|
|
8091
8092
|
}
|
|
8092
8093
|
/**
|
|
8093
|
-
* A message to the shop.
|
|
8094
|
-
*
|
|
8094
|
+
* A message to the shop. A message to a closed conversation reopens it.
|
|
8095
|
+
* Sending again with the same `client_message_id` returns the message the
|
|
8096
|
+
* first send stored.
|
|
8095
8097
|
*/
|
|
8096
8098
|
async sendMessage(message, options) {
|
|
8097
8099
|
return this.request("POST", "/buyer-portal/messages", { body: message, ...options });
|
|
@@ -12809,6 +12811,12 @@ var CheckoutSession = class {
|
|
|
12809
12811
|
* channel the backend's locale resolution reads; a `?locale=` query is
|
|
12810
12812
|
* silently ignored by this route.
|
|
12811
12813
|
*
|
|
12814
|
+
* `cardOnly` is a direct link to the card form (`payment_method=card`):
|
|
12815
|
+
* when the Stripe card form being prepared is the one the link names, its
|
|
12816
|
+
* PaymentIntent is created for `card` alone. `cardProvider` and
|
|
12817
|
+
* `cardAccount` name that form's connector and account; absent or blank
|
|
12818
|
+
* matches any.
|
|
12819
|
+
*
|
|
12812
12820
|
* `GET /payment-link/data/{merchantId}/{paymentId}`
|
|
12813
12821
|
*/
|
|
12814
12822
|
async fetchCheckoutData(params, options) {
|
|
@@ -12817,7 +12825,13 @@ var CheckoutSession = class {
|
|
|
12817
12825
|
"GET",
|
|
12818
12826
|
`/payment-link/data/${encodeURIComponent(this.merchantId)}/${encodeURIComponent(this.paymentId)}`,
|
|
12819
12827
|
{
|
|
12820
|
-
query: {
|
|
12828
|
+
query: {
|
|
12829
|
+
theme: params?.theme,
|
|
12830
|
+
country: country || void 0,
|
|
12831
|
+
card_only: params?.cardOnly || void 0,
|
|
12832
|
+
card_provider: params?.cardOnly ? params.cardProvider?.trim() || void 0 : void 0,
|
|
12833
|
+
card_account: params?.cardOnly ? params.cardAccount?.trim() || void 0 : void 0
|
|
12834
|
+
},
|
|
12821
12835
|
...options,
|
|
12822
12836
|
headers: {
|
|
12823
12837
|
...params?.locale ? {
|
|
@@ -13036,22 +13050,18 @@ var CheckoutSession = class {
|
|
|
13036
13050
|
});
|
|
13037
13051
|
}
|
|
13038
13052
|
/**
|
|
13039
|
-
* Report
|
|
13040
|
-
*
|
|
13041
|
-
*
|
|
13042
|
-
*
|
|
13043
|
-
*
|
|
13053
|
+
* Report PayPal's refusal of the card or the payer on the PayPal Express or
|
|
13054
|
+
* Pay with card pane (for example `INSTRUMENT_DECLINED`, `PAYER_CANNOT_PAY`,
|
|
13055
|
+
* or `AUTHENTICATION_FAILED` for a failed 3-D Secure). The attempt is
|
|
13056
|
+
* recorded declined and the payment stays payable with another card or
|
|
13057
|
+
* method. An issue that is not a refusal, or a payment that no longer awaits
|
|
13058
|
+
* PayPal, is left as it is (`declined: false`). Nothing here captures: the
|
|
13059
|
+
* payment settles from e-Payouts' notification.
|
|
13044
13060
|
*
|
|
13045
|
-
*
|
|
13046
|
-
* to e-Payouts the way e-Payouts' own PayPal page does. It does not mark the
|
|
13047
|
-
* payment paid: that happens only on e-Payouts' notification, so poll the
|
|
13048
|
-
* payment's status afterwards. A repeated report is answered, not recorded
|
|
13049
|
-
* twice.
|
|
13050
|
-
*
|
|
13051
|
-
* `POST /payment-link/{merchantId}/{paymentId}/epayouts/paypal-capture`
|
|
13061
|
+
* `POST /payment-link/{merchantId}/{paymentId}/epayouts/paypal-decline`
|
|
13052
13062
|
*/
|
|
13053
|
-
async
|
|
13054
|
-
return this.client.request("POST", `${this.linkBase}/epayouts/paypal-
|
|
13063
|
+
async epayoutsPaypalDecline(params, options) {
|
|
13064
|
+
return this.client.request("POST", `${this.linkBase}/epayouts/paypal-decline`, {
|
|
13055
13065
|
body: params,
|
|
13056
13066
|
...options,
|
|
13057
13067
|
headers: this.bearerHeaders(options?.headers)
|
|
@@ -13413,6 +13423,29 @@ var CheckoutSession = class {
|
|
|
13413
13423
|
}
|
|
13414
13424
|
);
|
|
13415
13425
|
}
|
|
13426
|
+
/**
|
|
13427
|
+
* Reopen a provider session the buyer switched away from, when they pick the
|
|
13428
|
+
* same method again, instead of opening a second session at the provider
|
|
13429
|
+
* (delopay-todos#401). Pass an `attempt_id` from the checkout's
|
|
13430
|
+
* `reopenable_attempts`; the attempt becomes the payment's active one again
|
|
13431
|
+
* and `redirect_url` sends the buyer back to it. Refused (`IR_16`) when the
|
|
13432
|
+
* payment no longer awaits a method, a payment is under way on the checkout,
|
|
13433
|
+
* or the session can no longer be reopened (settled, lapsed at the provider,
|
|
13434
|
+
* ended by the switch); open a new session as usual then.
|
|
13435
|
+
*
|
|
13436
|
+
* `POST /payments/{paymentId}/reopen-attempt` (publishable key + client secret)
|
|
13437
|
+
*/
|
|
13438
|
+
async reopenAttempt(attemptId, options) {
|
|
13439
|
+
return this.client.request(
|
|
13440
|
+
"POST",
|
|
13441
|
+
`/payments/${encodeURIComponent(this.paymentId)}/reopen-attempt`,
|
|
13442
|
+
{
|
|
13443
|
+
body: { client_secret: this.requireClientSecret(), attempt_id: attemptId },
|
|
13444
|
+
...options,
|
|
13445
|
+
headers: this.pkHeaders(options?.headers)
|
|
13446
|
+
}
|
|
13447
|
+
);
|
|
13448
|
+
}
|
|
13416
13449
|
/**
|
|
13417
13450
|
* Payment methods available for this payment.
|
|
13418
13451
|
*
|
|
@@ -14908,6 +14941,20 @@ var AdminPortal = class {
|
|
|
14908
14941
|
{ body: params }
|
|
14909
14942
|
);
|
|
14910
14943
|
}
|
|
14944
|
+
/**
|
|
14945
|
+
* Correct the funding type, issuing bank and issuing country recorded on
|
|
14946
|
+
* past card payments from the BIN table, across every merchant, oldest
|
|
14947
|
+
* first, one bounded page per call. Resume with the returned `next_after`
|
|
14948
|
+
* until it is `null`. A dry run, the default, reports without writing; a
|
|
14949
|
+
* payment that changed while the page ran is left alone and counted as a
|
|
14950
|
+
* conflict. Payments of merchants whose attempts are stored in Redis are
|
|
14951
|
+
* not corrected.
|
|
14952
|
+
*
|
|
14953
|
+
* `POST /admin-portal/card-funding/backfill`
|
|
14954
|
+
*/
|
|
14955
|
+
async backfillCardFunding(params = {}) {
|
|
14956
|
+
return this.request("POST", "/admin-portal/card-funding/backfill", { body: params });
|
|
14957
|
+
}
|
|
14911
14958
|
};
|
|
14912
14959
|
function transactionListQuery(params) {
|
|
14913
14960
|
if (!params) return void 0;
|