Home > widget-integration > PredictiveBundleAPI
PredictiveBundleAPI class
Fetches predictive bundle data and applies shop-specific request enrichment.
Override request-building methods to add custom segmentation, localization, or analytics parameters for Technical Support customizations.
Signature:
export declare class PredictiveBundleAPI extends BoostAPI
Extends: BoostAPI
Example
window.boostWidgetIntegration.extend('PredictiveBundleAPI', (PredictiveBundleAPI) => {
return class extends PredictiveBundleAPI {
buildBundleQueryParams(params) {
const enhanced = super.buildBundleQueryParams(params);
return { ...enhanced, campaign_id: window.currentCampaignId };
}
};
});
Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
(constructor)(platformLoader, appService, b2bService, shopifyMarketHelper) |
Constructs a new instance of the |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
| |||
|
| |||
|
| |||
|
|
ShopifyMarketHelper |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
|
Builds the request parameters sent to the predictive bundle endpoint. | |
|
Loads predictive bundles for a product. |