UNPKG

@spartacus/checkout

Version:

Checkout feature library for Spartacus

34 lines (33 loc) 1.05 kB
import { PaymentType } from '@spartacus/core'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; export declare abstract class PaymentTypeFacade { /** * Get payment types */ abstract getPaymentTypes(): Observable<PaymentType[]>; /** * Load the supported payment types */ abstract loadPaymentTypes(): void; /** * Set payment type to cart * @param typeCode * @param poNumber : purchase order number */ abstract setPaymentType(typeCode: string, poNumber?: string): void; /** * Get the selected payment type */ abstract getSelectedPaymentType(): Observable<string | undefined>; /** * Get whether the selected payment type is "ACCOUNT" payment */ abstract isAccountPayment(): Observable<boolean>; /** * Get PO Number */ abstract getPoNumber(): Observable<string | undefined>; static ɵfac: i0.ɵɵFactoryDeclaration<PaymentTypeFacade, never>; static ɵprov: i0.ɵɵInjectableDeclaration<PaymentTypeFacade>; }