@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
package/dist/index.cjs
CHANGED
|
@@ -755,24 +755,29 @@ var FeeRulesManager = class {
|
|
|
755
755
|
});
|
|
756
756
|
}
|
|
757
757
|
/**
|
|
758
|
-
* Retrieve the
|
|
758
|
+
* Retrieve the active fee-rule program for a scope, or `null` if none.
|
|
759
759
|
*
|
|
760
760
|
* @param merchantId - The merchant account ID.
|
|
761
|
+
* @param profileId - Optional shop (`profile_id`) scope. Omit for the
|
|
762
|
+
* merchant-wide program; pass a shop id to get that shop's program.
|
|
761
763
|
*/
|
|
762
|
-
async retrieve(merchantId) {
|
|
764
|
+
async retrieve(merchantId, profileId) {
|
|
763
765
|
return this.request("GET", "/merchant-fees/rules", {
|
|
764
|
-
query: { merchant_id: merchantId }
|
|
766
|
+
query: { merchant_id: merchantId, profile_id: profileId }
|
|
765
767
|
});
|
|
766
768
|
}
|
|
767
769
|
/**
|
|
768
|
-
* Deactivate
|
|
769
|
-
*
|
|
770
|
+
* Deactivate a fee-rule program (falls back to the flat fee schedules /
|
|
771
|
+
* volume tier). Idempotent.
|
|
770
772
|
*
|
|
771
773
|
* @param merchantId - The merchant account ID.
|
|
774
|
+
* @param profileId - Optional shop (`profile_id`) scope. Omit to target the
|
|
775
|
+
* merchant-wide program; pass a shop id to delete only that shop's program
|
|
776
|
+
* (other shops' programs are left intact).
|
|
772
777
|
*/
|
|
773
|
-
async delete(merchantId) {
|
|
778
|
+
async delete(merchantId, profileId) {
|
|
774
779
|
await this.request("DELETE", "/merchant-fees/rules", {
|
|
775
|
-
query: { merchant_id: merchantId }
|
|
780
|
+
query: { merchant_id: merchantId, profile_id: profileId }
|
|
776
781
|
});
|
|
777
782
|
}
|
|
778
783
|
};
|