Skip to content

Commit e239208

Browse files
committed
fix: apply prettier formatting to fix lint errors
1 parent bb8bae9 commit e239208

3 files changed

Lines changed: 6 additions & 13 deletions

File tree

packages/fints/src/camt052-parser.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,8 @@ export function parseCamt052(xml: string): Statement[] {
102102
getStr(txDtls, "Cdtr.Nm");
103103
const name = (isCredit ? debtorName : creditorName) || "";
104104

105-
const dbtrIban =
106-
getStr(txDtls, "RltdPties.DbtrAcct.Id.IBAN") || getStr(txDtls, "DbtrAcct.Id.IBAN");
107-
const cdtrIban =
108-
getStr(txDtls, "RltdPties.CdtrAcct.Id.IBAN") || getStr(txDtls, "CdtrAcct.Id.IBAN");
105+
const dbtrIban = getStr(txDtls, "RltdPties.DbtrAcct.Id.IBAN") || getStr(txDtls, "DbtrAcct.Id.IBAN");
106+
const cdtrIban = getStr(txDtls, "RltdPties.CdtrAcct.Id.IBAN") || getStr(txDtls, "CdtrAcct.Id.IBAN");
109107
const counterpartyIban = (isCredit ? dbtrIban : cdtrIban) || "";
110108

111109
const dbtrBic =

packages/fints/src/client.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -405,10 +405,7 @@ export abstract class Client {
405405
} catch (error) {
406406
if (error instanceof TanRequiredError && error.isDecoupledTan()) {
407407
// 0030: standard decoupled TAN challenge
408-
response = await dialog.handleDecoupledTan(
409-
error.transactionReference,
410-
error.challengeText || "",
411-
);
408+
response = await dialog.handleDecoupledTan(error.transactionReference, error.challengeText || "");
412409
} else {
413410
throw error;
414411
}
@@ -418,10 +415,7 @@ export abstract class Client {
418415
if (returnValues.has("3955") || returnValues.has("3956")) {
419416
const hitan = response.findSegment(HITAN);
420417
if (hitan?.transactionReference) {
421-
response = await dialog.handleDecoupledTan(
422-
hitan.transactionReference,
423-
hitan.challengeText || "",
424-
);
418+
response = await dialog.handleDecoupledTan(hitan.transactionReference, hitan.challengeText || "");
425419
}
426420
}
427421
touchdowns = response.getTouchdowns(request);

packages/fints/src/segments/__tests__/test-hkcaz.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ testSegment(
1212
HKCAZ,
1313
[
1414
{
15-
serialized: "HKCAZ:3:1+DE27100777770209299700:DEUTDEFF500:01234::280:12345678+camt.052+N+20181010+20181101++'",
15+
serialized:
16+
"HKCAZ:3:1+DE27100777770209299700:DEUTDEFF500:01234::280:12345678+camt.052+N+20181010+20181101++'",
1617
structured: {
1718
type: "HKCAZ",
1819
segNo: 3,

0 commit comments

Comments
 (0)