Skip to content

Commit

Permalink
Update generated code for v1087
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Jun 18, 2024
1 parent 52026c3 commit aeee6d1
Show file tree
Hide file tree
Showing 6 changed files with 132 additions and 66 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1084
v1087
23 changes: 17 additions & 6 deletions stripe/issuing/_authorization.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,10 @@ class CaptureParamsPurchaseDetailsFlightSegment(TypedDict):
"""

class CaptureParamsPurchaseDetailsFuel(TypedDict):
quantity_decimal: NotRequired[str]
"""
The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
"""
type: NotRequired[
Literal[
"diesel",
Expand All @@ -416,18 +420,25 @@ class CaptureParamsPurchaseDetailsFuel(TypedDict):
"""
The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
"""
unit: NotRequired[Literal["liter", "other", "us_gallon"]]
unit: NotRequired[
Literal[
"charging_minute",
"imperial_gallon",
"kilogram",
"kilowatt_hour",
"liter",
"other",
"pound",
"us_gallon",
]
]
"""
The units for `volume_decimal`. One of `liter`, `us_gallon`, or `other`.
The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
"""
unit_cost_decimal: NotRequired[str]
"""
The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
"""
volume_decimal: NotRequired[str]
"""
The volume of the fuel that was pumped, represented as a decimal string with at most 12 decimal places.
"""

class CaptureParamsPurchaseDetailsLodging(TypedDict):
check_in_at: NotRequired[int]
Expand Down
56 changes: 39 additions & 17 deletions stripe/issuing/_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,22 +160,22 @@ class Segment(StripeObject):
_inner_class_types = {"segments": Segment}

class Fuel(StripeObject):
quantity_decimal: Optional[str]
"""
The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
"""
type: str
"""
The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
"""
unit: str
"""
The units for `volume_decimal`. One of `liter`, `us_gallon`, or `other`.
The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
"""
unit_cost_decimal: str
"""
The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
"""
volume_decimal: Optional[str]
"""
The volume of the fuel that was pumped, represented as a decimal string with at most 12 decimal places.
"""

class Lodging(StripeObject):
check_in_at: Optional[int]
Expand Down Expand Up @@ -690,6 +690,10 @@ class CreateForceCaptureParamsPurchaseDetailsFlightSegment(TypedDict):
"""

