@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.
package/dist/internal.cjs CHANGED
@@ -119,7 +119,6 @@ __export(internal_exports, {
119
119
  Products: () => Products,
120
120
  RTL_CHECKOUT_LOCALES: () => RTL_CHECKOUT_LOCALES,
121
121
  Regions: () => Regions,
122
- ReplayRetention: () => ReplayRetention,
123
122
  Risk: () => Risk,
124
123
  SECTION_ALIASES: () => SECTION_ALIASES,
125
124
  STRIPE_FALLBACK_PANE_CATALOG: () => STRIPE_FALLBACK_PANE_CATALOG,
@@ -4411,6 +4410,22 @@ var Users = class {
4411
4410
  async changeMemberScope(params) {
4412
4411
  return this.request("POST", "/user/employees/change-scope", { body: params });
4413
4412
  }
4413
+ /**
4414
+ * Set or clear when a team member's access to your merchant ends.
4415
+ * `POST /user/employees/update-expiry`
4416
+ *
4417
+ * Every merchant-, shop- and project-level role the member holds in your
4418
+ * merchant, accepted or still an invitation, gets the same `expires_at`.
4419
+ * From that instant the roles grant nothing: every request, sign-in, token
4420
+ * refresh and switch made with them is refused, and `listUsersInLineage`
4421
+ * reports the instant in `MinimalRoleInfo.expires_at`. Send `null` to remove
4422
+ * the expiry. A shop-level caller reaches only members whose every role is
4423
+ * on its own shop. A refusal is a `UR_70` error whose `data` is an
4424
+ * {@link AccessExpiryRefusal}.
4425
+ */
4426
+ async updateMemberExpiry(params) {
4427
+ return this.request("POST", "/user/employees/update-expiry", { body: params });
4428
+ }
4414
4429
  /**
4415
4430
  * One member of your merchant, with the person fields the member list
4416
4431
  * omits. `GET /user/employees/{user_id}/details`
@@ -6308,24 +6323,6 @@ var ProcessorCosts = class {
6308
6323
  }
6309
6324
  };
6310
6325
 
6311
- // src/resources/checkoutBrowserInfo.ts
6312
- var CheckoutBrowserInfo = class {
6313
- constructor(request) {
6314
- this.request = request;
6315
- }
6316
- /** Read the merchant's own setting and effective collection policy. */
6317
- async retrieve(merchantId) {
6318
- return this.request("GET", "/checkout-browser-info", { query: { merchant_id: merchantId } });
6319
- }
6320
- /** Replace the merchant setting. An admin refusal still wins; changes are audited. */
6321
- async update(merchantId, body) {
6322
- return this.request("PUT", "/checkout-browser-info", {
6323
- query: { merchant_id: merchantId },
6324
- body
6325
- });
6326
- }
6327
- };
6328
-
6329
6326
  // src/resources/checkoutMethods.ts
6330
6327
  var CheckoutMethods = class {
6331
6328
  constructor(request) {
@@ -7401,85 +7398,6 @@ var OperationLimits = class {
7401
7398
  }
7402
7399
  };
7403
7400
 
7404
- // src/resources/replayRetention.ts
7405
- var ReplayRetention = class {
7406
- constructor(request) {
7407
- this.request = request;
7408
- }
7409
- /**
7410
- * Every level that is set for the caller's merchant, plus the global level
7411
- * when one is set.
7412
- *
7413
- * `GET /replay-retention`
7414
- */
7415
- async list() {
7416
- return this.request("GET", "/replay-retention");
7417
- }
7418
- /**
7419
- * What applies to one shop's recordings, and which level decided.
7420
- *
7421
- * `GET /replay-retention/shops/{profileId}/effective`
7422
- */
7423
- async effective(profileId) {
7424
- return this.request(
7425
- "GET",
7426
- `/replay-retention/shops/${encodeURIComponent(profileId)}/effective`
7427
- );
7428
- }
7429
- /**
7430
- * Set the merchant-wide level.
7431
- *
7432
- * `PUT /replay-retention/merchant`
7433
- */
7434
- async setMerchant(params) {
7435
- return this.request("PUT", "/replay-retention/merchant", { body: params });
7436
- }
7437
- /**
7438
- * Hand the merchant-wide level back to the global one.
7439
- *
7440
- * `DELETE /replay-retention/merchant`
7441
- */
7442
- async clearMerchant() {
7443
- await this.request("DELETE", "/replay-retention/merchant");
7444
- }
7445
- /**
7446
- * Set one project's level.
7447
- *
7448
- * `PUT /replay-retention/projects/{projectId}`
7449
- */
7450
- async setProject(projectId, params) {
7451
- return this.request("PUT", `/replay-retention/projects/${encodeURIComponent(projectId)}`, {
7452
- body: params
7453
- });
7454
- }
7455
- /**
7456
- * Hand one project's level back to the merchant's.
7457
- *
7458
- * `DELETE /replay-retention/projects/{projectId}`
7459
- */
7460
- async clearProject(projectId) {
7461
- await this.request("DELETE", `/replay-retention/projects/${encodeURIComponent(projectId)}`);
7462
- }
7463
- /**
7464
- * Set one shop's level. A shop-scoped caller may set only its own shop.
7465
- *
7466
- * `PUT /replay-retention/shops/{profileId}`
7467
- */
7468
- async setShop(profileId, params) {
7469
- return this.request("PUT", `/replay-retention/shops/${encodeURIComponent(profileId)}`, {
7470
- body: params
7471
- });
7472
- }
7473
- /**
7474
- * Hand one shop's level back to its project's (or the merchant's).
7475
- *
7476
- * `DELETE /replay-retention/shops/{profileId}`
7477
- */
7478
- async clearShop(profileId) {
7479
- await this.request("DELETE", `/replay-retention/shops/${encodeURIComponent(profileId)}`);
7480
- }
7481
- };
7482
-
7483
7401
  // src/resources/settings.ts
7484
7402
  function projectQuery(query) {
7485
7403
  return query.project_id ? { project_id: query.project_id } : {};
@@ -7789,7 +7707,6 @@ var Delopay = class {
7789
7707
  this.audit = new Audit(request);
7790
7708
  this.settlement = new Settlement(request);
7791
7709
  this.operationLimits = new OperationLimits(request);
7792
- this.replayRetention = new ReplayRetention(request);
7793
7710
  this.settings = new Settings(request);
7794
7711
  this.risk = new Risk(request);
7795
7712
  this.subscriptions = new Subscriptions(request);
@@ -7806,7 +7723,6 @@ var Delopay = class {
7806
7723
  this.invoices = new Invoices(request);
7807
7724
  this.invoiceSettings = new InvoiceSettingsResource(request);
7808
7725
  this.processorCosts = new ProcessorCosts(request);
7809
- this.checkoutBrowserInfo = new CheckoutBrowserInfo(request);
7810
7726
  this.checkoutMethods = new CheckoutMethods(request);
7811
7727
  this.analytics = new Analytics(request);
7812
7728
  this.analyticsDashboard = new AnalyticsDashboard(request);
@@ -11828,14 +11744,6 @@ var AdminPortal = class {
11828
11744
  constructor(request) {
11829
11745
  this.request = request;
11830
11746
  }
11831
- /** Read scoped risk overrides, effective values and inheritance sources. */
11832
- async getRiskSettings(query) {
11833
- return this.request("GET", "/admin-portal/risk-settings", { query: { ...query } });
11834
- }
11835
- /** Replace overrides with revision checking; null values restore inheritance. */
11836
- async updateRiskSettings(body) {
11837
- return this.request("PUT", "/admin-portal/risk-settings", { body });
11838
- }
11839
11747
  async listCustomers(params) {
11840
11748
  return this.request("GET", "/admin-portal/customers", {
11841
11749
  query: params
@@ -12172,135 +12080,6 @@ var AdminPortal = class {
12172
12080
  `/admin-portal/accounts/${encodeURIComponent(merchantId)}/sell-to-restrictions`
12173
12081
  );
12174
12082
  }
12175
- /** Admin setting for one merchant, independent of the merchant's own choice. */
12176
- async getMerchantCheckoutBrowserInfo(merchantId) {
12177
- return this.request(
12178
- "GET",
12179
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/checkout-browser-info`
12180
- );
12181
- }
12182
- /** Replace the admin merchant setting. Any OFF remains final; changes are audited. */
12183
- async updateMerchantCheckoutBrowserInfo(merchantId, body) {
12184
- return this.request(
12185
- "PUT",
12186
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/checkout-browser-info`,
12187
- { body }
12188
- );
12189
- }
12190
- /** Platform-wide policy for delivery of the five device fields to one connector. */
12191
- async getConnectorCheckoutBrowserInfo(connector) {
12192
- return this.request(
12193
- "GET",
12194
- `/admin-portal/connectors/${encodeURIComponent(connector)}/checkout-browser-info`
12195
- );
12196
- }
12197
- /**
12198
- * Store the connector policy. OFF withholds the fields for every merchant
12199
- * only on backends with connector-delivery enforcement deployed. Earlier
12200
- * backends store this setting without enforcing it; a successful save alone
12201
- * is not evidence that delivery is blocked.
12202
- */
12203
- async updateConnectorCheckoutBrowserInfo(connector, body) {
12204
- return this.request(
12205
- "PUT",
12206
- `/admin-portal/connectors/${encodeURIComponent(connector)}/checkout-browser-info`,
12207
- { body }
12208
- );
12209
- }
12210
- /**
12211
- * The deployment's replay-masking rules: extra page elements the session
12212
- * recorder hides on top of the ones it always hides.
12213
- *
12214
- * `GET /admin-portal/replay-masking`
12215
- */
12216
- async getReplayMasking() {
12217
- return this.request("GET", "/admin-portal/replay-masking");
12218
- }
12219
- /**
12220
- * Replace the deployment's replay-masking rules. Additive to the recorder's
12221
- * built-in floor: a rule can widen what a recording leaves out and can never
12222
- * reveal something the recorder hides unconditionally.
12223
- *
12224
- * `PUT /admin-portal/replay-masking`
12225
- */
12226
- async updateReplayMasking(params) {
12227
- return this.request("PUT", "/admin-portal/replay-masking", { body: params });
12228
- }
12229
- /**
12230
- * One merchant's replay-masking rules.
12231
- *
12232
- * `GET /admin-portal/accounts/{merchantId}/replay-masking`
12233
- */
12234
- async getMerchantReplayMasking(merchantId) {
12235
- return this.request(
12236
- "GET",
12237
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/replay-masking`
12238
- );
12239
- }
12240
- /**
12241
- * Replace one merchant's replay-masking rules.
12242
- *
12243
- * `PUT /admin-portal/accounts/{merchantId}/replay-masking`
12244
- */
12245
- async updateMerchantReplayMasking(merchantId, params) {
12246
- return this.request(
12247
- "PUT",
12248
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/replay-masking`,
12249
- { body: params }
12250
- );
12251
- }
12252
- /**
12253
- * One shop's replay-masking rules.
12254
- *
12255
- * `GET /admin-portal/accounts/{merchantId}/business-profile/{profileId}/replay-masking`
12256
- */
12257
- async getShopReplayMasking(merchantId, profileId) {
12258
- return this.request(
12259
- "GET",
12260
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/business-profile/${encodeURIComponent(profileId)}/replay-masking`
12261
- );
12262
- }
12263
- /**
12264
- * Replace one shop's replay-masking rules.
12265
- *
12266
- * `PUT /admin-portal/accounts/{merchantId}/business-profile/{profileId}/replay-masking`
12267
- */
12268
- async updateShopReplayMasking(merchantId, profileId, params) {
12269
- return this.request(
12270
- "PUT",
12271
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/business-profile/${encodeURIComponent(profileId)}/replay-masking`,
12272
- { body: params }
12273
- );
12274
- }
12275
- /**
12276
- * The deployment's checkout-recording retention level — the outermost of
12277
- * the four. A list of zero or one: empty means the global level is unset,
12278
- * and a merchant that sets nothing of its own keeps recordings forever.
12279
- *
12280
- * `GET /admin-portal/replay-retention`
12281
- */
12282
- async getReplayRetention() {
12283
- return this.request("GET", "/admin-portal/replay-retention");
12284
- }
12285
- /**
12286
- * Set the deployment's checkout-recording retention level.
12287
- * `retention_days: null` stores an explicit *keep forever*, which a
12288
- * merchant, project or shop level can still override.
12289
- *
12290
- * `PUT /admin-portal/replay-retention`
12291
- */
12292
- async setReplayRetention(params) {
12293
- return this.request("PUT", "/admin-portal/replay-retention", { body: params });
12294
- }
12295
- /**
12296
- * Unset the deployment's retention level. Merchants that set nothing of
12297
- * their own are back to recordings being kept forever.
12298
- *
12299
- * `DELETE /admin-portal/replay-retention`
12300
- */
12301
- async clearReplayRetention() {
12302
- await this.request("DELETE", "/admin-portal/replay-retention");
12303
- }
12304
12083
  /**
12305
12084
  * Soft-delete a transaction of ANY merchant. Only payments whose status
12306
12085
  * is in the admin delete policy can be deleted; the action is audited.
@@ -12437,94 +12216,6 @@ var AdminPortal = class {
12437
12216
  `/admin-portal/processor-costs/${encodeURIComponent(scheduleId)}`
12438
12217
  );
12439
12218
  }
12440
- /** Get the connector health polling interval. `GET /admin-portal/connector-health-config` */
12441
- async getConnectorHealthConfig() {
12442
- return this.request("GET", "/admin-portal/connector-health-config");
12443
- }
12444
- /** Update the connector health polling interval. `PUT /admin-portal/connector-health-config` */
12445
- async updateConnectorHealthConfig(params) {
12446
- return this.request("PUT", "/admin-portal/connector-health-config", { body: params });
12447
- }
12448
- /**
12449
- * The global payment auto-close policy.
12450
- * `GET /admin-portal/auto-close-config`
12451
- */
12452
- async getAutoCloseConfig() {
12453
- return this.request("GET", "/admin-portal/auto-close-config");
12454
- }
12455
- /**
12456
- * Update the global payment auto-close policy. PATCH semantics — omitted
12457
- * fields are left unchanged.
12458
- *
12459
- * `PUT /admin-portal/auto-close-config`
12460
- */
12461
- async updateAutoCloseConfig(params) {
12462
- return this.request("PUT", "/admin-portal/auto-close-config", { body: params });
12463
- }
12464
- /**
12465
- * One merchant's auto-close override plus the effective values.
12466
- * `GET /admin-portal/accounts/{merchantId}/auto-close-config`
12467
- */
12468
- async getMerchantAutoCloseConfig(merchantId) {
12469
- return this.request(
12470
- "GET",
12471
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/auto-close-config`
12472
- );
12473
- }
12474
- /**
12475
- * Replace one merchant's auto-close override. REPLACE semantics — sending
12476
- * both fields as `null` removes the override entirely.
12477
- *
12478
- * `PUT /admin-portal/accounts/{merchantId}/auto-close-config`
12479
- */
12480
- async updateMerchantAutoCloseConfig(merchantId, params) {
12481
- return this.request(
12482
- "PUT",
12483
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/auto-close-config`,
12484
- { body: params }
12485
- );
12486
- }
12487
- /**
12488
- * The global transaction soft-delete policy (statuses admins may delete,
12489
- * plus the deploy-time env ceiling).
12490
- *
12491
- * `GET /admin-portal/transaction-delete-config`
12492
- */
12493
- async getTransactionDeleteConfig() {
12494
- return this.request("GET", "/admin-portal/transaction-delete-config");
12495
- }
12496
- /**
12497
- * Replace the global deletable-status set. Must be a subset of the env
12498
- * ceiling.
12499
- *
12500
- * `PUT /admin-portal/transaction-delete-config`
12501
- */
12502
- async updateTransactionDeleteConfig(params) {
12503
- return this.request("PUT", "/admin-portal/transaction-delete-config", { body: params });
12504
- }
12505
- /**
12506
- * One merchant's deletable-status override plus the effective set.
12507
- * `GET /admin-portal/accounts/{merchantId}/transaction-delete-config`
12508
- */
12509
- async getMerchantTransactionDeleteConfig(merchantId) {
12510
- return this.request(
12511
- "GET",
12512
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/transaction-delete-config`
12513
- );
12514
- }
12515
- /**
12516
- * Replace one merchant's deletable-status override. `statuses: null`
12517
- * removes the override; an empty list forbids deletion entirely.
12518
- *
12519
- * `PUT /admin-portal/accounts/{merchantId}/transaction-delete-config`
12520
- */
12521
- async updateMerchantTransactionDeleteConfig(merchantId, params) {
12522
- return this.request(
12523
- "PUT",
12524
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/transaction-delete-config`,
12525
- { body: params }
12526
- );
12527
- }
12528
12219
  /**
12529
12220
  * A merchant's settlement statements. Same shapes as the merchant-facing
12530
12221
  * `settlement` resource, admin-authenticated.
@@ -12622,33 +12313,6 @@ var AdminPortal = class {
12622
12313
  { body: params }
12623
12314
  );
12624
12315
  }
12625
- /**
12626
- * Fetch the global welcome promotional-credit config (amount + message)
12627
- * granted to newly created billing profiles. Internal-admin route.
12628
- */
12629
- async getPromoConfig() {
12630
- return this.request("GET", "/admin-portal/promo-config");
12631
- }
12632
- /** OAuth credentials are encrypted server-side and never returned. */
12633
- async getDashboardOAuthSettings() {
12634
- return this.request("GET", "/admin-portal/dashboard-oauth");
12635
- }
12636
- async updateDashboardOAuthUrls(params) {
12637
- return this.request("PUT", "/admin-portal/dashboard-oauth/urls", { body: params });
12638
- }
12639
- async updateDashboardOAuthProvider(provider, params) {
12640
- return this.request("PUT", `/admin-portal/dashboard-oauth/${encodeURIComponent(provider)}`, {
12641
- body: params
12642
- });
12643
- }
12644
- /**
12645
- * Update the global welcome promotional-credit config. Any subset of
12646
- * `amount` (minor units) / `message` may be supplied; omitted fields are
12647
- * left unchanged. Returns the resulting config. Internal-admin route.
12648
- */
12649
- async updatePromoConfig(params) {
12650
- return this.request("PUT", "/admin-portal/promo-config", { body: params });
12651
- }
12652
12316
  };
12653
12317
  function transactionListQuery(params) {
12654
12318
  if (!params) return void 0;
@@ -13493,7 +13157,6 @@ var DelopayInternal = class extends Delopay {
13493
13157
  Products,
13494
13158
  RTL_CHECKOUT_LOCALES,
13495
13159
  Regions,
13496
- ReplayRetention,
13497
13160
  Risk,
13498
13161
  SECTION_ALIASES,
13499
13162
  STRIPE_FALLBACK_PANE_CATALOG,