@delopay/sdk 0.112.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)}`, {
@@ -2966,7 +2979,10 @@ var Shops = class {
2966
2979
  * @param merchantId - The merchant account ID.
2967
2980
  * @param shopId - The shop (business profile) ID to restyle.
2968
2981
  * @param params - The new `payment_link_config` blob (full replacement).
2969
- * @returns The updated business profile.
2982
+ * @returns The saved branding — the same shape `retrieveCheckoutBranding`
2983
+ * returns, not the whole shop. A role whose only power is restyling a
2984
+ * checkout must not receive the webhook signing key or the card-vault
2985
+ * configuration back from a save.
2970
2986
  */
2971
2987
  async updateCheckoutBranding(merchantId, shopId, params, options) {
2972
2988
  return this.request(