@delopay/sdk 0.171.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/index.cjs CHANGED
@@ -5263,6 +5263,24 @@ var ProcessorCosts = class {
5263
5263
  }
5264
5264
  };
5265
5265
 
5266
+ // src/resources/checkoutBrowserInfo.ts
5267
+ var CheckoutBrowserInfo = class {
5268
+ constructor(request) {
5269
+ this.request = request;
5270
+ }
5271
+ /** Read the merchant's own setting and effective collection policy. */
5272
+ async retrieve(merchantId) {
5273
+ return this.request("GET", "/checkout-browser-info", { query: { merchant_id: merchantId } });
5274
+ }
5275
+ /** Replace the merchant setting. An admin refusal still wins; changes are audited. */
5276
+ async update(merchantId, body) {
5277
+ return this.request("PUT", "/checkout-browser-info", {
5278
+ query: { merchant_id: merchantId },
5279
+ body
5280
+ });
5281
+ }
5282
+ };
5283
+
5266
5284
  // src/resources/checkoutMethods.ts
5267
5285
  var CheckoutMethods = class {
5268
5286
  constructor(request) {
@@ -6352,6 +6370,7 @@ var Delopay = class {
6352
6370
  this.externalRecords = new ExternalRecords(request);
6353
6371
  this.products = new Products(request);
6354
6372
  this.processorCosts = new ProcessorCosts(request);
6373
+ this.checkoutBrowserInfo = new CheckoutBrowserInfo(request);
6355
6374
  this.checkoutMethods = new CheckoutMethods(request);
6356
6375
  this.analytics = new Analytics(request);
6357
6376
  this.analyticsDashboard = new AnalyticsDashboard(request);
@@ -9368,9 +9387,8 @@ var CheckoutSession = class {
9368
9387
  *
9369
9388
  * Deliberately unauthenticated: a `pay_` link bootstraps before any
9370
9389
  * credential exists, so no credential header is ever attached (caller
9371
- * extras are still stripped of credentials). The response is a large
9372
- * discriminated union owned by the consuming checkout, which keeps its
9373
- * own types and runtime gates — hence the loose return type.
9390
+ * extras are still stripped of credentials). Core fields and the collection
9391
+ * policy are typed; provider-specific fields remain available as unknown.
9374
9392
  *
9375
9393
  * `theme` (a named checkout variant) and `country` are the route's declared
9376
9394
  * query parameters. `country` is a manual override of the buyer country the