@delopay/sdk 0.45.0 → 0.47.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-25GERHCM.js → chunk-NNSPBDYP.js} +16 -1
- package/dist/chunk-NNSPBDYP.js.map +1 -0
- package/dist/index.cjs +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +37 -1
- package/dist/index.d.ts +37 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +15 -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-25GERHCM.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2729,6 +2729,21 @@ var AvailabilityOverrides = class {
|
|
|
2729
2729
|
async delete(id) {
|
|
2730
2730
|
return this.request("DELETE", `/availability-overrides/${encodeURIComponent(id)}`);
|
|
2731
2731
|
}
|
|
2732
|
+
/**
|
|
2733
|
+
* Preview the methods a customer in `country` would be shown for a shop —
|
|
2734
|
+
* the connector ceiling narrowed by the smart country defaults and the
|
|
2735
|
+
* merchant overrides, without an active payment.
|
|
2736
|
+
* `GET /availability-overrides/preview`
|
|
2737
|
+
*/
|
|
2738
|
+
async preview(params) {
|
|
2739
|
+
return this.request("GET", "/availability-overrides/preview", {
|
|
2740
|
+
query: {
|
|
2741
|
+
merchant_id: params.merchant_id,
|
|
2742
|
+
profile_id: params.profile_id,
|
|
2743
|
+
...params.country ? { country: params.country } : {}
|
|
2744
|
+
}
|
|
2745
|
+
});
|
|
2746
|
+
}
|
|
2732
2747
|
};
|
|
2733
2748
|
|
|
2734
2749
|
// src/resources/subscriptions.ts
|