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
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"use_typeddict_requests_for_file_upload": true,
"exclude_types_from_init_exports": true
},
"originGitCommit": "b05364cda2b85e35d8daa9ff2c24bbabbbd9652a",
"sdkVersion": "45.1.0.20260819"
"originGitCommit": "f74d4b7e34b9b8676dc4b58d83a38111dc1d595f",
"sdkVersion": "46.0.0.20260916"
}
8 changes: 7 additions & 1 deletion .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dynamic = ["version"]

[tool.poetry]
name = "squareup"
version = "45.1.0.20260819"
version = "46.0.0.20260916"
description = ""
readme = "README.md"
authors = []
Expand Down
224 changes: 0 additions & 224 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -8872,62 +8872,6 @@ See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagin
</dl>


</dd>
</dl>
</details>

<details><summary><code>client.inventory.<a href="src/square/inventory/client.py">get_transfer</a>(...) -&gt; AsyncHttpResponse[None]</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```python
from square import Square

client = Square(
token="YOUR_TOKEN",
)
client.inventory.get_transfer(
transfer_id="transfer_id",
)

```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**transfer_id:** `str`

</dd>
</dl>

<dl>
<dd>

**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>
Expand Down Expand Up @@ -27420,174 +27364,6 @@ client.locations.transactions.get(
</dl>


</dd>
</dl>
</details>

<details><summary><code>client.locations.transactions.<a href="src/square/locations/transactions/client.py">capture</a>(...) -&gt; AsyncHttpResponse[CaptureTransactionResponse]</code></summary>
<dl>
<dd>

#### 📝 Description

<dl>
<dd>

<dl>
<dd>

Captures a transaction that was created with the [Charge](api-endpoint:Transactions-Charge)
endpoint with a `delay_capture` value of `true`.


See [Delayed capture transactions](https://developer.squareup.com/docs/payments/transactions/overview#delayed-capture)
for more information.
</dd>
</dl>
</dd>
</dl>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```python
from square import Square

client = Square(
token="YOUR_TOKEN",
)
client.locations.transactions.capture(
location_id="location_id",
transaction_id="transaction_id",
)

```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**location_id:** `str` —

</dd>
</dl>

<dl>
<dd>

**transaction_id:** `str` —

</dd>
</dl>

<dl>
<dd>

**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>

<details><summary><code>client.locations.transactions.<a href="src/square/locations/transactions/client.py">void</a>(...) -&gt; AsyncHttpResponse[VoidTransactionResponse]</code></summary>
<dl>
<dd>

#### 📝 Description

<dl>
<dd>

<dl>
<dd>

Cancels a transaction that was created with the [Charge](api-endpoint:Transactions-Charge)
endpoint with a `delay_capture` value of `true`.


See [Delayed capture transactions](https://developer.squareup.com/docs/payments/transactions/overview#delayed-capture)
for more information.
</dd>
</dl>
</dd>
</dl>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```python
from square import Square

client = Square(
token="YOUR_TOKEN",
)
client.locations.transactions.void(
location_id="location_id",
transaction_id="transaction_id",
)

```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**location_id:** `str` —

</dd>
</dl>

<dl>
<dd>

**transaction_id:** `str` —

</dd>
</dl>

<dl>
<dd>

**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>
Expand Down
6 changes: 3 additions & 3 deletions src/square/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ def get_headers(self) -> typing.Dict[str, str]:
import platform

headers: typing.Dict[str, str] = {
"User-Agent": "squareup/45.1.0.20260819",
"User-Agent": "squareup/46.0.0.20260916",
"X-Fern-Language": "Python",
"X-Fern-Runtime": f"python/{platform.python_version()}",
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
"X-Fern-SDK-Name": "squareup",
"X-Fern-SDK-Version": "45.1.0.20260819",
"X-Fern-SDK-Version": "46.0.0.20260916",
**(self.get_custom_headers() or {}),
}
token = self._get_token()
if token is not None:
headers["Authorization"] = f"Bearer {token}"
headers["Square-Version"] = self._version if self._version is not None else "2026-08-19"
headers["Square-Version"] = self._version if self._version is not None else "2026-09-16"
return headers

def _get_token(self) -> typing.Optional[str]:
Expand Down
62 changes: 0 additions & 62 deletions src/square/inventory/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1168,33 +1168,6 @@ def changes(
catalog_object_id, location_ids=location_ids, cursor=cursor, request_options=request_options
)

def get_transfer(self, transfer_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
"""
Parameters
----------
transfer_id : str

request_options : typing.Optional[RequestOptions]
Request-specific configuration.

Returns
-------
None

Examples
--------
from square import Square

client = Square(
token="YOUR_TOKEN",
)
client.inventory.get_transfer(
transfer_id="transfer_id",
)
"""
_response = self._raw_client.get_transfer(transfer_id, request_options=request_options)
return _response.data


class AsyncInventoryClient:
def __init__(self, *, client_wrapper: AsyncClientWrapper):
Expand Down Expand Up @@ -2487,38 +2460,3 @@ async def main() -> None:
return await self._raw_client.changes(
catalog_object_id, location_ids=location_ids, cursor=cursor, request_options=request_options
)

async def get_transfer(self, transfer_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
"""
Parameters
----------
transfer_id : str

request_options : typing.Optional[RequestOptions]
Request-specific configuration.

Returns
-------
None

Examples
--------
import asyncio

from square import AsyncSquare

client = AsyncSquare(
token="YOUR_TOKEN",
)


async def main() -> None:
await client.inventory.get_transfer(
transfer_id="transfer_id",
)


asyncio.run(main())
"""
_response = await self._raw_client.get_transfer(transfer_id, request_options=request_options)
return _response.data
Loading
Loading