Skip to content

Commit 6446f4c

Browse files
authored
Merge pull request #37 from pagarme/CodeGen-Java
6.8.13 - Integration Code
2 parents 8e0b62a + 2029f23 commit 6446f4c

File tree

7 files changed

+240
-55
lines changed

7 files changed

+240
-55
lines changed

README.md

Lines changed: 49 additions & 49 deletions
Large diffs are not rendered by default.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
# Get Integration Response
3+
4+
## Structure
5+
6+
`GetIntegrationResponse`
7+
8+
## Fields
9+
10+
| Name | Type | Tags | Description | Getter | Setter |
11+
| --- | --- | --- | --- | --- | --- |
12+
| `Code` | `String` | Optional | - | String getCode() | setCode(String code) |
13+
14+
## Example (as JSON)
15+
16+
```json
17+
{
18+
"code": "code2"
19+
}
20+
```
21+

doc/models/get-order-response.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Response object for getting an Order
3131
| `SessionId` | `String` | Optional | Session id | String getSessionId() | setSessionId(String sessionId) |
3232
| `Location` | [`GetLocationResponse`](../../doc/models/get-location-response.md) | Optional | Location | GetLocationResponse getLocation() | setLocation(GetLocationResponse location) |
3333
| `Device` | [`GetDeviceResponse`](../../doc/models/get-device-response.md) | Optional | Device's informations | GetDeviceResponse getDevice() | setDevice(GetDeviceResponse device) |
34+
| `Integration` | [`GetIntegrationResponse`](../../doc/models/get-integration-response.md) | Optional | - | GetIntegrationResponse getIntegration() | setIntegration(GetIntegrationResponse integration) |
3435

3536
## Example (as JSON)
3637

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<modelVersion>4.0.0</modelVersion>
99
<groupId>PagarmeApiSDKLib</groupId>
1010
<artifactId>pagarme-api-sdklib</artifactId>
11-
<version>6.8.12</version>
11+
<version>6.8.13</version>
1212
<packaging>jar</packaging>
1313
<name>PagarmeApiSDKLib</name>
1414
<properties>

