@delopay/sdk 0.95.0 → 0.97.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 {
@@ -3217,6 +3259,33 @@ var Analytics = class {
3217
3259
  query: params
3218
3260
  });
3219
3261
  }
3262
+ /**
3263
+ * Device analytics over the canonical client-context observation per
3264
+ * payment (browser/platform families, device classes and models, checkout
3265
+ * channel mix, time-to-pay), pinned server-side to your own merchant and
3266
+ * drillable via `project_id` / `shop_id` exactly like `scope`. Gated on the
3267
+ * client-context optimisation-use switch: when it is off the server answers
3268
+ * 200 with `enabled: false` and a caveat naming the switch.
3269
+ * `GET /analytics/devices`
3270
+ */
3271
+ async devices(params) {
3272
+ return this.request("GET", "/analytics/devices", {
3273
+ query: params
3274
+ });
3275
+ }
3276
+ /**
3277
+ * Geo analytics over the canonical client-context observation per payment:
3278
+ * country totals, city bubbles (IP mode), buyer languages, buyer-local
3279
+ * purchase hours and the IP-vs-billing mismatch share. `mode` selects the
3280
+ * location claim (`ip` default, `billing`); the two are never coalesced.
3281
+ * Same drill, window and gating contract as `devices`.
3282
+ * `GET /analytics/geo`
3283
+ */
3284
+ async geo(params) {
3285
+ return this.request("GET", "/analytics/geo", {
3286
+ query: params
3287
+ });
3288
+ }
3220
3289
  /** Global search. `POST /analytics/search` */
3221
3290
  async search(params) {
3222
3291
  return this.request("POST", "/analytics/search", { body: params });
@@ -6033,4 +6102,4 @@ export {
6033
6102
  focusedCheckoutUrl,
6034
6103
  CHECKOUT_EVENT_KINDS
6035
6104
  };
6036
- //# sourceMappingURL=chunk-6BVLBNEZ.js.map
6105
+ //# sourceMappingURL=chunk-JBBUTXXY.js.map