1 | package pl.zankowski.iextrading4j.api.account; | |
2 | ||
3 | import com.fasterxml.jackson.annotation.JsonCreator; | |
4 | import com.fasterxml.jackson.annotation.JsonProperty; | |
5 | ||
6 | import java.io.Serializable; | |
7 | import java.util.Objects; | |
8 | import java.util.StringJoiner; | |
9 | ||
10 | public class Metadata implements Serializable { | |
11 | ||
12 | private static final long serialVersionUID = -7626003595227020176L; | |
13 | ||
14 | private final Boolean payAsYouGoEnabled; | |
15 | private final Long effectiveDate; | |
16 | private final Long endDateEffective; | |
17 | private final String subscriptionTermType; | |
18 | private final String tierName; | |
19 | private final Long messageLimit; | |
20 | private final Long creditLimit; | |
21 | private final Long messagesUsed; | |
22 | private final Long creditsUsed; | |
23 | private final Long circuitBreaker; | |
24 | ||
25 | @JsonCreator | |
26 | public Metadata( | |
27 | @JsonProperty("payAsYouGoEnabled") final Boolean payAsYouGoEnabled, | |
28 | @JsonProperty("effectiveDate") final Long effectiveDate, | |
29 | @JsonProperty("endDateEffective") final Long endDateEffective, | |
30 | @JsonProperty("subscriptionTermType") final String subscriptionTermType, | |
31 | @JsonProperty("tierName") final String tierName, | |
32 | @JsonProperty("messageLimit") final Long messageLimit, | |
33 | @JsonProperty("creditLimit") final Long creditLimit, | |
34 | @JsonProperty("messagesUsed") final Long messagesUsed, | |
35 | @JsonProperty("creditsUsed") final Long creditsUsed, | |
36 | @JsonProperty("circuitBreaker") final Long circuitBreaker) { | |
37 | this.payAsYouGoEnabled = payAsYouGoEnabled; | |
38 | this.effectiveDate = effectiveDate; | |
39 | this.endDateEffective = endDateEffective; | |
40 | this.subscriptionTermType = subscriptionTermType; | |
41 | this.tierName = tierName; | |
42 | this.messageLimit = messageLimit; | |
43 | this.creditLimit = creditLimit; | |
44 | this.messagesUsed = messagesUsed; | |
45 | this.creditsUsed = creditsUsed; | |
46 | this.circuitBreaker = circuitBreaker; | |
47 | } | |
48 | ||
49 | public Boolean getPayAsYouGoEnabled() { | |
50 |
2
1. getPayAsYouGoEnabled : replaced Boolean return with True for pl/zankowski/iextrading4j/api/account/Metadata::getPayAsYouGoEnabled → SURVIVED 2. getPayAsYouGoEnabled : replaced Boolean return with False for pl/zankowski/iextrading4j/api/account/Metadata::getPayAsYouGoEnabled → KILLED |
return payAsYouGoEnabled; |
51 | } | |
52 | ||
53 | public Long getEffectiveDate() { | |
54 |
1
1. getEffectiveDate : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/account/Metadata::getEffectiveDate → KILLED |
return effectiveDate; |
55 | } | |
56 | ||
57 | public Long getEndDateEffective() { | |
58 |
1
1. getEndDateEffective : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/account/Metadata::getEndDateEffective → KILLED |
return endDateEffective; |
59 | } | |
60 | ||
61 | public String getSubscriptionTermType() { | |
62 |
1
1. getSubscriptionTermType : replaced return value with "" for pl/zankowski/iextrading4j/api/account/Metadata::getSubscriptionTermType → KILLED |
return subscriptionTermType; |
63 | } | |
64 | ||
65 | public String getTierName() { | |
66 |
1
1. getTierName : replaced return value with "" for pl/zankowski/iextrading4j/api/account/Metadata::getTierName → KILLED |
return tierName; |
67 | } | |
68 | ||
69 | public Long getMessageLimit() { | |
70 |
1
1. getMessageLimit : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/account/Metadata::getMessageLimit → KILLED |
return messageLimit; |
71 | } | |
72 | ||
73 | public Long getCreditLimit() { | |
74 |
1
1. getCreditLimit : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/account/Metadata::getCreditLimit → KILLED |
return creditLimit; |
75 | } | |
76 | ||
77 | public Long getMessagesUsed() { | |
78 |
1
1. getMessagesUsed : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/account/Metadata::getMessagesUsed → KILLED |
return messagesUsed; |
79 | } | |
80 | ||
81 | public Long getCreditsUsed() { | |
82 |
1
1. getCreditsUsed : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/account/Metadata::getCreditsUsed → KILLED |
return creditsUsed; |
83 | } | |
84 | ||
85 | public Long getCircuitBreaker() { | |
86 |
1
1. getCircuitBreaker : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/account/Metadata::getCircuitBreaker → KILLED |
return circuitBreaker; |
87 | } | |
88 | ||
89 | @Override | |
90 | public boolean equals(final Object o) { | |
91 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
92 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/account/Metadata::equals → KILLED |
return true; |
93 | } | |
94 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
95 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/account/Metadata::equals → KILLED |
return false; |
96 | } | |
97 | final Metadata metadata = (Metadata) o; | |
98 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/account/Metadata::equals → KILLED |
return Objects.equals(payAsYouGoEnabled, metadata.payAsYouGoEnabled) && |
99 |
1
1. equals : negated conditional → KILLED |
Objects.equals(effectiveDate, metadata.effectiveDate) && |
100 |
1
1. equals : negated conditional → KILLED |
Objects.equals(endDateEffective, metadata.endDateEffective) && |
101 |
1
1. equals : negated conditional → KILLED |
Objects.equals(subscriptionTermType, metadata.subscriptionTermType) && |
102 |
1
1. equals : negated conditional → KILLED |
Objects.equals(tierName, metadata.tierName) && |
103 |
1
1. equals : negated conditional → KILLED |
Objects.equals(messageLimit, metadata.messageLimit) && |
104 |
1
1. equals : negated conditional → KILLED |
Objects.equals(creditLimit, metadata.creditLimit) && |
105 |
1
1. equals : negated conditional → KILLED |
Objects.equals(messagesUsed, metadata.messagesUsed) && |
106 |
1
1. equals : negated conditional → KILLED |
Objects.equals(creditsUsed, metadata.creditsUsed) && |
107 |
1
1. equals : negated conditional → KILLED |
Objects.equals(circuitBreaker, metadata.circuitBreaker); |
108 | } | |
109 | ||
110 | @Override | |
111 | public int hashCode() { | |
112 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/account/Metadata::hashCode → KILLED |
return Objects.hash(payAsYouGoEnabled, effectiveDate, endDateEffective, subscriptionTermType, tierName, |
113 | messageLimit, creditLimit, messagesUsed, creditsUsed, circuitBreaker); | |
114 | } | |
115 | ||
116 | @Override | |
117 | public String toString() { | |
118 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/account/Metadata::toString → KILLED |
return new StringJoiner(", ", Metadata.class.getSimpleName() + "[", "]") |
119 | .add("payAsYouGoEnabled=" + payAsYouGoEnabled) | |
120 | .add("effectiveDate=" + effectiveDate) | |
121 | .add("endDateEffective=" + endDateEffective) | |
122 | .add("subscriptionTermType='" + subscriptionTermType + "'") | |
123 | .add("tierName='" + tierName + "'") | |
124 | .add("messageLimit=" + messageLimit) | |
125 | .add("creditLimit=" + creditLimit) | |
126 | .add("messagesUsed=" + messagesUsed) | |
127 | .add("creditsUsed=" + creditsUsed) | |
128 | .add("circuitBreaker=" + circuitBreaker) | |
129 | .toString(); | |
130 | } | |
131 | } | |
Mutations | ||
50 |
1.1 2.2 |
|
54 |
1.1 |
|
58 |
1.1 |
|
62 |
1.1 |
|
66 |
1.1 |
|
70 |
1.1 |
|
74 |
1.1 |
|
78 |
1.1 |
|
82 |
1.1 |
|
86 |
1.1 |
|
91 |
1.1 |
|
92 |
1.1 |
|
94 |
1.1 2.2 |
|
95 |
1.1 |
|
98 |
1.1 2.2 |
|
99 |
1.1 |
|
100 |
1.1 |
|
101 |
1.1 |
|
102 |
1.1 |
|
103 |
1.1 |
|
104 |
1.1 |
|
105 |
1.1 |
|
106 |
1.1 |
|
107 |
1.1 |
|
112 |
1.1 |
|
118 |
1.1 |