Skip to content

Commit 3653edb

Browse files
AdyenAutomationBotgcatanese
authored andcommitted
[tapi] Automated update from Adyen/adyen-openapi@ec69ba3
1 parent 039fe6c commit 3653edb

6 files changed

Lines changed: 27 additions & 17 deletions

File tree

sdk-generation-log/tapi.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"service": "tapi",
3+
"project": "java",
4+
"generatedAt": "2026-05-01T07:57:51Z",
5+
"openapiCommitSha": "ec69ba3c5e5893b5bff377652eb0a65bdb9bdc24",
6+
"automationCommitSha": "4c065f4314ebb286f05dc38fd80f19058281c63c",
7+
"libraryCommitSha": "039fe6c5dfc76f775fbda396c7ac54498aa73770"
8+
}

src/main/java/com/adyen/model/tapi/CurrencyConversion.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ public class CurrencyConversion {
4747
private boolean isSetConvertedAmount = false;
4848

4949
public static final String JSON_PROPERTY_RATE = "Rate";
50-
private String rate;
50+
private BigDecimal rate;
5151

5252
/** Mark when the attribute has been explicitly set. */
5353
private boolean isSetRate = false;
5454

5555
public static final String JSON_PROPERTY_MARKUP = "Markup";
56-
private String markup;
56+
private BigDecimal markup;
5757

5858
/** Mark when the attribute has been explicitly set. */
5959
private boolean isSetMarkup = false;
@@ -160,7 +160,7 @@ public void setConvertedAmount(ConvertedAmount convertedAmount) {
160160
* @param rate Rate of currency conversion.
161161
* @return the current {@code CurrencyConversion} instance, allowing for method chaining
162162
*/
163-
public CurrencyConversion rate(String rate) {
163+
public CurrencyConversion rate(BigDecimal rate) {
164164
this.rate = rate;
165165
isSetRate = true; // mark as set
166166
return this;
@@ -173,7 +173,7 @@ public CurrencyConversion rate(String rate) {
173173
*/
174174
@JsonProperty(JSON_PROPERTY_RATE)
175175
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
176-
public String getRate() {
176+
public BigDecimal getRate() {
177177
return rate;
178178
}
179179

@@ -184,7 +184,7 @@ public String getRate() {
184184
*/
185185
@JsonProperty(JSON_PROPERTY_RATE)
186186
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
187-
public void setRate(String rate) {
187+
public void setRate(BigDecimal rate) {
188188
this.rate = rate;
189189
isSetRate = true; // mark as set
190190
}
@@ -195,7 +195,7 @@ public void setRate(String rate) {
195195
* @param markup Markup of a currency conversion amount as a percentage.
196196
* @return the current {@code CurrencyConversion} instance, allowing for method chaining
197197
*/
198-
public CurrencyConversion markup(String markup) {
198+
public CurrencyConversion markup(BigDecimal markup) {
199199
this.markup = markup;
200200
isSetMarkup = true; // mark as set
201201
return this;
@@ -208,7 +208,7 @@ public CurrencyConversion markup(String markup) {
208208
*/
209209
@JsonProperty(JSON_PROPERTY_MARKUP)
210210
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
211-
public String getMarkup() {
211+
public BigDecimal getMarkup() {
212212
return markup;
213213
}
214214

@@ -219,7 +219,7 @@ public String getMarkup() {
219219
*/
220220
@JsonProperty(JSON_PROPERTY_MARKUP)
221221
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
222-
public void setMarkup(String markup) {
222+
public void setMarkup(BigDecimal markup) {
223223
this.markup = markup;
224224
isSetMarkup = true; // mark as set
225225
}

src/main/java/com/adyen/service/TerminalCloudAPI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
import java.io.IOException;
3434

3535
/**
36-
* Terminal API for cloud integrations.
37-
* You should consider migrating to {@link com.adyen.service.clouddevice.CloudDeviceApi}.
36+
* Terminal API for cloud integrations. You should consider migrating to {@link
37+
* com.adyen.service.clouddevice.CloudDeviceApi}.
3838
*/
3939
public class TerminalCloudAPI extends ApiKeyAuthenticatedService {
4040

src/main/java/com/adyen/service/clouddevice/CloudDeviceApi.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import com.adyen.Client;
44
import com.adyen.Service;
55
import com.adyen.constants.ApiConstants;
6-
import com.adyen.model.RequestOptions;
76
import com.adyen.model.clouddevice.*;
87
import com.adyen.model.clouddevice.CloudDeviceApiAsyncResponse;
98
import com.adyen.service.exception.ApiException;
@@ -142,7 +141,8 @@ public CloudDeviceApiAsyncResponse async(
142141
/**
143142
* Get a list of connected devices
144143
*
145-
* @param merchantAccount {@link String } The unique identifier of the merchant account. (required)
144+
* @param merchantAccount {@link String } The unique identifier of the merchant account.
145+
* (required)
146146
* @return {@link ConnectedDevicesResponse }
147147
* @throws ApiException if fails to make API call
148148
*/
@@ -154,7 +154,8 @@ public ConnectedDevicesResponse getConnectedDevices(String merchantAccount)
154154
/**
155155
* Get a list of connected devices
156156
*
157-
* @param merchantAccount {@link String } The unique identifier of the merchant account. (required)
157+
* @param merchantAccount {@link String } The unique identifier of the merchant account.
158+
* (required)
158159
* @param store {@link String } Query: The store ID of the store belonging to the merchant account
159160
* specified in the path. (optional)
160161
* @return {@link ConnectedDevicesResponse }

src/main/java/com/adyen/service/clouddevice/EncryptedCloudDeviceApi.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ public CloudDeviceApiResponse sync(
133133
return CloudDeviceApiResponse.fromJson(response);
134134
}
135135

136-
return CloudDeviceApiResponse.fromJson(
137-
nexoSecurityManager.decrypt(saleToPOISecuredResponse));
136+
return CloudDeviceApiResponse.fromJson(nexoSecurityManager.decrypt(saleToPOISecuredResponse));
138137
}
139138

140139
/**

src/test/java/com/adyen/service/clouddevice/CloudDeviceApiTerminalIT.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ public void sendSync() throws Exception {
5454

5555
Assertions.assertNotNull(response);
5656
Assertions.assertNotNull(response.getSaleToPOIResponse());
57-
Assertions.assertEquals(getTerminalDeviceId(), response.getSaleToPOIResponse().getMessageHeader().getPOIID());
57+
Assertions.assertEquals(
58+
getTerminalDeviceId(), response.getSaleToPOIResponse().getMessageHeader().getPOIID());
5859
}
5960

6061
@Disabled("Enable when you want to test with the Terminal")
@@ -96,7 +97,8 @@ public void sendEncryptedSync() throws Exception {
9697

9798
Assertions.assertNotNull(response);
9899
Assertions.assertNotNull(response.getSaleToPOIResponse());
99-
Assertions.assertEquals(getTerminalDeviceId(), response.getSaleToPOIResponse().getMessageHeader().getPOIID());
100+
Assertions.assertEquals(
101+
getTerminalDeviceId(), response.getSaleToPOIResponse().getMessageHeader().getPOIID());
100102
}
101103

102104
@Disabled("Enable when you want to test with the Terminal")

0 commit comments

Comments
 (0)