Skip to content

Commit

Permalink
Update generated code (#1353)
Browse files Browse the repository at this point in the history
* Update generated code for v1096

* Update generated code for v1097

* Update generated code for v1099

* Update generated code for v1101

* Update generated code for v1103

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] committed Jun 27, 2024
1 parent 993551e commit 410ac74
Show file tree
Hide file tree
Showing 22 changed files with 527 additions and 8 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1095
v1103
2 changes: 1 addition & 1 deletion stripe/_capability.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class Error(StripeObject):
]
]
"""
This is typed as a string for consistency with `requirements.disabled_reason`, but it safe to assume `future_requirements.disabled_reason` is empty because fields in `future_requirements` will never disable the account.
This is typed as an enum for consistency with `requirements.disabled_reason`, but it safe to assume `future_requirements.disabled_reason` is null because fields in `future_requirements` will never disable the account.
"""
errors: List[Error]
"""
Expand Down
12 changes: 12 additions & 0 deletions stripe/_credit_note.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ class CreateParams(RequestOptions):
"""
The date when this credit note is in effect. Same as `created` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF.
"""
email_type: NotRequired[Literal["credit_note", "none"]]
"""
Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`.
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
Expand Down Expand Up @@ -368,6 +372,10 @@ class PreviewLinesParams(RequestOptions):
"""
The date when this credit note is in effect. Same as `created` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF.
"""
email_type: NotRequired[Literal["credit_note", "none"]]
"""
Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`.
"""
ending_before: NotRequired[str]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
Expand Down Expand Up @@ -501,6 +509,10 @@ class PreviewParams(RequestOptions):
"""
The date when this credit note is in effect. Same as `created` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF.
"""
email_type: NotRequired[Literal["credit_note", "none"]]
"""
Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`.
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
Expand Down
4 changes: 4 additions & 0 deletions stripe/_credit_note_preview_lines_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class ListParams(TypedDict):
"""
The date when this credit note is in effect. Same as `created` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF.
"""
email_type: NotRequired[Literal["credit_note", "none"]]
"""
Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`.
"""
ending_before: NotRequired[str]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
Expand Down
8 changes: 8 additions & 0 deletions stripe/_credit_note_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ class CreateParams(TypedDict):
"""
The date when this credit note is in effect. Same as `created` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF.
"""
email_type: NotRequired[Literal["credit_note", "none"]]
"""
Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`.
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
Expand Down Expand Up @@ -203,6 +207,10 @@ class PreviewParams(TypedDict):
"""
The date when this credit note is in effect. Same as `created` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF.
"""
email_type: NotRequired[Literal["credit_note", "none"]]
"""
Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`.
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
Expand Down
42 changes: 42 additions & 0 deletions stripe/_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,15 @@ class SepaDebit(StripeObject):

class UsBankAccount(StripeObject):
class FinancialConnections(StripeObject):
class Filters(StripeObject):
account_subcategories: Optional[
List[Literal["checking", "savings"]]
]
"""
The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
"""

