Skip to content

Commit

Permalink
Merge pull request #141 from square/eden/bump-square-version
Browse files Browse the repository at this point in the history
Bump Square Version.
  • Loading branch information
mikekono authored Jan 23, 2025
2 parents a555a50 + 73d4f52 commit b23ea1f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions doc/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The following parameters are configurable for the API Client:

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

```ruby
client = Square::Client.new(
square_version: '2024-12-18',
square_version: '2025-01-23',
bearer_auth_credentials: BearerAuthCredentials.new(
access_token: 'AccessToken'
),
Expand Down Expand Up @@ -55,7 +55,7 @@ require 'square'
include Square

client = Square::Client.new(
square_version: '2024-12-18',
square_version: '2025-01-23',
bearer_auth_credentials: BearerAuthCredentials.new(
access_token: 'AccessToken'
),
Expand Down
2 changes: 1 addition & 1 deletion lib/square/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def initialize(
retry_statuses: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524],
retry_methods: %i[get put], http_callback: nil, environment: 'production',
custom_url: 'https://connect.squareup.com', access_token: nil,
bearer_auth_credentials: nil, square_version: '2024-12-18',
bearer_auth_credentials: nil, square_version: '2025-01-23',
user_agent_detail: '', additional_headers: {}, config: nil
)
@config = if config.nil?
Expand Down
2 changes: 1 addition & 1 deletion lib/square/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def initialize(
retry_statuses: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524],
retry_methods: %i[get put], http_callback: nil, environment: 'production',
custom_url: 'https://connect.squareup.com', access_token: nil,
bearer_auth_credentials: nil, square_version: '2024-12-18',
bearer_auth_credentials: nil, square_version: '2025-01-23',
user_agent_detail: '', additional_headers: {}
)

Expand Down

0 comments on commit b23ea1f

Please sign in to comment.