@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/index.cjs CHANGED
@@ -755,24 +755,29 @@ var FeeRulesManager = class {
755
755
  });
756
756
  }
757
757
  /**
758
- * Retrieve the merchant's active fee-rule program, or `null` if none.
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 the merchant's active fee-rule program (falls back to the flat
769
- * fee schedules / volume tier). Idempotent.
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
  };