UNPKG

ngx-pesapal

Version:

Angular schematics lib for abstracting Pesapal APIs

43 lines (42 loc) 1.9 kB
import { IRecurringPaymentsResponse, ISubmitOrderResponse, ITokenResponse, ITransactionStatusResponse } from '../types'; import { BehaviorSubject } from 'rxjs'; import * as i0 from "@angular/core"; export declare class StoreService { /** * BehaviorSubject holding the authentication token response. * It stores the received authentication token response or null if no response is available. * * This BehaviorSubject is used to track and provide the latest authentication token response. * * @publicApi */ authenticationResponseBs: BehaviorSubject<ITokenResponse | null>; /** * BehaviorSubject for storing the response after submitting an order request. * It holds the received order submission response or null if no response is available. * * This BehaviorSubject is employed to maintain and distribute the most recent order submission response. * * @publicApi */ submitOrderResponseBs: BehaviorSubject<ISubmitOrderResponse | null>; /** * BehaviorSubject for storing the response related to the transaction status. * It holds the received transaction status response or null if no response is available. * * This BehaviorSubject is utilized to keep track of and distribute the most recent transaction status response. * It allows components or services to subscribe to changes in transaction status information. * * @publicApi */ transactionStatusResponseBs: BehaviorSubject<ITransactionStatusResponse | null>; /** * BehaviorSubject for storing the response related to the recurring request. * It holds the received response or null if no response is available. * * @publicApi */ refundsResponseBs: BehaviorSubject<IRecurringPaymentsResponse | null>; static ɵfac: i0.ɵɵFactoryDeclaration<StoreService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<StoreService>; }