@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
|
@@ -7568,8 +7568,9 @@ var BuyerAccount = class {
|
|
|
7568
7568
|
});
|
|
7569
7569
|
}
|
|
7570
7570
|
/**
|
|
7571
|
-
* A message from a confirmed record to one of its shops.
|
|
7572
|
-
*
|
|
7571
|
+
* A message from a confirmed record to one of its shops. A message to a
|
|
7572
|
+
* closed conversation reopens it. Sending again with the same
|
|
7573
|
+
* `client_message_id` returns the message the first send stored.
|
|
7573
7574
|
*/
|
|
7574
7575
|
async sendRecordMessage(record, message, options) {
|
|
7575
7576
|
return this.request("POST", `/buyer-account/records/${encodeURIComponent(record)}/messages`, {
|
|
@@ -7796,8 +7797,9 @@ var BuyerPortal = class {
|
|
|
7796
7797
|
});
|
|
7797
7798
|
}
|
|
7798
7799
|
/**
|
|
7799
|
-
* A message to the shop.
|
|
7800
|
-
*
|
|
7800
|
+
* A message to the shop. A message to a closed conversation reopens it.
|
|
7801
|
+
* Sending again with the same `client_message_id` returns the message the
|
|
7802
|
+
* first send stored.
|
|
7801
7803
|
*/
|
|
7802
7804
|
async sendMessage(message, options) {
|
|
7803
7805
|
return this.request("POST", "/buyer-portal/messages", { body: message, ...options });
|
|
@@ -12515,6 +12517,12 @@ var CheckoutSession = class {
|
|
|
12515
12517
|
* channel the backend's locale resolution reads; a `?locale=` query is
|
|
12516
12518
|
* silently ignored by this route.
|
|
12517
12519
|
*
|
|
12520
|
+
* `cardOnly` is a direct link to the card form (`payment_method=card`):
|
|
12521
|
+
* when the Stripe card form being prepared is the one the link names, its
|
|
12522
|
+
* PaymentIntent is created for `card` alone. `cardProvider` and
|
|
12523
|
+
* `cardAccount` name that form's connector and account; absent or blank
|
|
12524
|
+
* matches any.
|
|
12525
|
+
*
|
|
12518
12526
|
* `GET /payment-link/data/{merchantId}/{paymentId}`
|
|
12519
12527
|
*/
|
|
12520
12528
|
async fetchCheckoutData(params, options) {
|
|
@@ -12523,7 +12531,13 @@ var CheckoutSession = class {
|
|
|
12523
12531
|
"GET",
|
|
12524
12532
|
`/payment-link/data/${encodeURIComponent(this.merchantId)}/${encodeURIComponent(this.paymentId)}`,
|
|
12525
12533
|
{
|
|
12526
|
-
query: {
|
|
12534
|
+
query: {
|
|
12535
|
+
theme: params?.theme,
|
|
12536
|
+
country: country || void 0,
|
|
12537
|
+
card_only: params?.cardOnly || void 0,
|
|
12538
|
+
card_provider: params?.cardOnly ? params.cardProvider?.trim() || void 0 : void 0,
|
|
12539
|
+
card_account: params?.cardOnly ? params.cardAccount?.trim() || void 0 : void 0
|
|
12540
|
+
},
|
|
12527
12541
|
...options,
|
|
12528
12542
|
headers: {
|
|
12529
12543
|
...params?.locale ? {
|
|
@@ -14008,4 +14022,4 @@ export {
|
|
|
14008
14022
|
decodeNativePanes,
|
|
14009
14023
|
encodeNativePanes
|
|
14010
14024
|
};
|
|
14011
|
-
//# sourceMappingURL=chunk-
|
|
14025
|
+
//# sourceMappingURL=chunk-R6E57AD4.js.map
|