Visitar URL original
Added reasons lists to the results so they can be read from the serve… · arodoni/codelibrary-java@9454f50 · GitHub
Skip to content

Commit 9454f50

Browse files
committed
Added reasons lists to the results so they can be read from the server json when the call succeeds
1 parent f32a434 commit 9454f50

10 files changed

Lines changed: 203 additions & 17 deletions

‎src/main/java/io/swagger/client/model/CommonResponseType.java‎

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
package io.swagger.client.model;
2727

28+
import java.util.List;
2829
import java.util.Objects;
2930
import com.google.gson.annotations.SerializedName;
3031
import io.swagger.annotations.ApiModel;
@@ -39,6 +40,9 @@ public class CommonResponseType {
3940
@SerializedName("success")
4041
private Boolean success = null;
4142

43+
@SerializedName("reasons")
44+
private List<Reason> reasons = null;
45+
4246
public CommonResponseType success(Boolean success) {
4347
this.success = success;
4448
return this;
@@ -57,6 +61,19 @@ public void setSuccess(Boolean success) {
5761
this.success = success;
5862
}
5963

64+
public CommonResponseType reasons(List<Reason> reasons) {
65+
this.reasons = reasons;
66+
return this;
67+
}
68+
69+
public List<Reason> getReasons() {
70+
return reasons;
71+
}
72+
73+
public void setReasons(List<Reason> reasons) {
74+
this.reasons = reasons;
75+
}
76+
6077

6178
@Override
6279
public boolean equals(java.lang.Object o) {
@@ -67,12 +84,13 @@ public boolean equals(java.lang.Object o) {
6784
return false;
6885
}
6986
CommonResponseType commonResponseType = (CommonResponseType) o;
70-
return Objects.equals(this.success, commonResponseType.success);
87+
return Objects.equals(this.success, commonResponseType.success) &&
88+
Objects.equals(this.reasons, commonResponseType.reasons);
7189
}
7290

7391
@Override
7492
public int hashCode() {
75-
return Objects.hash(success);
93+
return Objects.hash(success, reasons);
7694
}
7795

7896
@Override
@@ -81,6 +99,7 @@ public String toString() {
8199
sb.append("class CommonResponseType {\n");
82100

83101
sb.append(" success: ").append(toIndentedString(success)).append("\n");
102+
sb.append(" reasons: ").append(toIndentedString(reasons)).append("\n");
84103
sb.append("}");
85104
return sb.toString();
86105
}

‎src/main/java/io/swagger/client/model/GETAccountSummaryType.java‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ public class GETAccountSummaryType {
6767
@SerializedName("success")
6868
private Boolean success = null;
6969

70+
@SerializedName("reasons")
71+
private List<Reason> reasons = null;
72+
7073
@SerializedName("taxInfo")
7174
private GETAccountSummaryTypeTaxInfo taxInfo = null;
7275

@@ -214,6 +217,19 @@ public void setSuccess(Boolean success) {
214217
this.success = success;
215218
}
216219

220+
public GETAccountSummaryType reasons(List<Reason> reasons) {
221+
this.reasons = reasons;
222+
return this;
223+
}
224+
225+
public List<Reason> getReasons() {
226+
return reasons;
227+
}
228+
229+
public void setReasons(List<Reason> reasons) {
230+
this.reasons = reasons;
231+
}
232+
217233
public GETAccountSummaryType taxInfo(GETAccountSummaryTypeTaxInfo taxInfo) {
218234
this.taxInfo = taxInfo;
219235
return this;
@@ -272,13 +288,14 @@ public boolean equals(java.lang.Object o) {
272288
Objects.equals(this.soldToContact, gETAccountSummaryType.soldToContact) &&
273289
Objects.equals(this.subscriptions, gETAccountSummaryType.subscriptions) &&
274290
Objects.equals(this.success, gETAccountSummaryType.success) &&
291+
Objects.equals(this.reasons, gETAccountSummaryType.reasons) &&
275292
Objects.equals(this.taxInfo, gETAccountSummaryType.taxInfo) &&
276293
Objects.equals(this.usage, gETAccountSummaryType.usage);
277294
}
278295

279296
@Override
280297
public int hashCode() {
281-
return Objects.hash(basicInfo, billToContact, invoices, payments, soldToContact, subscriptions, success, taxInfo, usage);
298+
return Objects.hash(basicInfo, billToContact, invoices, payments, soldToContact, subscriptions, success, reasons, taxInfo, usage);
282299
}
283300

284301
@Override
@@ -293,6 +310,7 @@ public String toString() {
293310
sb.append(" soldToContact: ").append(toIndentedString(soldToContact)).append("\n");
294311
sb.append(" subscriptions: ").append(toIndentedString(subscriptions)).append("\n");
295312
sb.append(" success: ").append(toIndentedString(success)).append("\n");
313+
sb.append(" reasons: ").append(toIndentedString(reasons)).append("\n");
296314
sb.append(" taxInfo: ").append(toIndentedString(taxInfo)).append("\n");
297315
sb.append(" usage: ").append(toIndentedString(usage)).append("\n");
298316
sb.append("}");

‎src/main/java/io/swagger/client/model/GETSubscriptionTypeWithSuccess.java‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ public class GETSubscriptionTypeWithSuccess {
130130
@SerializedName("status")
131131
private String status = null;
132132

133+
@SerializedName("reasons")
134+
private List<Reason> reasons = null;
135+
133136
@SerializedName("subscriptionNumber")
134137
private String subscriptionNumber = null;
135138

@@ -750,6 +753,19 @@ public void setSuccess(Boolean success) {
750753
this.success = success;
751754
}
752755

756+
public GETSubscriptionTypeWithSuccess reasons(List<Reason> reasons) {
757+
this.reasons = reasons;
758+
return this;
759+
}
760+
761+
public List<Reason> getReasons() {
762+
return reasons;
763+
}
764+
765+
public void setReasons(List<Reason> reasons) {
766+
this.reasons = reasons;
767+
}
768+
753769
public GETSubscriptionTypeWithSuccess termEndDate(LocalDate termEndDate) {
754770
this.termEndDate = termEndDate;
755771
return this;
@@ -865,6 +881,7 @@ public boolean equals(java.lang.Object o) {
865881
Objects.equals(this.subscriptionNumber, gETSubscriptionTypeWithSuccess.subscriptionNumber) &&
866882
Objects.equals(this.subscriptionStartDate, gETSubscriptionTypeWithSuccess.subscriptionStartDate) &&
867883
Objects.equals(this.success, gETSubscriptionTypeWithSuccess.success) &&
884+
Objects.equals(this.reasons, gETSubscriptionTypeWithSuccess.reasons) &&
868885
Objects.equals(this.termEndDate, gETSubscriptionTypeWithSuccess.termEndDate) &&
869886
Objects.equals(this.termStartDate, gETSubscriptionTypeWithSuccess.termStartDate) &&
870887
Objects.equals(this.termType, gETSubscriptionTypeWithSuccess.termType) &&
@@ -873,7 +890,7 @@ public boolean equals(java.lang.Object o) {
873890

874891
@Override
875892
public int hashCode() {
876-
return Objects.hash(cpqBundleJsonIdQT, opportunityCloseDateQT, opportunityNameQT, quoteBusinessTypeQT, quoteNumberQT, quoteTypeQT, accountId, accountName, accountNumber, autoRenew, contractEffectiveDate, contractedMrr, currentTerm, currentTermPeriodType, customFieldC, customerAcceptanceDate, id, initialTerm, initialTermPeriodType, invoiceOwnerAccountId, invoiceOwnerAccountName, invoiceOwnerAccountNumber, invoiceSeparately, notes, ratePlans, renewalSetting, renewalTerm, renewalTermPeriodType, serviceActivationDate, status, subscriptionNumber, subscriptionStartDate, success, termEndDate, termStartDate, termType, totalContractedValue);
893+
return Objects.hash(cpqBundleJsonIdQT, opportunityCloseDateQT, opportunityNameQT, quoteBusinessTypeQT, quoteNumberQT, quoteTypeQT, accountId, accountName, accountNumber, autoRenew, contractEffectiveDate, contractedMrr, currentTerm, currentTermPeriodType, customFieldC, customerAcceptanceDate, id, initialTerm, initialTermPeriodType, invoiceOwnerAccountId, invoiceOwnerAccountName, invoiceOwnerAccountNumber, invoiceSeparately, notes, ratePlans, renewalSetting, renewalTerm, renewalTermPeriodType, serviceActivationDate, status, subscriptionNumber, subscriptionStartDate, success, reasons, termEndDate, termStartDate, termType, totalContractedValue);
877894
}
878895

879896
@Override
@@ -914,6 +931,7 @@ public String toString() {
914931
sb.append(" subscriptionNumber: ").append(toIndentedString(subscriptionNumber)).append("\n");
915932
sb.append(" subscriptionStartDate: ").append(toIndentedString(subscriptionStartDate)).append("\n");
916933
sb.append(" success: ").append(toIndentedString(success)).append("\n");
934+
sb.append(" reasons: ").append(toIndentedString(reasons)).append("\n");
917935
sb.append(" termEndDate: ").append(toIndentedString(termEndDate)).append("\n");
918936
sb.append(" termStartDate: ").append(toIndentedString(termStartDate)).append("\n");
919937
sb.append(" termType: ").append(toIndentedString(termType)).append("\n");

‎src/main/java/io/swagger/client/model/GETSubscriptionWrapper.java‎

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ public class GETSubscriptionWrapper {
4545
@SerializedName("success")
4646
private Boolean success = null;
4747

48+
@SerializedName("reasons")
49+
private List<Reason> reasons = null;
50+
4851
public GETSubscriptionWrapper subscriptions(List<GETSubscriptionType> subscriptions) {
4952
this.subscriptions = subscriptions;
5053
return this;
@@ -86,6 +89,19 @@ public void setSuccess(Boolean success) {
8689
this.success = success;
8790
}
8891

92+
public GETSubscriptionWrapper reasons(List<Reason> reasons) {
93+
this.reasons = reasons;
94+
return this;
95+
}
96+
97+
public List<Reason> getReasons() {
98+
return reasons;
99+
}
100+
101+
public void setReasons(List<Reason> reasons) {
102+
this.reasons = reasons;
103+
}
104+
89105

90106
@Override
91107
public boolean equals(java.lang.Object o) {
@@ -97,12 +113,13 @@ public boolean equals(java.lang.Object o) {
97113
}
98114
GETSubscriptionWrapper gETSubscriptionWrapper = (GETSubscriptionWrapper) o;
99115
return Objects.equals(this.subscriptions, gETSubscriptionWrapper.subscriptions) &&
100-
Objects.equals(this.success, gETSubscriptionWrapper.success);
116+
Objects.equals(this.success, gETSubscriptionWrapper.success) &&
117+
Objects.equals(this.reasons, gETSubscriptionWrapper.reasons);
101118
}
102119

103120
@Override
104121
public int hashCode() {
105-
return Objects.hash(subscriptions, success);
122+
return Objects.hash(subscriptions, success, reasons);
106123
}
107124

108125
@Override
@@ -112,6 +129,7 @@ public String toString() {
112129

113130
sb.append(" subscriptions: ").append(toIndentedString(subscriptions)).append("\n");
114131
sb.append(" success: ").append(toIndentedString(success)).append("\n");
132+
sb.append(" reasons: ").append(toIndentedString(reasons)).append("\n");
115133
sb.append("}");
116134
return sb.toString();
117135
}

‎src/main/java/io/swagger/client/model/POSTAccountResponseType.java‎

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
package io.swagger.client.model;
2727

28+
import java.util.List;
2829
import java.util.Objects;
2930
import com.google.gson.annotations.SerializedName;
3031
import io.swagger.annotations.ApiModel;
@@ -66,6 +67,9 @@ public class POSTAccountResponseType {
6667
@SerializedName("success")
6768
private Boolean success = null;
6869

70+
@SerializedName("reasons")
71+
private List<Reason> reasons = null;
72+
6973
@SerializedName("totalContractedValue")
7074
private String totalContractedValue = null;
7175

@@ -236,10 +240,10 @@ public POSTAccountResponseType success(Boolean success) {
236240
return this;
237241
}
238242

239-
/**
240-
* Returns `true` if the request was processed successfully.
243+
/**
244+
* Returns `true` if the request was processed successfully.
241245
* @return success
242-
**/
246+
**/
243247
@ApiModelProperty(example = "null", value = "Returns `true` if the request was processed successfully. ")
244248
public Boolean getSuccess() {
245249
return success;
@@ -249,6 +253,19 @@ public void setSuccess(Boolean success) {
249253
this.success = success;
250254
}
251255

256+
public POSTAccountResponseType reasons(List<Reason> reasons) {
257+
this.reasons = reasons;
258+
return this;
259+
}
260+
261+
public List<Reason> getReasons() {
262+
return reasons;
263+
}
264+
265+
public void setReasons(List<Reason> reasons) {
266+
this.reasons = reasons;
267+
}
268+
252269
public POSTAccountResponseType totalContractedValue(String totalContractedValue) {
253270
this.totalContractedValue = totalContractedValue;
254271
return this;
@@ -287,12 +304,13 @@ public boolean equals(java.lang.Object o) {
287304
Objects.equals(this.subscriptionId, pOSTAccountResponseType.subscriptionId) &&
288305
Objects.equals(this.subscriptionNumber, pOSTAccountResponseType.subscriptionNumber) &&
289306
Objects.equals(this.success, pOSTAccountResponseType.success) &&
307+
Objects.equals(this.reasons, pOSTAccountResponseType.reasons) &&
290308
Objects.equals(this.totalContractedValue, pOSTAccountResponseType.totalContractedValue);
291309
}
292310

293311
@Override
294312
public int hashCode() {
295-
return Objects.hash(accountId, accountNumber, contractedMrr, invoiceId, paidAmount, paymentId, paymentMethodId, subscriptionId, subscriptionNumber, success, totalContractedValue);
313+
return Objects.hash(accountId, accountNumber, contractedMrr, invoiceId, paidAmount, paymentId, paymentMethodId, subscriptionId, subscriptionNumber, success, reasons, totalContractedValue);
296314
}
297315

298316
@Override
@@ -310,6 +328,7 @@ public String toString() {
310328
sb.append(" subscriptionId: ").append(toIndentedString(subscriptionId)).append("\n");
311329
sb.append(" subscriptionNumber: ").append(toIndentedString(subscriptionNumber)).append("\n");
312330
sb.append(" success: ").append(toIndentedString(success)).append("\n");
331+
sb.append(" reasons: ").append(toIndentedString(reasons)).append("\n");
313332
sb.append(" totalContractedValue: ").append(toIndentedString(totalContractedValue)).append("\n");
314333
sb.append("}");
315334
return sb.toString();

‎src/main/java/io/swagger/client/model/POSTDecryptResponseType.java‎

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
package io.swagger.client.model;
2727

28+
import java.util.List;
2829
import java.util.Objects;
2930
import com.google.gson.annotations.SerializedName;
3031
import io.swagger.annotations.ApiModel;
@@ -48,6 +49,9 @@ public class POSTDecryptResponseType {
4849
@SerializedName("success")
4950
private Boolean success = null;
5051

52+
@SerializedName("reasons")
53+
private List<Reason> reasons = null;
54+
5155
public POSTDecryptResponseType decryptedSignature(String decryptedSignature) {
5256
this.decryptedSignature = decryptedSignature;
5357
return this;
@@ -120,6 +124,19 @@ public void setSuccess(Boolean success) {
120124
this.success = success;
121125
}
122126

127+
public POSTDecryptResponseType reasons(List<Reason> reasons) {
128+
this.reasons = reasons;
129+
return this;
130+
}
131+
132+
public List<Reason> getReasons() {
133+
return reasons;
134+
}
135+
136+
public void setReasons(List<Reason> reasons) {
137+
this.reasons = reasons;
138+
}
139+
123140

124141
@Override
125142
public boolean equals(java.lang.Object o) {
@@ -133,12 +150,13 @@ public boolean equals(java.lang.Object o) {
133150
return Objects.equals(this.decryptedSignature, pOSTDecryptResponseType.decryptedSignature) &&
134151
Objects.equals(this.publicKey, pOSTDecryptResponseType.publicKey) &&
135152
Objects.equals(this.signature, pOSTDecryptResponseType.signature) &&
136-
Objects.equals(this.success, pOSTDecryptResponseType.success);
153+
Objects.equals(this.success, pOSTDecryptResponseType.success) &&
154+
Objects.equals(this.reasons, pOSTDecryptResponseType.reasons);
137155
}
138156

139157
@Override
140158
public int hashCode() {
141-
return Objects.hash(decryptedSignature, publicKey, signature, success);
159+
return Objects.hash(decryptedSignature, publicKey, signature, success, reasons);
142160
}
143161

144162
@Override
@@ -150,6 +168,7 @@ public String toString() {
150168
sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n");
151169
sb.append(" signature: ").append(toIndentedString(signature)).append("\n");
152170
sb.append(" success: ").append(toIndentedString(success)).append("\n");
171+
sb.append(" reasons: ").append(toIndentedString(reasons)).append("\n");
153172
sb.append("}");
154173
return sb.toString();
155174
}

0 commit comments

Comments
 (0)