UNPKG

@spreeloop/orange_money

Version:
33 lines 1.65 kB
import { GetAccessTokenResponse, GetOrangeMoneyPaymentRequest, GetOrangeMoneyPaymentResponse, InitializeOrangeMoneyRequest, InitializeOrangeMoneyResponse, GetPayTokenResponse } from '../utils/request_model'; import { OrangeMoneyPaymentInterface } from '../payments'; /** * Implement the orange money fake payment. */ export declare class OrangeMoneyPaymentFake implements OrangeMoneyPaymentInterface { /** * Generates a pay token using the provided access token. * * @return {Promise<GetPayTokenResponse>} A promise that resolves to the pay token response. */ getPayToken(): Promise<GetPayTokenResponse>; /** * Generates an access token. * * @return {Promise<GetAccessTokenResponse>} the access token response */ getAccessToken(): Promise<GetAccessTokenResponse>; /** * Retrieves The orange money payment status. * @param {MobileParamsForCheckStatus} checkStatusParams the necessary parameters to get the mobile payment status. * @return {GetOrangeMoneyPaymentResponse} the response who contains the payment state. */ getOrangeMoneyPaymentStatus(checkStatusParams: GetOrangeMoneyPaymentRequest): Promise<GetOrangeMoneyPaymentResponse>; /** * Initiates the orange money payment. * @param {InitializeOrangeMoneyRequest} mobileInitParams the necessary parameters to initialize the mobile payment. * @return {InitializeOrangeMoneyResponse} the response of initialization. * **/ initializeOrangeMoneyPayment(mobileInitParams: InitializeOrangeMoneyRequest): Promise<InitializeOrangeMoneyResponse>; } //# sourceMappingURL=fake.d.ts.map