@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/{chunk-NY5O6S5X.js → chunk-VH5NCMH6.js} +14 -1
- package/dist/chunk-VH5NCMH6.js.map +1 -0
- package/dist/index.cjs +13 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +1 -1
- package/dist/internal.cjs +69 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +109 -2
- package/dist/internal.d.ts +109 -2
- package/dist/internal.js +57 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-NY5O6S5X.js.map +0 -1
|
@@ -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)}`, {
|
|
@@ -6839,4 +6852,4 @@ export {
|
|
|
6839
6852
|
decodeNativePanes,
|
|
6840
6853
|
encodeNativePanes
|
|
6841
6854
|
};
|
|
6842
|
-
//# sourceMappingURL=chunk-
|
|
6855
|
+
//# sourceMappingURL=chunk-VH5NCMH6.js.map
|