Skip to content

DDF parsing#15

Merged
chelsea-EYDS merged 3 commits intomainfrom
parse-ddf
Dec 6, 2022
Merged

DDF parsing#15
chelsea-EYDS merged 3 commits intomainfrom
parse-ddf

Conversation

@chelsea-EYDS
Copy link
Contributor

@chelsea-EYDS chelsea-EYDS commented Dec 1, 2022

What Has Changed:

  • Renamed parseTDI lambda to parseFlatFile
  • Added DDF.TXT to sample files for testing and demo
  • Created a class definition for parsing of DDF Details (details only)
  • Added conditional in the parser to check for DDF file type
  • Added scripts to the makefile to add DDF.TXT -> s3 then parse and DDF.json -> s3
  • Moved sample files into backend and updated makefile scripts
    sample output:
{ 
 "details": [{
  "resourceType": "DDFDetails",
  "rcd_type": 2,
  "merchant_no": 22046144,
  "terminal_id": "Y22046144001",
  "filler1": "",
  "card_vendor": "V",
  "card_id": "XXXXXXXXXXXXXXXXXXX",
  "transaction_date": "20220330",
  "transaction_time": "0810",
  "settlement_date": "20220330",
  "transaction_code": "10",
  "filler2": "A",
  "approval_code": "TEST",
  "filler3": "",
  "transaction_amount": 100,
  "unknown2": "",
  "merchant_work_area": "100329420007511333117589202",
  "filler4": "" 
 }]
}

@vyasworks
Copy link
Contributor

Let us include the DDF, TDI17 and TDI34 spec files somewhere in the repo as documentation.

@chelsea-EYDS chelsea-EYDS merged commit fe1dbd9 into main Dec 6, 2022
@chelsea-EYDS chelsea-EYDS deleted the parse-ddf branch January 10, 2023 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants