@delopay/sdk 0.170.0 → 0.172.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-ZBNUOFNR.js → chunk-AI4BVO55.js} +22 -4
- package/dist/chunk-AI4BVO55.js.map +1 -0
- package/dist/index.cjs +21 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +114 -6
- package/dist/index.d.ts +114 -6
- package/dist/index.js +1 -1
- package/dist/internal.cjs +76 -3
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +111 -3
- package/dist/internal.d.ts +111 -3
- package/dist/internal.js +56 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-ZBNUOFNR.js.map +0 -1
package/dist/internal.cjs
CHANGED
|
@@ -5276,6 +5276,24 @@ var ProcessorCosts = class {
|
|
|
5276
5276
|
}
|
|
5277
5277
|
};
|
|
5278
5278
|
|
|
5279
|
+
// src/resources/checkoutBrowserInfo.ts
|
|
5280
|
+
var CheckoutBrowserInfo = class {
|
|
5281
|
+
constructor(request) {
|
|
5282
|
+
this.request = request;
|
|
5283
|
+
}
|
|
5284
|
+
/** Read the merchant's own setting and effective collection policy. */
|
|
5285
|
+
async retrieve(merchantId) {
|
|
5286
|
+
return this.request("GET", "/checkout-browser-info", { query: { merchant_id: merchantId } });
|
|
5287
|
+
}
|
|
5288
|
+
/** Replace the merchant setting. An admin refusal still wins; changes are audited. */
|
|
5289
|
+
async update(merchantId, body) {
|
|
5290
|
+
return this.request("PUT", "/checkout-browser-info", {
|
|
5291
|
+
query: { merchant_id: merchantId },
|
|
5292
|
+
body
|
|
5293
|
+
});
|
|
5294
|
+
}
|
|
5295
|
+
};
|
|
5296
|
+
|
|
5279
5297
|
// src/resources/checkoutMethods.ts
|
|
5280
5298
|
var CheckoutMethods = class {
|
|
5281
5299
|
constructor(request) {
|
|
@@ -6365,6 +6383,7 @@ var Delopay = class {
|
|
|
6365
6383
|
this.externalRecords = new ExternalRecords(request);
|
|
6366
6384
|
this.products = new Products(request);
|
|
6367
6385
|
this.processorCosts = new ProcessorCosts(request);
|
|
6386
|
+
this.checkoutBrowserInfo = new CheckoutBrowserInfo(request);
|
|
6368
6387
|
this.checkoutMethods = new CheckoutMethods(request);
|
|
6369
6388
|
this.analytics = new Analytics(request);
|
|
6370
6389
|
this.analyticsDashboard = new AnalyticsDashboard(request);
|
|
@@ -9381,9 +9400,8 @@ var CheckoutSession = class {
|
|
|
9381
9400
|
*
|
|
9382
9401
|
* Deliberately unauthenticated: a `pay_` link bootstraps before any
|
|
9383
9402
|
* credential exists, so no credential header is ever attached (caller
|
|
9384
|
-
* extras are still stripped of credentials).
|
|
9385
|
-
*
|
|
9386
|
-
* own types and runtime gates — hence the loose return type.
|
|
9403
|
+
* extras are still stripped of credentials). Core fields and the collection
|
|
9404
|
+
* policy are typed; provider-specific fields remain available as unknown.
|
|
9387
9405
|
*
|
|
9388
9406
|
* `theme` (a named checkout variant) and `country` are the route's declared
|
|
9389
9407
|
* query parameters. `country` is a manual override of the buyer country the
|
|
@@ -10461,6 +10479,26 @@ var AdminPortal = class {
|
|
|
10461
10479
|
query: params
|
|
10462
10480
|
});
|
|
10463
10481
|
}
|
|
10482
|
+
/**
|
|
10483
|
+
* Billing profiles no operator listing can reach, and the accounts that may
|
|
10484
|
+
* have taken one over (be#758).
|
|
10485
|
+
*
|
|
10486
|
+
* Deleting a merchant account leaves its billing profile — with its
|
|
10487
|
+
* balance, its Stripe customer and its saved card — behind, and the
|
|
10488
|
+
* Merchants listing enumerates merchant accounts, so such a profile is
|
|
10489
|
+
* absent from every operator surface rather than flagged on one. This reads
|
|
10490
|
+
* from the billing side instead, so it finds them.
|
|
10491
|
+
*
|
|
10492
|
+
* Both lists come back complete rather than paged: the healthy answer is two
|
|
10493
|
+
* empty arrays, and a truncated answer to *"is the set empty"* would read as
|
|
10494
|
+
* a clean bill of health.
|
|
10495
|
+
*
|
|
10496
|
+
* `adoption_candidates` are candidates, not findings — confirm a row against
|
|
10497
|
+
* the audit log before acting on it.
|
|
10498
|
+
*/
|
|
10499
|
+
async orphanedBillingProfiles() {
|
|
10500
|
+
return this.request("GET", "/admin-portal/billing/orphaned-profiles");
|
|
10501
|
+
}
|
|
10464
10502
|
/**
|
|
10465
10503
|
* Retrieve a merchant account via the admin portal. Unlike
|
|
10466
10504
|
* `merchantAccounts.retrieve`, this route accepts an admin JWT (or admin API
|
|
@@ -10566,6 +10604,41 @@ var AdminPortal = class {
|
|
|
10566
10604
|
`/admin-portal/accounts/${encodeURIComponent(merchantId)}/sell-to-restrictions`
|
|
10567
10605
|
);
|
|
10568
10606
|
}
|
|
10607
|
+
/** Admin setting for one merchant, independent of the merchant's own choice. */
|
|
10608
|
+
async getMerchantCheckoutBrowserInfo(merchantId) {
|
|
10609
|
+
return this.request(
|
|
10610
|
+
"GET",
|
|
10611
|
+
`/admin-portal/accounts/${encodeURIComponent(merchantId)}/checkout-browser-info`
|
|
10612
|
+
);
|
|
10613
|
+
}
|
|
10614
|
+
/** Replace the admin merchant setting. Any OFF remains final; changes are audited. */
|
|
10615
|
+
async updateMerchantCheckoutBrowserInfo(merchantId, body) {
|
|
10616
|
+
return this.request(
|
|
10617
|
+
"PUT",
|
|
10618
|
+
`/admin-portal/accounts/${encodeURIComponent(merchantId)}/checkout-browser-info`,
|
|
10619
|
+
{ body }
|
|
10620
|
+
);
|
|
10621
|
+
}
|
|
10622
|
+
/** Platform-wide policy for delivery of the five device fields to one connector. */
|
|
10623
|
+
async getConnectorCheckoutBrowserInfo(connector) {
|
|
10624
|
+
return this.request(
|
|
10625
|
+
"GET",
|
|
10626
|
+
`/admin-portal/connectors/${encodeURIComponent(connector)}/checkout-browser-info`
|
|
10627
|
+
);
|
|
10628
|
+
}
|
|
10629
|
+
/**
|
|
10630
|
+
* Store the connector policy. OFF withholds the fields for every merchant
|
|
10631
|
+
* only on backends with connector-delivery enforcement deployed. Earlier
|
|
10632
|
+
* backends store this setting without enforcing it; a successful save alone
|
|
10633
|
+
* is not evidence that delivery is blocked.
|
|
10634
|
+
*/
|
|
10635
|
+
async updateConnectorCheckoutBrowserInfo(connector, body) {
|
|
10636
|
+
return this.request(
|
|
10637
|
+
"PUT",
|
|
10638
|
+
`/admin-portal/connectors/${encodeURIComponent(connector)}/checkout-browser-info`,
|
|
10639
|
+
{ body }
|
|
10640
|
+
);
|
|
10641
|
+
}
|
|
10569
10642
|
/**
|
|
10570
10643
|
* The deployment's replay-masking rules: extra page elements the session
|
|
10571
10644
|
* recorder hides on top of the ones it always hides.
|