Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Square Version #141

Merged
merged 1 commit into from
Jan 23, 2025
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
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` | `str` | Square Connect API versions<br>*Default*: `'2024-12-18'` |
| `square_version` | `str` | Square Connect API versions<br>*Default*: `'2025-01-23'` |
| `custom_url` | `str` | 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`** |
| `http_client_instance` | `HttpClient` | The Http Client passed from the sdk user for making requests |
Expand All @@ -24,7 +24,7 @@ The API client can be initialized as follows:

```python
client = Client(
square_version='2024-12-18',
square_version='2025-01-23',
bearer_auth_credentials=BearerAuthCredentials(
access_token='AccessToken'
),
Expand Down Expand Up @@ -53,7 +53,7 @@ from square.http.auth.o_auth_2 import BearerAuthCredentials
from square.client import Client

client = Client(
square_version='2024-12-18',
square_version='2025-01-23',
bearer_auth_credentials=BearerAuthCredentials(
access_token='AccessToken'
),
Expand Down
4 changes: 2 additions & 2 deletions square/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def sdk_version():

@staticmethod
def square_version():
return '2024-12-18'
return '2025-01-23'

def user_agent_detail(self):
return self.config.user_agent_detail
Expand Down Expand Up @@ -238,7 +238,7 @@ def __init__(self, http_client_instance=None,
retry_statuses=None, retry_methods=None,
environment='production',
custom_url='https://connect.squareup.com', access_token=None,
bearer_auth_credentials=None, square_version='2024-12-18',
bearer_auth_credentials=None, square_version='2025-01-23',
additional_headers={}, user_agent_detail='', config=None):
self.config = config or Configuration(
http_client_instance=http_client_instance,
Expand Down
2 changes: 1 addition & 1 deletion square/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, http_client_instance=None,
retry_statuses=None, retry_methods=None,
environment='production',
custom_url='https://connect.squareup.com', access_token=None,
bearer_auth_credentials=None, square_version='2024-12-18',
bearer_auth_credentials=None, square_version='2025-01-23',
additional_headers={}, user_agent_detail=''):
if retry_methods is None:
retry_methods = ['GET', 'PUT']
Expand Down
Loading