diff --git a/src/main/java/io/swagger/client/api/AccountsApi.java b/src/main/java/io/swagger/client/api/AccountsApi.java index 299e299..9bfbab5 100755 --- a/src/main/java/io/swagger/client/api/AccountsApi.java +++ b/src/main/java/io/swagger/client/api/AccountsApi.java @@ -195,7 +195,7 @@ private com.squareup.okhttp.Call gETAccountSummaryCall(String accountKey, final // create path and map variables - String localVarPath = "/accounts/{account-key}/Summary".replaceAll("\\{format\\}","json") + String localVarPath = "/accounts/{account-key}/summary".replaceAll("\\{format\\}","json") .replaceAll("\\{" + "account-key" + "\\}", apiClient.escapeString(accountKey.toString())); List localVarQueryParams = new ArrayList(); diff --git a/src/main/java/io/swagger/client/api/ActionsApi.java b/src/main/java/io/swagger/client/api/ActionsApi.java index 6c6fece..f7dc58f 100755 --- a/src/main/java/io/swagger/client/api/ActionsApi.java +++ b/src/main/java/io/swagger/client/api/ActionsApi.java @@ -25,6 +25,8 @@ package io.swagger.client.api; +import com.google.gson.reflect.TypeToken; + import io.swagger.client.ApiCallback; import io.swagger.client.ApiClient; import io.swagger.client.ApiException; @@ -33,31 +35,27 @@ import io.swagger.client.Pair; import io.swagger.client.ProgressRequestBody; import io.swagger.client.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - -import io.swagger.client.model.ProxyActionamendResponse; -import io.swagger.client.model.ProxyBadRequestResponse; import io.swagger.client.model.ProxyActionamendRequest; +import io.swagger.client.model.ProxyActionamendResponse; import io.swagger.client.model.ProxyActioncreateRequest; import io.swagger.client.model.ProxyActioncreateResponse; import io.swagger.client.model.ProxyActiondeleteRequest; import io.swagger.client.model.ProxyActiondeleteResponse; -import io.swagger.client.model.ProxyActionexecuteResponse; import io.swagger.client.model.ProxyActionexecuteRequest; +import io.swagger.client.model.ProxyActionexecuteResponse; import io.swagger.client.model.ProxyActiongenerateRequest; import io.swagger.client.model.ProxyActiongenerateResponse; -import io.swagger.client.model.ProxyActionqueryResponse; -import io.swagger.client.model.ProxyActionqueryRequest; -import io.swagger.client.model.ProxyActionqueryMoreResponse; import io.swagger.client.model.ProxyActionqueryMoreRequest; -import io.swagger.client.model.ProxyActionsubscribeResponse; +import io.swagger.client.model.ProxyActionqueryMoreResponse; +import io.swagger.client.model.ProxyActionqueryRequest; +import io.swagger.client.model.ProxyActionqueryResponse; import io.swagger.client.model.ProxyActionsubscribeRequest; -import io.swagger.client.model.ProxyActionupdateResponse; +import io.swagger.client.model.ProxyActionsubscribeResponse; import io.swagger.client.model.ProxyActionupdateRequest; +import io.swagger.client.model.ProxyActionupdateResponse; +import io.swagger.client.model.SubscribeResult; +import java.io.IOException; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.HashMap; @@ -893,8 +891,11 @@ public ProxyActionsubscribeResponse proxyActionPOSTsubscribe(ProxyActionsubscrib */ public ApiResponse proxyActionPOSTsubscribeWithHttpInfo(ProxyActionsubscribeRequest subscribeRequest) throws ApiException { com.squareup.okhttp.Call call = proxyActionPOSTsubscribeCall(subscribeRequest, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + // Need to look for an anonymous array type (ie that inside ProxyActionsubscribeResponse) since + // the JSON returned from the API in a successful case starts: "[{...". If ok (no exception) + // wrap the result up into a ProxyActionsubscribeResponse. + final ApiResponse> execute = apiClient.execute(call, new TypeToken>() {}.getType()); + return new ApiResponse<>(execute.getStatusCode(), execute.getHeaders(), new ProxyActionsubscribeResponse().result(execute.getData())); } /** diff --git a/src/main/java/io/swagger/client/model/CommonResponseType.java b/src/main/java/io/swagger/client/model/CommonResponseType.java index 8d54f39..7986eaf 100755 --- a/src/main/java/io/swagger/client/model/CommonResponseType.java +++ b/src/main/java/io/swagger/client/model/CommonResponseType.java @@ -25,6 +25,7 @@ package io.swagger.client.model; +import java.util.List; import java.util.Objects; import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; @@ -39,6 +40,9 @@ public class CommonResponseType { @SerializedName("success") private Boolean success = null; + @SerializedName("reasons") + private List reasons = null; + public CommonResponseType success(Boolean success) { this.success = success; return this; @@ -57,6 +61,19 @@ public void setSuccess(Boolean success) { this.success = success; } + public CommonResponseType reasons(List reasons) { + this.reasons = reasons; + return this; + } + + public List getReasons() { + return reasons; + } + + public void setReasons(List reasons) { + this.reasons = reasons; + } + @Override public boolean equals(java.lang.Object o) { @@ -67,12 +84,13 @@ public boolean equals(java.lang.Object o) { return false; } CommonResponseType commonResponseType = (CommonResponseType) o; - return Objects.equals(this.success, commonResponseType.success); + return Objects.equals(this.success, commonResponseType.success) && + Objects.equals(this.reasons, commonResponseType.reasons); } @Override public int hashCode() { - return Objects.hash(success); + return Objects.hash(success, reasons); } @Override @@ -81,6 +99,7 @@ public String toString() { sb.append("class CommonResponseType {\n"); sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append(" reasons: ").append(toIndentedString(reasons)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/io/swagger/client/model/GETAccountSummaryType.java b/src/main/java/io/swagger/client/model/GETAccountSummaryType.java index dc4d03e..84f9726 100755 --- a/src/main/java/io/swagger/client/model/GETAccountSummaryType.java +++ b/src/main/java/io/swagger/client/model/GETAccountSummaryType.java @@ -67,6 +67,9 @@ public class GETAccountSummaryType { @SerializedName("success") private Boolean success = null; + @SerializedName("reasons") + private List reasons = null; + @SerializedName("taxInfo") private GETAccountSummaryTypeTaxInfo taxInfo = null; @@ -214,6 +217,19 @@ public void setSuccess(Boolean success) { this.success = success; } + public GETAccountSummaryType reasons(List reasons) { + this.reasons = reasons; + return this; + } + + public List getReasons() { + return reasons; + } + + public void setReasons(List reasons) { + this.reasons = reasons; + } + public GETAccountSummaryType taxInfo(GETAccountSummaryTypeTaxInfo taxInfo) { this.taxInfo = taxInfo; return this; @@ -272,13 +288,14 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.soldToContact, gETAccountSummaryType.soldToContact) && Objects.equals(this.subscriptions, gETAccountSummaryType.subscriptions) && Objects.equals(this.success, gETAccountSummaryType.success) && + Objects.equals(this.reasons, gETAccountSummaryType.reasons) && Objects.equals(this.taxInfo, gETAccountSummaryType.taxInfo) && Objects.equals(this.usage, gETAccountSummaryType.usage); } @Override public int hashCode() { - return Objects.hash(basicInfo, billToContact, invoices, payments, soldToContact, subscriptions, success, taxInfo, usage); + return Objects.hash(basicInfo, billToContact, invoices, payments, soldToContact, subscriptions, success, reasons, taxInfo, usage); } @Override @@ -293,6 +310,7 @@ public String toString() { sb.append(" soldToContact: ").append(toIndentedString(soldToContact)).append("\n"); sb.append(" subscriptions: ").append(toIndentedString(subscriptions)).append("\n"); sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append(" reasons: ").append(toIndentedString(reasons)).append("\n"); sb.append(" taxInfo: ").append(toIndentedString(taxInfo)).append("\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); sb.append("}"); diff --git a/src/main/java/io/swagger/client/model/GETSubscriptionRatePlanChargesType.java b/src/main/java/io/swagger/client/model/GETSubscriptionRatePlanChargesType.java index 4666e68..7a4e6d2 100755 --- a/src/main/java/io/swagger/client/model/GETSubscriptionRatePlanChargesType.java +++ b/src/main/java/io/swagger/client/model/GETSubscriptionRatePlanChargesType.java @@ -155,7 +155,7 @@ public class GETSubscriptionRatePlanChargesType { private String ratingGroup = null; @SerializedName("segment") - private LocalDate segment = null; + private String segment = null; @SerializedName("smoothingModel") private String smoothingModel = null; @@ -883,7 +883,7 @@ public void setRatingGroup(String ratingGroup) { this.ratingGroup = ratingGroup; } - public GETSubscriptionRatePlanChargesType segment(LocalDate segment) { + public GETSubscriptionRatePlanChargesType segment(String segment) { this.segment = segment; return this; } @@ -893,11 +893,11 @@ public GETSubscriptionRatePlanChargesType segment(LocalDate segment) { * @return segment **/ @ApiModelProperty(example = "null", value = "The identifying number of the subscription rate plan segment. Segments are numbered sequentially, starting with 1. ") - public LocalDate getSegment() { + public String getSegment() { return segment; } - public void setSegment(LocalDate segment) { + public void setSegment(String segment) { this.segment = segment; } diff --git a/src/main/java/io/swagger/client/model/GETSubscriptionTypeWithSuccess.java b/src/main/java/io/swagger/client/model/GETSubscriptionTypeWithSuccess.java index de0b76a..15705ca 100755 --- a/src/main/java/io/swagger/client/model/GETSubscriptionTypeWithSuccess.java +++ b/src/main/java/io/swagger/client/model/GETSubscriptionTypeWithSuccess.java @@ -130,6 +130,9 @@ public class GETSubscriptionTypeWithSuccess { @SerializedName("status") private String status = null; + @SerializedName("reasons") + private List reasons = null; + @SerializedName("subscriptionNumber") private String subscriptionNumber = null; @@ -750,6 +753,19 @@ public void setSuccess(Boolean success) { this.success = success; } + public GETSubscriptionTypeWithSuccess reasons(List reasons) { + this.reasons = reasons; + return this; + } + + public List getReasons() { + return reasons; + } + + public void setReasons(List reasons) { + this.reasons = reasons; + } + public GETSubscriptionTypeWithSuccess termEndDate(LocalDate termEndDate) { this.termEndDate = termEndDate; return this; @@ -865,6 +881,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.subscriptionNumber, gETSubscriptionTypeWithSuccess.subscriptionNumber) && Objects.equals(this.subscriptionStartDate, gETSubscriptionTypeWithSuccess.subscriptionStartDate) && Objects.equals(this.success, gETSubscriptionTypeWithSuccess.success) && + Objects.equals(this.reasons, gETSubscriptionTypeWithSuccess.reasons) && Objects.equals(this.termEndDate, gETSubscriptionTypeWithSuccess.termEndDate) && Objects.equals(this.termStartDate, gETSubscriptionTypeWithSuccess.termStartDate) && Objects.equals(this.termType, gETSubscriptionTypeWithSuccess.termType) && @@ -873,7 +890,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - 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); + 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); } @Override @@ -914,6 +931,7 @@ public String toString() { sb.append(" subscriptionNumber: ").append(toIndentedString(subscriptionNumber)).append("\n"); sb.append(" subscriptionStartDate: ").append(toIndentedString(subscriptionStartDate)).append("\n"); sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append(" reasons: ").append(toIndentedString(reasons)).append("\n"); sb.append(" termEndDate: ").append(toIndentedString(termEndDate)).append("\n"); sb.append(" termStartDate: ").append(toIndentedString(termStartDate)).append("\n"); sb.append(" termType: ").append(toIndentedString(termType)).append("\n"); diff --git a/src/main/java/io/swagger/client/model/GETSubscriptionWrapper.java b/src/main/java/io/swagger/client/model/GETSubscriptionWrapper.java index 5e4246e..718438c 100755 --- a/src/main/java/io/swagger/client/model/GETSubscriptionWrapper.java +++ b/src/main/java/io/swagger/client/model/GETSubscriptionWrapper.java @@ -45,6 +45,9 @@ public class GETSubscriptionWrapper { @SerializedName("success") private Boolean success = null; + @SerializedName("reasons") + private List reasons = null; + public GETSubscriptionWrapper subscriptions(List subscriptions) { this.subscriptions = subscriptions; return this; @@ -86,6 +89,19 @@ public void setSuccess(Boolean success) { this.success = success; } + public GETSubscriptionWrapper reasons(List reasons) { + this.reasons = reasons; + return this; + } + + public List getReasons() { + return reasons; + } + + public void setReasons(List reasons) { + this.reasons = reasons; + } + @Override public boolean equals(java.lang.Object o) { @@ -97,12 +113,13 @@ public boolean equals(java.lang.Object o) { } GETSubscriptionWrapper gETSubscriptionWrapper = (GETSubscriptionWrapper) o; return Objects.equals(this.subscriptions, gETSubscriptionWrapper.subscriptions) && - Objects.equals(this.success, gETSubscriptionWrapper.success); + Objects.equals(this.success, gETSubscriptionWrapper.success) && + Objects.equals(this.reasons, gETSubscriptionWrapper.reasons); } @Override public int hashCode() { - return Objects.hash(subscriptions, success); + return Objects.hash(subscriptions, success, reasons); } @Override @@ -112,6 +129,7 @@ public String toString() { sb.append(" subscriptions: ").append(toIndentedString(subscriptions)).append("\n"); sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append(" reasons: ").append(toIndentedString(reasons)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/io/swagger/client/model/POSTAccountResponseType.java b/src/main/java/io/swagger/client/model/POSTAccountResponseType.java index f3e12f4..ea24053 100755 --- a/src/main/java/io/swagger/client/model/POSTAccountResponseType.java +++ b/src/main/java/io/swagger/client/model/POSTAccountResponseType.java @@ -25,6 +25,7 @@ package io.swagger.client.model; +import java.util.List; import java.util.Objects; import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; @@ -66,6 +67,9 @@ public class POSTAccountResponseType { @SerializedName("success") private Boolean success = null; + @SerializedName("reasons") + private List reasons = null; + @SerializedName("totalContractedValue") private String totalContractedValue = null; @@ -236,10 +240,10 @@ public POSTAccountResponseType success(Boolean success) { return this; } - /** - * Returns `true` if the request was processed successfully. + /** + * Returns `true` if the request was processed successfully. * @return success - **/ + **/ @ApiModelProperty(example = "null", value = "Returns `true` if the request was processed successfully. ") public Boolean getSuccess() { return success; @@ -249,6 +253,19 @@ public void setSuccess(Boolean success) { this.success = success; } + public POSTAccountResponseType reasons(List reasons) { + this.reasons = reasons; + return this; + } + + public List getReasons() { + return reasons; + } + + public void setReasons(List reasons) { + this.reasons = reasons; + } + public POSTAccountResponseType totalContractedValue(String totalContractedValue) { this.totalContractedValue = totalContractedValue; return this; @@ -287,12 +304,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.subscriptionId, pOSTAccountResponseType.subscriptionId) && Objects.equals(this.subscriptionNumber, pOSTAccountResponseType.subscriptionNumber) && Objects.equals(this.success, pOSTAccountResponseType.success) && + Objects.equals(this.reasons, pOSTAccountResponseType.reasons) && Objects.equals(this.totalContractedValue, pOSTAccountResponseType.totalContractedValue); } @Override public int hashCode() { - return Objects.hash(accountId, accountNumber, contractedMrr, invoiceId, paidAmount, paymentId, paymentMethodId, subscriptionId, subscriptionNumber, success, totalContractedValue); + return Objects.hash(accountId, accountNumber, contractedMrr, invoiceId, paidAmount, paymentId, paymentMethodId, subscriptionId, subscriptionNumber, success, reasons, totalContractedValue); } @Override @@ -310,6 +328,7 @@ public String toString() { sb.append(" subscriptionId: ").append(toIndentedString(subscriptionId)).append("\n"); sb.append(" subscriptionNumber: ").append(toIndentedString(subscriptionNumber)).append("\n"); sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append(" reasons: ").append(toIndentedString(reasons)).append("\n"); sb.append(" totalContractedValue: ").append(toIndentedString(totalContractedValue)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/io/swagger/client/model/POSTDecryptResponseType.java b/src/main/java/io/swagger/client/model/POSTDecryptResponseType.java index 66b13e6..bf24fea 100755 --- a/src/main/java/io/swagger/client/model/POSTDecryptResponseType.java +++ b/src/main/java/io/swagger/client/model/POSTDecryptResponseType.java @@ -25,6 +25,7 @@ package io.swagger.client.model; +import java.util.List; import java.util.Objects; import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; @@ -48,6 +49,9 @@ public class POSTDecryptResponseType { @SerializedName("success") private Boolean success = null; + @SerializedName("reasons") + private List reasons = null; + public POSTDecryptResponseType decryptedSignature(String decryptedSignature) { this.decryptedSignature = decryptedSignature; return this; @@ -120,6 +124,19 @@ public void setSuccess(Boolean success) { this.success = success; } + public POSTDecryptResponseType reasons(List reasons) { + this.reasons = reasons; + return this; + } + + public List getReasons() { + return reasons; + } + + public void setReasons(List reasons) { + this.reasons = reasons; + } + @Override public boolean equals(java.lang.Object o) { @@ -133,12 +150,13 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.decryptedSignature, pOSTDecryptResponseType.decryptedSignature) && Objects.equals(this.publicKey, pOSTDecryptResponseType.publicKey) && Objects.equals(this.signature, pOSTDecryptResponseType.signature) && - Objects.equals(this.success, pOSTDecryptResponseType.success); + Objects.equals(this.success, pOSTDecryptResponseType.success) && + Objects.equals(this.reasons, pOSTDecryptResponseType.reasons); } @Override public int hashCode() { - return Objects.hash(decryptedSignature, publicKey, signature, success); + return Objects.hash(decryptedSignature, publicKey, signature, success, reasons); } @Override @@ -150,6 +168,7 @@ public String toString() { sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); sb.append(" signature: ").append(toIndentedString(signature)).append("\n"); sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append(" reasons: ").append(toIndentedString(reasons)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/io/swagger/client/model/POSTRSASignatureResponseType.java b/src/main/java/io/swagger/client/model/POSTRSASignatureResponseType.java index 468fe1e..1986425 100755 --- a/src/main/java/io/swagger/client/model/POSTRSASignatureResponseType.java +++ b/src/main/java/io/swagger/client/model/POSTRSASignatureResponseType.java @@ -25,6 +25,7 @@ package io.swagger.client.model; +import java.util.List; import java.util.Objects; import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; @@ -45,6 +46,9 @@ public class POSTRSASignatureResponseType { @SerializedName("success") private Boolean success = null; + @SerializedName("reasons") + private List reasons = null; + @SerializedName("tenantId") private String tenantId = null; @@ -105,6 +109,19 @@ public void setSuccess(Boolean success) { this.success = success; } + public POSTRSASignatureResponseType reasons(List reasons) { + this.reasons = reasons; + return this; + } + + public List getReasons() { + return reasons; + } + + public void setReasons(List reasons) { + this.reasons = reasons; + } + public POSTRSASignatureResponseType tenantId(String tenantId) { this.tenantId = tenantId; return this; @@ -154,13 +171,14 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.key, pOSTRSASignatureResponseType.key) && Objects.equals(this.signature, pOSTRSASignatureResponseType.signature) && Objects.equals(this.success, pOSTRSASignatureResponseType.success) && + Objects.equals(this.reasons, pOSTRSASignatureResponseType.reasons) && Objects.equals(this.tenantId, pOSTRSASignatureResponseType.tenantId) && Objects.equals(this.token, pOSTRSASignatureResponseType.token); } @Override public int hashCode() { - return Objects.hash(key, signature, success, tenantId, token); + return Objects.hash(key, signature, success, reasons, tenantId, token); } @Override @@ -171,6 +189,7 @@ public String toString() { sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" signature: ").append(toIndentedString(signature)).append("\n"); sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append(" reasons: ").append(toIndentedString(reasons)).append("\n"); sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); sb.append(" token: ").append(toIndentedString(token)).append("\n"); sb.append("}"); diff --git a/src/main/java/io/swagger/client/model/POSTSubscriptionPreviewResponseType.java b/src/main/java/io/swagger/client/model/POSTSubscriptionPreviewResponseType.java index c9a0765..70915be 100755 --- a/src/main/java/io/swagger/client/model/POSTSubscriptionPreviewResponseType.java +++ b/src/main/java/io/swagger/client/model/POSTSubscriptionPreviewResponseType.java @@ -65,6 +65,9 @@ public class POSTSubscriptionPreviewResponseType { @SerializedName("success") private Boolean success = null; + @SerializedName("reasons") + private List reasons = null; + @SerializedName("taxAmount") private String taxAmount = null; @@ -220,6 +223,19 @@ public void setSuccess(Boolean success) { this.success = success; } + public POSTSubscriptionPreviewResponseType reasons(List reasons) { + this.reasons = reasons; + return this; + } + + public List getReasons() { + return reasons; + } + + public void setReasons(List reasons) { + this.reasons = reasons; + } + public POSTSubscriptionPreviewResponseType taxAmount(String taxAmount) { this.taxAmount = taxAmount; return this; @@ -274,13 +290,14 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.invoiceTargetDate, pOSTSubscriptionPreviewResponseType.invoiceTargetDate) && Objects.equals(this.previewChargeMetricsResponse, pOSTSubscriptionPreviewResponseType.previewChargeMetricsResponse) && Objects.equals(this.success, pOSTSubscriptionPreviewResponseType.success) && + Objects.equals(this.reasons, pOSTSubscriptionPreviewResponseType.reasons) && Objects.equals(this.taxAmount, pOSTSubscriptionPreviewResponseType.taxAmount) && Objects.equals(this.totalContractedValue, pOSTSubscriptionPreviewResponseType.totalContractedValue); } @Override public int hashCode() { - return Objects.hash(amount, amountWithoutTax, chargeMetrics, contractedMrr, invoiceItems, invoiceTargetDate, previewChargeMetricsResponse, success, taxAmount, totalContractedValue); + return Objects.hash(amount, amountWithoutTax, chargeMetrics, contractedMrr, invoiceItems, invoiceTargetDate, previewChargeMetricsResponse, success, reasons, taxAmount, totalContractedValue); } @Override @@ -296,6 +313,7 @@ public String toString() { sb.append(" invoiceTargetDate: ").append(toIndentedString(invoiceTargetDate)).append("\n"); sb.append(" previewChargeMetricsResponse: ").append(toIndentedString(previewChargeMetricsResponse)).append("\n"); sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append(" reasons: ").append(toIndentedString(reasons)).append("\n"); sb.append(" taxAmount: ").append(toIndentedString(taxAmount)).append("\n"); sb.append(" totalContractedValue: ").append(toIndentedString(totalContractedValue)).append("\n"); sb.append("}"); diff --git a/src/main/java/io/swagger/client/model/POSTSubscriptionResponseType.java b/src/main/java/io/swagger/client/model/POSTSubscriptionResponseType.java index f25a119..d1b69af 100755 --- a/src/main/java/io/swagger/client/model/POSTSubscriptionResponseType.java +++ b/src/main/java/io/swagger/client/model/POSTSubscriptionResponseType.java @@ -25,6 +25,7 @@ package io.swagger.client.model; +import java.util.List; import java.util.Objects; import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; @@ -57,6 +58,9 @@ public class POSTSubscriptionResponseType { @SerializedName("success") private Boolean success = null; + @SerializedName("reasons") + private List reasons = null; + @SerializedName("totalContractedValue") private String totalContractedValue = null; @@ -186,6 +190,19 @@ public void setSuccess(Boolean success) { this.success = success; } + public POSTSubscriptionResponseType reasons(List reasons) { + this.reasons = reasons; + return this; + } + + public List getReasons() { + return reasons; + } + + public void setReasons(List reasons) { + this.reasons = reasons; + } + public POSTSubscriptionResponseType totalContractedValue(String totalContractedValue) { this.totalContractedValue = totalContractedValue; return this; @@ -221,12 +238,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.subscriptionId, pOSTSubscriptionResponseType.subscriptionId) && Objects.equals(this.subscriptionNumber, pOSTSubscriptionResponseType.subscriptionNumber) && Objects.equals(this.success, pOSTSubscriptionResponseType.success) && + Objects.equals(this.reasons, pOSTSubscriptionResponseType.reasons) && Objects.equals(this.totalContractedValue, pOSTSubscriptionResponseType.totalContractedValue); } @Override public int hashCode() { - return Objects.hash(contractedMrr, invoiceId, paidAmount, paymentId, subscriptionId, subscriptionNumber, success, totalContractedValue); + return Objects.hash(contractedMrr, invoiceId, paidAmount, paymentId, subscriptionId, subscriptionNumber, success, reasons, totalContractedValue); } @Override @@ -241,6 +259,7 @@ public String toString() { sb.append(" subscriptionId: ").append(toIndentedString(subscriptionId)).append("\n"); sb.append(" subscriptionNumber: ").append(toIndentedString(subscriptionNumber)).append("\n"); sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append(" reasons: ").append(toIndentedString(reasons)).append("\n"); sb.append(" totalContractedValue: ").append(toIndentedString(totalContractedValue)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/io/swagger/client/model/PUTJournalEntryItemType.java b/src/main/java/io/swagger/client/model/PUTJournalEntryItemType.java index ae9f5da..a60a219 100755 --- a/src/main/java/io/swagger/client/model/PUTJournalEntryItemType.java +++ b/src/main/java/io/swagger/client/model/PUTJournalEntryItemType.java @@ -54,10 +54,10 @@ public PUTJournalEntryItemType accountingCodeName(String accountingCodeName) { } /** - * Name of the accounting code. If the Journal Entry Item has a blank accounting code, enter the empty string (“”). + * Name of the accounting code. If the Journal Entry Item has a blank accounting code, enter the empty string (""). * @return accountingCodeName **/ - @ApiModelProperty(example = "null", required = true, value = "Name of the accounting code. If the Journal Entry Item has a blank accounting code, enter the empty string (“”). ") + @ApiModelProperty(example = "null", required = true, value = "Name of the accounting code. If the Journal Entry Item has a blank accounting code, enter the empty string (\"\"). ") public String getAccountingCodeName() { return accountingCodeName; } diff --git a/src/main/java/io/swagger/client/model/ProxyActionqueryMoreResponse.java b/src/main/java/io/swagger/client/model/ProxyActionqueryMoreResponse.java index a2361c5..e118531 100755 --- a/src/main/java/io/swagger/client/model/ProxyActionqueryMoreResponse.java +++ b/src/main/java/io/swagger/client/model/ProxyActionqueryMoreResponse.java @@ -25,76 +25,10 @@ package io.swagger.client.model; -import java.util.Objects; -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import io.swagger.client.model.QueryResult; - /** * ProxyActionqueryMoreResponse */ -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-10-31T11:45:12.183-07:00") -public class ProxyActionqueryMoreResponse { - @SerializedName("result") - private QueryResult result = null; - - public ProxyActionqueryMoreResponse result(QueryResult result) { - this.result = result; - return this; - } - - /** - * - * @return result - **/ - @ApiModelProperty(example = "null", value = "") - public QueryResult getResult() { - return result; - } - - public void setResult(QueryResult result) { - this.result = result; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ProxyActionqueryMoreResponse proxyActionqueryMoreResponse = (ProxyActionqueryMoreResponse) o; - return Objects.equals(this.result, proxyActionqueryMoreResponse.result); - } - - @Override - public int hashCode() { - return Objects.hash(result); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ProxyActionqueryMoreResponse {\n"); - - sb.append(" result: ").append(toIndentedString(result)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } +public class ProxyActionqueryMoreResponse extends ProxyActionqueryResponse { } diff --git a/src/main/java/io/swagger/client/model/ProxyActionqueryResponse.java b/src/main/java/io/swagger/client/model/ProxyActionqueryResponse.java index fb90805..92cb5ee 100755 --- a/src/main/java/io/swagger/client/model/ProxyActionqueryResponse.java +++ b/src/main/java/io/swagger/client/model/ProxyActionqueryResponse.java @@ -25,11 +25,13 @@ package io.swagger.client.model; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; import java.util.Objects; import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.client.model.QueryResult; /** @@ -37,25 +39,93 @@ */ @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-10-31T11:45:12.183-07:00") public class ProxyActionqueryResponse { - @SerializedName("result") - private QueryResult result = null; + @SerializedName("done") + private Boolean done = null; - public ProxyActionqueryResponse result(QueryResult result) { - this.result = result; + @SerializedName("queryLocator") + private String queryLocator = null; + + @SerializedName("records") + private List> records = new ArrayList>(); + + @SerializedName("size") + private Integer size = null; + + public ProxyActionqueryResponse done(Boolean done) { + this.done = done; + return this; + } + + /** + * + * @return done + **/ + @ApiModelProperty(example = "null", value = "") + public Boolean getDone() { + return done; + } + + public void setDone(Boolean done) { + this.done = done; + } + + public ProxyActionqueryResponse queryLocator(String queryLocator) { + this.queryLocator = queryLocator; + return this; + } + + /** + * + * @return queryLocator + **/ + @ApiModelProperty(example = "null", value = "") + public String getQueryLocator() { + return queryLocator; + } + + public void setQueryLocator(String queryLocator) { + this.queryLocator = queryLocator; + } + + public ProxyActionqueryResponse records(List> records) { + this.records = records; + return this; + } + + public ProxyActionqueryResponse addRecordsItem(Map recordsItem) { + this.records.add(recordsItem); return this; } - /** + /** * - * @return result - **/ + * @return records + **/ @ApiModelProperty(example = "null", value = "") - public QueryResult getResult() { - return result; + public List> getRecords() { + return records; } - public void setResult(QueryResult result) { - this.result = result; + public void setRecords(List> records) { + this.records = records; + } + + public ProxyActionqueryResponse size(Integer size) { + this.size = size; + return this; + } + + /** + * + * @return size + **/ + @ApiModelProperty(example = "null", value = "") + public Integer getSize() { + return size; + } + + public void setSize(Integer size) { + this.size = size; } @@ -67,21 +137,27 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ProxyActionqueryResponse proxyActionqueryResponse = (ProxyActionqueryResponse) o; - return Objects.equals(this.result, proxyActionqueryResponse.result); + ProxyActionqueryResponse queryResult = (ProxyActionqueryResponse) o; + return Objects.equals(this.done, queryResult.done) && + Objects.equals(this.queryLocator, queryResult.queryLocator) && + Objects.equals(this.records, queryResult.records) && + Objects.equals(this.size, queryResult.size); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(done, queryLocator, records, size); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ProxyActionqueryResponse {\n"); - - sb.append(" result: ").append(toIndentedString(result)).append("\n"); + + sb.append(" done: ").append(toIndentedString(done)).append("\n"); + sb.append(" queryLocator: ").append(toIndentedString(queryLocator)).append("\n"); + sb.append(" records: ").append(toIndentedString(records)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/io/swagger/client/model/ProxyActionsubscribeResponse.java b/src/main/java/io/swagger/client/model/ProxyActionsubscribeResponse.java index b8712ba..ac243e9 100755 --- a/src/main/java/io/swagger/client/model/ProxyActionsubscribeResponse.java +++ b/src/main/java/io/swagger/client/model/ProxyActionsubscribeResponse.java @@ -42,6 +42,12 @@ public class ProxyActionsubscribeResponse { @SerializedName("result") private List result = new ArrayList(); + @SerializedName("success") + private Boolean success = true; + + @SerializedName("errors") + private List reasons = null; + public ProxyActionsubscribeResponse result(List result) { this.result = result; return this; @@ -65,6 +71,37 @@ public void setResult(List result) { this.result = result; } + public ProxyActionsubscribeResponse success(Boolean success) { + this.success = success; + return this; + } + + /** + * Returns `true` if the request was processed successfully. + * @return success + **/ + @ApiModelProperty(example = "null", value = "Returns `true` if the request was processed successfully. ") + public Boolean getSuccess() { + return success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public ProxyActionsubscribeResponse reasons(List reasons) { + this.reasons = reasons; + return this; + } + + public List getReasons() { + return reasons; + } + + public void setReasons(List reasons) { + this.reasons = reasons; + } + @Override public boolean equals(java.lang.Object o) { @@ -75,12 +112,15 @@ public boolean equals(java.lang.Object o) { return false; } ProxyActionsubscribeResponse proxyActionsubscribeResponse = (ProxyActionsubscribeResponse) o; - return Objects.equals(this.result, proxyActionsubscribeResponse.result); + return Objects.equals(this.result, proxyActionsubscribeResponse.result) && + Objects.equals(this.success, proxyActionsubscribeResponse.success) && + Objects.equals(this.reasons, proxyActionsubscribeResponse.reasons); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, success, reasons); +// return Objects.hash(result); } @Override @@ -89,6 +129,8 @@ public String toString() { sb.append("class ProxyActionsubscribeResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append(" reasons: ").append(toIndentedString(reasons)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/io/swagger/client/model/ProxyCreateOrModifyResponse.java b/src/main/java/io/swagger/client/model/ProxyCreateOrModifyResponse.java index 5eee113..10344eb 100755 --- a/src/main/java/io/swagger/client/model/ProxyCreateOrModifyResponse.java +++ b/src/main/java/io/swagger/client/model/ProxyCreateOrModifyResponse.java @@ -25,6 +25,7 @@ package io.swagger.client.model; +import java.util.List; import java.util.Objects; import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; @@ -42,6 +43,9 @@ public class ProxyCreateOrModifyResponse { @SerializedName("Success") private Boolean success = null; + @SerializedName("reasons") + private List reasons = null; + public ProxyCreateOrModifyResponse id(String id) { this.id = id; return this; @@ -78,6 +82,19 @@ public void setSuccess(Boolean success) { this.success = success; } + public ProxyCreateOrModifyResponse reasons(List reasons) { + this.reasons = reasons; + return this; + } + + public List getReasons() { + return reasons; + } + + public void setReasons(List reasons) { + this.reasons = reasons; + } + @Override public boolean equals(java.lang.Object o) { @@ -89,12 +106,13 @@ public boolean equals(java.lang.Object o) { } ProxyCreateOrModifyResponse proxyCreateOrModifyResponse = (ProxyCreateOrModifyResponse) o; return Objects.equals(this.id, proxyCreateOrModifyResponse.id) && - Objects.equals(this.success, proxyCreateOrModifyResponse.success); + Objects.equals(this.success, proxyCreateOrModifyResponse.success) && + Objects.equals(this.reasons, proxyCreateOrModifyResponse.reasons); } @Override public int hashCode() { - return Objects.hash(id, success); + return Objects.hash(id, success, reasons); } @Override @@ -104,6 +122,7 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append(" reasons: ").append(toIndentedString(reasons)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/io/swagger/client/model/QueryResult.java b/src/main/java/io/swagger/client/model/QueryResult.java deleted file mode 100755 index 88bed1d..0000000 --- a/src/main/java/io/swagger/client/model/QueryResult.java +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Zuora API Reference - * # Introduction Welcome to the reference for the Zuora REST API! REST is a web-service protocol that lends itself to rapid development by using everyday HTTP and JSON technology. The Zuora REST API provides a broad set of operations and resources that: * Enable Web Storefront integration between your websites. * Support self-service subscriber sign-ups and account management. * Process revenue schedules through custom revenue rule models. ## Endpoints The Zuora REST services are provided via the following endpoints. | Service | Base URL for REST Endpoints | |-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Production REST service | https://rest.zuora.com/v1 | | Sandbox REST service | https://rest.apisandbox.zuora.com/v1 | The production service provides access to your live user data. The sandbox environment is a good place to test your code without affecting real-world data. To use it, you must be provisioned with a sandbox tenant - your Zuora representative can help with this if needed. ## Accessing the API If you have a Zuora tenant, you already have access the the API. If you don't have a Zuora tenant, go to https://www.zuora.com/resource/zuora-test-drive and sign up for a trial tenant. The tenant comes with seed data, such as a sample product catalog. We recommend that you create an API user specifically for making API calls. Don't log in to the Zuora UI with this account. Logging in to the UI enables a security feature that periodically expires the account's password, which may eventually cause authentication failures with the API. Note that a user role does not have write access to Zuora REST services unless it has the API Write Access permission as described in those instructions. # Authentication There are three ways to authenticate: * Use an authorization cookie. The cookie authorizes the user to make calls to the REST API for the duration specified in **Administration > Security Policies > Session timeout**. The cookie expiration time is reset with this duration after every call to the REST API. To obtain a cookie, call the REST `connections` resource with the following API user information: * ID * password * entity Id or entity name (Only for [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity \"Multi-entity\"). See \"Entity Id and Entity Name\" below for more information.) * Include the following parameters in the request header, which re-authenticates the user with each request: * `apiAccessKeyId` * `apiSecretAccessKey` * `entityId` or `entityName` (Only for [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity \"Multi-entity\"). See \"Entity Id and Entity Name\" below for more information.) * For CORS-enabled APIs only: Include a 'single-use' token in the request header, which re-authenticates the user with each request. See below for more details. ## Entity Id and Entity Name The `entityId` and `entityName` parameters are only used for [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity). The `entityId` parameter specifies the Id of the entity that you want to access. The `entityName` parameter specifies the [name of the entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity/B_Introduction_to_Entity_and_Entity_Hierarchy#Name_and_Display_Name \"Introduction to Entity and Entity Hierarchy\") that you want to access. Note that you must have permission to access the entity. You can get the entity Id and entity name through the REST GET Entities call. You can specify either the `entityId` or `entityName` parameter in the authentication to access and view an entity. * If both `entityId` and `entityName` are specified in the authentication, an error occurs. * If neither `entityId` nor `entityName` is specified in the authentication, you will log in to the entity in which your user account is created. See [API User Authentication](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity/A_Overview_of_Multi-entity#API_User_Authentication \"Zuora Multi-entity\") for more information. ## Token Authentication for CORS-Enabled APIs The CORS mechanism enables REST API calls to Zuora to be made directly from your customer's browser, with all credit card and security information transmitted directly to Zuora. This minimizes your PCI compliance burden, allows you to implement advanced validation on your payment forms, and makes your payment forms look just like any other part of your website. For security reasons, instead of using cookies, an API request via CORS uses **tokens** for authentication. The token method of authentication is only designed for use with requests that must originate from your customer's browser; **it should not be considered a replacement to the existing cookie authentication** mechanism. See [Zuora CORS REST ](https://knowledgecenter.zuora.com/DC_Developers/REST_API/A_REST_basics/G_CORS_REST \"Zuora CORS REST\")for details on how CORS works and how you can begin to implement customer calls to the Zuora REST APIs. See [HMAC Signatures](/BC_Developers/REST_API/B_REST_API_reference/HMAC_Signatures \"HMAC Signatures\") for details on the HMAC method that returns the authentication token. # Requests and Responses ## Request IDs As a general rule, when asked to supply a \"key\" for an account or subscription (accountKey, account-key, subscriptionKey, subscription-key), you can provide either the actual ID or the number of the entity. ## HTTP Request Body Most of the parameters and data accompanying your requests will be contained in the body of the HTTP request. The Zuora REST API accepts JSON in the HTTP request body. No other data format (e.g., XML) is supported. ## Testing a Request Use a third party client, such as Postman or Advanced REST Client, to test the Zuora REST API. You can test the Zuora REST API from the Zuora sandbox or production service. If connecting to the production service, bear in mind that you are working with your live production data, not sample data or test data. ## Testing with Credit Cards Sooner or later it will probably be necessary to test some transactions that involve credit cards. For suggestions on how to handle this, see [Going Live With Your Payment Gateway](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/C_Managing_Payment_Gateways/B_Going_Live_Payment_Gateways#Testing_with_Credit_Cards \"C_Zuora_User_Guides/A_Billing_and_Payments/M_Payment_Gateways/C_Managing_Payment_Gateways/B_Going_Live_Payment_Gateways#Testing_with_Credit_Cards\"). ## Error Handling Responses and error codes are detailed in [Responses and errors](https://knowledgecenter.zuora.com/DC_Developers/REST_API/A_REST_basics/3_Responses_and_errors \"Responses and errors\"). # Pagination When retrieving information (using GET methods), the optional `pageSize` query parameter sets the maximum number of rows to return in a response. The maximum is `40`; larger values are treated as `40`. If this value is empty or invalid, `pageSize` typically defaults to `10`. The default value for the maximum number of rows retrieved can be overridden at the method level. If more rows are available, the response will include a `nextPage` element, which contains a URL for requesting the next page. If this value is not provided, no more rows are available. No \"previous page\" element is explicitly provided; to support backward paging, use the previous call. ## Array Size For data items that are not paginated, the REST API supports arrays of up to 300 rows. Thus, for instance, repeated pagination can retrieve thousands of customer accounts, but within any account an array of no more than 300 rate plans is returned. # API Versions The Zuora REST API is in version control. Versioning ensures that Zuora REST API changes are backward compatible. Zuora uses a major and minor version nomenclature to manage changes. By specifying a version in a REST request, you can get expected responses regardless of future changes to the API. ## Major Version The major version number of the REST API appears in the REST URL. Currently, Zuora only supports the **v1** major version. For example, `POST https://rest.zuora.com/v1/subscriptions` . ## Minor Version Zuora uses minor versions for the REST API to control small changes. For example, a field in a REST method is deprecated and a new field is used to replace it. Some fields in the REST methods are supported as of minor versions. If a field is not noted with a minor version, this field is available for all minor versions. If a field is noted with a minor version, this field is in version control. You must specify the supported minor version in the request header to process without an error. If a field is in version control, it is either with a minimum minor version or a maximum minor version, or both of them. You can only use this field with the minor version between the minimum and the maximum minor versions. For example, the `invoiceCollect` field in the POST Subscription method is in version control and its maximum minor version is 189.0. You can only use this field with the minor version 189.0 or earlier. The supported minor versions are not serial, see [Zuora REST API Minor Version History](https://knowledgecenter.zuora.com/DC_Developers/REST_API/A_REST_basics/Zuora_REST_API_Minor_Version_History \"Zuora REST API Minor Version History\") for the fields and their supported minor versions. In our REST API documentation, if a field or feature requires a minor version number, we note that in the field description. You only need to specify the version number when you use the fields require a minor version. To specify the minor version, set the `zuora-version` parameter to the minor version number in the request header for the request call. For example, the `collect` field is in 196.0 minor version. If you want to use this field for the POST Subscription method, set the `zuora-version` parameter to `196.0` in the request header. The `zuora-version` parameter is case sensitive. For all the REST API fields, by default, if the minor version is not specified in the request header, Zuora will use the minimum minor version of the REST API to avoid breaking your integration. # Zuora Object Model The following diagram presents a high-level view of the key Zuora objects. Click the image to open it in a new tab to resize it. \"Zuora - * - * OpenAPI spec version: 0.0.1 - * Contact: docs@zuora.com - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -package io.swagger.client.model; - -import java.util.Objects; -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import io.swagger.client.model.ZObject; -import java.util.ArrayList; -import java.util.List; - - -/** - * QueryResult - */ -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-10-31T11:45:12.183-07:00") -public class QueryResult { - @SerializedName("done") - private Boolean done = null; - - @SerializedName("queryLocator") - private String queryLocator = null; - - @SerializedName("records") - private List records = new ArrayList(); - - @SerializedName("size") - private Integer size = null; - - public QueryResult done(Boolean done) { - this.done = done; - return this; - } - - /** - * - * @return done - **/ - @ApiModelProperty(example = "null", value = "") - public Boolean getDone() { - return done; - } - - public void setDone(Boolean done) { - this.done = done; - } - - public QueryResult queryLocator(String queryLocator) { - this.queryLocator = queryLocator; - return this; - } - - /** - * - * @return queryLocator - **/ - @ApiModelProperty(example = "null", value = "") - public String getQueryLocator() { - return queryLocator; - } - - public void setQueryLocator(String queryLocator) { - this.queryLocator = queryLocator; - } - - public QueryResult records(List records) { - this.records = records; - return this; - } - - public QueryResult addRecordsItem(ZObject recordsItem) { - this.records.add(recordsItem); - return this; - } - - /** - * - * @return records - **/ - @ApiModelProperty(example = "null", value = "") - public List getRecords() { - return records; - } - - public void setRecords(List records) { - this.records = records; - } - - public QueryResult size(Integer size) { - this.size = size; - return this; - } - - /** - * - * @return size - **/ - @ApiModelProperty(example = "null", value = "") - public Integer getSize() { - return size; - } - - public void setSize(Integer size) { - this.size = size; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - QueryResult queryResult = (QueryResult) o; - return Objects.equals(this.done, queryResult.done) && - Objects.equals(this.queryLocator, queryResult.queryLocator) && - Objects.equals(this.records, queryResult.records) && - Objects.equals(this.size, queryResult.size); - } - - @Override - public int hashCode() { - return Objects.hash(done, queryLocator, records, size); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class QueryResult {\n"); - - sb.append(" done: ").append(toIndentedString(done)).append("\n"); - sb.append(" queryLocator: ").append(toIndentedString(queryLocator)).append("\n"); - sb.append(" records: ").append(toIndentedString(records)).append("\n"); - sb.append(" size: ").append(toIndentedString(size)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/src/main/java/io/swagger/client/model/Reason.java b/src/main/java/io/swagger/client/model/Reason.java new file mode 100644 index 0000000..bde6f3e --- /dev/null +++ b/src/main/java/io/swagger/client/model/Reason.java @@ -0,0 +1,68 @@ +package io.swagger.client.model; + +import com.google.gson.annotations.SerializedName; + +import java.util.Objects; + +public class Reason { + @SerializedName("code") + private String code = null; + + @SerializedName("message") + private String message = null; + + public String getCode() { + return code; + } + + public Reason setCode(String code) { + this.code = code; + return this; + } + + public String getMessage() { + return message; + } + + public Reason setMessage(String message) { + this.message = message; + return this; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + Reason reason = (Reason) o; + return Objects.equals(code, reason.code) && + Objects.equals(message, reason.message); + } + + @Override + public int hashCode() { + return Objects.hash(code, message); + } + + @Override + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Reason {\n"); + + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +}