Skip to content

Commit

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

* Update generated code for v1044

* Update generated code for v1045

* Update generated code for v1046

* Update generated code for v1047

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] committed May 23, 2024
1 parent 6809d4c commit 61d17bd
Show file tree
Hide file tree
Showing 21 changed files with 114 additions and 82 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1039
v1047
2 changes: 1 addition & 1 deletion stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ class Capabilities(StripeObject):
"""
mobilepay_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the MobilepPay capability of the account, or whether the account can directly process MobilePay charges.
The status of the MobilePay capability of the account, or whether the account can directly process MobilePay charges.
"""
oxxo_payments: Optional[Literal["active", "inactive", "pending"]]
"""
Expand Down
16 changes: 16 additions & 0 deletions stripe/_account_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ class Features(StripeObject):
"""
Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
"""
external_account_collection: bool
"""
Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
"""
instant_payouts: bool
"""
Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
Expand Down Expand Up @@ -154,6 +158,10 @@ class Features(StripeObject):
"""
Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
"""
external_account_collection: bool
"""
Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
"""
instant_payouts: bool
"""
Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
Expand Down Expand Up @@ -319,6 +327,10 @@ class CreateParamsComponentsBalancesFeatures(TypedDict):
"""
Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
"""
external_account_collection: NotRequired[bool]
"""
Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
"""
instant_payouts: NotRequired[bool]
"""
Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
Expand Down Expand Up @@ -438,6 +450,10 @@ class CreateParamsComponentsPayoutsFeatures(TypedDict):
"""
Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
"""
external_account_collection: NotRequired[bool]
"""
Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
"""
instant_payouts: NotRequired[bool]
"""
Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
Expand Down
8 changes: 8 additions & 0 deletions stripe/_account_session_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ class CreateParamsComponentsBalancesFeatures(TypedDict):
"""
Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
"""
external_account_collection: NotRequired[bool]
"""
Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
"""
instant_payouts: NotRequired[bool]
"""
Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
Expand Down Expand Up @@ -250,6 +254,10 @@ class CreateParamsComponentsPayoutsFeatures(TypedDict):
"""
Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
"""
external_account_collection: NotRequired[bool]
"""
Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
"""
instant_payouts: NotRequired[bool]
"""
Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
Expand Down
45 changes: 23 additions & 22 deletions stripe/_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ class LastFinalizationError(StripeObject):
"terminal_location_country_unsupported",
"terminal_reader_busy",
"terminal_reader_hardware_fault",
"terminal_reader_invalid_location_for_payment",
"terminal_reader_offline",
"terminal_reader_timeout",
"testmode_charges_only",
Expand Down Expand Up @@ -1922,13 +1923,13 @@ class CreatePreviewParamsInvoiceItem(TypedDict):
"""
price: NotRequired[str]
"""
The ID of the price object.
The ID of the price object. One of `price` or `price_data` is required.
"""
price_data: NotRequired[
"Invoice.CreatePreviewParamsInvoiceItemPriceData"
]
"""
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
"""
quantity: NotRequired[int]
"""
Expand Down Expand Up @@ -2156,13 +2157,13 @@ class CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItem(TypedDict):
"""
price: NotRequired[str]
"""
The ID of the price object.
The ID of the price object. One of `price` or `price_data` is required.
"""
price_data: NotRequired[
"Invoice.CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPriceData"
]
"""
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
"""
quantity: NotRequired[int]
"""
Expand Down Expand Up @@ -2488,13 +2489,13 @@ class CreatePreviewParamsSubscriptionDetailsItem(TypedDict):
"""
price: NotRequired[str]
"""
The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
"""
price_data: NotRequired[
"Invoice.CreatePreviewParamsSubscriptionDetailsItemPriceData"
]
"""
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
"""
quantity: NotRequired[int]
"""
Expand Down Expand Up @@ -3699,13 +3700,13 @@ class UpcomingLinesParamsInvoiceItem(TypedDict):
"""
price: NotRequired[str]
"""
The ID of the price object.
The ID of the price object. One of `price` or `price_data` is required.
"""
price_data: NotRequired[
"Invoice.UpcomingLinesParamsInvoiceItemPriceData"
]
"""
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
"""
quantity: NotRequired[int]
"""
Expand Down Expand Up @@ -3933,13 +3934,13 @@ class UpcomingLinesParamsScheduleDetailsPhaseAddInvoiceItem(TypedDict):
"""
price: NotRequired[str]
"""
The ID of the price object.
The ID of the price object. One of `price` or `price_data` is required.
"""
price_data: NotRequired[
"Invoice.UpcomingLinesParamsScheduleDetailsPhaseAddInvoiceItemPriceData"
]
"""
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
"""
quantity: NotRequired[int]
"""
Expand Down Expand Up @@ -4265,13 +4266,13 @@ class UpcomingLinesParamsSubscriptionDetailsItem(TypedDict):
"""
price: NotRequired[str]
"""
The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
"""
price_data: NotRequired[
"Invoice.UpcomingLinesParamsSubscriptionDetailsItemPriceData"
]
"""
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
"""
quantity: NotRequired[int]
"""
Expand Down Expand Up @@ -4379,13 +4380,13 @@ class UpcomingLinesParamsSubscriptionItem(TypedDict):
"""
price: NotRequired[str]
"""
The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
"""
price_data: NotRequired[
"Invoice.UpcomingLinesParamsSubscriptionItemPriceData"
]
"""
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
"""
quantity: NotRequired[int]
"""
Expand Down Expand Up @@ -4831,11 +4832,11 @@ class UpcomingParamsInvoiceItem(TypedDict):
"""
price: NotRequired[str]
"""
The ID of the price object.
The ID of the price object. One of `price` or `price_data` is required.
"""
price_data: NotRequired["Invoice.UpcomingParamsInvoiceItemPriceData"]
"""
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
"""
quantity: NotRequired[int]
"""
Expand Down Expand Up @@ -5059,13 +5060,13 @@ class UpcomingParamsScheduleDetailsPhaseAddInvoiceItem(TypedDict):
"""
price: NotRequired[str]
"""
The ID of the price object.
The ID of the price object. One of `price` or `price_data` is required.
"""
price_data: NotRequired[
"Invoice.UpcomingParamsScheduleDetailsPhaseAddInvoiceItemPriceData"
]
"""
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
"""
quantity: NotRequired[int]
"""
Expand Down Expand Up @@ -5381,13 +5382,13 @@ class UpcomingParamsSubscriptionDetailsItem(TypedDict):
"""
price: NotRequired[str]
"""
The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
"""
price_data: NotRequired[
"Invoice.UpcomingParamsSubscriptionDetailsItemPriceData"
]
"""
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
"""
quantity: NotRequired[int]
"""
Expand Down Expand Up @@ -5493,13 +5494,13 @@ class UpcomingParamsSubscriptionItem(TypedDict):
"""
price: NotRequired[str]
"""
The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
"""
price_data: NotRequired[
"Invoice.UpcomingParamsSubscriptionItemPriceData"
]
"""
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
"""
quantity: NotRequired[int]
"""
Expand Down
8 changes: 4 additions & 4 deletions stripe/_invoice_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ class CreateParams(RequestOptions):
"""
price: NotRequired[str]
"""
The ID of the price object.
The ID of the price object. One of `price` or `price_data` is required.
"""
price_data: NotRequired["InvoiceItem.CreateParamsPriceData"]
"""
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
"""
quantity: NotRequired[int]
"""
Expand Down Expand Up @@ -279,11 +279,11 @@ class ModifyParams(RequestOptions):
"""
price: NotRequired[str]
"""
The ID of the price object.
The ID of the price object. One of `price` or `price_data` is required.
"""
price_data: NotRequired["InvoiceItem.ModifyParamsPriceData"]
"""
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
"""
quantity: NotRequired[int]
"""
Expand Down
8 changes: 4 additions & 4 deletions stripe/_invoice_item_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ class CreateParams(TypedDict):
"""
price: NotRequired[str]
"""
The ID of the price object.
The ID of the price object. One of `price` or `price_data` is required.
"""
price_data: NotRequired["InvoiceItemService.CreateParamsPriceData"]
"""
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
"""
quantity: NotRequired[int]
"""
Expand Down Expand Up @@ -234,11 +234,11 @@ class UpdateParams(TypedDict):
"""
price: NotRequired[str]
"""
The ID of the price object.
The ID of the price object. One of `price` or `price_data` is required.
"""
price_data: NotRequired["InvoiceItemService.UpdateParamsPriceData"]
"""
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
"""
quantity: NotRequired[int]
"""
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 @@ -137,11 +137,11 @@ class ModifyParams(RequestOptions):
"""
price: NotRequired[str]
"""
The ID of the price object.
The ID of the price object. One of `price` or `price_data` is required.
"""
price_data: NotRequired["InvoiceLineItem.ModifyParamsPriceData"]
"""
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
"""
quantity: NotRequired[int]
"""
Expand Down
4 changes: 2 additions & 2 deletions stripe/_invoice_line_item_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ class UpdateParams(TypedDict):
"""
price: NotRequired[str]
"""
The ID of the price object.
The ID of the price object. One of `price` or `price_data` is required.
"""
price_data: NotRequired["InvoiceLineItemService.UpdateParamsPriceData"]
"""
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
"""
quantity: NotRequired[int]
"""
Expand Down

0 comments on commit 61d17bd

Please sign in to comment.