@delopay/sdk 0.96.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.
- package/dist/{chunk-MMDPBYRI.js → chunk-JBBUTXXY.js} +43 -1
- package/dist/chunk-JBBUTXXY.js.map +1 -0
- package/dist/index.cjs +42 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +181 -1
- package/dist/index.d.ts +181 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +42 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +18 -17
- package/dist/chunk-MMDPBYRI.js.map +0 -1
|
@@ -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-
|
|
6105
|
+
//# sourceMappingURL=chunk-JBBUTXXY.js.map
|