File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 =
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments