@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/{chunk-3O5MU6FP.js → chunk-VH5NCMH6.js} +18 -2
- package/dist/chunk-VH5NCMH6.js.map +1 -0
- package/dist/index.cjs +17 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +33 -5
- package/dist/index.d.ts +33 -5
- package/dist/index.js +1 -1
- package/dist/internal.cjs +83 -1
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +159 -2
- package/dist/internal.d.ts +159 -2
- package/dist/internal.js +67 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-3O5MU6FP.js.map +0 -1
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
|
|
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(
|