Skip to content
Open
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
5 changes: 3 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"cliVersion": "3.98.5",
"cliVersion": "5.56.0",
"generatorName": "fernapi/fern-python-sdk",
"generatorVersion": "4.55.4",
"generatorConfig": {
Expand All @@ -14,5 +14,6 @@
"use_typeddict_requests_for_file_upload": true,
"exclude_types_from_init_exports": true
},
"sdkVersion": "44.2.0-rc.0"
"originGitCommit": "4b035f25928bb22328fb84412043abb52d24de61",
"sdkVersion": "45.0.0.20260715"
}
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 = "44.2.0-rc.0"
version = "45.0.0.20260715"
description = ""
readme = "README.md"
authors = []
Expand Down
4 changes: 2 additions & 2 deletions src/square/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ def get_headers(self) -> typing.Dict[str, str]:
import platform

headers: typing.Dict[str, str] = {
"User-Agent": "squareup/44.2.0-rc.0",
"User-Agent": "squareup/45.0.0.20260715",
"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": "44.2.0-rc.0",
"X-Fern-SDK-Version": "45.0.0.20260715",
**(self.get_custom_headers() or {}),
}
token = self._get_token()
Expand Down
36 changes: 0 additions & 36 deletions src/square/inventory/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,6 @@ def deprecated_batch_change(
),
"ignore_unchanged_counts": ignore_unchanged_counts,
},
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down Expand Up @@ -261,9 +258,6 @@ def deprecated_batch_get_changes(
"cursor": cursor,
"limit": limit,
},
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down Expand Up @@ -345,9 +339,6 @@ def deprecated_batch_get_counts(
"states": states,
"limit": limit,
},
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down Expand Up @@ -420,9 +411,6 @@ def batch_create_changes(
),
"ignore_unchanged_counts": ignore_unchanged_counts,
},
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down Expand Up @@ -523,9 +511,6 @@ def batch_get_changes(
"cursor": cursor,
"limit": limit,
},
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down Expand Up @@ -630,9 +615,6 @@ def batch_get_counts(
"states": states,
"limit": limit,
},
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down Expand Up @@ -1070,9 +1052,6 @@ async def deprecated_batch_change(
),
"ignore_unchanged_counts": ignore_unchanged_counts,
},
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down Expand Up @@ -1167,9 +1146,6 @@ async def deprecated_batch_get_changes(
"cursor": cursor,
"limit": limit,
},
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down Expand Up @@ -1251,9 +1227,6 @@ async def deprecated_batch_get_counts(
"states": states,
"limit": limit,
},
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down Expand Up @@ -1326,9 +1299,6 @@ async def batch_create_changes(
),
"ignore_unchanged_counts": ignore_unchanged_counts,
},
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down Expand Up @@ -1429,9 +1399,6 @@ async def batch_get_changes(
"cursor": cursor,
"limit": limit,
},
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down Expand Up @@ -1539,9 +1506,6 @@ async def batch_get_counts(
"states": states,
"limit": limit,
},
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down
6 changes: 0 additions & 6 deletions src/square/orders/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ def create(
),
"idempotency_key": idempotency_key,
},
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down Expand Up @@ -655,9 +652,6 @@ async def create(
),
"idempotency_key": idempotency_key,
},
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down
4 changes: 2 additions & 2 deletions src/square/requests/loyalty_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class LoyaltyEventParams(typing_extensions.TypedDict):
The Square-assigned ID of the loyalty event.
"""

type: LoyaltyEventType
type: typing_extensions.NotRequired[LoyaltyEventType]
"""
The type of the loyalty event.
See [LoyaltyEventType](#type-loyaltyeventtype) for possible values
Expand Down Expand Up @@ -70,7 +70,7 @@ class LoyaltyEventParams(typing_extensions.TypedDict):
The ID of the [location](entity:Location) where the event occurred.
"""

source: LoyaltyEventSource
source: typing_extensions.NotRequired[LoyaltyEventSource]
"""
Defines whether the event was generated by the Square Point of Sale.
See [LoyaltyEventSource](#type-loyaltyeventsource) for possible values
Expand Down
6 changes: 0 additions & 6 deletions src/square/team_members/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ def create(
object_=team_member, annotation=TeamMemberParams, direction="write"
),
},
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down Expand Up @@ -427,9 +424,6 @@ async def create(
object_=team_member, annotation=TeamMemberParams, direction="write"
),
},
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down
4 changes: 2 additions & 2 deletions src/square/types/loyalty_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class LoyaltyEvent(UncheckedBaseModel):
The Square-assigned ID of the loyalty event.
"""

type: LoyaltyEventType = pydantic.Field()
type: typing.Optional[LoyaltyEventType] = pydantic.Field(default=None)
"""
The type of the loyalty event.
See [LoyaltyEventType](#type-loyaltyeventtype) for possible values
Expand Down Expand Up @@ -74,7 +74,7 @@ class LoyaltyEvent(UncheckedBaseModel):
The ID of the [location](entity:Location) where the event occurred.
"""

source: LoyaltyEventSource = pydantic.Field()
source: typing.Optional[LoyaltyEventSource] = pydantic.Field(default=None)
"""
Defines whether the event was generated by the Square Point of Sale.
See [LoyaltyEventSource](#type-loyaltyeventsource) for possible values
Expand Down
Loading