ohehr_payment
Version:
Payment integration package for multiple payment providers
66 lines • 1.47 kB
TypeScript
/**
* Configuration object for Khan Gateway
*/
export interface KhanGatewayConfig {
endpoint: string;
consumerKey: string;
secretKey: string;
bankAccount: string;
}
/**
* Response object for access token from Khan Gateway
*/
export interface KhanGatewayAccessTokenResponse {
access_token: string;
access_token_expires_in: number;
organization_name: string;
developer_email: string;
token_type: string;
}
/**
* Details of a single transaction
*/
export interface KhanGatewayTransaction {
record: number;
tranDate: string;
postDate: string;
time: string;
branch: string;
teller: string;
journal: number;
code: number;
amount: number;
balance: number;
debit: number;
correction: number;
description: string;
relatedAccount: string;
type: number;
typecrm: number;
penaltyDays: number;
termDays: number;
auxiliaryAcc: number;
}
/**
* Response object for transactions from Khan Gateway
*/
export interface KhanGatewayTransactionResponse {
account: string;
iban: string;
currency: string;
customerName: string;
productName: string;
branch: string;
branchName: string;
beginBalance: number;
endBalance: number;
beginDate: string;
endDate: string;
total: {
count: number;
credit: number;
debit: number;
};
transactions: KhanGatewayTransaction[];
}
//# sourceMappingURL=types.d.ts.map