UNPKG

@spartacus/checkout

Version:

Checkout feature library for Spartacus

22 lines (21 loc) 1.41 kB
import { HttpClient } from '@angular/common/http'; import { CheckoutAdapter, CheckoutDetails } from '@spartacus/checkout/core'; import { ConverterService, OccEndpointsService, Order } from '@spartacus/core'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; export declare class OccCheckoutAdapter implements CheckoutAdapter { protected http: HttpClient; protected occEndpoints: OccEndpointsService; protected converter: ConverterService; constructor(http: HttpClient, occEndpoints: OccEndpointsService, converter: ConverterService); protected getPlaceOrderEndpoint(userId: string, cartId: string, termsChecked: string): string; protected getRemoveDeliveryAddressEndpoint(userId: string, cartId: string): string; protected getClearDeliveryModeEndpoint(userId: string, cartId: string): string; protected getLoadCheckoutDetailsEndpoint(userId: string, cartId: string): string; placeOrder(userId: string, cartId: string, termsChecked: boolean): Observable<Order>; loadCheckoutDetails(userId: string, cartId: string): Observable<CheckoutDetails>; clearCheckoutDeliveryAddress(userId: string, cartId: string): Observable<any>; clearCheckoutDeliveryMode(userId: string, cartId: string): Observable<any>; static ɵfac: i0.ɵɵFactoryDeclaration<OccCheckoutAdapter, never>; static ɵprov: i0.ɵɵInjectableDeclaration<OccCheckoutAdapter>; }