@delopay/sdk 0.96.0 → 0.98.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.
@@ -2090,6 +2090,7 @@ var Routing = class {
2090
2090
  this.decision = new RoutingDecisionManager(request);
2091
2091
  this.surchargeRules = new SurchargeRules(request);
2092
2092
  this.checkoutThemeRules = new CheckoutThemeRules(request);
2093
+ this.checkoutThemeConversion = new CheckoutThemeConversion(request);
2093
2094
  }
2094
2095
  /**
2095
2096
  * Create a new routing algorithm.
@@ -2402,6 +2403,47 @@ var CheckoutThemeRules = class {
2402
2403
  });
2403
2404
  }
2404
2405
  };
2406
+ var CheckoutThemeConversion = class {
2407
+ constructor(request) {
2408
+ this.request = request;
2409
+ }
2410
+ /**
2411
+ * Rendered-to-paid conversion for a shop over a window.
2412
+ *
2413
+ * `GET /routing/checkout-theme/conversion`
2414
+ *
2415
+ * Requires `CheckoutBranding` read at profile scope - the same permission
2416
+ * that governs seeing how a checkout looks.
2417
+ *
2418
+ * @param params - Window (RFC3339, `start` inclusive / `end` exclusive), the
2419
+ * shop, and the dimension to group by.
2420
+ *
2421
+ * @example Which variant wins on which device, over the last 30 days.
2422
+ * ```typescript
2423
+ * const report = await delopay.routing.checkoutThemeConversion.retrieve({
2424
+ * profile_id: 'pro_...',
2425
+ * start: '2026-07-21T00:00:00Z',
2426
+ * end: '2026-08-20T00:00:00Z',
2427
+ * segment: 'device',
2428
+ * });
2429
+ *
2430
+ * for (const c of report.comparisons) {
2431
+ * if (!c.separates) continue; // "not shown to differ" - say nothing
2432
+ * console.log(`${c.variant} on ${c.segment}: ${c.higher} converts better`);
2433
+ * }
2434
+ * ```
2435
+ */
2436
+ async retrieve(params) {
2437
+ return this.request("GET", "/routing/checkout-theme/conversion", {
2438
+ query: {
2439
+ profile_id: params.profile_id,
2440
+ start: params.start,
2441
+ end: params.end,
2442
+ segment: params.segment
2443
+ }
2444
+ });
2445
+ }
2446
+ };
2405
2447
 
2406
2448
  // src/resources/search.ts
2407
2449
  var Search = class {
@@ -6060,4 +6102,4 @@ export {
6060
6102
  focusedCheckoutUrl,
6061
6103
  CHECKOUT_EVENT_KINDS
6062
6104
  };
6063
- //# sourceMappingURL=chunk-MMDPBYRI.js.map
6105
+ //# sourceMappingURL=chunk-JBBUTXXY.js.map