@delopay/sdk 0.209.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.
@@ -4151,6 +4151,22 @@ var Users = class {
4151
4151
  async changeMemberScope(params) {
4152
4152
  return this.request("POST", "/user/employees/change-scope", { body: params });
4153
4153
  }
4154
+ /**
4155
+ * Set or clear when a team member's access to your merchant ends.
4156
+ * `POST /user/employees/update-expiry`
4157
+ *
4158
+ * Every merchant-, shop- and project-level role the member holds in your
4159
+ * merchant, accepted or still an invitation, gets the same `expires_at`.
4160
+ * From that instant the roles grant nothing: every request, sign-in, token
4161
+ * refresh and switch made with them is refused, and `listUsersInLineage`
4162
+ * reports the instant in `MinimalRoleInfo.expires_at`. Send `null` to remove
4163
+ * the expiry. A shop-level caller reaches only members whose every role is
4164
+ * on its own shop. A refusal is a `UR_70` error whose `data` is an
4165
+ * {@link AccessExpiryRefusal}.
4166
+ */
4167
+ async updateMemberExpiry(params) {
4168
+ return this.request("POST", "/user/employees/update-expiry", { body: params });
4169
+ }
4154
4170
  /**
4155
4171
  * One member of your merchant, with the person fields the member list
4156
4172
  * omits. `GET /user/employees/{user_id}/details`
@@ -6048,24 +6064,6 @@ var ProcessorCosts = class {
6048
6064
  }
6049
6065
  };
6050
6066
 
6051
- // src/resources/checkoutBrowserInfo.ts
6052
- var CheckoutBrowserInfo = class {
6053
- constructor(request) {
6054
- this.request = request;
6055
- }
6056
- /** Read the merchant's own setting and effective collection policy. */
6057
- async retrieve(merchantId) {
6058
- return this.request("GET", "/checkout-browser-info", { query: { merchant_id: merchantId } });
6059
- }
6060
- /** Replace the merchant setting. An admin refusal still wins; changes are audited. */
6061
- async update(merchantId, body) {
6062
- return this.request("PUT", "/checkout-browser-info", {
6063
- query: { merchant_id: merchantId },
6064
- body
6065
- });
6066
- }
6067
- };
6068
-
6069
6067
  // src/resources/checkoutMethods.ts
6070
6068
  var CheckoutMethods = class {
6071
6069
  constructor(request) {
@@ -7141,85 +7139,6 @@ var OperationLimits = class {
7141
7139
  }
7142
7140
  };
7143
7141
 
7144
- // src/resources/replayRetention.ts
7145
- var ReplayRetention = class {
7146
- constructor(request) {
7147
- this.request = request;
7148
- }
7149
- /**
7150
- * Every level that is set for the caller's merchant, plus the global level
7151
- * when one is set.
7152
- *
7153
- * `GET /replay-retention`
7154
- */
7155
- async list() {
7156
- return this.request("GET", "/replay-retention");
7157
- }
7158
- /**
7159
- * What applies to one shop's recordings, and which level decided.
7160
- *
7161
- * `GET /replay-retention/shops/{profileId}/effective`
7162
- */
7163
- async effective(profileId) {
7164
- return this.request(
7165
- "GET",
7166
- `/replay-retention/shops/${encodeURIComponent(profileId)}/effective`
7167
- );
7168
- }
7169
- /**
7170
- * Set the merchant-wide level.
7171
- *
7172
- * `PUT /replay-retention/merchant`
7173
- */
7174
- async setMerchant(params) {
7175
- return this.request("PUT", "/replay-retention/merchant", { body: params });
7176
- }
7177
- /**
7178
- * Hand the merchant-wide level back to the global one.
7179
- *
7180
- * `DELETE /replay-retention/merchant`
7181
- */
7182
- async clearMerchant() {
7183
- await this.request("DELETE", "/replay-retention/merchant");
7184
- }
7185
- /**
7186
- * Set one project's level.
7187
- *
7188
- * `PUT /replay-retention/projects/{projectId}`
7189
- */
7190
- async setProject(projectId, params) {
7191
- return this.request("PUT", `/replay-retention/projects/${encodeURIComponent(projectId)}`, {
7192
- body: params
7193
- });
7194
- }
7195
- /**
7196
- * Hand one project's level back to the merchant's.
7197
- *
7198
- * `DELETE /replay-retention/projects/{projectId}`
7199
- */
7200
- async clearProject(projectId) {
7201
- await this.request("DELETE", `/replay-retention/projects/${encodeURIComponent(projectId)}`);
7202
- }
7203
- /**
7204
- * Set one shop's level. A shop-scoped caller may set only its own shop.
7205
- *
7206
- * `PUT /replay-retention/shops/{profileId}`
7207
- */
7208
- async setShop(profileId, params) {
7209
- return this.request("PUT", `/replay-retention/shops/${encodeURIComponent(profileId)}`, {
7210
- body: params
7211
- });
7212
- }
7213
- /**
7214
- * Hand one shop's level back to its project's (or the merchant's).
7215
- *
7216
- * `DELETE /replay-retention/shops/{profileId}`
7217
- */
7218
- async clearShop(profileId) {
7219
- await this.request("DELETE", `/replay-retention/shops/${encodeURIComponent(profileId)}`);
7220
- }
7221
- };
7222
-
7223
7142
  // src/resources/settings.ts
7224
7143
  function projectQuery(query) {
7225
7144
  return query.project_id ? { project_id: query.project_id } : {};
@@ -7529,7 +7448,6 @@ var Delopay = class {
7529
7448
  this.audit = new Audit(request);
7530
7449
  this.settlement = new Settlement(request);
7531
7450
  this.operationLimits = new OperationLimits(request);
7532
- this.replayRetention = new ReplayRetention(request);
7533
7451
  this.settings = new Settings(request);
7534
7452
  this.risk = new Risk(request);
7535
7453
  this.subscriptions = new Subscriptions(request);
@@ -7546,7 +7464,6 @@ var Delopay = class {
7546
7464
  this.invoices = new Invoices(request);
7547
7465
  this.invoiceSettings = new InvoiceSettingsResource(request);
7548
7466
  this.processorCosts = new ProcessorCosts(request);
7549
- this.checkoutBrowserInfo = new CheckoutBrowserInfo(request);
7550
7467
  this.checkoutMethods = new CheckoutMethods(request);
7551
7468
  this.analytics = new Analytics(request);
7552
7469
  this.analyticsDashboard = new AnalyticsDashboard(request);
@@ -11553,7 +11470,6 @@ export {
11553
11470
  Audit,
11554
11471
  Settlement,
11555
11472
  OperationLimits,
11556
- ReplayRetention,
11557
11473
  Settings,
11558
11474
  Risk,
11559
11475
  Delopay,
@@ -11746,4 +11662,4 @@ export {
11746
11662
  decodeNativePanes,
11747
11663
  encodeNativePanes
11748
11664
  };
11749
- //# sourceMappingURL=chunk-B4ABMM47.js.map
11665
+ //# sourceMappingURL=chunk-2OYT52HK.js.map