UNPKG

@nkhind/vivawallet-sdk

Version:
203 lines (202 loc) 5.42 kB
import { VivawalletEnpointsInit } from '../types/Vivawallet.types'; declare class VivaEndpoints { static demoEndpoints: { auth: { url: string; method: string; }; webhookAuth: { url: string; method: string; }; source: { url: string; method: string; }; payment: { get: { /** * @Param `{orderCode}` */ url: string; method: string; }; create: { url: string; method: string; }; update: { /** * @Param `{orderCode}` */ url: string; method: string; }; cancel: { /** * @Param `{orderCode}` */ url: string; method: string; }; }; transaction: { get: { /** * @Param `{transactionId}` */ url: string; method: string; }; create: { /** * @Param `{transactionId}` */ url: string; method: string; }; cancel: { /** * @Param `{transactionId}` */ url: string; method: string; }; }; checkout: { /** * @Param `{orderCode}` * * --- * * Queries you can add to the url * - color=`{color}` * - paymentMethod=`{paymentMethod}` */ url: string; }; marketplace: { accounts: { get: { /** * @Param `{accountId}` */ url: string; method: string; }; create: { url: string; method: string; }; update: { /** * @Param `{accountId}` */ url: string; method: string; }; }; payment: { create: { url: string; method: string; }; }; transaction: { cancel: { /** * @Param `{transactionId}` */ url: string; method: string; }; }; transfers: { send: { url: string; method: string; }; }; }; isv: { connectedAccounts: { get: { /** * @Param `{accountId}` */ url: string; method: string; }; create: { url: string; method: string; }; }; payments: { create: { url: string; method: string; }; cancel: { /** * @Param `{orderCode}` */ url: string; method: string; }; }; webhook: { getKey: { url: string; method: string; }; create: { url: string; method: string; }; }; pos: { devices: { url: string; method: string; }; transaction: { create: { url: string; method: string; }; refund: { url: string; method: string; }; }; session: { abort: { /** * @Param `{sessionId}` */ url: string; method: string; }; }; action: { create: { url: string; method: string; }; get: { /** * @Param `{actionId}` */ url: string; method: string; }; }; }; }; }; static prodEndpoints: typeof VivaEndpoints.demoEndpoints; endpoints: typeof VivaEndpoints.demoEndpoints; constructor(datas: VivawalletEnpointsInit); } export default VivaEndpoints;