Skip to content

Commit

Permalink
Update generated code for v1097
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Jun 25, 2024
1 parent 62307ed commit 1cf4541
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1096
v1097
42 changes: 42 additions & 0 deletions stripe/terminal/_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ class Offline(StripeObject):
Determines whether to allow transactions to be collected while reader is offline. Defaults to false.
"""

class RebootWindow(StripeObject):
end_hour: int
"""
Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
"""
start_hour: int
"""
Integer between 0 to 23 that represents the start hour of the reboot time window.
"""

class StripeS700(StripeObject):
splashscreen: Optional[ExpandableField["File"]]
"""
Expand Down Expand Up @@ -305,6 +315,10 @@ class CreateParams(RequestOptions):
"""
Configurations for collecting transactions offline.
"""
reboot_window: NotRequired["Configuration.CreateParamsRebootWindow"]
"""
Reboot time settings for readers that support customized reboot time configuration.
"""
stripe_s700: NotRequired["Configuration.CreateParamsStripeS700"]
"""
An object containing device type specific settings for Stripe S700 readers
Expand All @@ -330,6 +344,16 @@ class CreateParamsOffline(TypedDict):
Determines whether to allow transactions to be collected while reader is offline. Defaults to false.
"""

class CreateParamsRebootWindow(TypedDict):
end_hour: int
"""
Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
"""
start_hour: int
"""
Integer between 0 to 23 that represents the start hour of the reboot time window.
"""

class CreateParamsStripeS700(TypedDict):
splashscreen: NotRequired["Literal['']|str"]
"""
Expand Down Expand Up @@ -640,6 +664,12 @@ class ModifyParams(RequestOptions):
"""
Configurations for collecting transactions offline.
"""
reboot_window: NotRequired[
"Literal['']|Configuration.ModifyParamsRebootWindow"
]
"""
Reboot time settings for readers that support customized reboot time configuration.
"""
stripe_s700: NotRequired[
"Literal['']|Configuration.ModifyParamsStripeS700"
]
Expand Down Expand Up @@ -669,6 +699,16 @@ class ModifyParamsOffline(TypedDict):
Determines whether to allow transactions to be collected while reader is offline. Defaults to false.
"""

class ModifyParamsRebootWindow(TypedDict):
end_hour: int
"""
Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
"""
start_hour: int
"""
Integer between 0 to 23 that represents the start hour of the reboot time window.
"""

class ModifyParamsStripeS700(TypedDict):
splashscreen: NotRequired["Literal['']|str"]
"""
Expand Down Expand Up @@ -963,6 +1003,7 @@ class RetrieveParams(RequestOptions):
String representing the object's type. Objects of the same type share the same value.
"""
offline: Optional[Offline]
reboot_window: Optional[RebootWindow]
stripe_s700: Optional[StripeS700]
tipping: Optional[Tipping]
verifone_p400: Optional[VerifoneP400]
Expand Down Expand Up @@ -1200,6 +1241,7 @@ async def retrieve_async(
_inner_class_types = {
"bbpos_wisepos_e": BbposWiseposE,
"offline": Offline,
"reboot_window": RebootWindow,
"stripe_s700": StripeS700,
"tipping": Tipping,
"verifone_p400": VerifoneP400,
Expand Down
32 changes: 32 additions & 0 deletions stripe/terminal/_configuration_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ class CreateParams(TypedDict):
"""
Configurations for collecting transactions offline.
"""
reboot_window: NotRequired[
"ConfigurationService.CreateParamsRebootWindow"
]
"""
Reboot time settings for readers that support customized reboot time configuration.
"""
stripe_s700: NotRequired["ConfigurationService.CreateParamsStripeS700"]
"""
An object containing device type specific settings for Stripe S700 readers
Expand Down Expand Up @@ -60,6 +66,16 @@ class CreateParamsOffline(TypedDict):
Determines whether to allow transactions to be collected while reader is offline. Defaults to false.
"""

class CreateParamsRebootWindow(TypedDict):
end_hour: int
"""
Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
"""
start_hour: int
"""
Integer between 0 to 23 that represents the start hour of the reboot time window.
"""

class CreateParamsStripeS700(TypedDict):
splashscreen: NotRequired["Literal['']|str"]
"""
Expand Down Expand Up @@ -378,6 +394,12 @@ class UpdateParams(TypedDict):
"""
Configurations for collecting transactions offline.
"""
reboot_window: NotRequired[
"Literal['']|ConfigurationService.UpdateParamsRebootWindow"
]
"""
Reboot time settings for readers that support customized reboot time configuration.
"""
stripe_s700: NotRequired[
"Literal['']|ConfigurationService.UpdateParamsStripeS700"
]
Expand Down Expand Up @@ -409,6 +431,16 @@ class UpdateParamsOffline(TypedDict):
Determines whether to allow transactions to be collected while reader is offline. Defaults to false.
"""

class UpdateParamsRebootWindow(TypedDict):
end_hour: int
"""
Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
"""
start_hour: int
"""
Integer between 0 to 23 that represents the start hour of the reboot time window.
"""

class UpdateParamsStripeS700(TypedDict):
splashscreen: NotRequired["Literal['']|str"]
"""
Expand Down

0 comments on commit 1cf4541

Please sign in to comment.