@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/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