UNPKG

@apihawk/billia-sdk

Version:

The ApiHawk Billia SDK

32 lines 1.4 kB
import { BilliaSDKServiceBase } from '../lib/billia-sdk-service-base'; import { IBilliaOAuthSession, IPaymentGatewayRedirect } from '../types'; import { IRestPaginationQuery } from '../types/common'; import { IWalletAddFundsParams, IWalletResponse, IWalletTransactionResponse } from './billia-sdk-wallet.types'; export declare class BilliaSDKWallet extends BilliaSDKServiceBase { /** * Gets the financial status for the user (balance and credit). * * @param session - user session */ getAccountFunds(session: IBilliaOAuthSession): Promise<IWalletResponse>; /** * Gets the transaction history of the user with pagination. * * @param session - user session * @param query - query options */ getTransactionHistory(session: IBilliaOAuthSession, query?: IRestPaginationQuery): Promise<import("../types").IRestPaginatedResource<IWalletTransactionResponse>>; /** * Adds funds to a user wallet. * The amount will be added after a successful payment. * * @param session - user session * @param params - amount and payment method * * @returns * URL where the customer should be redirected * in order to complete the payment. */ addAccountFunds(session: IBilliaOAuthSession, params: IWalletAddFundsParams): Promise<IPaymentGatewayRedirect>; } //# sourceMappingURL=billia-sdk-wallet.d.ts.map