• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wistefan / tmforum-api / #62

19 Oct 2023 01:12PM UTC coverage: 68.167% (+0.5%) from 67.631%
#62

push

web-flow
Account management api implementation (#34)

* Creating the directories

* Adding pom

* now adding pom, error on last commit

* Account complete implementation, no testing

* Solving problems with git config

* Adding some left out classes and some tests

* Adding FinancialAccount Integration Test and solving some errors on the main classes

* adding Integration Test and solved errors for Party, Bill, Settlement and Financial Account, and BillFormat

* Adding final integration tests and adapting api to query format

* Fixing Event Subscription

* Cleaning the code from comments

---------

Co-authored-by: MVazquez <marcosvazquezcampos@MacBook-Air-de-Marcos.local>

475 of 475 new or added lines in 32 files covered. (100.0%)

3150 of 4621 relevant lines covered (68.17%)

0.68 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

92.86
/account/src/main/java/org/fiware/tmforum/account/domain/Account.java
1
package org.fiware.tmforum.account.domain;
2

3
import lombok.EqualsAndHashCode;
4
import lombok.Getter;
5
import lombok.Setter;
6
import org.fiware.tmforum.common.domain.EntityWithId;
7
import io.github.wistefan.mapping.annotations.AttributeGetter;
8
import io.github.wistefan.mapping.annotations.AttributeSetter;
9
import io.github.wistefan.mapping.annotations.AttributeType;
10
import io.github.wistefan.mapping.annotations.MappingEnabled;
11
import org.fiware.tmforum.common.domain.RelatedParty;
12
import org.fiware.tmforum.common.domain.TimePeriod;
13
import org.fiware.tmforum.common.domain.Money;
14
import org.fiware.tmforum.product.CategoryRef;
15

16
import java.net.URI;
17
import java.time.Instant;
18
import java.util.List;
19

20
@EqualsAndHashCode(callSuper = true)
×
21
public abstract class Account extends EntityWithId {
22

23
    public Account(String type, String id) {
24
        super(type, id);
1✔
25
    }
1✔
26

27
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "href")}))
1✔
28
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "href")}))
1✔
29
    private URI href;
30

31
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "accountType")}))
1✔
32
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "accountType")}))
1✔
33
    private String accountType;
34

35
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "description")}))
1✔
36
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "description")}))
1✔
37
    private String description;
38

39
    @Getter(onMethod = @__({ @AttributeGetter(value = AttributeType.PROPERTY, targetName = "lastModified") }))
1✔
40
    @Setter(onMethod = @__({ @AttributeSetter(value = AttributeType.PROPERTY, targetName = "lastModified") }))
1✔
41
    private Instant lastModified;
42

43
    @Getter(onMethod = @__({ @AttributeGetter(value = AttributeType.PROPERTY, targetName = "name") }))
1✔
44
    @Setter(onMethod = @__({ @AttributeSetter(value = AttributeType.PROPERTY, targetName = "name") }))
1✔
45
    private String name;
46

47
    @Getter(onMethod = @__({ @AttributeGetter(value = AttributeType.PROPERTY, targetName = "state") }))
1✔
48
    @Setter(onMethod = @__({ @AttributeSetter(value = AttributeType.PROPERTY, targetName = "state") }))
1✔
49
    private String state;
50

51
    @Getter(onMethod = @__({ @AttributeGetter(value = AttributeType.PROPERTY_LIST, targetName = "accountBalance") }))
1✔
52
    @Setter(onMethod = @__({ @AttributeSetter(value = AttributeType.PROPERTY_LIST, targetName = "accountBalance") }))
1✔
53
    private List<AccountBalance> accountBalance;
54

55
    @Getter(onMethod = @__({ @AttributeGetter(value = AttributeType.PROPERTY_LIST, targetName = "accountRelationship") }))
1✔
56
    @Setter(onMethod = @__({ @AttributeSetter(value = AttributeType.PROPERTY_LIST, targetName = "accountRelationship") }))
1✔
57
    private List<AccountRelationship> accountRelationship;
58

59
    @Getter(onMethod = @__({ @AttributeGetter(value = AttributeType.PROPERTY_LIST, targetName = "contact") }))
1✔
60
    @Setter(onMethod = @__({ @AttributeSetter(value = AttributeType.PROPERTY_LIST, targetName = "contact") }))
1✔
61
    private List<Contact> contact;
62

63
    @Getter(onMethod = @__({ @AttributeGetter(value = AttributeType.PROPERTY, targetName = "creditLimit") }))
1✔
64
    @Setter(onMethod = @__({ @AttributeSetter(value = AttributeType.PROPERTY, targetName = "creditLimit") }))
1✔
65
    private Money creditLimit;
66

67
    @Getter(onMethod = @__({ @AttributeGetter(value = AttributeType.RELATIONSHIP_LIST, targetName = "relatedParty") }))
1✔
68
    @Setter(onMethod = @__({
1✔
69
            @AttributeSetter(value = AttributeType.RELATIONSHIP_LIST, targetName = "relatedParty", targetClass = RelatedParty.class) }))
70
    private List<RelatedParty> relatedParty;
71

72
    @Getter(onMethod = @__({ @AttributeGetter(value = AttributeType.PROPERTY_LIST, targetName = "taxExemption") }))
1✔
73
    @Setter(onMethod = @__({ @AttributeSetter(value = AttributeType.PROPERTY_LIST, targetName = "taxExemption") }))
1✔
74
    private List<AccountTaxExemption> taxExemption;
75

76
    @Override
77
    public String getEntityState() {
78
        return state;
×
79
    }
80
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc