func AccountBalanceRequestBuilder(versions []int) (func(account domain.AccountConnection, allAccounts bool) AccountBalanceRequest, error) {
	sort.Sort(sort.Reverse(sort.IntSlice(versions)))
	for _, version := range versions {
		builder, ok := accountBalanceRequests[version]
		if ok {
			return builder, nil
		}
	}
	return nil, fmt.Errorf("unsupported versions %v", versions)
}
// AccountBalanceRequestBuilder returns the highest matching versioned segment
AccountBalanceRequestBuilder returns the highest matching versioned segment
// AccountBalanceRequestBuilder returns the highest matching versioned segment
func AccountBalanceRequestBuilder(versions []int) (func(account domain.AccountConnection, allAccounts bool) AccountBalanceRequest, error) {
	sort.Sort(sort.Reverse(sort.IntSlice(versions)))
	for _, version := range versions {
		builder, ok := accountBalanceRequests[version]
		if ok {
			return builder, nil
		}
	}
	return nil, fmt.Errorf("unsupported versions %v", versions)
}
func AccountBalanceRequestBuilder ( versions [ ] int ) ( func ( account domain . AccountConnection , allAccounts bool ) AccountBalanceRequest , error ) { sort . Sort ( sort . Reverse ( sort . IntSlice ( versions ) ) ) for _ , version := range versions { builder , ok := accountBalanceRequests [ version ] if ok { return builder , nil } } return nil , fmt . Errorf ( " " , versions ) }
AccountBalanceRequestBuilder returns the highest matching versioned segment
AccountBalanceRequestBuilder returns the highest matching versioned segment