@delopay/sdk 0.13.0 → 0.14.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/internal.cjs CHANGED
@@ -3011,11 +3011,9 @@ var AdminPortal = class {
3011
3011
  * immediately — no email round-trip is sent.
3012
3012
  */
3013
3013
  async createUserForMerchant(customerId, body) {
3014
- return this.request(
3015
- "POST",
3016
- `/admin-portal/customers/${encodeURIComponent(customerId)}/users`,
3017
- { body }
3018
- );
3014
+ return this.request("POST", `/admin-portal/customers/${encodeURIComponent(customerId)}/users`, {
3015
+ body
3016
+ });
3019
3017
  }
3020
3018
  /**
3021
3019
  * Edit a user record. Any subset of fields may be supplied. `role_id`
@@ -3035,6 +3033,22 @@ var AdminPortal = class {
3035
3033
  async deleteUser(userId) {
3036
3034
  return this.request("DELETE", `/admin-portal/users/${encodeURIComponent(userId)}`);
3037
3035
  }
3036
+ /**
3037
+ * Set a target merchant's shop iframe-allowed origins. Internal-admin
3038
+ * route — accepts an admin JWT or admin API key without requiring the
3039
+ * caller to be scoped to the target merchant. Pass `null` (or an empty
3040
+ * array) to clear the allowlist back to same-origin only.
3041
+ *
3042
+ * Server validates each origin: full origin (scheme + host[:port]),
3043
+ * no path/query/fragment, no wildcards.
3044
+ */
3045
+ async updateShopIframeOrigins(merchantId, profileId, origins) {
3046
+ return this.request(
3047
+ "POST",
3048
+ `/admin-portal/accounts/${encodeURIComponent(merchantId)}/business_profile/${encodeURIComponent(profileId)}/iframe-origins`,
3049
+ { body: { iframe_allowed_origins: origins } }
3050
+ );
3051
+ }
3038
3052
  };
3039
3053
 
3040
3054
  // src/internal/resources/auditLogs.ts