batch

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EFilingActivityErrorXML

type EFilingActivityErrorXML struct {
	XMLName              xml.Name                   `xml:"EFilingActivityErrorXML"`
	SeqNum               fincen.SeqNumber           `xml:"SeqNum,attr"`
	ErrorContextText     *fincen.RestrictString4000 `xml:"ErrorContextText,omitempty" json:",omitempty"`
	ErrorElementNameText *fincen.RestrictString512  `xml:"ErrorElementNameText,omitempty" json:",omitempty"`
	ErrorLevelText       *fincen.RestrictString50   `xml:"ErrorLevelText,omitempty" json:",omitempty"`
	ErrorText            *fincen.RestrictString525  `xml:"ErrorText,omitempty" json:",omitempty"`
	ErrorTypeCode        *fincen.RestrictString50   `xml:"ErrorTypeCode,omitempty" json:",omitempty"`
}

func (*EFilingActivityErrorXML) SetSeqNumber added in v0.2.5

func (r *EFilingActivityErrorXML) SetSeqNumber(number fincen.SeqNumber) error

func (EFilingActivityErrorXML) Validate

func (r EFilingActivityErrorXML) Validate(args ...string) error

type EFilingActivityXML

type EFilingActivityXML struct {
	XMLName                 xml.Name                  `xml:"EFilingActivityXML"`
	SeqNum                  fincen.SeqNumber          `xml:"SeqNum,attr"`
	BSAID                   fincen.RestrictNumeric14  `xml:"BSAID"`
	EFilingActivityErrorXML []EFilingActivityErrorXML `xml:"EFilingActivityErrorXML"`
}

func (*EFilingActivityXML) SetSeqNumber added in v0.2.5

func (r *EFilingActivityXML) SetSeqNumber(number fincen.SeqNumber) error

func (EFilingActivityXML) Validate

func (r EFilingActivityXML) Validate(args ...string) error

type EFilingBatchMarshal added in v0.2.7

type EFilingBatchMarshal struct {
	XMLName                 xml.Name              `xml:"EFilingBatchXML"`
	SeqNum                  fincen.SeqNumber      `xml:"SeqNum,attr,omitempty" json:",omitempty"`
	StatusCode              string                `xml:"StatusCode,attr,omitempty" json:",omitempty"`
	TotalAmount             float64               `xml:"TotalAmount,attr,omitempty" json:",omitempty"`
	PartyCount              int64                 `xml:"PartyCount,attr,omitempty" json:",omitempty"`
	ActivityCount           int64                 `xml:"ActivityCount,attr,omitempty" json:",omitempty"`
	AccountCount            int64                 `xml:"AccountCount,attr,omitempty" json:",omitempty"`
	ActivityAttachmentCount int64                 `xml:"ActivityAttachmentCount,attr,omitempty" json:",omitempty"`
	AttachmentCount         int64                 `xml:"AttachmentCount,attr,omitempty" json:",omitempty"`
	JointlyOwnedOwnerCount  int64                 `xml:"JointlyOwnedOwnerCount,attr,omitempty" json:",omitempty"`
	NoFIOwnerCount          int64                 `xml:"NoFIOwnerCount,attr,omitempty" json:",omitempty"`
	ConsolidatedOwnerCount  int64                 `xml:"ConsolidatedOwnerCount,attr,omitempty" json:",omitempty"`
	Attrs                   []xml.Attr            `xml:",any,attr"`
	FormTypeCode            string                `xml:"fc2:FormTypeCode,omitempty" json:",omitempty"`
	ActivitiesContent       []byte                `xml:",innerxml"`
	EFilingSubmissionXML    *EFilingSubmissionXML `xml:"EFilingSubmissionXML,omitempty" json:",omitempty"`
}

type EFilingBatchUnmarshal added in v0.2.7

