feature-libs/checkout/core/connectors/cost-center/checkout-cost-center.adapter.ts
Methods |
|
| Abstract setCostCenter | ||||||||||||||||
setCostCenter(userId: string, cartId: string, costCenterId: string)
|
||||||||||||||||
|
Abstract method used to set cost center to cart
Parameters :
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>;
}