-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathPtsV2CreateOrderPost201Response.java
More file actions
282 lines (233 loc) · 11.1 KB
/
PtsV2CreateOrderPost201Response.java
File metadata and controls
282 lines (233 loc) · 11.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
/*
* CyberSource Merged Spec
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
*
* OpenAPI spec version: 0.0.1
*
*
* 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.
*/
package Model;
import java.util.Objects;
import java.util.Arrays;
import Model.PtsV2CreateOrderPost201ResponseBuyerInformation;
import Model.PtsV2CreateOrderPost201ResponseProcessorInformation;
import Model.PtsV2IncrementalAuthorizationPatch201ResponseClientReferenceInformation;
import Model.PtsV2PaymentsOrderPost201ResponsePaymentInformation;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* PtsV2CreateOrderPost201Response
*/
public class PtsV2CreateOrderPost201Response {
@SerializedName("id")
private String id = null;
@SerializedName("submitTimeUtc")
private String submitTimeUtc = null;
@SerializedName("updateTimeUtc")
private String updateTimeUtc = null;
@SerializedName("status")
private String status = null;
@SerializedName("reconciliationId")
private String reconciliationId = null;
@SerializedName("clientReferenceInformation")
private PtsV2IncrementalAuthorizationPatch201ResponseClientReferenceInformation clientReferenceInformation = null;
@SerializedName("processorInformation")
private PtsV2CreateOrderPost201ResponseProcessorInformation processorInformation = null;
@SerializedName("paymentInformation")
private PtsV2PaymentsOrderPost201ResponsePaymentInformation paymentInformation = null;
@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;
}
/**
* 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.
* @return submitTimeUtc
**/
@ApiModelProperty(value = "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. ")
public String getSubmitTimeUtc() {
return submitTimeUtc;
}
public void setSubmitTimeUtc(String submitTimeUtc) {
this.submitTimeUtc = submitTimeUtc;
}
public PtsV2CreateOrderPost201Response updateTimeUtc(String updateTimeUtc) {
this.updateTimeUtc = updateTimeUtc;
return this;
}
/**
* 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.).
* @return updateTimeUtc
**/
@ApiModelProperty(value = "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.). ")
public String getUpdateTimeUtc() {
return updateTimeUtc;
}
public void setUpdateTimeUtc(String updateTimeUtc) {
this.updateTimeUtc = updateTimeUtc;
}
public PtsV2CreateOrderPost201Response status(String status) {
this.status = status;
return this;
}
/**
* The status of the submitted transaction. Possible values: - CREATED - SAVED - APPROVED - VOIDED - COMPLETED - PAYER_ACTION_REQUIRED
* @return status
**/
@ApiModelProperty(value = "The status of the submitted transaction. Possible values: - CREATED - SAVED - APPROVED - VOIDED - COMPLETED - PAYER_ACTION_REQUIRED ")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public PtsV2CreateOrderPost201Response reconciliationId(String reconciliationId) {
this.reconciliationId = reconciliationId;
return this;
}
/**
* Reference number for the transaction. Depending on how your Cybersource account is configured, this value could either be provided in the API request or generated by CyberSource. The actual value used in the request to the processor is provided back to you by Cybersource in the response.
* @return reconciliationId
**/
@ApiModelProperty(value = "Reference number for the transaction. Depending on how your Cybersource account is configured, this value could either be provided in the API request or generated by CyberSource. The actual value used in the request to the processor is provided back to you by Cybersource in the response. ")
public String getReconciliationId() {
return reconciliationId;
}
public void setReconciliationId(String reconciliationId) {
this.reconciliationId = reconciliationId;
}
public PtsV2CreateOrderPost201Response clientReferenceInformation(PtsV2IncrementalAuthorizationPatch201ResponseClientReferenceInformation clientReferenceInformation) {
this.clientReferenceInformation = clientReferenceInformation;
return this;
}
/**
* Get clientReferenceInformation
* @return clientReferenceInformation
**/
@ApiModelProperty(value = "")
public PtsV2IncrementalAuthorizationPatch201ResponseClientReferenceInformation getClientReferenceInformation() {
return clientReferenceInformation;
}
public void setClientReferenceInformation(PtsV2IncrementalAuthorizationPatch201ResponseClientReferenceInformation clientReferenceInformation) {
this.clientReferenceInformation = clientReferenceInformation;
}
public PtsV2CreateOrderPost201Response processorInformation(PtsV2CreateOrderPost201ResponseProcessorInformation processorInformation) {
this.processorInformation = processorInformation;
return this;
}
/**
* Get processorInformation
* @return processorInformation
**/
@ApiModelProperty(value = "")
public PtsV2CreateOrderPost201ResponseProcessorInformation getProcessorInformation() {
return processorInformation;
}
public void setProcessorInformation(PtsV2CreateOrderPost201ResponseProcessorInformation processorInformation) {
this.processorInformation = processorInformation;
}
public PtsV2CreateOrderPost201Response paymentInformation(PtsV2PaymentsOrderPost201ResponsePaymentInformation paymentInformation) {
this.paymentInformation = paymentInformation;
return this;
}
/**
* Get paymentInformation
* @return paymentInformation
**/
@ApiModelProperty(value = "")
public PtsV2PaymentsOrderPost201ResponsePaymentInformation getPaymentInformation() {
return paymentInformation;
}
public void setPaymentInformation(PtsV2PaymentsOrderPost201ResponsePaymentInformation paymentInformation) {
this.paymentInformation = paymentInformation;
}
public PtsV2CreateOrderPost201Response buyerInformation(PtsV2CreateOrderPost201ResponseBuyerInformation buyerInformation) {
this.buyerInformation = buyerInformation;
return this;
}
/**
* Get buyerInformation
* @return buyerInformation
**/
@ApiModelProperty(value = "")
public PtsV2CreateOrderPost201ResponseBuyerInformation getBuyerInformation() {
return buyerInformation;
}
public void setBuyerInformation(PtsV2CreateOrderPost201ResponseBuyerInformation buyerInformation) {
this.buyerInformation = buyerInformation;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PtsV2CreateOrderPost201Response ptsV2CreateOrderPost201Response = (PtsV2CreateOrderPost201Response) o;
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) &&
Objects.equals(this.clientReferenceInformation, ptsV2CreateOrderPost201Response.clientReferenceInformation) &&
Objects.equals(this.processorInformation, ptsV2CreateOrderPost201Response.processorInformation) &&
Objects.equals(this.paymentInformation, ptsV2CreateOrderPost201Response.paymentInformation) &&
Objects.equals(this.buyerInformation, ptsV2CreateOrderPost201Response.buyerInformation);
}
@Override
public int hashCode() {
return Objects.hash(id, submitTimeUtc, updateTimeUtc, status, reconciliationId, clientReferenceInformation, processorInformation, paymentInformation, buyerInformation);
}
@Override
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");
if (reconciliationId != null) sb.append(" reconciliationId: ").append(toIndentedString(reconciliationId)).append("\n");
if (clientReferenceInformation != null) sb.append(" clientReferenceInformation: ").append(toIndentedString(clientReferenceInformation)).append("\n");
if (processorInformation != null) sb.append(" processorInformation: ").append(toIndentedString(processorInformation)).append("\n");
if (paymentInformation != null) sb.append(" paymentInformation: ").append(toIndentedString(paymentInformation)).append("\n");
if (buyerInformation != null) sb.append(" buyerInformation: ").append(toIndentedString(buyerInformation)).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 ");
}
}