Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"cliVersion": "2.8.1",
"cliVersion": "3.38.0",
"generatorName": "fernapi/fern-java-sdk",
"generatorVersion": "3.19.0",
"generatorVersion": "3.27.6",
"generatorConfig": {
"base-api-exception-class-name": "SquareApiException",
"base-exception-class-name": "SquareException",
Expand All @@ -12,5 +12,6 @@
"package-layout": "flat",
"enable-forward-compatible-enums": true,
"publish-to": "central"
}
},
"sdkVersion": "46.0.0.20260122"
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2025 Square.
Copyright (c) 2026 Square.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Add the dependency in your `pom.xml` file:
<dependency>
<groupId>com.squareup</groupId>
<artifactId>square</artifactId>
<version>45.2.0.20251016</version>
<version>46.0.0.20260122</version>
</dependency>
```

Expand Down Expand Up @@ -361,8 +361,8 @@ Gradle:

```groovy
dependencies {
implementation 'com.squareup:square:45.2.0.20251016'
implementation 'com.squareup:square-legacy:45.2.0.20251016'
implementation 'com.squareup:square:46.0.0.20260122'
implementation 'com.squareup:square-legacy:46.0.0.20260122'
}
```

Expand All @@ -372,12 +372,12 @@ Maven:
<dependency>
<groupId>com.squareup</groupId>
<artifactId>square</artifactId>
<version>45.2.0.20251016</version>
<version>46.0.0.20260122</version>
</dependency>
<dependency>
<groupId>com.squareup</groupId>
<artifactId>square-legacy</artifactId>
<version>45.2.0.20251016</version>
<version>46.0.0.20260122</version>
</dependency>
```

Expand Down Expand Up @@ -432,23 +432,22 @@ SquareClient client = SquareClient
### Timeouts

The SDK defaults to a 60 second timeout. You can configure this with a timeout option at the client or request level.

```java
import com.squareup.square.SquareClient;
import com.squareup.square.core.RequestOptions;

// Client level
SquareClient client = SquareClient
.builder()
.timeout(10)
.timeout(60)
.build();

// Request level
client.payments().create(
...,
RequestOptions
.builder()
.timeout(10)
.timeout(60)
.build()
);
```
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ java {

group = 'com.squareup'

version = '45.2.0.20251016'
version = '46.0.0.20260122'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand Down Expand Up @@ -78,7 +78,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.squareup'
artifactId = 'square'
version = '45.2.0.20251016'
version = '46.0.0.20260122'
from components.java
pom {
name = 'square'
Expand Down
Loading
Loading