Repository navigation
Expand file tree
/
Copy pathDedicatedVirtualAccount.d.ts
More file actions
78 lines (78 loc) · 2.03 KB
/
Copy pathDedicatedVirtualAccount.d.ts
File metadata and controls
78 lines (78 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/**
* Paystack
* The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa.
*
* The version of the Paystack Node library: 1.0.0
* Contact: techsupport@paystack.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { BaseAPI } from '../runtime';
import { Response } from '../models';
export interface AddSplitRequest {
account_number: string;
subaccount?: string;
split_code?: string;
}
export interface CreateRequest {
customer: string;
preferred_bank?: string;
subaccount?: string;
split_code?: string;
}
export interface DeactivateRequest {
account_id: string;
}
export interface FetchRequest {
account_id: string;
}
export interface ListRequest {
account_number?: string;
customer?: string;
active?: boolean;
currency?: string;
provider_slug?: string;
bank_id?: string;
perPage?: string;
page?: string;
}
export interface RemoveSplitRequest {
account_number: string;
subaccount?: string;
split_code?: string;
}
/**
*
*/
export declare class DedicatedVirtualAccount extends BaseAPI {
/**
* Split Dedicated Account Transaction
*/
addSplit(requestParameters: AddSplitRequest): Promise<Response>;
/**
* Fetch Bank Providers
*/
availableProviders(): Promise<Response>;
/**
* Create Dedicated Account
*/
create(requestParameters: CreateRequest): Promise<Response>;
/**
* Deactivate Dedicated Account
*/
deactivate(requestParameters: DeactivateRequest): Promise<Response>;
/**
* Fetch Dedicated Account
*/
fetch(requestParameters: FetchRequest): Promise<Response>;
/**
* List Dedicated Accounts
*/
list(requestParameters: ListRequest): Promise<Response>;
/**
* Remove Split from Dedicated Account
*/
removeSplit(requestParameters: RemoveSplitRequest): Promise<Response>;
}