@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.
@@ -5022,6 +5022,24 @@ var ProcessorCosts = class {
5022
5022
  }
5023
5023
  };
5024
5024
 
5025
+ // src/resources/checkoutBrowserInfo.ts
5026
+ var CheckoutBrowserInfo = class {
5027
+ constructor(request) {
5028
+ this.request = request;
5029
+ }
5030
+ /** Read the merchant's own setting and effective collection policy. */
5031
+ async retrieve(merchantId) {
5032
+ return this.request("GET", "/checkout-browser-info", { query: { merchant_id: merchantId } });
5033
+ }
5034
+ /** Replace the merchant setting. An admin refusal still wins; changes are audited. */
5035
+ async update(merchantId, body) {
5036
+ return this.request("PUT", "/checkout-browser-info", {
5037
+ query: { merchant_id: merchantId },
5038
+ body
5039
+ });
5040
+ }
5041
+ };
5042
+
5025
5043
  // src/resources/checkoutMethods.ts
5026
5044
  var CheckoutMethods = class {
5027
5045
  constructor(request) {
@@ -6111,6 +6129,7 @@ var Delopay = class {
6111
6129
  this.externalRecords = new ExternalRecords(request);
6112
6130
  this.products = new Products(request);
6113
6131
  this.processorCosts = new ProcessorCosts(request);
6132
+ this.checkoutBrowserInfo = new CheckoutBrowserInfo(request);
6114
6133
  this.checkoutMethods = new CheckoutMethods(request);
6115
6134
  this.analytics = new Analytics(request);
6116
6135
  this.analyticsDashboard = new AnalyticsDashboard(request);
@@ -9127,9 +9146,8 @@ var CheckoutSession = class {
9127
9146
  *
9128
9147
  * Deliberately unauthenticated: a `pay_` link bootstraps before any
9129
9148
  * credential exists, so no credential header is ever attached (caller
9130
- * extras are still stripped of credentials). The response is a large
9131
- * discriminated union owned by the consuming checkout, which keeps its
9132
- * own types and runtime gates — hence the loose return type.
9149
+ * extras are still stripped of credentials). Core fields and the collection
9150
+ * policy are typed; provider-specific fields remain available as unknown.
9133
9151
  *
9134
9152
  * `theme` (a named checkout variant) and `country` are the route's declared
9135
9153
  * query parameters. `country` is a manual override of the buyer country the
@@ -10186,4 +10204,4 @@ export {
10186
10204
  decodeNativePanes,
10187
10205
  encodeNativePanes
10188
10206
  };
10189
- //# sourceMappingURL=chunk-ZBNUOFNR.js.map
10207
+ //# sourceMappingURL=chunk-AI4BVO55.js.map