@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/{chunk-B4ABMM47.js → chunk-2OYT52HK.js} +17 -101
- package/dist/chunk-2OYT52HK.js.map +1 -0
- package/dist/index.cjs +16 -101
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +84 -169
- package/dist/index.d.ts +84 -169
- package/dist/index.js +1 -3
- package/dist/internal.cjs +16 -353
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +3 -326
- package/dist/internal.d.ts +3 -326
- package/dist/internal.js +1 -255
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-B4ABMM47.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -104,7 +104,6 @@ __export(index_exports, {
|
|
|
104
104
|
Products: () => Products,
|
|
105
105
|
RTL_CHECKOUT_LOCALES: () => RTL_CHECKOUT_LOCALES,
|
|
106
106
|
Regions: () => Regions,
|
|
107
|
-
ReplayRetention: () => ReplayRetention,
|
|
108
107
|
Risk: () => Risk,
|
|
109
108
|
SECTION_ALIASES: () => SECTION_ALIASES,
|
|
110
109
|
STRIPE_FALLBACK_PANE_CATALOG: () => STRIPE_FALLBACK_PANE_CATALOG,
|
|
@@ -4396,6 +4395,22 @@ var Users = class {
|
|
|
4396
4395
|
async changeMemberScope(params) {
|
|
4397
4396
|
return this.request("POST", "/user/employees/change-scope", { body: params });
|
|
4398
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
|
+
}
|
|
4399
4414
|
/**
|
|
4400
4415
|
* One member of your merchant, with the person fields the member list
|
|
4401
4416
|
* omits. `GET /user/employees/{user_id}/details`
|
|
@@ -6293,24 +6308,6 @@ var ProcessorCosts = class {
|
|
|
6293
6308
|
}
|
|
6294
6309
|
};
|
|
6295
6310
|
|
|
6296
|
-
// src/resources/checkoutBrowserInfo.ts
|
|
6297
|
-
var CheckoutBrowserInfo = class {
|
|
6298
|
-
constructor(request) {
|
|
6299
|
-
this.request = request;
|
|
6300
|
-
}
|
|
6301
|
-
/** Read the merchant's own setting and effective collection policy. */
|
|
6302
|
-
async retrieve(merchantId) {
|
|
6303
|
-
return this.request("GET", "/checkout-browser-info", { query: { merchant_id: merchantId } });
|
|
6304
|
-
}
|
|
6305
|
-
/** Replace the merchant setting. An admin refusal still wins; changes are audited. */
|
|
6306
|
-
async update(merchantId, body) {
|
|
6307
|
-
return this.request("PUT", "/checkout-browser-info", {
|
|
6308
|
-
query: { merchant_id: merchantId },
|
|
6309
|
-
body
|
|
6310
|
-
});
|
|
6311
|
-
}
|
|
6312
|
-
};
|
|
6313
|
-
|
|
6314
6311
|
// src/resources/checkoutMethods.ts
|
|
6315
6312
|
var CheckoutMethods = class {
|
|
6316
6313
|
constructor(request) {
|
|
@@ -7386,85 +7383,6 @@ var OperationLimits = class {
|
|
|
7386
7383
|
}
|
|
7387
7384
|
};
|
|
7388
7385
|
|
|
7389
|
-
// src/resources/replayRetention.ts
|
|
7390
|
-
var ReplayRetention = class {
|
|
7391
|
-
constructor(request) {
|
|
7392
|
-
this.request = request;
|
|
7393
|
-
}
|
|
7394
|
-
/**
|
|
7395
|
-
* Every level that is set for the caller's merchant, plus the global level
|
|
7396
|
-
* when one is set.
|
|
7397
|
-
*
|
|
7398
|
-
* `GET /replay-retention`
|
|
7399
|
-
*/
|
|
7400
|
-
async list() {
|
|
7401
|
-
return this.request("GET", "/replay-retention");
|
|
7402
|
-
}
|
|
7403
|
-
/**
|
|
7404
|
-
* What applies to one shop's recordings, and which level decided.
|
|
7405
|
-
*
|
|
7406
|
-
* `GET /replay-retention/shops/{profileId}/effective`
|
|
7407
|
-
*/
|
|
7408
|
-
async effective(profileId) {
|
|
7409
|
-
return this.request(
|
|
7410
|
-
"GET",
|
|
7411
|
-
`/replay-retention/shops/${encodeURIComponent(profileId)}/effective`
|
|
7412
|
-
);
|
|
7413
|
-
}
|
|
7414
|
-
/**
|
|
7415
|
-
* Set the merchant-wide level.
|
|
7416
|
-
*
|
|
7417
|
-
* `PUT /replay-retention/merchant`
|
|
7418
|
-
*/
|
|
7419
|
-
async setMerchant(params) {
|
|
7420
|
-
return this.request("PUT", "/replay-retention/merchant", { body: params });
|
|
7421
|
-
}
|
|
7422
|
-
/**
|
|
7423
|
-
* Hand the merchant-wide level back to the global one.
|
|
7424
|
-
*
|
|
7425
|
-
* `DELETE /replay-retention/merchant`
|
|
7426
|
-
*/
|
|
7427
|
-
async clearMerchant() {
|
|
7428
|
-
await this.request("DELETE", "/replay-retention/merchant");
|
|
7429
|
-
}
|
|
7430
|
-
/**
|
|
7431
|
-
* Set one project's level.
|
|
7432
|
-
*
|
|
7433
|
-
* `PUT /replay-retention/projects/{projectId}`
|
|
7434
|
-
*/
|
|
7435
|
-
async setProject(projectId, params) {
|
|
7436
|
-
return this.request("PUT", `/replay-retention/projects/${encodeURIComponent(projectId)}`, {
|
|
7437
|
-
body: params
|
|
7438
|
-
});
|
|
7439
|
-
}
|
|
7440
|
-
/**
|
|
7441
|
-
* Hand one project's level back to the merchant's.
|
|
7442
|
-
*
|
|
7443
|
-
* `DELETE /replay-retention/projects/{projectId}`
|
|
7444
|
-
*/
|
|
7445
|
-
async clearProject(projectId) {
|
|
7446
|
-
await this.request("DELETE", `/replay-retention/projects/${encodeURIComponent(projectId)}`);
|
|
7447
|
-
}
|
|
7448
|
-
/**
|
|
7449
|
-
* Set one shop's level. A shop-scoped caller may set only its own shop.
|
|
7450
|
-
*
|
|
7451
|
-
* `PUT /replay-retention/shops/{profileId}`
|
|
7452
|
-
*/
|
|
7453
|
-
async setShop(profileId, params) {
|
|
7454
|
-
return this.request("PUT", `/replay-retention/shops/${encodeURIComponent(profileId)}`, {
|
|
7455
|
-
body: params
|
|
7456
|
-
});
|
|
7457
|
-
}
|
|
7458
|
-
/**
|
|
7459
|
-
* Hand one shop's level back to its project's (or the merchant's).
|
|
7460
|
-
*
|
|
7461
|
-
* `DELETE /replay-retention/shops/{profileId}`
|
|
7462
|
-
*/
|
|
7463
|
-
async clearShop(profileId) {
|
|
7464
|
-
await this.request("DELETE", `/replay-retention/shops/${encodeURIComponent(profileId)}`);
|
|
7465
|
-
}
|
|
7466
|
-
};
|
|
7467
|
-
|
|
7468
7386
|
// src/resources/settings.ts
|
|
7469
7387
|
function projectQuery(query) {
|
|
7470
7388
|
return query.project_id ? { project_id: query.project_id } : {};
|
|
@@ -7774,7 +7692,6 @@ var Delopay = class {
|
|
|
7774
7692
|
this.audit = new Audit(request);
|
|
7775
7693
|
this.settlement = new Settlement(request);
|
|
7776
7694
|
this.operationLimits = new OperationLimits(request);
|
|
7777
|
-
this.replayRetention = new ReplayRetention(request);
|
|
7778
7695
|
this.settings = new Settings(request);
|
|
7779
7696
|
this.risk = new Risk(request);
|
|
7780
7697
|
this.subscriptions = new Subscriptions(request);
|
|
@@ -7791,7 +7708,6 @@ var Delopay = class {
|
|
|
7791
7708
|
this.invoices = new Invoices(request);
|
|
7792
7709
|
this.invoiceSettings = new InvoiceSettingsResource(request);
|
|
7793
7710
|
this.processorCosts = new ProcessorCosts(request);
|
|
7794
|
-
this.checkoutBrowserInfo = new CheckoutBrowserInfo(request);
|
|
7795
7711
|
this.checkoutMethods = new CheckoutMethods(request);
|
|
7796
7712
|
this.analytics = new Analytics(request);
|
|
7797
7713
|
this.analyticsDashboard = new AnalyticsDashboard(request);
|
|
@@ -11853,7 +11769,6 @@ var encodeNativePanes = encodePanes;
|
|
|
11853
11769
|
Products,
|
|
11854
11770
|
RTL_CHECKOUT_LOCALES,
|
|
11855
11771
|
Regions,
|
|
11856
|
-
ReplayRetention,
|
|
11857
11772
|
Risk,
|
|
11858
11773
|
SECTION_ALIASES,
|
|
11859
11774
|
STRIPE_FALLBACK_PANE_CATALOG,
|