Skip to content

Commit 2277b8a

Browse files
committed
## Java SDK Changes Detected:
* `client.settlements.list()`: `response._embedded.settlements.[].periods.{}.{}.costs.[].amountVat` **Changed** **Breaking** ⚠️ * `client.settlements.get()`: `response.periods.{}.{}.costs.[].amountVat` **Changed** **Breaking** ⚠️ * `client.settlements.getOpen()`: `response.periods.{}.{}.costs.[].amountVat` **Changed** **Breaking** ⚠️ * `client.settlements.getNext()`: `response.periods.{}.{}.costs.[].amountVat` **Changed** **Breaking** ⚠️
1 parent f32f2fd commit 2277b8a

File tree

9 files changed

+59
-29
lines changed

9 files changed

+59
-29
lines changed

.speakeasy/gen.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 1f33533e-dfde-4f02-bf45-45ad476f00b3
33
management:
4-
docChecksum: 5f770e879f4e0cd204315098145b861b
4+
docChecksum: 843a5fcda17e62c6c7e2027ada861883
55
docVersion: 1.0.0
66
speakeasyVersion: 1.622.1
77
generationVersion: 2.709.0
8-
releaseVersion: 0.19.1
9-
configChecksum: 505a3c7d195a5cc318fe28f1fe01cedc
8+
releaseVersion: 0.19.2
9+
configChecksum: 8523d1c3066316d0c2aa9908a5aa6120
1010
repoURL: https://github.com/mollie/mollie-api-java.git
1111
published: true
1212
features:
@@ -6116,7 +6116,7 @@ examplesVersion: 1.0.2
61166116
generatedTests: {}
61176117
releaseNotes: |
61186118
## Java SDK Changes Detected:
6119-
* `client.settlements.list()`: `response` **Changed** **Breaking** :warning:
6120-
* `client.settlements.get()`: `response` **Changed** **Breaking** :warning:
6121-
* `client.settlements.getOpen()`: `response` **Changed** **Breaking** :warning:
6122-
* `client.settlements.getNext()`: `response` **Changed** **Breaking** :warning:
6119+
* `client.settlements.list()`: `response._embedded.settlements.[].periods.{}.{}.costs.[].amountVat` **Changed** **Breaking** :warning:
6120+
* `client.settlements.get()`: `response.periods.{}.{}.costs.[].amountVat` **Changed** **Breaking** :warning:
6121+
* `client.settlements.getOpen()`: `response.periods.{}.{}.costs.[].amountVat` **Changed** **Breaking** :warning:
6122+
* `client.settlements.getNext()`: `response.periods.{}.{}.costs.[].amountVat` **Changed** **Breaking** :warning:

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ generation:
2222
generateNewTests: false
2323
skipResponseBodyAssertions: false
2424
java:
25-
version: 0.19.1
25+
version: 0.19.2
2626
additionalDependencies: []
2727
additionalPlugins: []
2828
artifactID: mollie

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ speakeasyVersion: 1.622.1
22
sources:
33
Mollie API:
44
sourceNamespace: mollie-api
5-
sourceRevisionDigest: sha256:8d00ec2976f1b58c027b7de788a7a8d0db347bab29905ef50c1b3c7962c9c90e
6-
sourceBlobDigest: sha256:417b622d5e91a80d8cf7e228f1715b3bd24f23bed8813ae08d44f8d5a91e524a
5+
sourceRevisionDigest: sha256:c0ca147df7c3765fc388eba5f756bedc71b4384d830c73e0cfb60b347eaf11fa
6+
sourceBlobDigest: sha256:cd8c72cc2197ddab0a6bd03d24e63057bb6f74ced03e33b62c4144bc59c3f0da
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1758531129
9+
- speakeasy-sdk-regen-1758532846
1010
- 1.0.0
1111
targets:
1212
client:
1313
source: Mollie API
1414
sourceNamespace: mollie-api
15-
sourceRevisionDigest: sha256:8d00ec2976f1b58c027b7de788a7a8d0db347bab29905ef50c1b3c7962c9c90e
16-
sourceBlobDigest: sha256:417b622d5e91a80d8cf7e228f1715b3bd24f23bed8813ae08d44f8d5a91e524a
15+
sourceRevisionDigest: sha256:c0ca147df7c3765fc388eba5f756bedc71b4384d830c73e0cfb60b347eaf11fa
16+
sourceBlobDigest: sha256:cd8c72cc2197ddab0a6bd03d24e63057bb6f74ced03e33b62c4144bc59c3f0da
1717
codeSamplesNamespace: mollie-api-java-code-samples
18-
codeSamplesRevisionDigest: sha256:d1067866bd1bf49add73cf92198d0b3a70c7fccb9ddcc1544f7bdebb100ea9bb
18+
codeSamplesRevisionDigest: sha256:d40f218047852490b59bbf1fc5c3e667235cd4a72e85011b4be6b002801f3ace
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ The samples below show how a published SDK artifact is used:
5050

5151
Gradle:
5252
```groovy
53-
implementation 'com.mollie:mollie:0.19.1'
53+
implementation 'com.mollie:mollie:0.19.2'
5454
```
5555

