File

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

Index

Methods

Constructor

constructor(adapter: CheckoutReplenishmentOrderAdapter)
Parameters :
Name Type Optional
adapter CheckoutReplenishmentOrderAdapter No

Methods

Public scheduleReplenishmentOrder
scheduleReplenishmentOrder(cartId: string, scheduleReplenishmentForm: ScheduleReplenishmentForm, termsChecked: boolean, userId: string)
Parameters :
Name Type Optional
cartId string No
scheduleReplenishmentForm ScheduleReplenishmentForm No
termsChecked boolean No
userId string No
Returns : Observable<ReplenishmentOrder>
import { Injectable } from '@angular/core';
import { ReplenishmentOrder, ScheduleReplenishmentForm } from '@spartacus/core';
import { Observable } from 'rxjs';
import { CheckoutReplenishmentOrderAdapter } from './checkout-replenishment-order.adapter';

@Injectable()
export class CheckoutReplenishmentOrderConnector {
  constructor(protected adapter: CheckoutReplenishmentOrderAdapter) {}

  public scheduleReplenishmentOrder(
    cartId: string,
    scheduleReplenishmentForm: ScheduleReplenishmentForm,
    termsChecked: boolean,
    userId: string
  ): Observable<ReplenishmentOrder> {
    return this.adapter.scheduleReplenishmentOrder(
      cartId,
      scheduleReplenishmentForm,
      termsChecked,
      userId
    );
  }
}

result-matching ""

    No results matching ""