Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code #1391

Merged
merged 7 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1246
v1260
6 changes: 6 additions & 0 deletions stripe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,12 @@ def __getattr__(name):
from stripe._invoice_line_item_service import (
InvoiceLineItemService as InvoiceLineItemService,
)
from stripe._invoice_rendering_template import (
InvoiceRenderingTemplate as InvoiceRenderingTemplate,
)
from stripe._invoice_rendering_template_service import (
InvoiceRenderingTemplateService as InvoiceRenderingTemplateService,
)
from stripe._invoice_service import InvoiceService as InvoiceService
from stripe._invoice_upcoming_lines_service import (
InvoiceUpcomingLinesService as InvoiceUpcomingLinesService,
Expand Down
12 changes: 12 additions & 0 deletions stripe/_customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ class RenderingOptions(StripeObject):
"""
How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
"""
template: Optional[str]
"""
ID of the invoice rendering template to be used for this customer's invoices. If set, the template will be used on all invoices for this customer unless a template is set directly on the invoice.
"""

custom_fields: Optional[List[CustomField]]
"""
Expand Down Expand Up @@ -452,6 +456,10 @@ class CreateParamsInvoiceSettingsRenderingOptions(TypedDict):
"""
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.
"""
template: NotRequired[str]
"""
ID of the invoice rendering template to use for future invoices.
"""

class CreateParamsShipping(TypedDict):
address: "Customer.CreateParamsShippingAddress"
Expand Down Expand Up @@ -1112,6 +1120,10 @@ class ModifyParamsInvoiceSettingsRenderingOptions(TypedDict):
"""
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.
"""
template: NotRequired[str]
"""
ID of the invoice rendering template to use for future invoices.
"""

class ModifyParamsShipping(TypedDict):
address: "Customer.ModifyParamsShippingAddress"
Expand Down
8 changes: 8 additions & 0 deletions stripe/_customer_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ class CreateParamsInvoiceSettingsRenderingOptions(TypedDict):
"""
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.
"""
template: NotRequired[str]
"""
ID of the invoice rendering template to use for future invoices.
"""

class CreateParamsShipping(TypedDict):
address: "CustomerService.CreateParamsShippingAddress"
Expand Down Expand Up @@ -600,6 +604,10 @@ class UpdateParamsInvoiceSettingsRenderingOptions(TypedDict):
"""
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.
"""
template: NotRequired[str]
"""
ID of the invoice rendering template to use for future invoices.
"""

class UpdateParamsShipping(TypedDict):
address: "CustomerService.UpdateParamsShippingAddress"
Expand Down
24 changes: 24 additions & 0 deletions stripe/_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,14 @@ class Pdf(StripeObject):
"""
Invoice pdf rendering options
"""
template: Optional[str]
"""
ID of the rendering template that the invoice is formatted by.
"""
template_version: Optional[int]
"""
Version of the rendering template that the invoice is using.
"""
_inner_class_types = {"pdf": Pdf}

class ShippingCost(StripeObject):
Expand Down Expand Up @@ -1656,6 +1664,14 @@ class CreateParamsRendering(TypedDict):
"""
Invoice pdf rendering options
"""
template: NotRequired[str]
"""
ID of the invoice rendering template to use for this invoice.
"""
template_version: NotRequired["Literal['']|int"]
"""
The specific version of invoice rendering template to use for this invoice.
"""

class CreateParamsRenderingPdf(TypedDict):
page_size: NotRequired[Literal["a4", "auto", "letter"]]
Expand Down Expand Up @@ -3342,6 +3358,14 @@ class ModifyParamsRendering(TypedDict):
"""
Invoice pdf rendering options
"""
template: NotRequired[str]
"""
ID of the invoice rendering template to use for this invoice.
"""
template_version: NotRequired["Literal['']|int"]
"""
The specific version of invoice rendering template to use for this invoice.
"""

class ModifyParamsRenderingPdf(TypedDict):
page_size: NotRequired[Literal["a4", "auto", "letter"]]
Expand Down
4 changes: 2 additions & 2 deletions stripe/_invoice_line_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,11 @@ class ModifyParamsTaxAmountTaxRateData(TypedDict):
"""
The subscription item that generated this line item. Left empty if the line item is not an explicit result of a subscription.
"""
tax_amounts: Optional[List[TaxAmount]]
tax_amounts: List[TaxAmount]
"""
The amount of tax calculated per tax rate for this line item
"""
tax_rates: Optional[List["TaxRate"]]
tax_rates: List["TaxRate"]
"""
The tax rates which apply to the line item.
"""
Expand Down
Loading
Loading