func (a *AllowedBusinessTransactionDataElement) UnmarshalHBCI(value []byte) error {
	elements, err := ExtractElements(value)
	if err != nil {
		return err
	}
	if len(elements) < 2 {
		return fmt.Errorf("Malformed marshaled value")
	}
	a.DataElement = NewDataElementGroup(allowedBusinessTransactionDEG, 5, a)
	a.BusinessTransactionID = &AlphaNumericDataElement{}
	err = a.BusinessTransactionID.UnmarshalHBCI(elements[0])
	if err != nil {
		return err
	}
	a.NeededSignatures = &NumberDataElement{}
	err = a.NeededSignatures.UnmarshalHBCI(elements[1])
	if err != nil {
		return err
	}
	if len(elements) > 2 && len(elements[2]) > 0 {
		a.Kind = &AlphaNumericDataElement{}
		err = a.Kind.UnmarshalHBCI(elements[2])
		if err != nil {
			return err
		}
	}
	if len(elements) > 3 && len(elements[3]) > 0 {
		a.Amount = &AmountDataElement{}
		err = a.Amount.UnmarshalHBCI(elements[3])
		if err != nil {
			return err
		}
	}
	if len(elements) > 4 && len(elements[4]) > 0 {
		a.Days = &NumberDataElement{}
		err = a.Days.UnmarshalHBCI(elements[4])
		if err != nil {
			return err
		}
	}
	return nil
}
// UnmarshalHBCI unmarshals value into a
UnmarshalHBCI unmarshals value into a
// UnmarshalHBCI unmarshals value into a
func (a *AllowedBusinessTransactionDataElement) UnmarshalHBCI(value []byte) error {
	elements, err := ExtractElements(value)
	if err != nil {
		return err
	}
	if len(elements) < 2 {
		return fmt.Errorf("Malformed marshaled value")
	}
	a.DataElement = NewDataElementGroup(allowedBusinessTransactionDEG, 5, a)
	a.BusinessTransactionID = &AlphaNumericDataElement{}
	err = a.BusinessTransactionID.UnmarshalHBCI(elements[0])
	if err != nil {
		return err
	}
	a.NeededSignatures = &NumberDataElement{}
	err = a.NeededSignatures.UnmarshalHBCI(elements[1])
	if err != nil {
		return err
	}
	if len(elements) > 2 && len(elements[2]) > 0 {
		a.Kind = &AlphaNumericDataElement{}
		err = a.Kind.UnmarshalHBCI(elements[2])
		if err != nil {
			return err
		}
	}
	if len(elements) > 3 && len(elements[3]) > 0 {
		a.Amount = &AmountDataElement{}
		err = a.Amount.UnmarshalHBCI(elements[3])
		if err != nil {
			return err
		}
	}
	if len(elements) > 4 && len(elements[4]) > 0 {
		a.Days = &NumberDataElement{}
		err = a.Days.UnmarshalHBCI(elements[4])
		if err != nil {
			return err
		}
	}
	return nil
}
func ( a * AllowedBusinessTransactionDataElement ) UnmarshalHBCI ( value [ ] byte ) error { elements , err := ExtractElements ( value ) if err != nil { return err } if len ( elements ) < 2 { return fmt . Errorf ( " " ) } a . DataElement = NewDataElementGroup ( allowedBusinessTransactionDEG , 5 , a ) a . BusinessTransactionID = & AlphaNumericDataElement { } err = a . BusinessTransactionID . UnmarshalHBCI ( elements [ 0 ] ) if err != nil { return err } a . NeededSignatures = & NumberDataElement { } err = a . NeededSignatures . UnmarshalHBCI ( elements [ 1 ] ) if err != nil { return err } if len ( elements ) > 2 && len ( elements [ 2 ] ) > 0 { a . Kind = & AlphaNumericDataElement { } err = a . Kind . UnmarshalHBCI ( elements [ 2 ] ) if err != nil { return err } } if len ( elements ) > 3 && len ( elements [ 3 ] ) > 0 { a . Amount = & AmountDataElement { } err = a . Amount . UnmarshalHBCI ( elements [ 3 ] ) if err != nil { return err } } if len ( elements ) > 4 && len ( elements [ 4 ] ) > 0 { a . Days = & NumberDataElement { } err = a . Days . UnmarshalHBCI ( elements [ 4 ] ) if err != nil { return err } } return nil }
UnmarshalHBCI unmarshals value into a
UnmarshalHBCI unmarshals value into a