Skip to content

Commit

Permalink
fixed example with wrong Interchange() incantation
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdoc committed Jun 12, 2024
1 parent 7cba5f0 commit 2986272
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ Or you can create an EDI interchange on the fly:
from pydifact.segmentcollection import Interchange
from pydifact.segments import Segment

interchange = Interchange()
interchange = Interchange(syntax_identifier=("IBMA",1),
sender="MeMyselfAndIrene",
recipient="TheOtherOne",
control_reference="KLuzs7c6")
interchange.add_segment(Segment("QTY", ["12", "3"]))

print(interchange.serialize())
Expand Down

0 comments on commit 2986272

Please sign in to comment.