Skip to content

Commit fa13843

Browse files
fix(api): mark AppleWebPushProvisioningResponse fields required
1 parent 204f51e commit fa13843

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 175
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-eeeb62a4869ba1436c9252f9630006a829695178e86305aea232f6be0d1e3d81.yml
3-
openapi_spec_hash: 25bf9c499cd22240949862e622c534f2
4-
config_hash: 2af43c32faa12490c9c9caa2ce62bccb
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-d6e80e52c9f20d95780f2cf4869f80ee2c4b270ff9470941dc057e79d15bda1a.yml
3+
openapi_spec_hash: f2bb7084cd5225769302589cd1563241
4+
config_hash: 31d71922d7838f34ae0875c9b8026d99

src/lithic/types/card_web_provision_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ class AppleWebPushProvisioningResponseJws(BaseModel):
4646

4747

4848
class AppleWebPushProvisioningResponse(BaseModel):
49-
jws: Optional[AppleWebPushProvisioningResponseJws] = None
49+
jws: AppleWebPushProvisioningResponseJws
5050
"""JWS object required for handoff to Apple's script."""
5151

52-
state: Optional[str] = None
52+
state: str
5353
"""A unique identifier for the JWS object."""
5454

5555

src/lithic/types/payment_create_params.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
from __future__ import annotations
44

55
from typing import Optional
6-
from typing_extensions import Literal, Required, Annotated, TypedDict
7-
8-
from .._utils import PropertyInfo
6+
from typing_extensions import Literal, Required, TypedDict
97

108
__all__ = ["PaymentCreateParams", "MethodAttributes"]
119

@@ -37,7 +35,7 @@ class PaymentCreateParams(TypedDict, total=False):
3735
class MethodAttributes(TypedDict, total=False):
3836
sec_code: Required[Literal["CCD", "PPD", "WEB"]]
3937

40-
ach_hold_period: Annotated[int, PropertyInfo(alias="ach_hold__period")]
38+
ach_hold_period: int
4139
"""Number of days to hold the ACH payment"""
4240

4341
addenda: Optional[str]

0 commit comments

Comments
 (0)