@delopay/sdk 0.272.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-42VYNDXJ.js → chunk-R6E57AD4.js} +20 -6
- package/dist/chunk-R6E57AD4.js.map +1 -0
- package/dist/index.cjs +19 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +80 -15
- package/dist/index.d.ts +80 -15
- package/dist/index.js +1 -1
- package/dist/internal.cjs +33 -5
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +48 -1
- package/dist/internal.d.ts +48 -1
- package/dist/internal.js +15 -1
- package/dist/internal.js.map +1 -1
- package/package.json +18 -17
- package/dist/chunk-42VYNDXJ.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -7846,8 +7846,9 @@ var BuyerAccount = class {
|
|
|
7846
7846
|
});
|
|
7847
7847
|
}
|
|
7848
7848
|
/**
|
|
7849
|
-
* A message from a confirmed record to one of its shops.
|
|
7850
|
-
*
|
|
7849
|
+
* A message from a confirmed record to one of its shops. A message to a
|
|
7850
|
+
* closed conversation reopens it. Sending again with the same
|
|
7851
|
+
* `client_message_id` returns the message the first send stored.
|
|
7851
7852
|
*/
|
|
7852
7853
|
async sendRecordMessage(record, message, options) {
|
|
7853
7854
|
return this.request("POST", `/buyer-account/records/${encodeURIComponent(record)}/messages`, {
|
|
@@ -8074,8 +8075,9 @@ var BuyerPortal = class {
|
|
|
8074
8075
|
});
|
|
8075
8076
|
}
|
|
8076
8077
|
/**
|
|
8077
|
-
* A message to the shop.
|
|
8078
|
-
*
|
|
8078
|
+
* A message to the shop. A message to a closed conversation reopens it.
|
|
8079
|
+
* Sending again with the same `client_message_id` returns the message the
|
|
8080
|
+
* first send stored.
|
|
8079
8081
|
*/
|
|
8080
8082
|
async sendMessage(message, options) {
|
|
8081
8083
|
return this.request("POST", "/buyer-portal/messages", { body: message, ...options });
|
|
@@ -12793,6 +12795,12 @@ var CheckoutSession = class {
|
|
|
12793
12795
|
* channel the backend's locale resolution reads; a `?locale=` query is
|
|
12794
12796
|
* silently ignored by this route.
|
|
12795
12797
|
*
|
|
12798
|
+
* `cardOnly` is a direct link to the card form (`payment_method=card`):
|
|
12799
|
+
* when the Stripe card form being prepared is the one the link names, its
|
|
12800
|
+
* PaymentIntent is created for `card` alone. `cardProvider` and
|
|
12801
|
+
* `cardAccount` name that form's connector and account; absent or blank
|
|
12802
|
+
* matches any.
|
|
12803
|
+
*
|
|
12796
12804
|
* `GET /payment-link/data/{merchantId}/{paymentId}`
|
|
12797
12805
|
*/
|
|
12798
12806
|
async fetchCheckoutData(params, options) {
|
|
@@ -12801,7 +12809,13 @@ var CheckoutSession = class {
|
|
|
12801
12809
|
"GET",
|
|
12802
12810
|
`/payment-link/data/${encodeURIComponent(this.merchantId)}/${encodeURIComponent(this.paymentId)}`,
|
|
12803
12811
|
{
|
|
12804
|
-
query: {
|
|
12812
|
+
query: {
|
|
12813
|
+
theme: params?.theme,
|
|
12814
|
+
country: country || void 0,
|
|
12815
|
+
card_only: params?.cardOnly || void 0,
|
|
12816
|
+
card_provider: params?.cardOnly ? params.cardProvider?.trim() || void 0 : void 0,
|
|
12817
|
+
card_account: params?.cardOnly ? params.cardAccount?.trim() || void 0 : void 0
|
|
12818
|
+
},
|
|
12805
12819
|
...options,
|
|
12806
12820
|
headers: {
|
|
12807
12821
|
...params?.locale ? {
|