diff --git a/docs/PtsV2CreateOrderPost201Response.md b/docs/PtsV2CreateOrderPost201Response.md index 89015235..63c0d8e0 100644 --- a/docs/PtsV2CreateOrderPost201Response.md +++ b/docs/PtsV2CreateOrderPost201Response.md @@ -4,6 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**id** | **String** | A unique identification number assigned by CyberSource to identify the order request. Use this id to call subsequent services such as the authorization API. | [optional] **submitTimeUtc** | **String** | Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. | [optional] **updateTimeUtc** | **String** | The date and time when the request was last updated. **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). | [optional] **status** | **String** | The status of the submitted transaction. Possible values: - CREATED - SAVED - APPROVED - VOIDED - COMPLETED - PAYER_ACTION_REQUIRED | [optional] diff --git a/generator/cybersource-rest-spec-java.json b/generator/cybersource-rest-spec-java.json index de759f63..4008c21a 100644 --- a/generator/cybersource-rest-spec-java.json +++ b/generator/cybersource-rest-spec-java.json @@ -47969,6 +47969,10 @@ "title": "ptsV2CreateOrderPost201Response", "type": "object", "properties": { + "id": { + "type": "string", + "description": "A unique identification number assigned by CyberSource to identify the order request. Use this id to call subsequent services such as the authorization API." + }, "submitTimeUtc": { "type": "string", "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" diff --git a/generator/cybersource-rest-spec.json b/generator/cybersource-rest-spec.json index c96054ec..5e6647c2 100644 --- a/generator/cybersource-rest-spec.json +++ b/generator/cybersource-rest-spec.json @@ -47969,6 +47969,10 @@ "title": "ptsV2CreateOrderPost201Response", "type": "object", "properties": { + "id": { + "type": "string", + "description": "A unique identification number assigned by CyberSource to identify the order request. Use this id to call subsequent services such as the authorization API." + }, "submitTimeUtc": { "type": "string", "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" diff --git a/src/main/java/Model/PtsV2CreateOrderPost201Response.java b/src/main/java/Model/PtsV2CreateOrderPost201Response.java index 506de115..813f443c 100644 --- a/src/main/java/Model/PtsV2CreateOrderPost201Response.java +++ b/src/main/java/Model/PtsV2CreateOrderPost201Response.java @@ -33,6 +33,9 @@ */ public class PtsV2CreateOrderPost201Response { + @SerializedName("id") + private String id = null; + @SerializedName("submitTimeUtc") private String submitTimeUtc = null; @@ -57,6 +60,24 @@ public class PtsV2CreateOrderPost201Response { @SerializedName("buyerInformation") private PtsV2CreateOrderPost201ResponseBuyerInformation buyerInformation = null; + public PtsV2CreateOrderPost201Response id(String id) { + this.id = id; + return this; + } + + /** + * A unique identification number assigned by CyberSource to identify the order request. Use this id to call subsequent services such as the authorization API. + * @return id + **/ + @ApiModelProperty(value = "A unique identification number assigned by CyberSource to identify the order request. Use this id to call subsequent services such as the authorization API.") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + public PtsV2CreateOrderPost201Response submitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; return this; @@ -211,7 +232,8 @@ public boolean equals(java.lang.Object o) { return false; } PtsV2CreateOrderPost201Response ptsV2CreateOrderPost201Response = (PtsV2CreateOrderPost201Response) o; - return Objects.equals(this.submitTimeUtc, ptsV2CreateOrderPost201Response.submitTimeUtc) && + return Objects.equals(this.id, ptsV2CreateOrderPost201Response.id) && + Objects.equals(this.submitTimeUtc, ptsV2CreateOrderPost201Response.submitTimeUtc) && Objects.equals(this.updateTimeUtc, ptsV2CreateOrderPost201Response.updateTimeUtc) && Objects.equals(this.status, ptsV2CreateOrderPost201Response.status) && Objects.equals(this.reconciliationId, ptsV2CreateOrderPost201Response.reconciliationId) && @@ -223,7 +245,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(submitTimeUtc, updateTimeUtc, status, reconciliationId, clientReferenceInformation, processorInformation, paymentInformation, buyerInformation); + return Objects.hash(id, submitTimeUtc, updateTimeUtc, status, reconciliationId, clientReferenceInformation, processorInformation, paymentInformation, buyerInformation); } @@ -232,6 +254,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PtsV2CreateOrderPost201Response {\n"); + if (id != null) sb.append(" id: ").append(toIndentedString(id)).append("\n"); if (submitTimeUtc != null) sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); if (updateTimeUtc != null) sb.append(" updateTimeUtc: ").append(toIndentedString(updateTimeUtc)).append("\n"); if (status != null) sb.append(" status: ").append(toIndentedString(status)).append("\n");