@delopay/sdk 0.264.0 → 0.265.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-2MA2A66Y.js → chunk-SW4N2WY4.js} +22 -1
- package/dist/chunk-SW4N2WY4.js.map +1 -0
- package/dist/index.cjs +21 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +284 -11
- package/dist/index.d.ts +284 -11
- package/dist/index.js +1 -1
- package/dist/internal.cjs +21 -0
- 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 +1 -1
- package/dist/chunk-2MA2A66Y.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -7203,6 +7203,27 @@ var CheckoutMethods = class {
|
|
|
7203
7203
|
body
|
|
7204
7204
|
});
|
|
7205
7205
|
}
|
|
7206
|
+
/**
|
|
7207
|
+
* For a buyer in `country` paying `amount` `currency`: which placeable
|
|
7208
|
+
* items they are offered and every reason they are not, asked the way the
|
|
7209
|
+
* hosted checkout asks; and how each smart block of the layout evaluates
|
|
7210
|
+
* for them (`smart_blocks`). `test_mode` asks the Test environment.
|
|
7211
|
+
* `GET /checkout-methods/{profile_id}/availability`
|
|
7212
|
+
*/
|
|
7213
|
+
async availability(merchantId, profileId, params) {
|
|
7214
|
+
const { test_mode, ...order } = params;
|
|
7215
|
+
const query = { merchant_id: merchantId, ...order };
|
|
7216
|
+
if (test_mode) {
|
|
7217
|
+
return this.request(
|
|
7218
|
+
"GET",
|
|
7219
|
+
`/checkout-methods/${encodeURIComponent(profileId)}/test/availability`,
|
|
7220
|
+
{ query }
|
|
7221
|
+
);
|
|
7222
|
+
}
|
|
7223
|
+
return this.request("GET", `/checkout-methods/${encodeURIComponent(profileId)}/availability`, {
|
|
7224
|
+
query
|
|
7225
|
+
});
|
|
7226
|
+
}
|
|
7206
7227
|
/**
|
|
7207
7228
|
* What DeloPay confirms beneath each item the shop can place: the card
|
|
7208
7229
|
* networks the card form's accounts accept, and the methods or coins a
|