@spartacus/order
Version:
Order feature library for Spartacus
18 lines (17 loc) • 1.3 kB
TypeScript
import { HttpClient } from '@angular/common/http';
import { ConverterService, OccEndpointsService, OrderHistoryList, ReplenishmentOrder, ReplenishmentOrderList } from '@spartacus/core';
import { ReplenishmentOrderAdapter } from '@spartacus/order/core';
import { Observable } from 'rxjs';
import * as i0 from "@angular/core";
export declare class OccReplenishmentOrderAdapter implements ReplenishmentOrderAdapter {
protected http: HttpClient;
protected occEndpoints: OccEndpointsService;
protected converter: ConverterService;
constructor(http: HttpClient, occEndpoints: OccEndpointsService, converter: ConverterService);
load(userId: string, replenishmentOrderCode: string): Observable<ReplenishmentOrder>;
loadReplenishmentDetailsHistory(userId: string, replenishmentOrderCode: string, pageSize?: number, currentPage?: number, sort?: string): Observable<OrderHistoryList>;
cancelReplenishmentOrder(userId: string, replenishmentOrderCode: string): Observable<ReplenishmentOrder>;
loadHistory(userId: string, pageSize?: number, currentPage?: number, sort?: string): Observable<ReplenishmentOrderList>;
static ɵfac: i0.ɵɵFactoryDeclaration<OccReplenishmentOrderAdapter, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<OccReplenishmentOrderAdapter>;
}