@nkhind/vivawallet-sdk
Version:
Non-Official VivaWallet API SDK
12 lines (11 loc) • 671 B
TypeScript
import { MethodReturn } from '../types/Methods.types';
import { SourceCodeDatas } from '../types/VivaSource.types';
import { VivawalletAPIInit } from '../types/Vivawallet.types';
import { VivaAuth } from '../vivabases/VivaAuth.class';
declare class VivaSourceCode extends VivaAuth {
constructor(datas: VivawalletAPIInit);
/** ------------------ SOURCE CODE ------------------ */
/** Set the Viva Wallet payment source (needed for Transaction integrations), return `true` if setup is OK, `false` if the payment already exist or on error */
setVivawalletSource(data: SourceCodeDatas): MethodReturn<void, 'sourcecodeexist'>;
}
export default VivaSourceCode;