@delopay/sdk 0.119.0 → 0.120.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/internal.cjs CHANGED
@@ -8132,6 +8132,28 @@ var PlatformBilling = class {
8132
8132
  body: params
8133
8133
  });
8134
8134
  }
8135
+ /**
8136
+ * Set the merchant's hard floor — the balance at or below which the
8137
+ * merchant stops being active. A negative value grants a credit line; zero
8138
+ * means no negative balance at all. This moves the suspension line, it does
8139
+ * not remove it. The value and the caller are written to the audit log
8140
+ * before the floor changes, so the change is always attributable.
8141
+ *
8142
+ * Refused (412) for a positive amount, for a floor beyond the maximum
8143
+ * credit line of 10,000,000 minor units, or for an empty `reason`.
8144
+ *
8145
+ * Requires a router that serves the hard-floor admin route; older ones
8146
+ * answer `404`.
8147
+ *
8148
+ * @param merchantId - The merchant account ID.
8149
+ * @param params - The new floor (zero or negative) and the audit reason.
8150
+ * @returns The updated billing profile.
8151
+ */
8152
+ async setHardFloor(merchantId, params) {
8153
+ return this.request("PATCH", `/billing/${encodeURIComponent(merchantId)}/admin/hard-floor`, {
8154
+ body: params
8155
+ });
8156
+ }
8135
8157
  /**
8136
8158
  * Mark a merchant free (not billed), or put it back on the prepaid model.
8137
8159
  * While free, no platform fee is deducted, the payment gate never blocks on