src/main/java/me/pagar/api/PagarmeApiSDKClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public final class PagarmeApiSDKClient implements PagarmeApiSDKClientInterface {
7070

7171
private static final CompatibilityFactory compatibilityFactory = new CompatibilityFactoryImpl();
7272

73-
private static String userAgent = "PagarmeApiSDK - Java 6.8.12";
73+
private static String userAgent = "PagarmeApiSDK - Java 6.8.13";
7474

7575
/**
7676
* Current API environment.
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
/*
2+
* PagarmeApiSDKLib
3+
*
4+
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
5+
*/
6+
7+
package me.pagar.api.models;
8+
9+
import com.fasterxml.jackson.annotation.JsonGetter;
10+
import com.fasterxml.jackson.annotation.JsonInclude;
11+
import com.fasterxml.jackson.annotation.JsonSetter;
12+
13+
/**
14+
* This is a model class for GetIntegrationResponse type.
15+
*/
16+
public class GetIntegrationResponse {
17+
private String code;
18+
19+
/**
20+
* Default constructor.
21+
*/
22+
public GetIntegrationResponse() {
23+
}
24+
25+
/**
26+
* Initialization constructor.
27+
* @param code String value for code.
28+
*/
29+
public GetIntegrationResponse(
30+
String code) {
31+
this.code = code;
32+
}
33+
34+
/**
35+
* Getter for Code.
36+
* @return Returns the String
37+
*/
38+
@JsonGetter("code")
39+
@JsonInclude(JsonInclude.Include.NON_NULL)
40+
public String getCode() {
41+
return code;
42+
}
43+
44+
/**
45+
* Setter for Code.
46+
* @param code Value for String
47+
*/
48+
@JsonSetter("code")
49+
public void setCode(String code) {
50+
this.code = code;
51+
}
52+
53+
/**
54+
* Converts this GetIntegrationResponse into string format.
55+
* @return String representation of this class
56+
*/
57+
@Override
58+
public String toString() {
59+
return "GetIntegrationResponse [" + "code=" + code + "]";
60+
}
61+
62+
/**
63+
* Builds a new {@link GetIntegrationResponse.Builder} object.
64+
* Creates the instance with the state of the current model.
65+
* @return a new {@link GetIntegrationResponse.Builder} object
66+
*/
67+
public Builder toBuilder() {
68+
Builder builder = new Builder()
69+
.code(getCode());
70+
return builder;
71+
}
72+
73+
/**
74+
* Class to build instances of {@link GetIntegrationResponse}.
75+
*/
76+
public static class Builder {
77+
private String code;
78+
79+
80+
81+
/**
82+
* Setter for code.
83+
* @param code String value for code.
84+
* @return Builder
85+
*/
86+
public Builder code(String code) {
87+
this.code = code;
88+
return this;
89+
}
90+
91+
/**
92+
* Builds a new {@link GetIntegrationResponse} object using the set fields.
93+
* @return {@link GetIntegrationResponse}
94+
*/
95+
public GetIntegrationResponse build() {
96+
return new GetIntegrationResponse(code);
97+
}
98+
}
99+
}

src/main/java/me/pagar/api/models/GetOrderResponse.java

Lines changed: 68 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public class GetOrderResponse {
4141
private OptionalNullable<String> sessionId;
4242
private OptionalNullable<GetLocationResponse> location;
4343
private OptionalNullable<GetDeviceResponse> device;
44+
private OptionalNullable<GetIntegrationResponse> integration;
4445

4546
/**
4647
* Default constructor.
@@ -70,6 +71,7 @@ public GetOrderResponse() {
7071
* @param sessionId String value for sessionId.
7172
* @param location GetLocationResponse value for location.
7273
* @param device GetDeviceResponse value for device.
74+
* @param integration GetIntegrationResponse value for integration.
7375
*/
7476
public GetOrderResponse(
7577
String id,
@@ -91,7 +93,8 @@ public GetOrderResponse(
9193
String ip,
9294
String sessionId,
9395
GetLocationResponse location,
94-
GetDeviceResponse device) {
96+
GetDeviceResponse device,
97+
GetIntegrationResponse integration) {
9598
this.id = OptionalNullable.of(id);
9699
this.code = OptionalNullable.of(code);
97100
this.amount = OptionalNullable.of(amount);
@@ -112,6 +115,7 @@ public GetOrderResponse(
112115
this.sessionId = OptionalNullable.of(sessionId);
113116
this.location = OptionalNullable.of(location);
114117
this.device = OptionalNullable.of(device);
118+
this.integration = OptionalNullable.of(integration);
115119
}
116120

117121
/**
@@ -136,6 +140,7 @@ public GetOrderResponse(
136140
* @param sessionId String value for sessionId.
137141
* @param location GetLocationResponse value for location.
138142
* @param device GetDeviceResponse value for device.
143+
* @param integration GetIntegrationResponse value for integration.
139144
*/
140145

141146
protected GetOrderResponse(OptionalNullable<String> id, OptionalNullable<String> code,
@@ -150,7 +155,8 @@ protected GetOrderResponse(OptionalNullable<String> id, OptionalNullable<String>
150155
OptionalNullable<List<GetCheckoutPaymentResponse>> checkouts,
151156
OptionalNullable<String> ip, OptionalNullable<String> sessionId,
152157
OptionalNullable<GetLocationResponse> location,
153-
OptionalNullable<GetDeviceResponse> device) {
158+
OptionalNullable<GetDeviceResponse> device,
159+
OptionalNullable<GetIntegrationResponse> integration) {
154160
this.id = id;
155161
this.code = code;
156162
this.amount = amount;
@@ -171,6 +177,7 @@ protected GetOrderResponse(OptionalNullable<String> id, OptionalNullable<String>
171177
this.sessionId = sessionId;
172178
this.location = location;
173179
this.device = device;
180+
this.integration = integration;
174181
}
175182

176183
/**
@@ -900,6 +907,41 @@ public void unsetDevice() {
900907
device = null;
901908
}
902909

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+
903945
/**
904946
* Converts this GetOrderResponse into string format.
905947
* @return String representation of this class
@@ -912,7 +954,8 @@ public String toString() {
912954
+ ", updatedAt=" + updatedAt + ", closedAt=" + closedAt + ", charges=" + charges
913955
+ ", invoiceUrl=" + invoiceUrl + ", shipping=" + shipping + ", metadata=" + metadata
914956
+ ", checkouts=" + checkouts + ", ip=" + ip + ", sessionId=" + sessionId
915-
+ ", location=" + location + ", device=" + device + "]";
957+
+ ", location=" + location + ", device=" + device + ", integration=" + integration
958+
+ "]";
916959
}
917960

918961
/**
@@ -942,6 +985,7 @@ public Builder toBuilder() {
942985
builder.sessionId = internalGetSessionId();
943986
builder.location = internalGetLocation();
944987
builder.device = internalGetDevice();
988+
builder.integration = internalGetIntegration();
945989
return builder;
946990
}
947991

@@ -969,6 +1013,7 @@ public static class Builder {
9691013
private OptionalNullable<String> sessionId;
9701014
private OptionalNullable<GetLocationResponse> location;
9711015
private OptionalNullable<GetDeviceResponse> device;
1016+
private OptionalNullable<GetIntegrationResponse> integration;
9721017

9731018

9741019

@@ -1352,14 +1397,33 @@ public Builder unsetDevice() {
13521397
return this;
13531398
}
13541399

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+
13551419
/**
13561420
* Builds a new {@link GetOrderResponse} object using the set fields.
13571421
* @return {@link GetOrderResponse}
13581422
*/
13591423
public GetOrderResponse build() {
13601424
return new GetOrderResponse(id, code, amount, currency, closed, items, customer, status,
13611425
createdAt, updatedAt, closedAt, charges, invoiceUrl, shipping, metadata,
1362-
checkouts, ip, sessionId, location, device);
1426+
checkouts, ip, sessionId, location, device, integration);
13631427
}
13641428
}
13651429
}

0 commit comments

Comments
 (0)