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
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Add the dependency in your `pom.xml` file:
<dependency>
<groupId>com.squareup</groupId>
<artifactId>square</artifactId>
<version>45.0.3.20250820</version>
<version>45.0.0.20250924</version>
</dependency>
```

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

```groovy
dependencies {
implementation 'com.squareup:square:45.0.3.20250820'
implementation 'com.squareup:square-legacy:45.0.3.20250820'
implementation 'com.squareup:square:45.0.0.20250924'
implementation 'com.squareup:square-legacy:45.0.0.20250924'
}
```

Expand All @@ -347,12 +347,12 @@ Maven:
<dependency>
<groupId>com.squareup</groupId>
<artifactId>square</artifactId>
<version>45.0.3.20250820</version>
<version>45.0.0.20250924</version>
</dependency>
<dependency>
<groupId>com.squareup</groupId>
<artifactId>square-legacy</artifactId>
<version>45.0.3.20250820</version>
<version>45.0.0.20250924</version>
</dependency>
```

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.0.3.20250820'
version = '45.0.0.20250924'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand Down Expand Up @@ -78,7 +78,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.squareup'
artifactId = 'square'
version = '45.0.3.20250820'
version = '45.0.0.20250924'
from components.java
pom {
name = 'square'
Expand Down
28 changes: 14 additions & 14 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -10822,7 +10822,7 @@ client.payments().list(

**beginTime:** `Optional<String>`

Indicates the start of the time range to retrieve payments for, in RFC 3339 format.
Indicates the start of the time range to retrieve payments for, in RFC 3339 format.
The range is determined using the `created_at` field for each Payment.
Inclusive. Default: The current time minus one year.

Expand All @@ -10834,7 +10834,7 @@ Inclusive. Default: The current time minus one year.

**endTime:** `Optional<String>`

Indicates the end of the time range to retrieve payments for, in RFC 3339 format. The
Indicates the end of the time range to retrieve payments for, in RFC 3339 format. The
range is determined using the `created_at` field for each Payment.

Default: The current time.
Expand Down Expand Up @@ -11074,7 +11074,7 @@ This could be a payment token generated by the Web Payments SDK for any of its
[supported methods](https://developer.squareup.com/docs/web-payments/overview#explore-payment-methods),
including cards, bank transfers, Afterpay or Cash App Pay. If recording a payment
that the seller received outside of Square, specify either "CASH" or "EXTERNAL".
For more information, see
For more information, see
[Take Payments](https://developer.squareup.com/docs/payments-api/take-payments).

</dd>
Expand Down Expand Up @@ -11162,10 +11162,10 @@ For more information, see [Permissions](https://developer.squareup.com/docs/paym

**delayDuration:** `Optional<String>`

The duration of time after the payment's creation when Square automatically
either completes or cancels the payment depending on the `delay_action` field value.
For more information, see
[Time threshold](https://developer.squareup.com/docs/payments-api/take-payments/card-payments/delayed-capture#time-threshold).
The duration of time after the payment's creation when Square automatically
either completes or cancels the payment depending on the `delay_action` field value.
For more information, see
[Time threshold](https://developer.squareup.com/docs/payments-api/take-payments/card-payments/delayed-capture#time-threshold).

This parameter should be specified as a time duration, in RFC 3339 format.

Expand All @@ -11186,8 +11186,8 @@ Default:
**delayAction:** `Optional<String>`

The action to be applied to the payment when the `delay_duration` has elapsed. The action must be
CANCEL or COMPLETE. For more information, see
[Time Threshold](https://developer.squareup.com/docs/payments-api/take-payments/card-payments/delayed-capture#time-threshold).
CANCEL or COMPLETE. For more information, see
[Time Threshold](https://developer.squareup.com/docs/payments-api/take-payments/card-payments/delayed-capture#time-threshold).

Default: CANCEL

Expand Down Expand Up @@ -11245,7 +11245,7 @@ used.

**teamMemberId:** `Optional<String>`

An optional [TeamMember](entity:TeamMember) ID to associate with
An optional [TeamMember](entity:TeamMember) ID to associate with
this payment.

</dd>
Expand All @@ -11258,7 +11258,7 @@ this payment.

A user-defined ID to associate with the payment.

You can use this field to associate the payment to an entity in an external system
You can use this field to associate the payment to an entity in an external system
(for example, you might specify an order ID that is generated by a third-party shopping cart).

</dd>
Expand Down Expand Up @@ -11752,8 +11752,8 @@ client.payments().complete(

**versionToken:** `Optional<String>`

Used for optimistic concurrency. This opaque token identifies the current `Payment`
version that the caller expects. If the server has a different version of the Payment,
Used for optimistic concurrency. This opaque token identifies the current `Payment`
version that the caller expects. If the server has a different version of the Payment,
the update fails and a response with a VERSION_MISMATCH error is returned.

</dd>
Expand Down Expand Up @@ -12930,7 +12930,7 @@ If the cancellation date is earlier than the end date of a subscription cycle, t
at the canceled date and the subscriber is sent a prorated invoice at the beginning of the canceled cycle.

When the subscription plan of the newly created subscription has a fixed number of cycles and the `canceled_date`
occurs before the subscription plan expires, the specified `canceled_date` sets the date when the subscription
occurs before the subscription plan completes, the specified `canceled_date` sets the date when the subscription
stops through the end of the last cycle.

</dd>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class AsyncSquareClientBuilder {

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

private String version = "2025-08-20";
private String version = "2025-09-24";

private Environment environment = Environment.PRODUCTION;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/squareup/square/SquareClientBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class SquareClientBuilder {

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

private String version = "2025-08-20";
private String version = "2025-09-24";

private Environment environment = Environment.PRODUCTION;

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/squareup/square/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ private ClientOptions(
this.headers.putAll(headers);
this.headers.putAll(new HashMap<String, String>() {
{
put("User-Agent", "com.squareup:square/45.0.3.20250820");
put("User-Agent", "com.squareup:square/45.0.0.20250924");
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.square.fern:api-sdk");
put("X-Fern-SDK-Version", "45.0.3.20250820");
put("X-Fern-SDK-Version", "45.0.0.20250924");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
Loading