@delopay/sdk 0.210.0 → 0.211.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/index.cjs CHANGED
@@ -4395,6 +4395,22 @@ var Users = class {
4395
4395
  async changeMemberScope(params) {
4396
4396
  return this.request("POST", "/user/employees/change-scope", { body: params });
4397
4397
  }
4398
+ /**
4399
+ * Set or clear when a team member's access to your merchant ends.
4400
+ * `POST /user/employees/update-expiry`
4401
+ *
4402
+ * Every merchant-, shop- and project-level role the member holds in your
4403
+ * merchant, accepted or still an invitation, gets the same `expires_at`.
4404
+ * From that instant the roles grant nothing: every request, sign-in, token
4405
+ * refresh and switch made with them is refused, and `listUsersInLineage`
4406
+ * reports the instant in `MinimalRoleInfo.expires_at`. Send `null` to remove
4407
+ * the expiry. A shop-level caller reaches only members whose every role is
4408
+ * on its own shop. A refusal is a `UR_70` error whose `data` is an
4409
+ * {@link AccessExpiryRefusal}.
4410
+ */
4411
+ async updateMemberExpiry(params) {
4412
+ return this.request("POST", "/user/employees/update-expiry", { body: params });
4413
+ }
4398
4414
  /**
4399
4415
  * One member of your merchant, with the person fields the member list
4400
4416
  * omits. `GET /user/employees/{user_id}/details`