edi824

package
v0.0.0-...-c407d37 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EDI

type EDI struct {
	InterchangeControlEnvelope interchangeControlEnvelope
}

EDI holds all the segments to parse an EDI 824

func (*EDI) Parse

func (e *EDI) Parse(ediString string) error

Parse takes in a string representation of a 824 EDI file and reads it into a 824 EDI struct

func (EDI) Validate

func (edi824 EDI) Validate() error

Validate will validate the EDI997 (and nested structs) to make sure they will produce legal EDI. This returns either an InvalidValidationError or a validator.ValidationErrors that allows all validation errors to be introspected individually.

type TransactionSet

type TransactionSet struct {
	ST   edisegment.ST    // transaction set header (bump up counter for "ST" and create new TransactionSet)
	BGN  edisegment.BGN   // beginning statement
	OTIs []edisegment.OTI `validate:"min=1,dive"` // original transaction identifications
	TEDs []edisegment.TED `validate:"dive"`       // technical error descriptions
	SE   edisegment.SE    // transaction set trailer
}

TransactionSet holds the transaction set envelope for the 824

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL