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 @@ -23,6 +23,6 @@
}
}
},
"originGitCommit": "b05364cda2b85e35d8daa9ff2c24bbabbbd9652a",
"sdkVersion": "46.1.0.20260819"
"originGitCommit": "f74d4b7e34b9b8676dc4b58d83a38111dc1d595f",
"sdkVersion": "47.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 composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "square/square",
"version": "46.1.0.20260819",
"version": "47.0.0.20260916",
"description": "Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.",
"keywords": [
"square",
Expand Down
188 changes: 0 additions & 188 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -7388,50 +7388,6 @@ See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagin
</dl>


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

<details><summary><code>$client-&gt;inventory-&gt;getTransfer($request)</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```php
$client->inventory->getTransfer(
new GetTransferInventoryRequest([
'transferId' => 'transfer_id',
]),
);
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**$transferId:** `string`

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


</dd>
</dl>
</details>
Expand Down Expand Up @@ -23647,150 +23603,6 @@ $client->locations->transactions->get(
</dl>


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

<details><summary><code>$client-&gt;locations-&gt;transactions-&gt;capture($request) -> 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>

```php
$client->locations->transactions->capture(
new CaptureTransactionsRequest([
'locationId' => 'location_id',
'transactionId' => 'transaction_id',
]),
);
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**$locationId:** `string` —

</dd>
</dl>

<dl>
<dd>

**$transactionId:** `string` —

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


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

<details><summary><code>$client-&gt;locations-&gt;transactions-&gt;void($request) -> 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>

```php
$client->locations->transactions->void(
new VoidTransactionsRequest([
'locationId' => 'location_id',
'transactionId' => 'transaction_id',
]),
);
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**$locationId:** `string` —

</dd>
</dl>

<dl>
<dd>

**$transactionId:** `string` —

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


</dd>
</dl>
</details>
Expand Down
40 changes: 0 additions & 40 deletions src/Inventory/InventoryClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
use Square\Types\GetInventoryCountResponse;
use Square\Inventory\Requests\ChangesInventoryRequest;
use Square\Types\GetInventoryChangesResponse;
use Square\Inventory\Requests\GetTransferInventoryRequest;

class InventoryClient
{
Expand Down Expand Up @@ -940,45 +939,6 @@ public function changes(ChangesInventoryRequest $request, ?array $options = null
);
}

/**
* @param GetTransferInventoryRequest $request
* @param ?array{
* baseUrl?: string,
* maxRetries?: int,
* timeout?: float,
* headers?: array<string, string>,
* queryParameters?: array<string, mixed>,
* bodyProperties?: array<string, mixed>,
* } $options
* @throws SquareException
* @throws SquareApiException
*/
public function getTransfer(GetTransferInventoryRequest $request, ?array $options = null): void
{
$options = array_merge($this->options, $options ?? []);
try {
$response = $this->client->sendRequest(
new JsonApiRequest(
baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? Environments::Production->value,
path: "v2/inventory/transfers/{$request->getTransferId()}",
method: HttpMethod::GET,
),
$options,
);
$statusCode = $response->getStatusCode();
if ($statusCode >= 200 && $statusCode < 400) {
return;
}
} catch (ClientExceptionInterface $e) {
throw new SquareException(message: $e->getMessage(), previous: $e);
}
throw new SquareApiException(
message: 'API request failed',
statusCode: $statusCode,
body: $response->getBody()->getContents(),
);
}

/**
* Returns historical physical counts and adjustments based on the
* provided filter criteria.
Expand Down
42 changes: 0 additions & 42 deletions src/Inventory/Requests/GetTransferInventoryRequest.php

This file was deleted.

67 changes: 0 additions & 67 deletions src/Locations/Transactions/Requests/CaptureTransactionsRequest.php

This file was deleted.

Loading
Loading