@delopay/sdk 0.39.0 → 0.41.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
@@ -347,6 +347,22 @@ var Billing = class {
347
347
  query: params
348
348
  });
349
349
  }
350
+ /**
351
+ * List payment attempts that were blocked by the billing suspension gate
352
+ * (account suspended, setup incomplete, or shop allocation suspended).
353
+ *
354
+ * These attempts never created a payment, so they do not appear in the
355
+ * payments list — this is the only way to retrieve them.
356
+ *
357
+ * @param merchantId - The merchant account ID.
358
+ * @param params - Optional filters (profile, reason, date range) and pagination.
359
+ * @returns The blocked-attempt entries with a total count.
360
+ */
361
+ async listBlockedAttempts(merchantId, params) {
362
+ return this.request("GET", `/billing/${encodeURIComponent(merchantId)}/blocked-attempts`, {
363
+ query: params
364
+ });
365
+ }
350
366
  /**
351
367
  * Update auto-recharge configuration (threshold, top-up amount, enabled flag).
352
368
  *
@@ -755,24 +771,29 @@ var FeeRulesManager = class {
755
771
  });
756
772
  }
757
773
  /**
758
- * Retrieve the merchant's active fee-rule program, or `null` if none.
774
+ * Retrieve the active fee-rule program for a scope, or `null` if none.
759
775
  *
760
776
  * @param merchantId - The merchant account ID.
777
+ * @param profileId - Optional shop (`profile_id`) scope. Omit for the
778
+ * merchant-wide program; pass a shop id to get that shop's program.
761
779
  */
762
- async retrieve(merchantId) {
780
+ async retrieve(merchantId, profileId) {
763
781
  return this.request("GET", "/merchant-fees/rules", {
764
- query: { merchant_id: merchantId }
782
+ query: { merchant_id: merchantId, profile_id: profileId }
765
783
  });
766
784
  }
767
785
  /**
768
- * Deactivate the merchant's active fee-rule program (falls back to the flat
769
- * fee schedules / volume tier). Idempotent.
786
+ * Deactivate a fee-rule program (falls back to the flat fee schedules /
787
+ * volume tier). Idempotent.
770
788
  *
771
789
  * @param merchantId - The merchant account ID.
790
+ * @param profileId - Optional shop (`profile_id`) scope. Omit to target the
791
+ * merchant-wide program; pass a shop id to delete only that shop's program
792
+ * (other shops' programs are left intact).
772
793
  */
773
- async delete(merchantId) {
794
+ async delete(merchantId, profileId) {
774
795
  await this.request("DELETE", "/merchant-fees/rules", {
775
- query: { merchant_id: merchantId }
796
+ query: { merchant_id: merchantId, profile_id: profileId }
776
797
  });
777
798
  }
778
799
  };