@accounter/modern-poalim-scraper
Version:
Modern scraper for Israeli banks (Hapoalim, Isracard, Max)
175 lines (174 loc) • 7.86 kB
TypeScript
import { z } from 'zod';
export declare const calTransactionSchema: z.ZodObject<{
trnIntId: z.ZodString;
trnNumaretor: z.ZodNumber;
merchantName: z.ZodString;
trnPurchaseDate: z.ZodString;
trnAmt: z.ZodNumber;
trnCurrencySymbol: z.ZodString;
trnType: z.ZodString;
trnTypeCode: z.ZodString;
debCrdDate: z.ZodString;
amtBeforeConvAndIndex: z.ZodNumber;
debCrdCurrencySymbol: z.ZodString;
merchantAddress: z.ZodString;
merchantPhoneNo: z.ZodString;
branchCodeDesc: z.ZodString;
transCardPresentInd: z.ZodBoolean;
curPaymentNum: z.ZodNumber;
numOfPayments: z.ZodNumber;
tokenInd: z.ZodNumber;
walletProviderCode: z.ZodNumber;
walletProviderDesc: z.ZodString;
tokenNumberPart4: z.ZodString;
cashAccountTrnAmt: z.ZodNumber;
comments: z.ZodArray<z.ZodObject<{
key: z.ZodString;
value: z.ZodString;
}, z.core.$strip>>;
chargeExternalToCardComment: z.ZodString;
transTypeCommentDetails: z.ZodArray<z.ZodString>;
refundInd: z.ZodBoolean;
isImmediateCommentInd: z.ZodBoolean;
isImmediateHHKInd: z.ZodBoolean;
isMargarita: z.ZodBoolean;
isSpreadPaymenstAbroad: z.ZodBoolean;
trnExacWay: z.ZodNumber;
debitSpreadInd: z.ZodBoolean;
onGoingTransactionsComment: z.ZodString;
earlyPaymentInd: z.ZodBoolean;
merchantId: z.ZodString;
crdExtIdNumTypeCode: z.ZodString;
transSource: z.ZodString;
isAbroadTransaction: z.ZodBoolean;
}, z.core.$strip>;
export type CalTransaction = z.infer<typeof calTransactionSchema>;
export declare const calTransactionsSchema: z.ZodObject<{
result: z.ZodObject<{
blockedCardInd: z.ZodBoolean;
bankAccounts: z.ZodArray<z.ZodObject<{
bankName: z.ZodString;
bankAccountNum: z.ZodString;
currentBankAccountInd: z.ZodBoolean;
debitDates: z.ZodArray<z.ZodObject<{
date: z.ZodString;
fromPurchaseDate: z.ZodString;
toPurchaseDate: z.ZodString;
choiceHHKDebit: z.ZodNumber;
totalBasketAmount: z.ZodNumber;
isChoiceRepaiment: z.ZodBoolean;
fixDebitAmount: z.ZodNumber;
totalDebits: z.ZodArray<z.ZodObject<{
currencySymbol: z.ZodString;
amount: z.ZodNumber;
}, z.core.$strip>>;
transactions: z.ZodArray<z.ZodObject<{
trnIntId: z.ZodString;
trnNumaretor: z.ZodNumber;
merchantName: z.ZodString;
trnPurchaseDate: z.ZodString;
trnAmt: z.ZodNumber;
trnCurrencySymbol: z.ZodString;
trnType: z.ZodString;
trnTypeCode: z.ZodString;
debCrdDate: z.ZodString;
amtBeforeConvAndIndex: z.ZodNumber;
debCrdCurrencySymbol: z.ZodString;
merchantAddress: z.ZodString;
merchantPhoneNo: z.ZodString;
branchCodeDesc: z.ZodString;
transCardPresentInd: z.ZodBoolean;
curPaymentNum: z.ZodNumber;
numOfPayments: z.ZodNumber;
tokenInd: z.ZodNumber;
walletProviderCode: z.ZodNumber;
walletProviderDesc: z.ZodString;
tokenNumberPart4: z.ZodString;
cashAccountTrnAmt: z.ZodNumber;
comments: z.ZodArray<z.ZodObject<{
key: z.ZodString;
value: z.ZodString;
}, z.core.$strip>>;
chargeExternalToCardComment: z.ZodString;
transTypeCommentDetails: z.ZodArray<z.ZodString>;
refundInd: z.ZodBoolean;
isImmediateCommentInd: z.ZodBoolean;
isImmediateHHKInd: z.ZodBoolean;
isMargarita: z.ZodBoolean;
isSpreadPaymenstAbroad: z.ZodBoolean;
trnExacWay: z.ZodNumber;
debitSpreadInd: z.ZodBoolean;
onGoingTransactionsComment: z.ZodString;
earlyPaymentInd: z.ZodBoolean;
merchantId: z.ZodString;
crdExtIdNumTypeCode: z.ZodString;
transSource: z.ZodString;
isAbroadTransaction: z.ZodBoolean;
}, z.core.$strip>>;
}, z.core.$strip>>;
immidiateDebits: z.ZodObject<{
totalDebits: z.ZodArray<z.ZodObject<{
currencySymbol: z.ZodString;
amount: z.ZodNumber;
}, z.core.$strip>>;
debitDays: z.ZodArray<z.ZodObject<{
date: z.ZodString;
numOfTransactions: z.ZodNumber;
totalDailyDebits: z.ZodArray<z.ZodObject<{
currencySymbol: z.ZodString;
amount: z.ZodNumber;
}, z.core.$strip>>;
transactions: z.ZodArray<z.ZodObject<{
trnIntId: z.ZodString;
trnNumaretor: z.ZodNumber;
merchantName: z.ZodString;
trnPurchaseDate: z.ZodString;
trnAmt: z.ZodNumber;
trnCurrencySymbol: z.ZodString;
trnType: z.ZodString;
trnTypeCode: z.ZodString;
debCrdDate: z.ZodString;
amtBeforeConvAndIndex: z.ZodNumber;
debCrdCurrencySymbol: z.ZodString;
merchantAddress: z.ZodString;
merchantPhoneNo: z.ZodString;
branchCodeDesc: z.ZodString;
transCardPresentInd: z.ZodBoolean;
curPaymentNum: z.ZodNumber;
numOfPayments: z.ZodNumber;
tokenInd: z.ZodNumber;
walletProviderCode: z.ZodNumber;
walletProviderDesc: z.ZodString;
tokenNumberPart4: z.ZodString;
cashAccountTrnAmt: z.ZodNumber;
comments: z.ZodArray<z.ZodObject<{
key: z.ZodString;
value: z.ZodString;
}, z.core.$strip>>;
chargeExternalToCardComment: z.ZodString;
transTypeCommentDetails: z.ZodArray<z.ZodString>;
refundInd: z.ZodBoolean;
isImmediateCommentInd: z.ZodBoolean;
isImmediateHHKInd: z.ZodBoolean;
immediateComments: z.ZodArray<z.ZodObject<{
comment: z.ZodString;
}, z.core.$strip>>;
isMargarita: z.ZodBoolean;
isSpreadPaymenstAbroad: z.ZodBoolean;
trnExacWay: z.ZodNumber;
debitSpreadInd: z.ZodBoolean;
onGoingTransactionsComment: z.ZodString;
earlyPaymentInd: z.ZodBoolean;
merchantId: z.ZodString;
crdExtIdNumTypeCode: z.ZodString;
transSource: z.ZodString;
isAbroadTransaction: z.ZodBoolean;
}, z.core.$strip>>;
}, z.core.$strip>>;
}, z.core.$strip>;
}, z.core.$strip>>;
}, z.core.$strip>;
statusDescription: z.ZodString;
statusCode: z.ZodNumber;
groupPid: z.ZodString;
}, z.core.$strip>;