efile

package
v0.0.0-...-a0b5d22 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncodingStyle

type EncodingStyle []string

func (*EncodingStyle) MarshalText

func (r *EncodingStyle) MarshalText() ([]byte, error)

func (*EncodingStyle) UnmarshalText

func (r *EncodingStyle) UnmarshalText(text []byte) error

type Envelope

type Envelope struct {
	Xmlns  string      `xml:"xmlns,attr,omitempty" json:",omitempty"`
	Items  []string    `xml:",any"`
	Header *SoapHeader `xml:"Header,omitempty" json:",omitempty"`
	Body   *SoapBody   `xml:"Body" json:",omitempty"`
}

func (*Envelope) Init

func (r *Envelope) Init() error

func (Envelope) Validate

func (r Envelope) Validate() error

type Fault

type Fault struct {
	Faultcode   xml.Name     `xml:"faultcode"`
	Faultstring string       `xml:"faultstring"`
	Faultactor  string       `xml:"faultactor,omitempty" json:",omitempty"`
	Detail      *FaultDetail `xml:"detail,omitempty" json:",omitempty"`
}

Fault reporting structure

type FaultDetail

type FaultDetail []string

func (FaultDetail) MarshalXML

func (r FaultDetail) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*FaultDetail) UnmarshalXML

func (r *FaultDetail) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error)

type IFATransmissionHeaderType

type IFATransmissionHeaderType struct {
	MessageId         MessageIdType          `xml:"MessageId"`
	TransmissionTs    *irs_990.TimestampType `xml:"TransmissionTs,omitempty" json:",omitempty"`
	TransmitterDetail TransmitterDetail      `xml:"TransmitterDetail"`
}

func (IFATransmissionHeaderType) Validate

func (r IFATransmissionHeaderType) Validate() error

type Irs990TransmissionFile

type Irs990TransmissionFile struct {
	Soap         Envelope
	Attachments  []utils.IrsReturnFile
	SubmissionId string
}

func (Irs990TransmissionFile) SOAPAttachment

func (r Irs990TransmissionFile) SOAPAttachment() ([]byte, error)

func (Irs990TransmissionFile) SOAPEnvelope

func (r Irs990TransmissionFile) SOAPEnvelope() ([]byte, error)

func (Irs990TransmissionFile) Validate

func (r Irs990TransmissionFile) Validate() error

func (Irs990TransmissionFile) Version

func (r Irs990TransmissionFile) Version() string

type MessageIdType

type MessageIdType string

Must match the pattern [0-9]{12}[a-z0-9]{8}

func (MessageIdType) Validate

func (r MessageIdType) Validate() error

type SoapBody

type SoapBody struct {
	Body     []string
	Manifest *TransmissionManifest
}

func (SoapBody) MarshalXML

func (r SoapBody) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*SoapBody) UnmarshalXML

func (r *SoapBody) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error)

type SoapHeader

type SoapHeader struct {
	Header       []string
	Transmission *IFATransmissionHeaderType
}

func (SoapHeader) MarshalXML

func (r SoapHeader) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*SoapHeader) UnmarshalXML

func (r *SoapHeader) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error)

type SubmissionDataListType

type SubmissionDataListType struct {
	Cnt            int                  `xml:"Cnt"`
	SubmissionData []SubmissionDataType `xml:"SubmissionData"`
}

func (SubmissionDataListType) Validate

func (r SubmissionDataListType) Validate() error

type SubmissionDataType

type SubmissionDataType struct {
	SubmissionId         irs_990.SubmissionIdType `xml:"SubmissionId"`
	ElectronicPostmarkTs irs_990.TimestampType    `xml:"ElectronicPostmarkTs"`
}

func (SubmissionDataType) Validate

func (r SubmissionDataType) Validate() error

type TransmissionManifest

type TransmissionManifest struct {
	SubmissionDataList SubmissionDataListType `xml:"SubmissionDataList"`
}

func (TransmissionManifest) Validate

func (r TransmissionManifest) Validate() error

type TransmitterDetail

type TransmitterDetail struct {
	ETIN irs_990.ETINType `xml:"ETIN"`
}

func (TransmitterDetail) Validate

func (r TransmitterDetail) Validate() error

Jump to

Keyboard shortcuts

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