@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/{chunk-IQKFNKHU.js → chunk-DMNCVY25.js} +29 -8
- package/dist/chunk-DMNCVY25.js.map +1 -0
- package/dist/index.cjs +28 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +62 -11
- package/dist/index.d.ts +62 -11
- package/dist/index.js +1 -1
- package/dist/internal.cjs +40 -13
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +16 -8
- package/dist/internal.d.ts +16 -8
- package/dist/internal.js +13 -7
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-IQKFNKHU.js.map +0 -1
|
@@ -278,6 +278,22 @@ var Billing = class {
|
|
|
278
278
|
query: params
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
|
+
/**
|
|
282
|
+
* List payment attempts that were blocked by the billing suspension gate
|
|
283
|
+
* (account suspended, setup incomplete, or shop allocation suspended).
|
|
284
|
+
*
|
|
285
|
+
* These attempts never created a payment, so they do not appear in the
|
|
286
|
+
* payments list — this is the only way to retrieve them.
|
|
287
|
+
*
|
|
288
|
+
* @param merchantId - The merchant account ID.
|
|
289
|
+
* @param params - Optional filters (profile, reason, date range) and pagination.
|
|
290
|
+
* @returns The blocked-attempt entries with a total count.
|
|
291
|
+
*/
|
|
292
|
+
async listBlockedAttempts(merchantId, params) {
|
|
293
|
+
return this.request("GET", `/billing/${encodeURIComponent(merchantId)}/blocked-attempts`, {
|
|
294
|
+
query: params
|
|
295
|
+
});
|
|
296
|
+
}
|
|
281
297
|
/**
|
|
282
298
|
* Update auto-recharge configuration (threshold, top-up amount, enabled flag).
|
|
283
299
|
*
|
|
@@ -686,24 +702,29 @@ var FeeRulesManager = class {
|
|
|
686
702
|
});
|
|
687
703
|
}
|
|
688
704
|
/**
|
|
689
|
-
* Retrieve the
|
|
705
|
+
* Retrieve the active fee-rule program for a scope, or `null` if none.
|
|
690
706
|
*
|
|
691
707
|
* @param merchantId - The merchant account ID.
|
|
708
|
+
* @param profileId - Optional shop (`profile_id`) scope. Omit for the
|
|
709
|
+
* merchant-wide program; pass a shop id to get that shop's program.
|
|
692
710
|
*/
|
|
693
|
-
async retrieve(merchantId) {
|
|
711
|
+
async retrieve(merchantId, profileId) {
|
|
694
712
|
return this.request("GET", "/merchant-fees/rules", {
|
|
695
|
-
query: { merchant_id: merchantId }
|
|
713
|
+
query: { merchant_id: merchantId, profile_id: profileId }
|
|
696
714
|
});
|
|
697
715
|
}
|
|
698
716
|
/**
|
|
699
|
-
* Deactivate
|
|
700
|
-
*
|
|
717
|
+
* Deactivate a fee-rule program (falls back to the flat fee schedules /
|
|
718
|
+
* volume tier). Idempotent.
|
|
701
719
|
*
|
|
702
720
|
* @param merchantId - The merchant account ID.
|
|
721
|
+
* @param profileId - Optional shop (`profile_id`) scope. Omit to target the
|
|
722
|
+
* merchant-wide program; pass a shop id to delete only that shop's program
|
|
723
|
+
* (other shops' programs are left intact).
|
|
703
724
|
*/
|
|
704
|
-
async delete(merchantId) {
|
|
725
|
+
async delete(merchantId, profileId) {
|
|
705
726
|
await this.request("DELETE", "/merchant-fees/rules", {
|
|
706
|
-
query: { merchant_id: merchantId }
|
|
727
|
+
query: { merchant_id: merchantId, profile_id: profileId }
|
|
707
728
|
});
|
|
708
729
|
}
|
|
709
730
|
};
|
|
@@ -3775,4 +3796,4 @@ export {
|
|
|
3775
3796
|
applyBrandingVariables,
|
|
3776
3797
|
shadowFor
|
|
3777
3798
|
};
|
|
3778
|
-
//# sourceMappingURL=chunk-
|
|
3799
|
+
//# sourceMappingURL=chunk-DMNCVY25.js.map
|