UNPKG

paystack-sdk

Version:
32 lines (31 loc) 1.14 kB
import { Axios } from 'axios'; import { ResolveAccount, AccountResolved, ValidateAccount, AccountVerifiedResponse, BinResolvedResponse } from './interface'; import { BadRequest } from '../interface'; /** * ## Verification * The Verification API allows you perform KYC processes. */ export declare class Verification { private http; constructor(http: Axios); /** * #### Resolve Account * Confirm an account belongs to the right customer * @param {ResolveAccount} data **Query Param** */ resolveAccount(data: ResolveAccount): Promise<AccountResolved | BadRequest>; /** * #### Validate Account * Confirm the authenticity of a customer's account number * before sending money * @param {ValidateAccount} data **Data Param** */ validateAccount(data: ValidateAccount): Promise<AccountVerifiedResponse | BadRequest>; /** * #### Resolve Card BIN * Get more information about a customer's card * using the first 6 characters of the card * @param {string} bin **Path Param** */ resolveCard(bin: number): Promise<BinResolvedResponse | BadRequest>; }