5656
Maven:
5757
```xml
5858
<dependency>
5959
<groupId>com.mollie</groupId>
6060
<artifactId>mollie</artifactId>
61-
<version>0.19.1</version>
61+
<version>0.19.2</version>
6262
</dependency>
6363
```
6464

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,4 +548,14 @@ Based on:
548548
### Generated
549549
- [java v0.19.1] .
550550
### Releases
551-
- [Maven Central v0.19.1] https://central.sonatype.com/artifact/com.mollie/mollie/0.19.1 - .
551+
- [Maven Central v0.19.1] https://central.sonatype.com/artifact/com.mollie/mollie/0.19.1 - .
552+
553+
## 2025-09-22 09:20:22
554+
### Changes
555+
Based on:
556+
- OpenAPI Doc
557+
- Speakeasy CLI 1.622.1 (2.709.0) https://github.com/speakeasy-api/speakeasy
558+
### Generated
559+
- [java v0.19.2] .
560+
### Releases
561+
- [Maven Central v0.19.2] https://central.sonatype.com/artifact/com.mollie/mollie/0.19.2 - .

docs/models/components/Costs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
| `count` | *long* | :heavy_check_mark: | The number of fees | 10 |
1111
| `rate` | [Rate](../../models/components/Rate.md) | :heavy_check_mark: | The service rates, further divided into `fixed` and `percentage` costs. | |
1212
| `amountNet` | [Amount](../../models/components/Amount.md) | :heavy_check_mark: | In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field. | |
13-
| `amountVat` | [Amount](../../models/components/Amount.md) | :heavy_check_mark: | In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field. | |
13+
| `amountVat` | [Optional\<AmountNullable>](../../models/components/AmountNullable.md) | :heavy_check_mark: | In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field. | |
1414
| `amountGross` | [Amount](../../models/components/Amount.md) | :heavy_check_mark: | In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field. | |

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
groupId=com.mollie
22
artifactId=mollie
3-
version=0.19.1
3+
version=0.19.2
44
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g

src/main/java/com/mollie/mollie/SDKConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class SDKConfiguration {
1919

2020
private static final String LANGUAGE = "java";
2121
public static final String OPENAPI_DOC_VERSION = "1.0.0";
22-
public static final String SDK_VERSION = "0.19.1";
22+
public static final String SDK_VERSION = "0.19.2";
2323
public static final String GEN_VERSION = "2.709.0";
2424
private static final String BASE_PACKAGE = "com.mollie.mollie";
2525
public static final String USER_AGENT =

src/main/java/com/mollie/mollie/models/components/Costs.java

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ public class Costs {
5151
/**
5252
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
5353
*/
54+
@JsonInclude(Include.ALWAYS)
5455
@JsonProperty("amountVat")
55-
private Amount amountVat;
56+
private Optional<? extends AmountNullable> amountVat;
5657

5758
/**
5859
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
@@ -67,7 +68,7 @@ public Costs(
6768
@JsonProperty("count") long count,
6869
@JsonProperty("rate") Rate rate,
6970
@JsonProperty("amountNet") Amount amountNet,
70-
@JsonProperty("amountVat") Amount amountVat,
71+
@JsonProperty("amountVat") Optional<? extends AmountNullable> amountVat,
7172
@JsonProperty("amountGross") Amount amountGross) {
7273
Utils.checkNotNull(description, "description");
7374
Utils.checkNotNull(method, "method");
@@ -90,10 +91,9 @@ public Costs(
9091
long count,
9192
Rate rate,
9293
Amount amountNet,
93-
Amount amountVat,
9494
Amount amountGross) {
9595
this(description, Optional.empty(), count,
96-
rate, amountNet, amountVat,
96+
rate, amountNet, Optional.empty(),
9797
amountGross);
9898
}
9999

@@ -141,9 +141,10 @@ public Amount amountNet() {
141141
/**
142142
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
143143
*/
144+
@SuppressWarnings("unchecked")
144145
@JsonIgnore
145-
public Amount amountVat() {
146-
return amountVat;
146+
public Optional<AmountNullable> amountVat() {
147+
return (Optional<AmountNullable>) amountVat;
147148
}
148149

149150
/**
@@ -217,7 +218,17 @@ public Costs withAmountNet(Amount amountNet) {
217218
/**
218219
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
219220
*/
220-
public Costs withAmountVat(Amount amountVat) {
221+
public Costs withAmountVat(AmountNullable amountVat) {
222+
Utils.checkNotNull(amountVat, "amountVat");
223+
this.amountVat = Optional.ofNullable(amountVat);
224+
return this;
225+
}
226+
227+
228+
/**
229+
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
230+
*/
231+
public Costs withAmountVat(Optional<? extends AmountNullable> amountVat) {
221232
Utils.checkNotNull(amountVat, "amountVat");
222233
this.amountVat = amountVat;
223234
return this;
@@ -284,7 +295,7 @@ public final static class Builder {
284295

285296
private Amount amountNet;
286297

287-
private Amount amountVat;
298+
private Optional<? extends AmountNullable> amountVat = Optional.empty();
288299

289300
private Amount amountGross;
290301

@@ -355,7 +366,16 @@ public Builder amountNet(Amount amountNet) {
355366
/**
356367
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
357368
*/
358-
public Builder amountVat(Amount amountVat) {
369+
public Builder amountVat(AmountNullable amountVat) {
370+
Utils.checkNotNull(amountVat, "amountVat");
371+
this.amountVat = Optional.ofNullable(amountVat);
372+
return this;
373+
}
374+
375+
/**
376+
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
377+
*/
378+
public Builder amountVat(Optional<? extends AmountNullable> amountVat) {
359379
Utils.checkNotNull(amountVat, "amountVat");
360380
this.amountVat = amountVat;
361381
return this;

0 commit comments

Comments
 (0)