func (b *BalanceDataElement) Balance() domain.Balance {
	sign := b.DebitCreditIndicator.Val()
	val := b.Amount.Val()
	if sign == "D" {
		val = -val
	}
	currency := b.Currency.Val()
	amount := domain.Amount{
		Amount:   val,
		Currency: currency,
	}
	balance := domain.Balance{
		Amount:           amount,
		TransmissionDate: b.TransmissionDate.Val(),
	}
	if transmissionTime := b.TransmissionTime; transmissionTime != nil {
		val := transmissionTime.Val()
		balance.TransmissionTime = &val
	}
	return balance
}
// Balance returns the balance as domain.Balance
Balance returns the balance as domain.Balance
// Balance returns the balance as domain . Balance
func (b *BalanceDataElement) Balance() domain.Balance {
	sign := b.DebitCreditIndicator.Val()
	val := b.Amount.Val()
	if sign == "D" {
		val = -val
	}
	currency := b.Currency.Val()
	amount := domain.Amount{
		Amount:   val,
		Currency: currency,
	}
	balance := domain.Balance{
		Amount:           amount,
		TransmissionDate: b.TransmissionDate.Val(),
	}
	if transmissionTime := b.TransmissionTime; transmissionTime != nil {
		val := transmissionTime.Val()
		balance.TransmissionTime = &val
	}
	return balance
}
func ( b * BalanceDataElement ) Balance ( ) domain . Balance { sign := b . DebitCreditIndicator . Val ( ) val := b . Amount . Val ( ) if sign == " " { val = - val } currency := b . Currency . Val ( ) amount := domain . Amount { Amount : val , Currency : currency , } balance := domain . Balance { Amount : amount , TransmissionDate : b . TransmissionDate . Val ( ) , } if transmissionTime := b . TransmissionTime ; transmissionTime != nil { val := transmissionTime . Val ( ) balance . TransmissionTime = & val } return balance }
Balance returns the balance as domain.Balance
Balance returns the balance as domain . Balance