Skip to content

Commit 85e54df

Browse files
SDK regeneration (#165)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent c820ed3 commit 85e54df

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "square/square",
3-
"version": "43.1.0.20250924",
3+
"version": "43.1.1.20250924",
44
"description": "Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.",
55
"keywords": [
66
"square",

src/Core/Client/RawClient.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,10 @@ private function encodeHeaders(
130130
): array {
131131
return match (get_class($request)) {
132132
JsonApiRequest::class => array_merge(
133-
["Content-Type" => "application/json"],
133+
[
134+
"Content-Type" => "application/json",
135+
"Accept" => "*/*",
136+
],
134137
$this->headers,
135138
$request->headers,
136139
$options['headers'] ?? [],
@@ -250,6 +253,9 @@ private function encodeQueryValue(mixed $value): string
250253
if (is_string($value)) {
251254
return urlencode($value);
252255
}
256+
if (is_bool($value)) {
257+
return $value ? 'true' : 'false';
258+
}
253259
if (is_scalar($value)) {
254260
return urlencode((string)$value);
255261
}

src/SquareClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ public function __construct(
250250
'Square-Version' => '2025-09-24',
251251
'X-Fern-Language' => 'PHP',
252252
'X-Fern-SDK-Name' => 'Square',
253-
'X-Fern-SDK-Version' => '43.1.0.20250924',
254-
'User-Agent' => 'square/square/43.1.0.20250924',
253+
'X-Fern-SDK-Version' => '43.1.1.20250924',
254+
'User-Agent' => 'square/square/43.1.1.20250924',
255255
];
256256
if ($version != null) {
257257
$defaultHeaders['Square-Version'] = $version;

0 commit comments

Comments
 (0)