on_start_transaction Event
Fires whenever a control segment is read that marks the start of a transaction.
Syntax
class X12TranslatorStartTransactionEventParams(object): @property def tag() -> str: ... @property def control_number() -> str: ... @property def code() -> str: ... @property def full_segment() -> str: ... # In class X12Translator: @property def on_start_transaction() -> Callable[[X12TranslatorStartTransactionEventParams], None]: ... @on_start_transaction.setter def on_start_transaction(event_hook: Callable[[X12TranslatorStartTransactionEventParams], None]) -> None: ...
Remarks
The on_start_transaction event will fire when a control segment marking the start of a transaction is read. The Tag parameter contains the tag of the segment, such as ST. ControlNumber contains the control number associated with the segment. Code contains the transaction code (such as 810).