@@ -41,6 +41,7 @@ public class GetOrderResponse {
41
41
private OptionalNullable <String > sessionId ;
42
42
private OptionalNullable <GetLocationResponse > location ;
43
43
private OptionalNullable <GetDeviceResponse > device ;
44
+ private OptionalNullable <GetIntegrationResponse > integration ;
44
45
45
46
/**
46
47
* Default constructor.
@@ -70,6 +71,7 @@ public GetOrderResponse() {
70
71
* @param sessionId String value for sessionId.
71
72
* @param location GetLocationResponse value for location.
72
73
* @param device GetDeviceResponse value for device.
74
+ * @param integration GetIntegrationResponse value for integration.
73
75
*/
74
76
public GetOrderResponse (
75
77
String id ,
@@ -91,7 +93,8 @@ public GetOrderResponse(
91
93
String ip ,
92
94
String sessionId ,
93
95
GetLocationResponse location ,
94
- GetDeviceResponse device ) {
96
+ GetDeviceResponse device ,
97
+ GetIntegrationResponse integration ) {
95
98
this .id = OptionalNullable .of (id );
96
99
this .code = OptionalNullable .of (code );
97
100
this .amount = OptionalNullable .of (amount );
@@ -112,6 +115,7 @@ public GetOrderResponse(
112
115
this .sessionId = OptionalNullable .of (sessionId );
113
116
this .location = OptionalNullable .of (location );
114
117
this .device = OptionalNullable .of (device );
118
+ this .integration = OptionalNullable .of (integration );
115
119
}
116
120
117
121
/**
@@ -136,6 +140,7 @@ public GetOrderResponse(
136
140
* @param sessionId String value for sessionId.
137
141
* @param location GetLocationResponse value for location.
138
142
* @param device GetDeviceResponse value for device.
143
+ * @param integration GetIntegrationResponse value for integration.
139
144
*/
140
145
141
146
protected GetOrderResponse (OptionalNullable <String > id , OptionalNullable <String > code ,
@@ -150,7 +155,8 @@ protected GetOrderResponse(OptionalNullable<String> id, OptionalNullable<String>
150
155
OptionalNullable <List <GetCheckoutPaymentResponse >> checkouts ,
151
156
OptionalNullable <String > ip , OptionalNullable <String > sessionId ,
152
157
OptionalNullable <GetLocationResponse > location ,
153
- OptionalNullable <GetDeviceResponse > device ) {
158
+ OptionalNullable <GetDeviceResponse > device ,
159
+ OptionalNullable <GetIntegrationResponse > integration ) {
154
160
this .id = id ;
155
161
this .code = code ;
156
162
this .amount = amount ;
@@ -171,6 +177,7 @@ protected GetOrderResponse(OptionalNullable<String> id, OptionalNullable<String>
171
177
this .sessionId = sessionId ;
172
178
this .location = location ;
173
179
this .device = device ;
180
+ this .integration = integration ;
174
181
}
175
182
176
183
/**
@@ -900,6 +907,41 @@ public void unsetDevice() {
900
907
device = null ;
901
908
}
902
909
910
+ /**
911
+ * Internal Getter for Integration.
912
+ * @return Returns the Internal GetIntegrationResponse
913
+ */
914
+ @ JsonGetter ("integration" )
915
+ @ JsonInclude (JsonInclude .Include .NON_NULL )
916
+ @ JsonSerialize (using = OptionalNullable .Serializer .class )
917
+ protected OptionalNullable <GetIntegrationResponse > internalGetIntegration () {
918
+ return this .integration ;
919
+ }
920
+
921
+ /**
922
+ * Getter for Integration.
923
+ * @return Returns the GetIntegrationResponse
924
+ */
925
+ public GetIntegrationResponse getIntegration () {
926
+ return OptionalNullable .getFrom (integration );
927
+ }
928
+
929
+ /**
930
+ * Setter for Integration.
931
+ * @param integration Value for GetIntegrationResponse
932
+ */
933
+ @ JsonSetter ("integration" )
934
+ public void setIntegration (GetIntegrationResponse integration ) {
935
+ this .integration = OptionalNullable .of (integration );
936
+ }
937
+
938
+ /**
939
+ * UnSetter for Integration.
940
+ */
941
+ public void unsetIntegration () {
942
+ integration = null ;
943
+ }
944
+
903
945
/**
904
946
* Converts this GetOrderResponse into string format.
905
947
* @return String representation of this class
@@ -912,7 +954,8 @@ public String toString() {
912
954
+ ", updatedAt=" + updatedAt + ", closedAt=" + closedAt + ", charges=" + charges
913
955
+ ", invoiceUrl=" + invoiceUrl + ", shipping=" + shipping + ", metadata=" + metadata
914
956
+ ", checkouts=" + checkouts + ", ip=" + ip + ", sessionId=" + sessionId
915
- + ", location=" + location + ", device=" + device + "]" ;
957
+ + ", location=" + location + ", device=" + device + ", integration=" + integration
958
+ + "]" ;
916
959
}
917
960
918
961
/**
@@ -942,6 +985,7 @@ public Builder toBuilder() {
942
985
builder .sessionId = internalGetSessionId ();
943
986
builder .location = internalGetLocation ();
944
987
builder .device = internalGetDevice ();
988
+ builder .integration = internalGetIntegration ();
945
989
return builder ;
946
990
}
947
991
@@ -969,6 +1013,7 @@ public static class Builder {
969
1013
private OptionalNullable <String > sessionId ;
970
1014
private OptionalNullable <GetLocationResponse > location ;
971
1015
private OptionalNullable <GetDeviceResponse > device ;
1016
+ private OptionalNullable <GetIntegrationResponse > integration ;
972
1017
973
1018
974
1019
@@ -1352,14 +1397,33 @@ public Builder unsetDevice() {
1352
1397
return this ;
1353
1398
}
1354
1399
1400
+ /**
1401
+ * Setter for integration.
1402
+ * @param integration GetIntegrationResponse value for integration.
1403
+ * @return Builder
1404
+ */
1405
+ public Builder integration (GetIntegrationResponse integration ) {
1406
+ this .integration = OptionalNullable .of (integration );
1407
+ return this ;
1408
+ }
1409
+
1410
+ /**
1411
+ * UnSetter for integration.
1412
+ * @return Builder
1413
+ */
1414
+ public Builder unsetIntegration () {
1415
+ integration = null ;
1416
+ return this ;
1417
+ }
1418
+
1355
1419
/**
1356
1420
* Builds a new {@link GetOrderResponse} object using the set fields.
1357
1421
* @return {@link GetOrderResponse}
1358
1422
*/
1359
1423
public GetOrderResponse build () {
1360
1424
return new GetOrderResponse (id , code , amount , currency , closed , items , customer , status ,
1361
1425
createdAt , updatedAt , closedAt , charges , invoiceUrl , shipping , metadata ,
1362
- checkouts , ip , sessionId , location , device );
1426
+ checkouts , ip , sessionId , location , device , integration );
1363
1427
}
1364
1428
}
1365
1429
}
0 commit comments