@delopay/sdk 0.39.0 → 0.40.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-JAO3KHIM.js} +13 -8
- package/dist/chunk-JAO3KHIM.js.map +1 -0
- package/dist/index.cjs +12 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -10
- package/dist/index.d.ts +19 -10
- package/dist/index.js +1 -1
- package/dist/internal.cjs +24 -13
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +15 -7
- package/dist/internal.d.ts +15 -7
- 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
|
@@ -686,24 +686,29 @@ var FeeRulesManager = class {
|
|
|
686
686
|
});
|
|
687
687
|
}
|
|
688
688
|
/**
|
|
689
|
-
* Retrieve the
|
|
689
|
+
* Retrieve the active fee-rule program for a scope, or `null` if none.
|
|
690
690
|
*
|
|
691
691
|
* @param merchantId - The merchant account ID.
|
|
692
|
+
* @param profileId - Optional shop (`profile_id`) scope. Omit for the
|
|
693
|
+
* merchant-wide program; pass a shop id to get that shop's program.
|
|
692
694
|
*/
|
|
693
|
-
async retrieve(merchantId) {
|
|
695
|
+
async retrieve(merchantId, profileId) {
|
|
694
696
|
return this.request("GET", "/merchant-fees/rules", {
|
|
695
|
-
query: { merchant_id: merchantId }
|
|
697
|
+
query: { merchant_id: merchantId, profile_id: profileId }
|
|
696
698
|
});
|
|
697
699
|
}
|
|
698
700
|
/**
|
|
699
|
-
* Deactivate
|
|
700
|
-
*
|
|
701
|
+
* Deactivate a fee-rule program (falls back to the flat fee schedules /
|
|
702
|
+
* volume tier). Idempotent.
|
|
701
703
|
*
|
|
702
704
|
* @param merchantId - The merchant account ID.
|
|
705
|
+
* @param profileId - Optional shop (`profile_id`) scope. Omit to target the
|
|
706
|
+
* merchant-wide program; pass a shop id to delete only that shop's program
|
|
707
|
+
* (other shops' programs are left intact).
|
|
703
708
|
*/
|
|
704
|
-
async delete(merchantId) {
|
|
709
|
+
async delete(merchantId, profileId) {
|
|
705
710
|
await this.request("DELETE", "/merchant-fees/rules", {
|
|
706
|
-
query: { merchant_id: merchantId }
|
|
711
|
+
query: { merchant_id: merchantId, profile_id: profileId }
|
|
707
712
|
});
|
|
708
713
|
}
|
|
709
714
|
};
|
|
@@ -3775,4 +3780,4 @@ export {
|
|
|
3775
3780
|
applyBrandingVariables,
|
|
3776
3781
|
shadowFor
|
|
3777
3782
|
};
|
|
3778
|
-
//# sourceMappingURL=chunk-
|
|
3783
|
+
//# sourceMappingURL=chunk-JAO3KHIM.js.map
|