Skip to content

Commit

Permalink
Update generated code for v937
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Apr 8, 2024
1 parent 72b6032 commit 4c0b32e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 68 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v936
v937
39 changes: 0 additions & 39 deletions stripe/_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,12 +763,6 @@ class Pdf(StripeObject):
"""
_inner_class_types = {"pdf": Pdf}

class RenderingOptions(StripeObject):
amount_tax_display: Optional[str]
"""
How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
"""

class ShippingCost(StripeObject):
class Tax(StripeObject):
amount: int
Expand Down Expand Up @@ -1095,12 +1089,6 @@ class CreateParams(RequestOptions):
"""
The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page.
"""
rendering_options: NotRequired[
"Literal['']|Invoice.CreateParamsRenderingOptions"
]
"""
This is a legacy field that will be removed soon. For details about `rendering_options`, refer to `rendering` instead. Options for invoice PDF rendering.
"""
shipping_cost: NotRequired["Invoice.CreateParamsShippingCost"]
"""
Settings for the cost of shipping for this invoice.
Expand Down Expand Up @@ -1412,14 +1400,6 @@ class CreateParamsRendering(TypedDict):
Invoice pdf rendering options
"""

class CreateParamsRenderingOptions(TypedDict):
amount_tax_display: NotRequired[
"Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
]
"""
How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
"""

class CreateParamsRenderingPdf(TypedDict):
page_size: NotRequired[Literal["a4", "auto", "letter"]]
"""
Expand Down Expand Up @@ -1790,12 +1770,6 @@ class ModifyParams(RequestOptions):
"""
The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page.
"""
rendering_options: NotRequired[
"Literal['']|Invoice.ModifyParamsRenderingOptions"
]
"""
This is a legacy field that will be removed soon. For details about `rendering_options`, refer to `rendering` instead. Options for invoice PDF rendering.
"""
shipping_cost: NotRequired[
"Literal['']|Invoice.ModifyParamsShippingCost"
]
Expand Down Expand Up @@ -2099,14 +2073,6 @@ class ModifyParamsRendering(TypedDict):
Invoice pdf rendering options
"""

class ModifyParamsRenderingOptions(TypedDict):
amount_tax_display: NotRequired[
"Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
]
"""
How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
"""

class ModifyParamsRenderingPdf(TypedDict):
page_size: NotRequired[Literal["a4", "auto", "letter"]]
"""
Expand Down Expand Up @@ -3751,10 +3717,6 @@ class VoidInvoiceParams(RequestOptions):
"""
The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page.
"""
rendering_options: Optional[RenderingOptions]
"""
This is a legacy field that will be removed soon. For details about `rendering_options`, refer to `rendering` instead. Options for invoice PDF rendering.
"""
shipping_cost: Optional[ShippingCost]
"""
The details of the cost of shipping, including the ShippingRate applied on the invoice.
Expand Down Expand Up @@ -4765,7 +4727,6 @@ async def search_auto_paging_iter_async(
"last_finalization_error": LastFinalizationError,
"payment_settings": PaymentSettings,
"rendering": Rendering,
"rendering_options": RenderingOptions,
"shipping_cost": ShippingCost,
"shipping_details": ShippingDetails,
"status_transitions": StatusTransitions,
Expand Down
28 changes: 0 additions & 28 deletions stripe/_invoice_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,6 @@ class CreateParams(TypedDict):
"""
The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page.
"""
rendering_options: NotRequired[
"Literal['']|InvoiceService.CreateParamsRenderingOptions"
]
"""
This is a legacy field that will be removed soon. For details about `rendering_options`, refer to `rendering` instead. Options for invoice PDF rendering.
"""
shipping_cost: NotRequired["InvoiceService.CreateParamsShippingCost"]
"""
Settings for the cost of shipping for this invoice.
Expand Down Expand Up @@ -454,14 +448,6 @@ class CreateParamsRendering(TypedDict):
Invoice pdf rendering options
"""

class CreateParamsRenderingOptions(TypedDict):
amount_tax_display: NotRequired[
"Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
]
"""
How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
"""

class CreateParamsRenderingPdf(TypedDict):
page_size: NotRequired[Literal["a4", "auto", "letter"]]
"""
Expand Down Expand Up @@ -1462,12 +1448,6 @@ class UpdateParams(TypedDict):
"""
The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page.
"""
rendering_options: NotRequired[
"Literal['']|InvoiceService.UpdateParamsRenderingOptions"
]
"""
This is a legacy field that will be removed soon. For details about `rendering_options`, refer to `rendering` instead. Options for invoice PDF rendering.
"""
shipping_cost: NotRequired[
"Literal['']|InvoiceService.UpdateParamsShippingCost"
]
Expand Down Expand Up @@ -1773,14 +1753,6 @@ class UpdateParamsRendering(TypedDict):
Invoice pdf rendering options
"""

class UpdateParamsRenderingOptions(TypedDict):
amount_tax_display: NotRequired[
"Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
]
"""
How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
"""

class UpdateParamsRenderingPdf(TypedDict):
page_size: NotRequired[Literal["a4", "auto", "letter"]]
"""
Expand Down

0 comments on commit 4c0b32e

Please # to comment.