@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.
@@ -2388,6 +2388,19 @@ var Routing = class {
2388
2388
  async getDefaultProfile() {
2389
2389
  return this.request("GET", "/routing/default/profile");
2390
2390
  }
2391
+ /**
2392
+ * Retrieve one profile's default config. `GET /routing/default/profile/{profileId}`
2393
+ *
2394
+ * The narrow counterpart of `getDefaultProfile()`: that one returns every
2395
+ * profile of the merchant and needs merchant-level routing read, so a
2396
+ * profile-scoped (shop) role could write its own default through
2397
+ * `updateDefaultProfile()` but never read it back. This read is gated on
2398
+ * profile-level routing read and pinned to the caller's own profile — a shop
2399
+ * role asking for a sibling profile is refused.
2400
+ */
2401
+ async getDefaultForProfile(profileId) {
2402
+ return this.request("GET", `/routing/default/profile/${encodeURIComponent(profileId)}`);
2403
+ }
2391
2404
  /** Update default config for a profile. `POST /routing/default/profile/{profileId}` */
2392
2405
  async updateDefaultProfile(profileId, params) {
2393
2406
  return this.request("POST", `/routing/default/profile/${encodeURIComponent(profileId)}`, {
@@ -2830,7 +2843,10 @@ var Shops = class {
2830
2843
  * @param merchantId - The merchant account ID.
2831
2844
  * @param shopId - The shop (business profile) ID to restyle.
2832
2845
  * @param params - The new `payment_link_config` blob (full replacement).
2833
- * @returns The updated business profile.
2846
+ * @returns The saved branding — the same shape `retrieveCheckoutBranding`
2847
+ * returns, not the whole shop. A role whose only power is restyling a
2848
+ * checkout must not receive the webhook signing key or the card-vault
2849
+ * configuration back from a save.
2834
2850
  */
2835
2851
  async updateCheckoutBranding(merchantId, shopId, params, options) {
2836
2852
  return this.request(
@@ -6836,4 +6852,4 @@ export {
6836
6852
  decodeNativePanes,
6837
6853
  encodeNativePanes
6838
6854
  };
6839
- //# sourceMappingURL=chunk-3O5MU6FP.js.map
6855
+ //# sourceMappingURL=chunk-VH5NCMH6.js.map