@delopay/sdk 0.279.0 → 0.280.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.
@@ -4918,6 +4918,33 @@ var Users = class {
4918
4918
  body: params
4919
4919
  });
4920
4920
  }
4921
+ /**
4922
+ * Which checkout payment methods a member may change in your merchant.
4923
+ * `GET /user/employees/{user_id}/method-access`
4924
+ *
4925
+ * Needs the *Users* read permission, and answers only for a member
4926
+ * `listUsersInLineage` shows you (any other id is a 404 `UR_68` with
4927
+ * `data.reason: 'member_not_found'`). `can_edit` says whether you may
4928
+ * change it; `grant_all` and `grantable` say which methods you may grant.
4929
+ */
4930
+ async getMemberMethodAccess(userId) {
4931
+ return this.request("GET", `/user/employees/${encodeURIComponent(userId)}/method-access`);
4932
+ }
4933
+ /**
4934
+ * Limit a member to some checkout payment methods, or give every method
4935
+ * back. `PUT /user/employees/{user_id}/method-access`
4936
+ *
4937
+ * Needs the *Connectors* edit and *Payment methods* write permissions and a
4938
+ * member within your reach, other than yourself. A caller limited itself
4939
+ * grants only within its own limit. The change is audited and applies to
4940
+ * the member's next request. A refusal is a `UR_68` whose `data` is
4941
+ * `{ reason: 'method_access', refusal }` (see {@link MethodAccessRefusal}).
4942
+ */
4943
+ async updateMemberMethodAccess(userId, params) {
4944
+ return this.request("PUT", `/user/employees/${encodeURIComponent(userId)}/method-access`, {
4945
+ body: params
4946
+ });
4947
+ }
4921
4948
  /** Sign in via OIDC. `POST /user/oidc` */
4922
4949
  async signInOidc(params) {
4923
4950
  return this.request("POST", "/user/oidc", { body: params });
@@ -14682,4 +14709,4 @@ export {
14682
14709
  decodeNativePanes,
14683
14710
  encodeNativePanes
14684
14711
  };
14685
- //# sourceMappingURL=chunk-5FGSME7D.js.map
14712
+ //# sourceMappingURL=chunk-3CHJT5YW.js.map