easypay-nestjs
Version:
easypay for iranian payment gateways
22 lines (21 loc) • 1.5 kB
TypeScript
import { ZibalRequestOptions, ZibalRequestPaymentOptions, ZibalRequestResponse, ZibalRequestResponseExtraData } from "../request/zibal.request";
import { BasicDriver } from "../class/driver";
import { ZibalVerifyOptions, ZibalVerifyPaymentOptions, ZibalVerifyPaymentResponse, ZibalVerifyPaymentResponseExtraData } from "../verify/zibal.verify";
import { UrlService } from "./url.service";
import { ZibalInquiryPaymentOptions, ZibalInquiryResponse, ZibalInquiryResponseExtraData } from "inquiry/zibal.inquiry";
import { ZibalInquiryOptions } from "inquiry/zibal.inquiry";
import { BaseRequestResponse } from "request/request";
import { BaseVerifyResponse } from "verify/verify";
import { BaseInquiryResponse } from "inquiry/inquiry";
export declare class ZibalService extends BasicDriver {
private readonly urlService;
constructor(urlService: UrlService);
SANDBOX_URL: string;
PRODUCTION_URL: string;
getRequestBody(options: ZibalRequestOptions): ZibalRequestPaymentOptions;
getRequestResponse(response: ZibalRequestResponse, sandbox: boolean): BaseRequestResponse<ZibalRequestResponseExtraData>;
getVerifyBody(options: ZibalVerifyOptions): ZibalVerifyPaymentOptions;
getVerifyResponse(response: ZibalVerifyPaymentResponse): BaseVerifyResponse<ZibalVerifyPaymentResponseExtraData>;
getInquiryBody(options: ZibalInquiryOptions): ZibalInquiryPaymentOptions;
getInquiryResponse(response: ZibalInquiryResponse): BaseInquiryResponse<ZibalInquiryResponseExtraData>;
}