Skip to content

Commit

Permalink
Update generated code for v1291
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Oct 11, 2024
1 parent db65dcf commit 4b3da82
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1290
v1291
52 changes: 52 additions & 0 deletions stripe/terminal/_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,20 @@ class Nzd(StripeObject):
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""

class Pln(StripeObject):
fixed_amounts: Optional[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: Optional[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: Optional[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""

class Sek(StripeObject):
fixed_amounts: Optional[List[int]]
"""
Expand Down Expand Up @@ -272,6 +286,7 @@ class Usd(StripeObject):
myr: Optional[Myr]
nok: Optional[Nok]
nzd: Optional[Nzd]
pln: Optional[Pln]
sek: Optional[Sek]
sgd: Optional[Sgd]
usd: Optional[Usd]
Expand All @@ -287,6 +302,7 @@ class Usd(StripeObject):
"myr": Myr,
"nok": Nok,
"nzd": Nzd,
"pln": Pln,
"sek": Sek,
"sgd": Sgd,
"usd": Usd,
Expand Down Expand Up @@ -405,6 +421,10 @@ class CreateParamsTipping(TypedDict):
"""
Tipping configuration for NZD
"""
pln: NotRequired["Configuration.CreateParamsTippingPln"]
"""
Tipping configuration for PLN
"""
sek: NotRequired["Configuration.CreateParamsTippingSek"]
"""
Tipping configuration for SEK
Expand Down Expand Up @@ -572,6 +592,20 @@ class CreateParamsTippingNzd(TypedDict):
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""

class CreateParamsTippingPln(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""

class CreateParamsTippingSek(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Expand Down Expand Up @@ -760,6 +794,10 @@ class ModifyParamsTipping(TypedDict):
"""
Tipping configuration for NZD
"""
pln: NotRequired["Configuration.ModifyParamsTippingPln"]
"""
Tipping configuration for PLN
"""
sek: NotRequired["Configuration.ModifyParamsTippingSek"]
"""
Tipping configuration for SEK
Expand Down Expand Up @@ -927,6 +965,20 @@ class ModifyParamsTippingNzd(TypedDict):
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""

class ModifyParamsTippingPln(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""

class ModifyParamsTippingSek(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Expand Down
36 changes: 36 additions & 0 deletions stripe/terminal/_configuration_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ class CreateParamsTipping(TypedDict):
"""
Tipping configuration for NZD
"""
pln: NotRequired["ConfigurationService.CreateParamsTippingPln"]
"""
Tipping configuration for PLN
"""
sek: NotRequired["ConfigurationService.CreateParamsTippingSek"]
"""
Tipping configuration for SEK
Expand Down Expand Up @@ -294,6 +298,20 @@ class CreateParamsTippingNzd(TypedDict):
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""

class CreateParamsTippingPln(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""

class CreateParamsTippingSek(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Expand Down Expand Up @@ -492,6 +510,10 @@ class UpdateParamsTipping(TypedDict):
"""
Tipping configuration for NZD
"""
pln: NotRequired["ConfigurationService.UpdateParamsTippingPln"]
"""
Tipping configuration for PLN
"""
sek: NotRequired["ConfigurationService.UpdateParamsTippingSek"]
"""
Tipping configuration for SEK
Expand Down Expand Up @@ -659,6 +681,20 @@ class UpdateParamsTippingNzd(TypedDict):
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""

class UpdateParamsTippingPln(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""

class UpdateParamsTippingSek(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Expand Down

0 comments on commit 4b3da82

Please sign in to comment.