type EFilingBatchUnmarshal struct {
	XMLName                 xml.Name              `xml:"EFilingBatchXML"`
	SeqNum                  fincen.SeqNumber      `xml:"SeqNum,attr,omitempty" json:",omitempty"`
	StatusCode              string                `xml:"StatusCode,attr,omitempty" json:",omitempty"`
	TotalAmount             float64               `xml:"TotalAmount,attr,omitempty" json:",omitempty"`
	PartyCount              int64                 `xml:"PartyCount,attr,omitempty" json:",omitempty"`
	ActivityCount           int64                 `xml:"ActivityCount,attr,omitempty" json:",omitempty"`
	AccountCount            int64                 `xml:"AccountCount,attr,omitempty" json:",omitempty"`
	ActivityAttachmentCount int64                 `xml:"ActivityAttachmentCount,attr,omitempty" json:",omitempty"`
	AttachmentCount         int64                 `xml:"AttachmentCount,attr,omitempty" json:",omitempty"`
	JointlyOwnedOwnerCount  int64                 `xml:"JointlyOwnedOwnerCount,attr,omitempty" json:",omitempty"`
	NoFIOwnerCount          int64                 `xml:"NoFIOwnerCount,attr,omitempty" json:",omitempty"`
	ConsolidatedOwnerCount  int64                 `xml:"ConsolidatedOwnerCount,attr,omitempty" json:",omitempty"`
	Attrs                   []xml.Attr            `xml:",any,attr"`
	FormTypeCode            string                `xml:"FormTypeCode,omitempty" json:",omitempty"`
	Activity                []dummyXML            `xml:"Activity,omitempty" json:",omitempty"`
	EFilingSubmissionXML    *EFilingSubmissionXML `xml:"EFilingSubmissionXML,omitempty" json:",omitempty"`
}

type EFilingBatchXML

type EFilingBatchXML struct {
	XMLName                 xml.Name                 `xml:"EFilingBatchXML"`
	SeqNum                  fincen.SeqNumber         `xml:"SeqNum,attr,omitempty" json:",omitempty"`
	StatusCode              string                   `xml:"StatusCode,attr,omitempty" json:",omitempty"`
	TotalAmount             float64                  `xml:"TotalAmount,attr,omitempty" json:",omitempty"`
	PartyCount              int64                    `xml:"PartyCount,attr,omitempty" json:",omitempty"`
	ActivityCount           int64                    `xml:"ActivityCount,attr,omitempty" json:",omitempty"`
	AccountCount            int64                    `xml:"AccountCount,attr,omitempty" json:",omitempty"`
	ActivityAttachmentCount int64                    `xml:"ActivityAttachmentCount,attr,omitempty" json:",omitempty"`
	AttachmentCount         int64                    `xml:"AttachmentCount,attr,omitempty" json:",omitempty"`
	JointlyOwnedOwnerCount  int64                    `xml:"JointlyOwnedOwnerCount,attr,omitempty" json:",omitempty"`
	NoFIOwnerCount          int64                    `xml:"NoFIOwnerCount,attr,omitempty" json:",omitempty"`
	ConsolidatedOwnerCount  int64                    `xml:"ConsolidatedOwnerCount,attr,omitempty" json:",omitempty"`
	Attrs                   []xml.Attr               `xml:",any,attr"`
	FormTypeCode            string                   `xml:"FormTypeCode,omitempty" json:",omitempty"`
	Activity                []fincen.ElementActivity `xml:"Activity,omitempty" json:",omitempty"`
	EFilingSubmissionXML    *EFilingSubmissionXML    `xml:"EFilingSubmissionXML,omitempty" json:",omitempty"`
}

func CreateReportWithBuffer added in v0.2.4

func CreateReportWithBuffer(buf []byte) (*EFilingBatchXML, error)

func CreateReportWithFile added in v0.2.4

func CreateReportWithFile(path string) (*EFilingBatchXML, error)

func NewReport

func NewReport(args ...string) *EFilingBatchXML

func (*EFilingBatchXML) AppendActivity added in v0.2.4

func (r *EFilingBatchXML) AppendActivity(act fincen.ElementActivity) error

func (*EFilingBatchXML) GenerateAttrs

func (r *EFilingBatchXML) GenerateAttrs() error

func (EFilingBatchXML) GenerateSeqNumbers

func (r EFilingBatchXML) GenerateSeqNumbers(args ...int) error

func (EFilingBatchXML) MarshalXML

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

func (*EFilingBatchXML) SetSeqNumber added in v0.2.5

func (r *EFilingBatchXML) SetSeqNumber(number fincen.SeqNumber) error

func (*EFilingBatchXML) UnmarshalXML

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

func (EFilingBatchXML) Validate

func (r EFilingBatchXML) Validate(args ...string) error

Validate args:

1: disableValidateAttrs

type EFilingSubmissionXML

type EFilingSubmissionXML struct {
	XMLName            xml.Name             `xml:"EFilingSubmissionXML"`
	SeqNum             fincen.SeqNumber     `xml:"SeqNum,attr"`
	StatusCode         string               `xml:"StatusCode,attr,omitempty" json:",omitempty"`
	EFilingActivityXML []EFilingActivityXML `xml:"EFilingActivityXML"`
}

func (*EFilingSubmissionXML) SetSeqNumber added in v0.2.5

func (r *EFilingSubmissionXML) SetSeqNumber(number fincen.SeqNumber) error

func (EFilingSubmissionXML) Validate

func (r EFilingSubmissionXML) Validate(args ...string) error

Jump to

Keyboard shortcuts

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