Skip to content

Commit

Permalink
add ObjectTenantOwner.TenantOwnerID and Unit
Browse files Browse the repository at this point in the history
  • Loading branch information
ungerik committed Dec 2, 2024
1 parent a86c7ac commit 6f21cf4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions golang/domonda/objecttenantowner.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ import (

type ObjectTenantOwner struct {
ObjectNo account.Number
TenantOwnerID int64
TenantOwnerNo int64
UnitNo int64
Unit notnull.TrimmedString
OwnerLinkNo int64
Owner notnull.TrimmedString
}
Expand All @@ -26,6 +28,9 @@ func (o *ObjectTenantOwner) Validate() error {
if err = o.ObjectNo.Validate(); err != nil {
errs = append(errs, fmt.Errorf("ObjectTenantOwner.ObjectNo: %w", err))
}
if o.Unit.IsEmpty() {
errs = append(errs, errors.New("empty ObjectTenantOwner.Unit"))
}
if o.Owner.IsEmpty() {
errs = append(errs, errors.New("empty ObjectTenantOwner.Owner"))
}
Expand Down

0 comments on commit 6f21cf4

Please sign in to comment.