File

feature-libs/checkout/core/connectors/replenishment-order/checkout-replenishment-order.adapter.ts

Index

Methods

Methods

Abstract scheduleReplenishmentOrder
scheduleReplenishmentOrder(cartId: string, scheduleReplenishmentForm: ScheduleReplenishmentForm, termsChecked: boolean, userId: string)

Abstract method used to schedule a replenishment order.

Parameters :
Name Type Optional Description
cartId string No

The cartId for cart used for scheduling a replenishment order

scheduleReplenishmentForm ScheduleReplenishmentForm No

The object that contains the form data for replenishment

termsChecked boolean No

The boolean value whether the terms were accepted or not

userId string No

The userId for given user

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>;
}

result-matching ""

    No results matching ""