2026-06-07 21:51:32 -07:00
|
|
|
import type { HybxClient } from './HybxClient';
|
|
|
|
|
import type { HybxPaymentRequest, HybxPaymentResponse, HybxSettlementEvent, HybxWebhookPayload } from './types';
|
|
|
|
|
import { type HybxConfig } from './config';
|
|
|
|
|
/**
|
2026-06-18 00:11:33 -07:00
|
|
|
* HTTP HYBX client — uses api-fineract-unified spec (Volume 20).
|
|
|
|
|
* Production allowed when HYBX_UNIFIED_API_OK=1 and unified manifest exists.
|
2026-06-07 21:51:32 -07:00
|
|
|
*/
|
|
|
|
|
export declare class HttpHybxClient implements HybxClient {
|
|
|
|
|
readonly environment: string;
|
|
|
|
|
private readonly config;
|
|
|
|
|
constructor(options?: {
|
|
|
|
|
config?: HybxConfig;
|
|
|
|
|
testMode?: boolean;
|
2026-06-18 00:11:33 -07:00
|
|
|
allowProduction?: boolean;
|
2026-06-07 21:51:32 -07:00
|
|
|
});
|
|
|
|
|
private postJson;
|
|
|
|
|
initiatePayment(request: HybxPaymentRequest): Promise<HybxPaymentResponse>;
|
|
|
|
|
getPaymentStatus(paymentId: string): Promise<HybxPaymentResponse>;
|
|
|
|
|
listSettlementEvents(since?: string): Promise<HybxSettlementEvent[]>;
|
|
|
|
|
parseWebhookPayload(body: string): HybxWebhookPayload;
|
|
|
|
|
}
|