@delopay/sdk 0.113.0 → 0.115.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
@@ -2524,6 +2524,19 @@ var Routing = class {
2524
2524
  async getDefaultProfile() {
2525
2525
  return this.request("GET", "/routing/default/profile");
2526
2526
  }
2527
+ /**
2528
+ * Retrieve one profile's default config. `GET /routing/default/profile/{profileId}`
2529
+ *
2530
+ * The narrow counterpart of `getDefaultProfile()`: that one returns every
2531
+ * profile of the merchant and needs merchant-level routing read, so a
2532
+ * profile-scoped (shop) role could write its own default through
2533
+ * `updateDefaultProfile()` but never read it back. This read is gated on
2534
+ * profile-level routing read and pinned to the caller's own profile — a shop
2535
+ * role asking for a sibling profile is refused.
2536
+ */
2537
+ async getDefaultForProfile(profileId) {
2538
+ return this.request("GET", `/routing/default/profile/${encodeURIComponent(profileId)}`);
2539
+ }
2527
2540
  /** Update default config for a profile. `POST /routing/default/profile/{profileId}` */
2528
2541
  async updateDefaultProfile(profileId, params) {
2529
2542
  return this.request("POST", `/routing/default/profile/${encodeURIComponent(profileId)}`, {