func (a *AllowedBusinessTransactionDataElement) Val() domain.BusinessTransaction {
	tr := domain.BusinessTransaction{
		ID:               a.BusinessTransactionID.Val(),
		NeededSignatures: a.NeededSignatures.Val(),
	}
	if a.Kind != nil {
		tr.Limit = &domain.AccountLimit{}
		tr.Limit.Kind = a.Kind.Val()
	}
	if a.Amount != nil && tr.Limit != nil {
		tr.Limit.Amount = a.Amount.Val()
	}
	if a.Days != nil && tr.Limit != nil {
		tr.Limit.Days = a.Days.Val()
	}
	return tr
}
// Val returns the allowed business transaction
Val returns the allowed business transaction
// Val returns the allowed business transaction
func (a *AllowedBusinessTransactionDataElement) Val() domain.BusinessTransaction {
	tr := domain.BusinessTransaction{
		ID:               a.BusinessTransactionID.Val(),
		NeededSignatures: a.NeededSignatures.Val(),
	}
	if a.Kind != nil {
		tr.Limit = &domain.AccountLimit{}
		tr.Limit.Kind = a.Kind.Val()
	}
	if a.Amount != nil && tr.Limit != nil {
		tr.Limit.Amount = a.Amount.Val()
	}
	if a.Days != nil && tr.Limit != nil {
		tr.Limit.Days = a.Days.Val()
	}
	return tr
}
func ( a * AllowedBusinessTransactionDataElement ) Val ( ) domain . BusinessTransaction { tr := domain . BusinessTransaction { ID : a . BusinessTransactionID . Val ( ) , NeededSignatures : a . NeededSignatures . Val ( ) , } if a . Kind != nil { tr . Limit = & domain . AccountLimit { } tr . Limit . Kind = a . Kind . Val ( ) } if a . Amount != nil && tr . Limit != nil { tr . Limit . Amount = a . Amount . Val ( ) } if a . Days != nil && tr . Limit != nil { tr . Limit . Days = a . Days . Val ( ) } return tr }
Val returns the allowed business transaction
Val returns the allowed business transaction