UNPKG

@muhammedaksam/sipay-node

Version:

Node.js TypeScript SDK for Sipay payment gateway

28 lines 1.03 kB
import { SipayResource } from './base'; import { SipayApiResponse, RequestOptions, CashoutResponse } from '../types'; export interface CashoutToBankRequest { merchant_key: string; hash_key: string; invoice_id: string; cashout_type: number; cashout_data: Array<{ unique_id: string; name_surname: string; iban: string; name_of_bank?: string; amount: number; currency: string; id_tc_kn: string; gsm_number: string; description?: string; }>; } export declare class Cashout extends SipayResource { /** * Initiate a cashout to bank account * Note: This endpoint requires Bearer token authentication and uses a different request structure * Hash generation format is not documented in the API spec - requires investigation */ toBank(cashoutData: Omit<CashoutToBankRequest, 'merchant_key' | 'hash_key'>, options?: RequestOptions): Promise<SipayApiResponse<CashoutResponse>>; } //# sourceMappingURL=cashout.d.ts.map