import { HttpClient } from '@angular/common/http' ; import { Injectable } from '@angular/core' ; import { Observable } from 'rxjs' ; import { DaffCheckoutServiceInterface , DaffOrder , } from '@daffodil/checkout' ; @ Injectable ( { providedIn : 'root' , } ) export class DaffInMemoryCheckoutService implements DaffCheckoutServiceInterface { url = '/api/checkout' ; constructor ( private http ) { } placeOrder ( cartId ) { return this . http . post < DaffOrder > ( this . url + '/placeOrder' , { cartId } ) ; } }