feature-libs/checkout/core/connectors/replenishment-order/checkout-replenishment-order.adapter.ts
Methods |
|
| Abstract scheduleReplenishmentOrder | ||||||||||||||||||||
scheduleReplenishmentOrder(cartId: string, scheduleReplenishmentForm: ScheduleReplenishmentForm, termsChecked: boolean, userId: string)
|
||||||||||||||||||||
|
Abstract method used to schedule a replenishment order.
Parameters :
Returns :
Observable<ReplenishmentOrder>
|
import { ReplenishmentOrder, ScheduleReplenishmentForm } from '@spartacus/core';
import { Observable } from 'rxjs';
export abstract class CheckoutReplenishmentOrderAdapter {
/**
* Abstract method used to schedule a replenishment order.
*
* @param cartId The `cartId` for cart used for scheduling a replenishment order
* @param scheduleReplenishmentForm The `object` that contains the form data for replenishment
* @param termsChecked The `boolean value` whether the terms were accepted or not
* @param userId The `userId` for given user
*/
abstract scheduleReplenishmentOrder(
cartId: string,
scheduleReplenishmentForm: ScheduleReplenishmentForm,
termsChecked: boolean,
userId: string
): Observable<ReplenishmentOrder>;
}