/** * 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. */ type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; type HTTPHeaders = { [key: string]: string; }; type HTTPBody = any; type HTTPQuery = { [key: string]: string | number | null | boolean | Array | HTTPQuery; }; interface Request { path: string; method: HTTPMethod; headers?: HTTPHeaders; body?: HTTPBody; query?: HTTPQuery; } /** * This is the base class for all generated API classes. */ declare class BaseAPI { readonly apiKey: string; constructor(apiKey: string); protected request(params: Request): Promise; private makeRequest; private parseQueryParams; } /** * 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. */ /** * * @export * @interface Accepted */ interface Accepted { /** * * @type {boolean} * @memberof Accepted */ status?: boolean; /** * * @type {string} * @memberof Accepted */ message?: string; } /** * 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. */ /** * * @export * @interface Bank */ interface Bank { /** * Customer's bank code * @type {string} * @memberof Bank */ code?: string; /** * Customer's account number * @type {string} * @memberof Bank */ accountNumber?: string; } /** * 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. */ /** * * @export * @interface EFT */ interface EFT { /** * The EFT provider * @type {string} * @memberof EFT */ provider?: string; } /** * 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. */ /** * * @export * @interface MobileMoney */ interface MobileMoney { /** * Customer's phone number * @type {string} * @memberof MobileMoney */ phone?: string; /** * The telco provider of customer's phone number. This can be fetched from the List Bank endpoint * @type {string} * @memberof MobileMoney */ provider?: string; } /** * 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. */ /** * * @export * @interface Response */ interface Response$1 { /** * * @type {boolean} * @memberof Response */ status?: boolean; /** * * @type {string} * @memberof Response */ message?: string; /** * * @type {object} * @memberof Response */ data?: object; } /** * 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. */ /** * * @export * @interface SplitSubaccounts */ interface SplitSubaccounts { /** * Subaccount code of the customer or partner * @type {string} * @memberof SplitSubaccounts */ subaccount?: string; /** * The percentage or flat quota of the customer or partner * @type {string} * @memberof SplitSubaccounts */ share?: string; } /** * 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. */ /** * * @export * @interface TransferInitiate */ interface TransferInitiate { /** * Where should we transfer from? Only balance is allowed for now * @type {string} * @memberof TransferInitiate */ source: string; /** * Amount to transfer in kobo if currency is NGN and pesewas if currency is GHS. * @type {string} * @memberof TransferInitiate */ amount: string; /** * The transfer recipient's code * @type {string} * @memberof TransferInitiate */ recipient: string; /** * The reason or narration for the transfer. * @type {string} * @memberof TransferInitiate */ reason?: string; /** * Specify the currency of the transfer. Defaults to NGN. * @type {string} * @memberof TransferInitiate */ currency?: string; /** * If specified, the field should be a unique identifier (in lowercase) for the object. * Only -,_ and alphanumeric characters are allowed. * @type {string} * @memberof TransferInitiate */ reference?: string; } /** * 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. */ /** * * @export * @interface TransferRecipientCreate */ interface TransferRecipientCreate { /** * Recipient Type (Only nuban at this time) * @type {string} * @memberof TransferRecipientCreate */ type: string; /** * Recipient's name * @type {string} * @memberof TransferRecipientCreate */ name: string; /** * Recipient's bank account number * @type {string} * @memberof TransferRecipientCreate */ accountNumber: string; /** * Recipient's bank code. You can get the list of Bank Codes by calling the List Banks endpoint * @type {string} * @memberof TransferRecipientCreate */ bankCode: string; /** * A description for this recipient * @type {string} * @memberof TransferRecipientCreate */ description?: string; /** * Currency for the account receiving the transfer * @type {string} * @memberof TransferRecipientCreate */ currency?: string; /** * An authorization code from a previous transaction * @type {string} * @memberof TransferRecipientCreate */ authorizationCode?: string; /** * Stringified JSON object of custom data * @type {string} * @memberof TransferRecipientCreate */ metadata?: string; } /** * 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. */ /** * * @export * @interface USSD */ interface USSD { /** * The three-digit USSD code. One of, 737, 919, 822, 966 * @type {string} * @memberof USSD */ type?: string; } /** * 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. */ interface LedgerRequest { perPage?: number; page?: number; from?: Date; to?: Date; } /** * */ declare class Balance extends BaseAPI { /** * You can only transfer from what you have * Fetch Balance */ fetch(): Promise; /** * Balance Ledger */ ledger(requestParameters: LedgerRequest): Promise; } /** * 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. */ interface ChargesRequest { code: string; } interface FetchRequest$f { code: string; } interface ListRequest$e { perPage?: number; page?: number; from?: Date; to?: Date; } interface PauseRequest { code: string; } interface ResumeRequest { code: string; } /** * */ declare class BulkCharge extends BaseAPI { /** * Fetch Charges in a Batch */ charges(requestParameters: ChargesRequest): Promise; /** * Fetch Bulk Charge Batch */ fetch(requestParameters: FetchRequest$f): Promise; /** * Initiate Bulk Charge */ initiate(): Promise; /** * List Bulk Charge Batches */ list(requestParameters: ListRequest$e): Promise; /** * Pause Bulk Charge Batch */ pause(requestParameters: PauseRequest): Promise; /** * Resume Bulk Charge Batch */ resume(requestParameters: ResumeRequest): Promise; } /** * 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. */ interface CheckRequest { reference: string; } interface CreateRequest$b { email?: string; amount?: string; authorization_code?: string; pin?: string; reference?: string; birthday?: Date; device_id?: string; metadata?: string; bank?: Bank; mobile_money?: MobileMoney; ussd?: USSD; eft?: EFT; } interface SubmitAddressRequest { address: string; city: string; state: string; zipcode: string; reference: string; } interface SubmitBirthdayRequest { birthday: string; reference: string; } interface SubmitOtpRequest { otp: string; reference: string; } interface SubmitPhoneRequest { phone: string; reference: string; } interface SubmitPinRequest { pin: string; reference: string; } /** * */ declare class Charge extends BaseAPI { /** * Check pending charge */ check(requestParameters: CheckRequest): Promise; /** * Create Charge */ create(requestParameters: CreateRequest$b): Promise; /** * Submit Address */ submitAddress(requestParameters: SubmitAddressRequest): Promise; /** * Submit Birthday */ submitBirthday(requestParameters: SubmitBirthdayRequest): Promise; /** * Submit OTP */ submitOtp(requestParameters: SubmitOtpRequest): Promise; /** * Submit Phone */ submitPhone(requestParameters: SubmitPhoneRequest): Promise; /** * Submit PIN */ submitPin(requestParameters: SubmitPinRequest): Promise; } /** * 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. */ interface CreateRequest$a { email: string; first_name?: string; last_name?: string; phone?: string; metadata?: string; } interface DeactivateAuthorizationRequest { authorization_code: string; } interface FetchRequest$e { code: string; } interface ListRequest$d { use_cursor?: boolean; next?: string; previous?: string; from?: string; to?: string; perPage?: string; page?: string; } interface RiskActionRequest { customer: string; risk_action?: string; } interface UpdateRequest$7 { code: string; first_name?: string; last_name?: string; phone?: string; metadata?: string; } interface ValidateRequest { code: string; first_name: string; last_name: string; type: string; country: string; bvn: string; bank_code: string; account_number: string; value?: string; } /** * */ declare class Customer extends BaseAPI { /** * Create Customer */ create(requestParameters: CreateRequest$a): Promise; /** * Deactivate a customer\'s card * Deactivate Authorization */ deactivateAuthorization(requestParameters: DeactivateAuthorizationRequest): Promise; /** * Fetch Customer */ fetch(requestParameters: FetchRequest$e): Promise; /** * List customers on your integration * List Customers */ list(requestParameters: ListRequest$d): Promise; /** * Set customer\'s risk action by whitelisting or blacklisting the customer * White/blacklist Customer */ riskAction(requestParameters: RiskActionRequest): Promise; /** * Update Customer */ update(requestParameters: UpdateRequest$7): Promise; /** * Validate a customer\'s identity * Validate Customer */ validate(requestParameters: ValidateRequest): Promise; } /** * 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. */ interface AddSplitRequest { account_number: string; subaccount?: string; split_code?: string; } interface CreateRequest$9 { customer: string; preferred_bank?: string; subaccount?: string; split_code?: string; } interface DeactivateRequest { account_id: string; } interface FetchRequest$d { account_id: string; } interface ListRequest$c { account_number?: string; customer?: string; active?: boolean; currency?: string; provider_slug?: string; bank_id?: string; perPage?: string; page?: string; } interface RemoveSplitRequest { account_number: string; subaccount?: string; split_code?: string; } /** * */ declare class DedicatedVirtualAccount extends BaseAPI { /** * Split Dedicated Account Transaction */ addSplit(requestParameters: AddSplitRequest): Promise; /** * Fetch Bank Providers */ availableProviders(): Promise; /** * Create Dedicated Account */ create(requestParameters: CreateRequest$9): Promise; /** * Deactivate Dedicated Account */ deactivate(requestParameters: DeactivateRequest): Promise; /** * Fetch Dedicated Account */ fetch(requestParameters: FetchRequest$d): Promise; /** * List Dedicated Accounts */ list(requestParameters: ListRequest$c): Promise; /** * Remove Split from Dedicated Account */ removeSplit(requestParameters: RemoveSplitRequest): Promise; } /** * 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. */ interface DownloadRequest$2 { perPage?: number; page?: number; status?: string; from?: Date; to?: Date; } interface EvidenceRequest { id: string; customer_email: string; customer_name: string; customer_phone: string; service_details: string; delivery_address?: string; delivery_date?: Date; } interface FetchRequest$c { id: string; } interface ListRequest$b { perPage?: number; page?: number; status?: string; transaction?: string; from?: Date; to?: Date; } interface ResolveRequest { id: string; resolution: string; message: string; refund_amount: string; uploaded_filename: string; evidence?: number; } interface TransactionRequest$1 { id: string; } interface UpdateRequest$6 { id: string; refund_amount: string; uploaded_filename?: string; } interface UploadUrlRequest { id: string; } /** * */ declare class Dispute extends BaseAPI { /** * Export Disputes */ download(requestParameters: DownloadRequest$2): Promise; /** * Add Evidence */ evidence(requestParameters: EvidenceRequest): Promise; /** * Fetch Dispute */ fetch(requestParameters: FetchRequest$c): Promise; /** * List Disputes */ list(requestParameters: ListRequest$b): Promise; /** * Resolve a Dispute */ resolve(requestParameters: ResolveRequest): Promise; /** * List Transaction Disputes */ transaction(requestParameters: TransactionRequest$1): Promise; /** * Update Dispute */ update(requestParameters: UpdateRequest$6): Promise; /** * Get Upload URL */ uploadUrl(requestParameters: UploadUrlRequest): Promise; } /** * 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. */ interface UpdatePaymentSessionTimeoutRequest { body?: object; } /** * */ declare class Integration extends BaseAPI { /** * Fetch Payment Session Timeout */ fetchPaymentSessionTimeout(): Promise; /** * Update Payment Session Timeout */ updatePaymentSessionTimeout(requestParameters: UpdatePaymentSessionTimeoutRequest): Promise; } /** * 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. */ interface AddProductsRequest { id: string; product: Array; } interface CheckSlugAvailabilityRequest { slug: string; } interface CreateRequest$8 { name: string; description?: string; amount?: number; slug?: string; metadata?: string; redirect_url?: string; custom_fields?: Array; } interface FetchRequest$b { id: string; } interface ListRequest$a { perPage?: number; page?: number; from?: Date; to?: Date; } interface UpdateRequest$5 { id: string; name?: string; description?: string; amount?: number; active?: boolean; } /** * */ declare class Page extends BaseAPI { /** * Add Products */ addProducts(requestParameters: AddProductsRequest): Promise; /** * Check Slug Availability */ checkSlugAvailability(requestParameters: CheckSlugAvailabilityRequest): Promise; /** * Create Page */ create(requestParameters: CreateRequest$8): Promise; /** * Fetch Page */ fetch(requestParameters: FetchRequest$b): Promise; /** * List Pages */ list(requestParameters: ListRequest$a): Promise; /** * Update Page */ update(requestParameters: UpdateRequest$5): Promise; } /** * 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. */ interface ArchiveRequest { id: string; } interface CreateRequest$7 { customer: string; amount?: number; currency?: string; due_date?: Date; description?: string; line_items?: Array; tax?: Array; send_notification?: Array; draft?: Array; has_invoice?: Array; invoice_number?: number; split_code?: string; } interface FetchRequest$a { id: string; } interface FinalizeRequest$1 { id: string; } interface ListRequest$9 { perPage?: number; page?: number; customer?: string; status?: string; currency?: string; from?: Date; to?: Date; } interface NotifyRequest { id: string; } interface UpdateRequest$4 { id: string; customer?: string; amount?: number; currency?: string; due_date?: Date; description?: string; line_items?: Array; tax?: Array; send_notification?: Array; draft?: Array; has_invoice?: Array; invoice_number?: number; split_code?: string; } interface VerifyRequest$2 { id: string; } /** * */ declare class PaymentRequest extends BaseAPI { /** * Archive Payment Request */ archive(requestParameters: ArchiveRequest): Promise; /** * Create Payment Request */ create(requestParameters: CreateRequest$7): Promise; /** * Fetch Payment Request */ fetch(requestParameters: FetchRequest$a): Promise; /** * Finalize Payment Request */ finalize(requestParameters: FinalizeRequest$1): Promise; /** * List Payment Request */ list(requestParameters: ListRequest$9): Promise; /** * Send Notification */ notify(requestParameters: NotifyRequest): Promise; /** * Payment Request Total */ totals(): Promise; /** * Update Payment Request */ update(requestParameters: UpdateRequest$4): Promise; /** * Verify Payment Request */ verify(requestParameters: VerifyRequest$2): Promise; } /** * 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. */ interface CreateRequest$6 { name: string; amount: number; interval: string; description?: string; send_invoices?: boolean; send_sms?: boolean; currency?: string; invoice_limit?: number; } interface FetchRequest$9 { code: string; } interface ListRequest$8 { perPage?: number; page?: number; interval?: string; amount?: number; from?: Date; to?: Date; } interface UpdateRequest$3 { code: string; name?: string; amount?: number; interval?: string; description?: boolean; send_invoices?: boolean; send_sms?: boolean; currency?: string; invoice_limit?: number; } /** * */ declare class Plan extends BaseAPI { /** * Create Plan */ create(requestParameters: CreateRequest$6): Promise; /** * Fetch Plan */ fetch(requestParameters: FetchRequest$9): Promise; /** * List Plans */ list(requestParameters: ListRequest$8): Promise; /** * Update Plan */ update(requestParameters: UpdateRequest$3): Promise; } /** * 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. */ interface DeleteRequest { id: string; } interface CreateRequest$5 { name: string; description: string; price: number; currency: string; limited?: boolean; quantity?: number; } interface FetchRequest$8 { id: string; } interface ListRequest$7 { perPage?: number; page?: number; active?: boolean; from?: Date; to?: Date; } interface UpdateRequest$2 { id: string; name?: string; description?: string; price?: number; currency?: string; limited?: boolean; quantity?: number; } /** * */ declare class Product extends BaseAPI { /** * Delete Product */ _delete(requestParameters: DeleteRequest): Promise; /** * Create Product */ create(requestParameters: CreateRequest$5): Promise; /** * Fetch Product */ fetch(requestParameters: FetchRequest$8): Promise; /** * List Products */ list(requestParameters: ListRequest$7): Promise; /** * Update product */ update(requestParameters: UpdateRequest$2): Promise; } /** * 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. */ interface CreateRequest$4 { transaction: string; amount?: number; currency?: string; customer_note?: string; merchant_note?: string; } interface FetchRequest$7 { id: string; } interface ListRequest$6 { perPage?: number; page?: number; from?: Date; to?: Date; } /** * */ declare class Refund extends BaseAPI { /** * Create Refund */ create(requestParameters: CreateRequest$4): Promise; /** * Fetch Refund */ fetch(requestParameters: FetchRequest$7): Promise; /** * List Refunds */ list(requestParameters: ListRequest$6): Promise; } /** * 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. */ interface FetchRequest$6 { perPage?: number; page?: number; } interface TransactionRequest { id: string; } /** * */ declare class Settlement extends BaseAPI { /** * Fetch Settlements */ fetch(requestParameters: FetchRequest$6): Promise; /** * Settlement Transactions */ transaction(requestParameters: TransactionRequest): Promise; } /** * 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. */ interface AddSubaccountRequest { id: string; subaccount?: string; share?: string; } interface CreateRequest$3 { name: string; type: string; subaccounts: Array; currency: string; bearer_type?: string; bearer_subaccount?: string; } interface FetchRequest$5 { id: string; } interface ListRequest$5 { name?: string; active?: string; sort_by?: string; from?: string; to?: string; perPage?: string; page?: string; } interface RemoveSubaccountRequest { id: string; subaccount?: string; share?: string; } interface UpdateRequest$1 { id: string; name?: string; active?: boolean; bearer_type?: string; bearer_subaccount?: string; } /** * */ declare class Split extends BaseAPI { /** * Add Subaccount to Split */ addSubaccount(requestParameters: AddSubaccountRequest): Promise; /** * Create Split */ create(requestParameters: CreateRequest$3): Promise; /** * Fetch Split */ fetch(requestParameters: FetchRequest$5): Promise; /** * List/Search Splits */ list(requestParameters: ListRequest$5): Promise; /** * Remove Subaccount from split */ removeSubaccount(requestParameters: RemoveSubaccountRequest): Promise; /** * Update Split */ update(requestParameters: UpdateRequest$1): Promise; } /** * 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. */ interface CreateRequest$2 { business_name: string; settlement_bank: string; account_number: string; percentage_charge: number; description?: string; primary_contact_email?: string; primary_contact_name?: string; primary_contact_phone?: string; metadata?: string; } interface FetchRequest$4 { code: string; } interface ListRequest$4 { perPage?: number; page?: number; from?: Date; to?: Date; } interface UpdateRequest { code: string; business_name?: string; settlement_bank?: string; account_number?: string; active?: boolean; percentage_charge?: number; description?: string; primary_contact_email?: string; primary_contact_name?: string; primary_contact_phone?: string; metadata?: string; } /** * */ declare class Subaccount extends BaseAPI { /** * Create Subaccount */ create(requestParameters: CreateRequest$2): Promise; /** * Fetch Subaccount */ fetch(requestParameters: FetchRequest$4): Promise; /** * List Subaccounts */ list(requestParameters: ListRequest$4): Promise; /** * Update Subaccount */ update(requestParameters: UpdateRequest): Promise; } /** * 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. */ interface CreateRequest$1 { customer: string; plan: string; authorization?: string; start_date?: Date; } interface DisableRequest { code: string; token: string; } interface EnableRequest { code: string; token: string; } interface FetchRequest$3 { code: string; } interface ListRequest$3 { perPage?: number; page?: number; plan?: string; customer?: string; from?: Date; to?: Date; } interface ManageEmailRequest { code: string; } interface ManageLinkRequest { code: string; } /** * */ declare class Subscription extends BaseAPI { /** * Create Subscription */ create(requestParameters: CreateRequest$1): Promise; /** * Disable Subscription */ disable(requestParameters: DisableRequest): Promise; /** * Enable Subscription */ enable(requestParameters: EnableRequest): Promise; /** * Fetch Subscription */ fetch(requestParameters: FetchRequest$3): Promise; /** * List Subscriptions */ list(requestParameters: ListRequest$3): Promise; /** * Send Update Subscription Link */ manageEmail(requestParameters: ManageEmailRequest): Promise; /** * Generate Update Subscription Link */ manageLink(requestParameters: ManageLinkRequest): Promise; } /** * 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. */ interface ChargeAuthorizationRequest { email: string; amount: number; authorization_code: string; reference?: string; currency?: string; metadata?: string; split_code?: string; subaccount?: string; transaction_charge?: string; bearer?: string; queue?: boolean; } interface CheckAuthorizationRequest { email: string; amount: number; authorization_code?: string; currency?: string; } interface DownloadRequest$1 { perPage?: number; page?: number; from?: Date; to?: Date; } interface EventRequest { id: string; } interface FetchRequest$2 { id: string; } interface InitializeRequest { email: string; amount: number; currency?: string; reference?: string; callback_url?: string; plan?: string; invoice_limit?: number; metadata?: string; channels?: Array; split_code?: string; subaccount?: string; transaction_charge?: string; bearer?: string; } interface ListRequest$2 { perPage?: number; page?: number; from?: Date; to?: Date; } interface PartialDebitRequest { email: string; amount: number; authorization_code: string; currency: string; reference?: string; at_least?: string; } interface SessionRequest { id: string; } interface TimelineRequest { id_or_reference: string; } interface TotalsRequest { perPage?: number; page?: number; from?: Date; to?: Date; } interface VerifyRequest$1 { reference: string; } /** * */ declare class Transaction extends BaseAPI { /** * Charge Authorization */ chargeAuthorization(requestParameters: ChargeAuthorizationRequest): Promise; /** * Check Authorization */ checkAuthorization(requestParameters: CheckAuthorizationRequest): Promise; /** * Export Transactions */ download(requestParameters: DownloadRequest$1): Promise; /** * Get Transaction Event */ event(requestParameters: EventRequest): Promise; /** * Fetch a transaction to get its details * Fetch Transaction */ fetch(requestParameters: FetchRequest$2): Promise; /** * Create a new transaction * Initialize Transaction */ initialize(requestParameters: InitializeRequest): Promise; /** * List transactions that has occurred on your integration * List Transactions */ list(requestParameters: ListRequest$2): Promise; /** * Partial Debit */ partialDebit(requestParameters: PartialDebitRequest): Promise; /** * Get Transaction Session */ session(requestParameters: SessionRequest): Promise; /** * Get the details about the lifecycle of a transaction from initiation to completion * Fetch Transaction Timeline */ timeline(requestParameters: TimelineRequest): Promise; /** * Get the total amount of all transactions * Transaction Totals */ totals(requestParameters: TotalsRequest): Promise; /** * Verify a previously initiated transaction using it\'s reference * Verify Transaction */ verify(requestParameters: VerifyRequest$1): Promise; } /** * 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. */ interface BulkRequest$1 { source?: string; transfers?: Array; } interface DisableOtpFinalizeRequest { otp: string; } interface DownloadRequest { perPage?: number; page?: number; status?: string; from?: Date; to?: Date; } interface FetchRequest$1 { code: string; } interface FinalizeRequest { transfer_code: string; otp: string; } interface InitiateRequest { source: string; amount: string; recipient: string; reason?: string; currency?: string; reference?: string; } interface ListRequest$1 { perPage?: number; page?: number; status?: string; from?: Date; to?: Date; } interface ResendOtpRequest { transfer_code: string; reason: string; } interface VerifyRequest { reference: string; } /** * */ declare class Transfer extends BaseAPI { /** * Initiate Bulk Transfer */ bulk(requestParameters: BulkRequest$1): Promise; /** * Disable OTP requirement for Transfers */ disableOtp(): Promise; /** * Finalize Disabling of OTP requirement for Transfers */ disableOtpFinalize(requestParameters: DisableOtpFinalizeRequest): Promise; /** * Export Transfers */ download(requestParameters: DownloadRequest): Promise; /** * Enable OTP requirement for Transfers */ enableOtp(): Promise; /** * Fetch Transfer */ fetch(requestParameters: FetchRequest$1): Promise; /** * Finalize Transfer */ finalize(requestParameters: FinalizeRequest): Promise; /** * Initiate Transfer */ initiate(requestParameters: InitiateRequest): Promise; /** * List Transfers */ list(requestParameters: ListRequest$1): Promise; /** * Resend OTP for Transfer */ resendOtp(requestParameters: ResendOtpRequest): Promise; /** * Verify Transfer */ verify(requestParameters: VerifyRequest): Promise; } /** * 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. */ interface BulkRequest { batch: Array; } interface CreateRequest { type: string; name: string; account_number: string; bank_code: string; description?: string; currency?: string; authorization_code?: string; metadata?: string; } interface FetchRequest { code: string; } interface ListRequest { perPage?: number; page?: number; from?: Date; to?: Date; } interface TransferrecipientCodeDeleteRequest { code: string; } interface TransferrecipientCodePutRequest { code: string; name?: string; email?: string; } /** * */ declare class TransferRecipient extends BaseAPI { /** * Bulk Create Transfer Recipient */ bulk(requestParameters: BulkRequest): Promise; /** * Create Transfer Recipient */ create(requestParameters: CreateRequest): Promise; /** * Fetch Transfer recipient */ fetch(requestParameters: FetchRequest): Promise; /** * List Transfer Recipients */ list(requestParameters: ListRequest): Promise; /** * Delete Transfer Recipient */ transferrecipientCodeDelete(requestParameters: TransferrecipientCodeDeleteRequest): Promise; /** * Update Transfer recipient */ transferrecipientCodePut(requestParameters: TransferrecipientCodePutRequest): Promise; } /** * 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. */ interface AvsRequest { type?: string; country?: string; currency?: string; } interface FetchBanksRequest { country?: string; pay_with_bank_transfer?: boolean; use_cursor?: boolean; perPage?: number; next?: string; previous?: string; gateway?: string; } interface ResolveAccountNumberRequest { account_number?: number; bank_code?: number; } interface ResolveCardBinRequest { bin: string; } /** * */ declare class Verification extends BaseAPI { /** * List States (AVS) */ avs(requestParameters: AvsRequest): Promise; /** * Fetch Banks */ fetchBanks(requestParameters: FetchBanksRequest): Promise; /** * List Countries */ listCountries(): Promise; /** * Resolve Account Number */ resolveAccountNumber(requestParameters: ResolveAccountNumberRequest): Promise; /** * Resolve Card BIN */ resolveCardBin(requestParameters: ResolveCardBinRequest): Promise; } declare class Paystack { readonly balance: Balance; readonly bulkCharge: BulkCharge; readonly charge: Charge; readonly customer: Customer; readonly dedicatedVirtualAccount: DedicatedVirtualAccount; readonly dispute: Dispute; readonly integration: Integration; readonly page: Page; readonly paymentRequest: PaymentRequest; readonly plan: Plan; readonly product: Product; readonly refund: Refund; readonly settlement: Settlement; readonly split: Split; readonly subaccount: Subaccount; readonly subscription: Subscription; readonly transaction: Transaction; readonly transfer: Transfer; readonly transferRecipient: TransferRecipient; readonly verification: Verification; constructor(apiKey: string); } export { Paystack };