func (a *AccountConnectionDataElement) UnmarshalHBCI(value []byte) error {
	elements, err := ExtractElements(value)
	if err != nil {
		return err
	}
	if len(elements) < 4 {
		return fmt.Errorf("Malformed AccountConnection")
	}
	countryCode, err := strconv.Atoi(charset.ToUTF8(elements[2]))
	if err != nil {
		return fmt.Errorf("%T: Malformed CountryCode: %q", a, elements[2])
	}
	accountConnection := domain.AccountConnection{
		AccountID:                 charset.ToUTF8(elements[0]),
		SubAccountCharacteristics: charset.ToUTF8(elements[1]),
		CountryCode:               countryCode,
		BankID:                    charset.ToUTF8(elements[3]),
	}
	*a = *NewAccountConnection(accountConnection)
	return nil
}
// UnmarshalHBCI unmarshals value into a
UnmarshalHBCI unmarshals value into a
// UnmarshalHBCI unmarshals value into a
func (a *AccountConnectionDataElement) UnmarshalHBCI(value []byte) error {
	elements, err := ExtractElements(value)
	if err != nil {
		return err
	}
	if len(elements) < 4 {
		return fmt.Errorf("Malformed AccountConnection")
	}
	countryCode, err := strconv.Atoi(charset.ToUTF8(elements[2]))
	if err != nil {
		return fmt.Errorf("%T: Malformed CountryCode: %q", a, elements[2])
	}
	accountConnection := domain.AccountConnection{
		AccountID:                 charset.ToUTF8(elements[0]),
		SubAccountCharacteristics: charset.ToUTF8(elements[1]),
		CountryCode:               countryCode,
		BankID:                    charset.ToUTF8(elements[3]),
	}
	*a = *NewAccountConnection(accountConnection)
	return nil
}
func ( a * AccountConnectionDataElement ) UnmarshalHBCI ( value [ ] byte ) error { elements , err := ExtractElements ( value ) if err != nil { return err } if len ( elements ) < 4 { return fmt . Errorf ( " " ) } countryCode , err := strconv . Atoi ( charset . ToUTF8 ( elements [ 2 ] ) ) if err != nil { return fmt . Errorf ( " " , a , elements [ 2 ] ) } accountConnection := domain . AccountConnection { AccountID : charset . ToUTF8 ( elements [ 0 ] ) , SubAccountCharacteristics : charset . ToUTF8 ( elements [ 1 ] ) , CountryCode : countryCode , BankID : charset . ToUTF8 ( elements [ 3 ] ) , } * a = * NewAccountConnection ( accountConnection ) return nil }
UnmarshalHBCI unmarshals value into a
UnmarshalHBCI unmarshals value into a