Skip to content

Commit 098088f

Browse files
[fern-generated] Update SDK (#196)
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-java-sdk: 3.42.8 Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 057a566 commit 098088f

22 files changed

Lines changed: 1157 additions & 131 deletions

.fern/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
"enable-forward-compatible-enums": true,
1414
"publish-to": "central"
1515
},
16-
"sdkVersion": "46.1.0.20260122"
16+
"sdkVersion": "46.1.0.20260520"
1717
}

.fern/replay.lock

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.fernignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ src/main/java/com/squareup/square/core/SquareApiException.java
66
src/main/java/com/squareup/square/utilities/WebhooksHelper.java
77
src/test/resources/testdata
88
.github/workflows/ci.yml
9+
.fern/replay.lock
10+
.fern/replay.yml
11+
.gitattributes

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.fern/replay.lock linguist-generated=true

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Add the dependency in your `pom.xml` file:
5656
<dependency>
5757
<groupId>com.squareup</groupId>
5858
<artifactId>square</artifactId>
59-
<version>46.1.0.20260122</version>
59+
<version>46.1.0.20260520</version>
6060
</dependency>
6161
```
6262

@@ -361,8 +361,8 @@ Gradle:
361361

362362
```groovy
363363
dependencies {
364-
implementation 'com.squareup:square:46.1.0.20260122'
365-
implementation 'com.squareup:square-legacy:46.1.0.20260122'
364+
implementation 'com.squareup:square:46.1.0.20260520'
365+
implementation 'com.squareup:square-legacy:46.1.0.20260520'
366366
}
367367
```
368368

@@ -372,12 +372,12 @@ Maven:
372372
<dependency>
373373
<groupId>com.squareup</groupId>
374374
<artifactId>square</artifactId>
375-
<version>46.1.0.20260122</version>
375+
<version>46.1.0.20260520</version>
376376
</dependency>
377377
<dependency>
378378
<groupId>com.squareup</groupId>
379379
<artifactId>square-legacy</artifactId>
380-
<version>46.1.0.20260122</version>
380+
<version>46.1.0.20260520</version>
381381
</dependency>
382382
```
383383

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ java {
4747

4848
group = 'com.squareup'
4949

50-
version = '46.1.0.20260122'
50+
version = '46.1.0.20260520'
5151

5252
jar {
5353
dependsOn(":generatePomFileForMavenPublication")
@@ -78,7 +78,7 @@ publishing {
7878
maven(MavenPublication) {
7979
groupId = 'com.squareup'
8080
artifactId = 'square'
81-
version = '46.1.0.20260122'
81+
version = '46.1.0.20260520'
8282
from components.java
8383
pom {
8484
name = 'square'

reference.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11539,6 +11539,19 @@ For more information, see [Permissions](https://developer.squareup.com/docs/paym
1153911539
<dl>
1154011540
<dd>
1154111541

11542+
**appFeeAllocations:** `Optional<List<Object>>`
11543+
11544+
Details pertaining to recipients of the application fee. The sum of the amounts in the
11545+
app_fee_allocations must equal the app_fee_money amount, if present. If populated, an
11546+
allocation must be present for every party that expects to receive a portion of the application
11547+
fee, including the application developer.
11548+
11549+
</dd>
11550+
</dl>
11551+
11552+
<dl>
11553+
<dd>
11554+
1154211555
**delayDuration:** `Optional<String>`
1154311556

1154411557
The duration of time after the payment's creation when Square automatically
@@ -12769,6 +12782,19 @@ For more information, see [Permissions](https://developer.squareup.com/docs/paym
1276912782
<dl>
1277012783
<dd>
1277112784

12785+
**appFeeAllocations:** `Optional<List<Object>>`
12786+
12787+
Details pertaining to contributors to the refund of the application fee.
12788+
The sum of the amounts in the app_fee_allocations must equal the app_fee_money amount, if
12789+
present. If populated, an allocation must be present for every party that expects to contribute
12790+
a portion of the refunded application fee, including the application developer.
12791+
12792+
</dd>
12793+
</dl>
12794+
12795+
<dl>
12796+
<dd>
12797+
1277212798
**paymentId:** `Optional<String>`
1277312799

1277412800
The unique ID of the payment being refunded.

src/main/java/com/squareup/square/AsyncSquareClientBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class AsyncSquareClientBuilder {
2020

2121
private String token = System.getenv("SQUARE_TOKEN");
2222

23-
private String version = "2026-01-22";
23+
private String version = "2026-05-20";
2424

2525
private Environment environment = Environment.PRODUCTION;
2626

src/main/java/com/squareup/square/SquareClientBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class SquareClientBuilder {
2020

2121
private String token = System.getenv("SQUARE_TOKEN");
2222

23-
private String version = "2026-01-22";
23+
private String version = "2026-05-20";
2424

2525
private Environment environment = Environment.PRODUCTION;
2626

src/main/java/com/squareup/square/core/ClientOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ private ClientOptions(
3838
this.headers.putAll(headers);
3939
this.headers.putAll(new HashMap<String, String>() {
4040
{
41-
put("User-Agent", "com.squareup:square/46.1.0.20260122");
41+
put("User-Agent", "com.squareup:square/46.1.0.20260520");
4242
put("X-Fern-Language", "JAVA");
4343
put("X-Fern-SDK-Name", "com.square.fern:api-sdk");
44-
put("X-Fern-SDK-Version", "46.1.0.20260122");
44+
put("X-Fern-SDK-Version", "46.1.0.20260520");
4545
}
4646
});
4747
this.headerSuppliers = headerSuppliers;

0 commit comments

Comments
 (0)