UNPKG

reservease.consumer

Version:

This package allows you to create an amqplib consumer and producer.

35 lines (34 loc) 1.12 kB
import { InternalApiResponse } from './InternalApiResponse'; interface IResponsePayload { responseData: any; requestData: any; } interface IRequestPayload { amount: number; title: string; description: string; callbackUrl: string; cancellationUrl: string; returnUrl: string; logo: string; clientReference?: string; } interface IRequestPayloadV2 { amount: number; description: string; callbackUrl: string; cancellationUrl: string; returnUrl: string; clientReference?: string; customerMobileNumber?: string; } export declare class HubtelPayment { private readonly _authCredendtial; private readonly _requestPaymentUrl; private readonly _merchantAccountNumber; private Options; constructor(clientId: string, clientSecret: string, requestPaymentUrl: string, merchantAccountNumber: string); GetPaymentPayload(params: IRequestPayload): Promise<InternalApiResponse<IResponsePayload>>; GetPaymentPayloadV2(params: IRequestPayloadV2): Promise<InternalApiResponse<IResponsePayload>>; } export {};