0.2.4 • Published 6 months ago
@types/zarinpal-checkout v0.2.4
Installation
npm install --save @types/zarinpal-checkout
Summary
This package contains type definitions for zarinpal-checkout (https://github.com/siamak/zarinpal-checkout).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/zarinpal-checkout.
index.d.ts
// Type definitions for zarinpal-checkout 0.2
// Project: https://github.com/siamak/zarinpal-checkout
// Definitions by: Omid Seyfan <https://github.com/iamomiid>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace ZarinPal {
interface Authority {
Authority: string;
Amount: string;
Channel: string;
Date: string;
}
interface PaymentRequestInput {
Amount: number;
CallbackURL: string;
Description: string;
Email?: string | undefined;
Mobile?: string | undefined;
}
interface PaymentRequestOutput {
status: number;
authority: string;
url: string;
}
interface PaymentVerificationInput {
Amount: number;
Authority: string;
}
interface PaymentVerificationOutput {
status: number;
RefID: number;
}
interface UnverifiedTransactionsOutput {
status: number;
authorities: Authority[];
}
interface RefreshAuthorityInput {
Expire: number;
Authority: string;
}
interface RefreshAuthorityOutput {
status: number;
}
interface ZarinPalInstance {
PaymentRequest(input: PaymentRequestInput): Promise<PaymentRequestOutput>;
PaymentVerification(input: PaymentVerificationInput): Promise<PaymentVerificationOutput>;
UnverifiedTransactions(): Promise<UnverifiedTransactionsOutput>;
RefreshAuthority(input: RefreshAuthorityInput): Promise<RefreshAuthorityOutput>;
}
}
declare const ZarinPal: { create(merchantID: string, sandbox: boolean): ZarinPal.ZarinPalInstance };
export = ZarinPal;
Additional Details
- Last updated: Fri, 02 Jul 2021 16:32:14 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Omid Seyfan.