• 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

96.0
/account/src/main/java/org/fiware/tmforum/account/domain/BillingCycleSpecification.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.product.CategoryRef;
14

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

19
@EqualsAndHashCode(callSuper = true)
×
20
@MappingEnabled(entityType = BillingCycleSpecification.TYPE_BILLCL)
21
public class BillingCycleSpecification extends EntityWithId {
22

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

27
    public static final String TYPE_BILLCL = "billingCycleSpecification";
28

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

33
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "billingDateShift")}))
1✔
34
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "billingDateShift")}))
1✔
35
    private Integer billingDateShift;
36

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

41
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "chargeDateOffset")}))
1✔
42
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "chargeDateOffset")}))
1✔
43
    private Integer chargeDateOffset;
44

45
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "creditDateOffset")}))
1✔
46
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "creditDateOffset")}))
1✔
47
    private Integer creditDateOffset;
48

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

53
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "frequency")}))
1✔
54
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "frequency")}))
1✔
55
    private String frequency;
56

57
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "mailingDateOffset")}))
1✔
58
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "mailingDateOffset")}))
1✔
59
    private Integer mailingDateOffset;
60

61
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "name")}))
1✔
62
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "name")}))
1✔
63
    private String name;
64

65
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "paymentDueDateOffset")}))
1✔
66
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "paymentDueDateOffset")}))
1✔
67
    private Integer paymentDueDateOffset;
68

69
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "validFor")}))
1✔
70
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "validFor")}))
1✔
71
    private TimePeriod validFor;
72

73
}
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