File

feature-libs/checkout/core/connectors/cost-center/checkout-cost-center.adapter.ts

Index

Methods

Methods

Abstract setCostCenter
setCostCenter(userId: string, cartId: string, costCenterId: string)

Abstract method used to set cost center to cart

Parameters :
Name Type Optional Description
userId string No

: user id

cartId string No

: cart id

costCenterId string No

: cost center id

Returns : Observable<Cart>
import { Cart } from '@spartacus/core';
import { Observable } from 'rxjs';

export abstract class CheckoutCostCenterAdapter {
  /**
   * Abstract method used to set cost center to cart
   *
   * @param userId: user id
   * @param cartId: cart id
   * @param costCenterId: cost center id
   */
  abstract setCostCenter(
    userId: string,
    cartId: string,
    costCenterId: string
  ): Observable<Cart>;
}

result-matching ""

    No results matching ""