@@ -3,18 +3,13 @@ import {
33 ResolveAccount ,
44 AccountResolved ,
55 ValidateAccount ,
6- AccountVerified ,
7- BinResolved ,
6+ AccountVerifiedResponse ,
7+ BinResolvedResponse ,
88} from './interface' ;
9-
10- interface BadRequest {
11- status : boolean ;
12- message : string ;
13- data : null ;
14- }
9+ import { BadRequest } from '../interface' ;
1510
1611/**
17- * # Verification
12+ * ## Verification
1813 * The Verification API allows you perform KYC processes.
1914 */
2015export class Verification {
@@ -24,7 +19,7 @@ export class Verification {
2419 }
2520
2621 /**
27- * # Resolve Account
22+ * #### Resolve Account
2823 * Confirm an account belongs to the right customer
2924 * @param {ResolveAccount } data **Query Param**
3025 */
@@ -35,24 +30,24 @@ export class Verification {
3530 }
3631
3732 /**
38- * # Validate Account
33+ * #### Validate Account
3934 * Confirm the authenticity of a customer's account number
4035 * before sending money
4136 * @param {ValidateAccount } data **Data Param**
4237 */
4338 async validateAccount (
4439 data : ValidateAccount ,
45- ) : Promise < AccountVerified | BadRequest > {
40+ ) : Promise < AccountVerifiedResponse | BadRequest > {
4641 return await this . http . post ( '/bank/validate' , JSON . stringify ( data ) ) ;
4742 }
4843
4944 /**
50- * # Resolve Card BIN
45+ * #### Resolve Card BIN
5146 * Get more information about a customer's card
5247 * using the first 6 characters of the card
5348 * @param {string } bin **Path Param**
5449 */
55- async resolveCard ( bin : number ) : Promise < BinResolved | BadRequest > {
50+ async resolveCard ( bin : number ) : Promise < BinResolvedResponse | BadRequest > {
5651 return await this . http . get ( `/decision/bin/${ bin } ` ) ;
5752 }
5853}
0 commit comments