Home > @vsf-enterprise/sap-commerce-webservices-sdk > ProductsApiFactory

ProductsApiFactory variable

ProductsApi - factory interface

Signature:

ProductsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
    countProductStockByLocation(baseSiteId: string, productCode: string, latitude?: number, location?: string, longitude?: number, options?: any): AxiosPromise<void>;
    countProducts(baseSiteId: string, query?: string, options?: any): AxiosPromise<void>;
    createProductReview(baseSiteId: string, productCode: string, review: Review, fields?: string, options?: any): AxiosPromise<Review>;
    getExpressUpdateProducts(baseSiteId: string, timestamp: string, catalog?: string, fields?: string, options?: any): AxiosPromise<ProductExpressUpdateElementList>;
    getLocationProductStock(baseSiteId: string, productCode: string, currentPage?: number, fields?: string, latitude?: number, location?: string, longitude?: number, pageSize?: number, options?: any): AxiosPromise<StoreFinderStockSearchPage>;
    getProduct(baseSiteId: string, productCode: string, fields?: string, options?: any): AxiosPromise<Product>;
    getProductReferences(baseSiteId: string, productCode: string, fields?: string, pageSize?: number, referenceType?: string, options?: any): AxiosPromise<ProductReferenceList>;
    getProductReviews(baseSiteId: string, productCode: string, fields?: string, maxCount?: number, options?: any): AxiosPromise<ReviewList>;
    getProducts(baseSiteId: string, currentPage?: number, fields?: string, pageSize?: number, query?: string, searchQueryContext?: string, sort?: string, options?: any): AxiosPromise<ProductSearchPage>;
    getStoreProductStock(baseSiteId: string, productCode: string, storeName: string, fields?: string, options?: any): AxiosPromise<Stock>;
    getSuggestions(baseSiteId: string, term: string, fields?: string, max?: number, options?: any): AxiosPromise<SuggestionList>;
}