Skip to content

Commit b23ea1f

Browse files
authored
Merge pull request #141 from square/eden/bump-square-version
Bump Square Version.
2 parents a555a50 + 73d4f52 commit b23ea1f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

doc/client.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The following parameters are configurable for the API Client:
55

66
| Parameter | Type | Description |
77
| --- | --- | --- |
8-
| `square_version` | `String` | Square Connect API versions<br>*Default*: `'2024-12-18'` |
8+
| `square_version` | `String` | Square Connect API versions<br>*Default*: `'2025-01-23'` |
99
| `custom_url` | `String` | Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`<br>*Default*: `'https://connect.squareup.com'` |
1010
| `environment` | `string` | The API environment. <br> **Default: `production`** |
1111
| `connection` | `Faraday::Connection` | The Faraday connection object passed by the SDK user for making requests |
@@ -25,7 +25,7 @@ The API client can be initialized as follows:
2525

2626
```ruby
2727
client = Square::Client.new(
28-
square_version: '2024-12-18',
28+
square_version: '2025-01-23',
2929
bearer_auth_credentials: BearerAuthCredentials.new(
3030
access_token: 'AccessToken'
3131
),
@@ -55,7 +55,7 @@ require 'square'
5555
include Square
5656

5757
client = Square::Client.new(
58-
square_version: '2024-12-18',
58+
square_version: '2025-01-23',
5959
bearer_auth_credentials: BearerAuthCredentials.new(
6060
access_token: 'AccessToken'
6161
),

lib/square/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def initialize(
274274
retry_statuses: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524],
275275
retry_methods: %i[get put], http_callback: nil, environment: 'production',
276276
custom_url: 'https://connect.squareup.com', access_token: nil,
277-
bearer_auth_credentials: nil, square_version: '2024-12-18',
277+
bearer_auth_credentials: nil, square_version: '2025-01-23',
278278
user_agent_detail: '', additional_headers: {}, config: nil
279279
)
280280
@config = if config.nil?

lib/square/configuration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def initialize(
2424
retry_statuses: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524],
2525
retry_methods: %i[get put], http_callback: nil, environment: 'production',
2626
custom_url: 'https://connect.squareup.com', access_token: nil,
27-
bearer_auth_credentials: nil, square_version: '2024-12-18',
27+
bearer_auth_credentials: nil, square_version: '2025-01-23',
2828
user_agent_detail: '', additional_headers: {}
2929
)
3030

0 commit comments

Comments
 (0)