class CreateForceCaptureParamsPurchaseDetailsFuel(TypedDict):
quantity_decimal: NotRequired[str]
"""
The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
"""
type: NotRequired[
Literal[
"diesel",
Expand All @@ -702,18 +706,25 @@ class CreateForceCaptureParamsPurchaseDetailsFuel(TypedDict):
"""
The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
"""
unit: NotRequired[Literal["liter", "other", "us_gallon"]]
unit: NotRequired[
Literal[
"charging_minute",
"imperial_gallon",
"kilogram",
"kilowatt_hour",
"liter",
"other",
"pound",
"us_gallon",
]
]
"""
The units for `volume_decimal`. One of `liter`, `us_gallon`, or `other`.
The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
"""
unit_cost_decimal: NotRequired[str]
"""
The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
"""
volume_decimal: NotRequired[str]
"""
The volume of the fuel that was pumped, represented as a decimal string with at most 12 decimal places.
"""

class CreateForceCaptureParamsPurchaseDetailsLodging(TypedDict):
check_in_at: NotRequired[int]
Expand Down Expand Up @@ -1181,6 +1192,10 @@ class CreateUnlinkedRefundParamsPurchaseDetailsFlightSegment(TypedDict):
"""

class CreateUnlinkedRefundParamsPurchaseDetailsFuel(TypedDict):
quantity_decimal: NotRequired[str]
"""
The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
"""
type: NotRequired[
Literal[
"diesel",
Expand All @@ -1193,18 +1208,25 @@ class CreateUnlinkedRefundParamsPurchaseDetailsFuel(TypedDict):
"""
The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
"""
unit: NotRequired[Literal["liter", "other", "us_gallon"]]
unit: NotRequired[
Literal[
"charging_minute",
"imperial_gallon",
"kilogram",
"kilowatt_hour",
"liter",
"other",
"pound",
"us_gallon",
]
]
"""
The units for `volume_decimal`. One of `liter`, `us_gallon`, or `other`.
The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
"""
unit_cost_decimal: NotRequired[str]
"""
The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
"""
volume_decimal: NotRequired[str]
"""
The volume of the fuel that was pumped, represented as a decimal string with at most 12 decimal places.
"""

class CreateUnlinkedRefundParamsPurchaseDetailsLodging(TypedDict):
check_in_at: NotRequired[int]
Expand Down
23 changes: 17 additions & 6 deletions stripe/test_helpers/issuing/_authorization_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ class CaptureParamsPurchaseDetailsFlightSegment(TypedDict):
"""

class CaptureParamsPurchaseDetailsFuel(TypedDict):
quantity_decimal: NotRequired[str]
"""
The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
"""
type: NotRequired[
Literal[
"diesel",
Expand All @@ -124,18 +128,25 @@ class CaptureParamsPurchaseDetailsFuel(TypedDict):
"""
The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
"""
unit: NotRequired[Literal["liter", "other", "us_gallon"]]
unit: NotRequired[
Literal[
"charging_minute",
"imperial_gallon",
"kilogram",
"kilowatt_hour",
"liter",
"other",
"pound",
"us_gallon",
]
]
"""
The units for `volume_decimal`. One of `liter`, `us_gallon`, or `other`.
The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
"""
unit_cost_decimal: NotRequired[str]
"""
The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
"""
volume_decimal: NotRequired[str]
"""
The volume of the fuel that was pumped, represented as a decimal string with at most 12 decimal places.
"""

class CaptureParamsPurchaseDetailsLodging(TypedDict):
check_in_at: NotRequired[int]
Expand Down
46 changes: 34 additions & 12 deletions stripe/test_helpers/issuing/_transaction_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,10 @@ class CreateForceCaptureParamsPurchaseDetailsFlightSegment(TypedDict):
"""

class CreateForceCaptureParamsPurchaseDetailsFuel(TypedDict):
quantity_decimal: NotRequired[str]
"""
The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
"""
type: NotRequired[
Literal[
"diesel",
Expand All @@ -471,18 +475,25 @@ class CreateForceCaptureParamsPurchaseDetailsFuel(TypedDict):
"""
The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
"""
unit: NotRequired[Literal["liter", "other", "us_gallon"]]
unit: NotRequired[
Literal[
"charging_minute",
"imperial_gallon",
"kilogram",
"kilowatt_hour",
"liter",
"other",
"pound",
"us_gallon",
]
]
"""
The units for `volume_decimal`. One of `liter`, `us_gallon`, or `other`.
The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
"""
unit_cost_decimal: NotRequired[str]
"""
The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
"""
volume_decimal: NotRequired[str]
"""
The volume of the fuel that was pumped, represented as a decimal string with at most 12 decimal places.
"""

class CreateForceCaptureParamsPurchaseDetailsLodging(TypedDict):
check_in_at: NotRequired[int]
Expand Down Expand Up @@ -950,6 +961,10 @@ class CreateUnlinkedRefundParamsPurchaseDetailsFlightSegment(TypedDict):
"""

class CreateUnlinkedRefundParamsPurchaseDetailsFuel(TypedDict):
quantity_decimal: NotRequired[str]
"""
The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
"""
type: NotRequired[
Literal[
"diesel",
Expand All @@ -962,18 +977,25 @@ class CreateUnlinkedRefundParamsPurchaseDetailsFuel(TypedDict):
"""
The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
"""
unit: NotRequired[Literal["liter", "other", "us_gallon"]]
unit: NotRequired[
Literal[
"charging_minute",
"imperial_gallon",
"kilogram",
"kilowatt_hour",
"liter",
"other",
"pound",
"us_gallon",
]
]
"""
The units for `volume_decimal`. One of `liter`, `us_gallon`, or `other`.
The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
"""
unit_cost_decimal: NotRequired[str]
"""
The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
"""
volume_decimal: NotRequired[str]
"""
The volume of the fuel that was pumped, represented as a decimal string with at most 12 decimal places.
"""

class CreateUnlinkedRefundParamsPurchaseDetailsLodging(TypedDict):
check_in_at: NotRequired[int]
Expand Down
Loading

0 comments on commit aeee6d1

Please sign in to comment.