Skip to content

Commit

Permalink
Merge pull request #1049 from adamdecaf/update-ppd-example
Browse files Browse the repository at this point in the history
docs: update ppd-valid.json ID values
  • Loading branch information
adamdecaf authored Jul 18, 2022
2 parents 7d107d6 + 81eebf7 commit 9ddaead
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,7 @@ func TestFile__readFromJson(t *testing.T) {
t.Error(err)
}

if file.ID != "adam-01" {
t.Errorf("file.ID: %s", file.ID)
}
require.Equal(t, "1f707c97-da19-49d0-a3c9-49eebc042e68", file.ID)

// Header
if file.Header.ImmediateOrigin != "121042882" || file.Header.ImmediateOriginName != "Wells Fargo" {
Expand Down
12 changes: 6 additions & 6 deletions test/testdata/ppd-valid.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "adam-01",
"id": "1f707c97-da19-49d0-a3c9-49eebc042e68",
"fileHeader": {
"id": "adam-01",
"id": "0a0b39ed-24be-4711-9a87-662d00372e90",
"immediateDestination": "231380104",
"immediateOrigin": "121042882",
"fileCreationDate": "181008",
Expand All @@ -13,7 +13,7 @@
"batches": [
{
"batchHeader": {
"id": "adam-01",
"id": "45f0cc00-6228-4e50-bffa-aac0e1902df7",
"serviceClassCode": 200,
"companyName": "Wells Fargo",
"companyIdentification": "121042882",
Expand All @@ -25,7 +25,7 @@
},
"entryDetails": [
{
"id": "adam-01",
"id": "2b5ab363-762c-4459-a8cf-9573fd69029c",
"transactionCode": 22,
"RDFIIdentification": "23138010",
"checkDigit": "4",
Expand All @@ -40,7 +40,7 @@
}
],
"batchControl": {
"id": "adam-01",
"id": "a34c8873-50a2-4315-8d98-b9f84ccccc01",
"serviceClassCode": 200,
"entryAddendaCount": 0,
"entryHash": 23138010,
Expand All @@ -54,7 +54,7 @@
],
"IATBatches": null,
"fileControl": {
"id": "adam-01",
"id": "1fc34982-0510-4a33-ba0b-9748ea72a254",
"batchCount": 1,
"blockCount": 1,
"entryAddendaCount": 0,
Expand Down

0 comments on commit 9ddaead

Please sign in to comment.