func (s *SwiftMT940DataElement) UnmarshalHBCI(value []byte) error {
	s.BinaryDataElement = &BinaryDataElement{}
	err := s.BinaryDataElement.UnmarshalHBCI(value)
	if err != nil {
		return err
	}
	messageExtractor := swift.NewMessageExtractor(s.BinaryDataElement.Val())
	messages, err := messageExtractor.Extract()
	if err != nil {
		return err
	}
	for _, message := range messages {
		tr := &swift.MT940{}
		err = tr.Unmarshal(message)
		if err != nil {
			return err
		}
		s.swiftMT940Elements = append(s.swiftMT940Elements, tr)
	}
	return nil
}
// UnmarshalHBCI unmarshals value into s
UnmarshalHBCI unmarshals value into s
// UnmarshalHBCI unmarshals value into s
func (s *SwiftMT940DataElement) UnmarshalHBCI(value []byte) error {
	s.BinaryDataElement = &BinaryDataElement{}
	err := s.BinaryDataElement.UnmarshalHBCI(value)
	if err != nil {
		return err
	}
	messageExtractor := swift.NewMessageExtractor(s.BinaryDataElement.Val())
	messages, err := messageExtractor.Extract()
	if err != nil {
		return err
	}
	for _, message := range messages {
		tr := &swift.MT940{}
		err = tr.Unmarshal(message)
		if err != nil {
			return err
		}
		s.swiftMT940Elements = append(s.swiftMT940Elements, tr)
	}
	return nil
}
func ( s * SwiftMT940DataElement ) UnmarshalHBCI ( value [ ] byte ) error { s . BinaryDataElement = & BinaryDataElement { } err := s . BinaryDataElement . UnmarshalHBCI ( value ) if err != nil { return err } messageExtractor := swift . NewMessageExtractor ( s . BinaryDataElement . Val ( ) ) messages , err := messageExtractor . Extract ( ) if err != nil { return err } for _ , message := range messages { tr := & swift . MT940 { } err = tr . Unmarshal ( message ) if err != nil { return err } s . swiftMT940Elements = append ( s . swiftMT940Elements , tr ) } return nil }
UnmarshalHBCI unmarshals value into s
UnmarshalHBCI unmarshals value into s