filters: Optional[Filters]
permissions: Optional[
List[
Literal[
Expand All @@ -668,6 +677,7 @@ class FinancialConnections(StripeObject):
"""
Data features requested to be retrieved upon account creation.
"""
_inner_class_types = {"filters": Filters}

financial_connections: Optional[FinancialConnections]
verification_method: Optional[
Expand Down Expand Up @@ -1393,6 +1403,12 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount(
class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections(
TypedDict,
):
filters: NotRequired[
"Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters"
]
"""
Provide filters for the linked accounts that the customer can select for the payment method.
"""
permissions: NotRequired[
List[
Literal[
Expand All @@ -1410,6 +1426,16 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConne
List of data features that you would like to retrieve upon account creation.
"""

class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters(
TypedDict,
):
account_subcategories: NotRequired[
List[Literal["checking", "savings"]]
]
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""

class CreateParamsRendering(TypedDict):
amount_tax_display: NotRequired[
"Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
Expand Down Expand Up @@ -3062,6 +3088,12 @@ class ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount(
class ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections(
TypedDict,
):
filters: NotRequired[
"Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters"
]
"""
Provide filters for the linked accounts that the customer can select for the payment method.
"""
permissions: NotRequired[
List[
Literal[
Expand All @@ -3079,6 +3111,16 @@ class ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConne
List of data features that you would like to retrieve upon account creation.
"""

class ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters(
TypedDict,
):
account_subcategories: NotRequired[
List[Literal["checking", "savings"]]
]
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""

class ModifyParamsRendering(TypedDict):
amount_tax_display: NotRequired[
"Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
Expand Down
32 changes: 32 additions & 0 deletions stripe/_invoice_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,12 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount(
class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections(
TypedDict,
):
filters: NotRequired[
"InvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters"
]
"""
Provide filters for the linked accounts that the customer can select for the payment method.
"""
permissions: NotRequired[
List[
Literal[
Expand All @@ -438,6 +444,16 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConne
List of data features that you would like to retrieve upon account creation.
"""

class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters(
TypedDict,
):
account_subcategories: NotRequired[
List[Literal["checking", "savings"]]
]
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""

class CreateParamsRendering(TypedDict):
amount_tax_display: NotRequired[
"Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
Expand Down Expand Up @@ -3274,6 +3290,12 @@ class UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount(
class UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections(
TypedDict,
):
filters: NotRequired[
"InvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters"
]
"""
Provide filters for the linked accounts that the customer can select for the payment method.
"""
permissions: NotRequired[
List[
Literal[
Expand All @@ -3291,6 +3313,16 @@ class UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConne
List of data features that you would like to retrieve upon account creation.
"""

class UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters(
TypedDict,
):
account_subcategories: NotRequired[
List[Literal["checking", "savings"]]
]
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""

class UpdateParamsRendering(TypedDict):
amount_tax_display: NotRequired[
"Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
Expand Down
58 changes: 58 additions & 0 deletions stripe/_payment_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1686,6 +1686,15 @@ class Twint(StripeObject):

class UsBankAccount(StripeObject):
class FinancialConnections(StripeObject):
class Filters(StripeObject):
account_subcategories: Optional[
List[Literal["checking", "savings"]]
]
"""
The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
"""

filters: Optional[Filters]
permissions: Optional[
List[
Literal[
Expand All @@ -1709,6 +1718,7 @@ class FinancialConnections(StripeObject):
"""
For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
"""
_inner_class_types = {"filters": Filters}

class MandateOptions(StripeObject):
collection_method: Optional[Literal["paper"]]
Expand Down Expand Up @@ -4071,6 +4081,12 @@ class ConfirmParamsPaymentMethodOptionsUsBankAccount(TypedDict):
class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections(
TypedDict,
):
filters: NotRequired[
"PaymentIntent.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters"
]
"""
Provide filters for the linked accounts that the customer can select for the payment method
"""
permissions: NotRequired[
List[
Literal[
Expand All @@ -4092,6 +4108,16 @@ class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections(
For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
"""

class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters(
TypedDict,
):
account_subcategories: NotRequired[
List[Literal["checking", "savings"]]
]
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""

class ConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions(
TypedDict,
):
Expand Down Expand Up @@ -6328,6 +6354,12 @@ class CreateParamsPaymentMethodOptionsUsBankAccount(TypedDict):
class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections(
TypedDict,
):
filters: NotRequired[
"PaymentIntent.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters"
]
"""
Provide filters for the linked accounts that the customer can select for the payment method
"""
permissions: NotRequired[
List[
Literal[
Expand All @@ -6349,6 +6381,16 @@ class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections(
For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
"""

class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters(
TypedDict,
):
account_subcategories: NotRequired[
List[Literal["checking", "savings"]]
]
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""

class CreateParamsPaymentMethodOptionsUsBankAccountMandateOptions(
TypedDict,
):
Expand Down Expand Up @@ -8579,6 +8621,12 @@ class ModifyParamsPaymentMethodOptionsUsBankAccount(TypedDict):
class ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections(
TypedDict,
):
filters: NotRequired[
"PaymentIntent.ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters"
]
"""
Provide filters for the linked accounts that the customer can select for the payment method
"""
permissions: NotRequired[
List[
Literal[
Expand All @@ -8600,6 +8648,16 @@ class ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections(
For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
"""

class ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters(
TypedDict,
):
account_subcategories: NotRequired[
List[Literal["checking", "savings"]]
]
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""

class ModifyParamsPaymentMethodOptionsUsBankAccountMandateOptions(
TypedDict,
):
Expand Down
Loading

0 comments on commit 410ac74

Please sign in to comment.