Skip to content

Commit 2fbbd62

Browse files
authored
Merge pull request #144 from square/fern-support/20250319
Release 42.0.0.20250319
2 parents c1dc7ff + 6484de0 commit 2fbbd62

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
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*: `'2025-02-20'` |
8+
| `square_version` | `String` | Square Connect API versions<br>*Default*: `'2025-03-19'` |
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: '2025-02-20',
28+
square_version: '2025-03-19',
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: '2025-02-20',
58+
square_version: '2025-03-19',
5959
bearer_auth_credentials: BearerAuthCredentials.new(
6060
access_token: 'AccessToken'
6161
),

lib/square/api/base_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class BaseApi
55
attr_accessor :config, :http_call_back
66

77
def self.user_agent
8-
'Square-Ruby-SDK/41.1.0.20250220 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}'
8+
'Square-Ruby-SDK/42.0.0.20250319 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}'
99
end
1010

1111
def self.user_agent_parameters

lib/square/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class Client
55
attr_reader :config, :auth_managers
66

77
def sdk_version
8-
'41.1.0.20250220'
8+
'42.0.0.20250319'
99
end
1010

1111
def square_version
@@ -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: '2025-02-20',
277+
bearer_auth_credentials: nil, square_version: '2025-03-19',
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: '2025-02-20',
27+
bearer_auth_credentials: nil, square_version: '2025-03-19',
2828
user_agent_detail: '', additional_headers: {}
2929
)
3030

square.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = 'square.rb'
3-
s.version = '41.1.0.20250220'
3+
s.version = '42.0.0.20250319'
44
s.summary = 'square'
55
s.description = ''
66
s.authors = ['Square Developer Platform']

0 commit comments

Comments
 (0)