Skip to content

Commit

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

* Update generated code for v1011

* Update generated code for v1012

* Update generated code for v1013

* Update generated code for v1014

* Update generated code for v1015

* Update generated code for v1016

* Update generated code for v1017

* Update generated code for v1019

* Update generated code for v1020

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] and ramya-stripe authored May 9, 2024
1 parent 71cf69e commit 0a61e78
Show file tree
Hide file tree
Showing 24 changed files with 621 additions and 31 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1008
v1020
8 changes: 4 additions & 4 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -2234,13 +2234,13 @@ class CreateParamsIndividual(TypedDict):
"""
address_kana: NotRequired["Account.CreateParamsIndividualAddressKana"]
"""
The Kana variation of the the individual's primary address (Japan only).
The Kana variation of the individual's primary address (Japan only).
"""
address_kanji: NotRequired[
"Account.CreateParamsIndividualAddressKanji"
]
"""
The Kanji variation of the the individual's primary address (Japan only).
The Kanji variation of the individual's primary address (Japan only).
"""
dob: NotRequired["Literal['']|Account.CreateParamsIndividualDob"]
"""
Expand All @@ -2256,7 +2256,7 @@ class CreateParamsIndividual(TypedDict):
"""
first_name_kana: NotRequired[str]
"""
The Kana variation of the the individual's first name (Japan only).
The Kana variation of the individual's first name (Japan only).
"""
first_name_kanji: NotRequired[str]
"""
Expand Down Expand Up @@ -3757,7 +3757,7 @@ class RetrievePersonParams(RequestOptions):
"""
details_submitted: Optional[bool]
"""
Whether account details have been submitted. Accounts with Stripe Dashboard access, which includes Standard accounts, cannot receive payouts before this is true.
Whether account details have been submitted. Accounts with Stripe Dashboard access, which includes Standard accounts, cannot receive payouts before this is true. Accounts where this is false should be directed to [an onboarding flow](https://stripe.com/connect/onboarding) to finish submitting account details.
"""
email: Optional[str]
"""
Expand Down
12 changes: 6 additions & 6 deletions stripe/_account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1083,13 +1083,13 @@ class CreateParamsIndividual(TypedDict):
"AccountService.CreateParamsIndividualAddressKana"
]
"""
The Kana variation of the the individual's primary address (Japan only).
The Kana variation of the individual's primary address (Japan only).
"""
address_kanji: NotRequired[
"AccountService.CreateParamsIndividualAddressKanji"
]
"""
The Kanji variation of the the individual's primary address (Japan only).
The Kanji variation of the individual's primary address (Japan only).
"""
dob: NotRequired[
"Literal['']|AccountService.CreateParamsIndividualDob"
Expand All @@ -1107,7 +1107,7 @@ class CreateParamsIndividual(TypedDict):
"""
first_name_kana: NotRequired[str]
"""
The Kana variation of the the individual's first name (Japan only).
The Kana variation of the individual's first name (Japan only).
"""
first_name_kanji: NotRequired[str]
"""
Expand Down Expand Up @@ -2647,13 +2647,13 @@ class UpdateParamsIndividual(TypedDict):
"AccountService.UpdateParamsIndividualAddressKana"
]
"""
The Kana variation of the the individual's primary address (Japan only).
The Kana variation of the individual's primary address (Japan only).
"""
address_kanji: NotRequired[
"AccountService.UpdateParamsIndividualAddressKanji"
]
"""
The Kanji variation of the the individual's primary address (Japan only).
The Kanji variation of the individual's primary address (Japan only).
"""
dob: NotRequired[
"Literal['']|AccountService.UpdateParamsIndividualDob"
Expand All @@ -2671,7 +2671,7 @@ class UpdateParamsIndividual(TypedDict):
"""
first_name_kana: NotRequired[str]
"""
The Kana variation of the the individual's first name (Japan only).
The Kana variation of the individual's first name (Japan only).
"""
first_name_kanji: NotRequired[str]
"""
Expand Down
4 changes: 1 addition & 3 deletions stripe/_capability.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,13 +294,11 @@ class Error(StripeObject):
"""
disabled_reason: Optional[str]
"""
If the capability is disabled, this string describes why. Can be `requirements.fields_needed`, `pending.onboarding`, `pending.review`, `rejected.fraud`, `rejected.other`, `platform_paused`, `action_required.requested_capabilities`, `rejected.inactivty`, or `rejected.unsupported_business`.
If the capability is disabled, this string describes why. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification). Can be `requirements.fields_needed`, `pending.onboarding`, `pending.review`, `rejected.other`, `platform_paused`, `rejected.inactivty`, or `rejected.unsupported_business`.
`rejected.unsupported_business` means that the account's business is not supported by the capability. For example, payment methods may restrict the businesses they support in their terms of service, such as in [Afterpay Clearpay's terms of service](https://stripe.com/afterpay-clearpay/legal#restricted-businesses).
`rejected.inactivity` means that the capability has been paused for inactivity. This disabled reason currently only applies to the Issuing capability. See [Issuing: Managing Inactive Connects](https://support.stripe.com/questions/issuing-managing-inactive-connect-accounts) for more details.
If you believe that a rejection is in error, please contact support at https://support.stripe.com/contact/ for assistance.
"""
errors: List[Error]
"""
Expand Down
4 changes: 4 additions & 0 deletions stripe/_confirmation_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,10 @@ class Zip(StripeObject):
affirm: Optional[Affirm]
afterpay_clearpay: Optional[AfterpayClearpay]
alipay: Optional[Alipay]
allow_redisplay: Optional[Literal["always", "limited", "unspecified"]]
"""
This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”.
"""
amazon_pay: Optional[AmazonPay]
au_becs_debit: Optional[AuBecsDebit]
bacs_debit: Optional[BacsDebit]
Expand Down
4 changes: 2 additions & 2 deletions stripe/_credit_note.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ def list_lines(
cls, credit_note: str, **params: Unpack["CreditNote.ListLinesParams"]
) -> ListObject["CreditNoteLineItem"]:
"""
When retrieving a credit note, you'll get a lines property containing the the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
When retrieving a credit note, you'll get a lines property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
"""
return cast(
ListObject["CreditNoteLineItem"],
Expand All @@ -1097,7 +1097,7 @@ async def list_lines_async(
cls, credit_note: str, **params: Unpack["CreditNote.ListLinesParams"]
) -> ListObject["CreditNoteLineItem"]:
"""
When retrieving a credit note, you'll get a lines property containing the the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
When retrieving a credit note, you'll get a lines property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
"""
return cast(
ListObject["CreditNoteLineItem"],
Expand Down
4 changes: 2 additions & 2 deletions stripe/_credit_note_line_item_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def list(
options: RequestOptions = {},
) -> ListObject[CreditNoteLineItem]:
"""
When retrieving a credit note, you'll get a lines property containing the the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
When retrieving a credit note, you'll get a lines property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
"""
return cast(
ListObject[CreditNoteLineItem],
Expand All @@ -58,7 +58,7 @@ async def list_async(
options: RequestOptions = {},
) -> ListObject[CreditNoteLineItem]:
"""
When retrieving a credit note, you'll get a lines property containing the the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
When retrieving a credit note, you'll get a lines property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
"""
return cast(
ListObject[CreditNoteLineItem],
Expand Down
2 changes: 2 additions & 0 deletions stripe/_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,14 @@ class RetrieveParams(RequestOptions):
"treasury.outbound_payment.failed",
"treasury.outbound_payment.posted",
"treasury.outbound_payment.returned",
"treasury.outbound_payment.tracking_details_updated",
"treasury.outbound_transfer.canceled",
"treasury.outbound_transfer.created",
"treasury.outbound_transfer.expected_arrival_date_updated",
"treasury.outbound_transfer.failed",
"treasury.outbound_transfer.posted",
"treasury.outbound_transfer.returned",
"treasury.outbound_transfer.tracking_details_updated",
"treasury.received_credit.created",
"treasury.received_credit.failed",
"treasury.received_credit.succeeded",
Expand Down
12 changes: 12 additions & 0 deletions stripe/_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -1640,6 +1640,10 @@ class CreatePreviewParams(RequestOptions):
"""
The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details.
"""
preview_mode: NotRequired[Literal["next", "recurring"]]
"""
Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified.
"""
schedule: NotRequired[str]
"""
The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields.
Expand Down Expand Up @@ -3355,6 +3359,10 @@ class UpcomingLinesParams(RequestOptions):
"""
The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details.
"""
preview_mode: NotRequired[Literal["next", "recurring"]]
"""
Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified.
"""
schedule: NotRequired[str]
"""
The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields.
Expand Down Expand Up @@ -4489,6 +4497,10 @@ class UpcomingParams(RequestOptions):
"""
The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details.
"""
preview_mode: NotRequired[Literal["next", "recurring"]]
"""
Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified.
"""
schedule: NotRequired[str]
"""
The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields.
Expand Down
2 changes: 1 addition & 1 deletion stripe/_invoice_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class CreateParams(RequestOptions):
"""
subscription: NotRequired[str]
"""
The ID of a subscription to add this invoice item to. When left blank, the invoice item will be be added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription.
The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription.
"""
tax_behavior: NotRequired[
Literal["exclusive", "inclusive", "unspecified"]
Expand Down
2 changes: 1 addition & 1 deletion stripe/_invoice_item_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class CreateParams(TypedDict):
"""
subscription: NotRequired[str]
"""
The ID of a subscription to add this invoice item to. When left blank, the invoice item will be be added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription.
The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription.
"""
tax_behavior: NotRequired[
Literal["exclusive", "inclusive", "unspecified"]
Expand Down
8 changes: 8 additions & 0 deletions stripe/_invoice_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,10 @@ class CreatePreviewParams(TypedDict):
"""
The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details.
"""
preview_mode: NotRequired[Literal["next", "recurring"]]
"""
Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified.
"""
schedule: NotRequired[str]
"""
The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields.
Expand Down Expand Up @@ -1812,6 +1816,10 @@ class UpcomingParams(TypedDict):
"""
The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details.
"""
preview_mode: NotRequired[Literal["next", "recurring"]]
"""
Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified.
"""
schedule: NotRequired[str]
"""
The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields.
Expand Down
4 changes: 4 additions & 0 deletions stripe/_invoice_upcoming_lines_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ class ListParams(TypedDict):
"""
The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details.
"""
preview_mode: NotRequired[Literal["next", "recurring"]]
"""
Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified.
"""
schedule: NotRequired[str]
"""
The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields.
Expand Down
4 changes: 4 additions & 0 deletions stripe/_payment_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -1802,6 +1802,10 @@ class RetrieveParams(RequestOptions):
affirm: Optional[Affirm]
afterpay_clearpay: Optional[AfterpayClearpay]
alipay: Optional[Alipay]
allow_redisplay: Optional[Literal["always", "limited", "unspecified"]]
"""
This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”.
"""
amazon_pay: Optional[AmazonPay]
au_becs_debit: Optional[AuBecsDebit]
bacs_debit: Optional[BacsDebit]
Expand Down
6 changes: 3 additions & 3 deletions stripe/_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,13 +315,13 @@ class CreateParamsAccountIndividual(TypedDict):
"Token.CreateParamsAccountIndividualAddressKana"
]
"""
The Kana variation of the the individual's primary address (Japan only).
The Kana variation of the individual's primary address (Japan only).
"""
address_kanji: NotRequired[
"Token.CreateParamsAccountIndividualAddressKanji"
]
"""
The Kanji variation of the the individual's primary address (Japan only).
The Kanji variation of the individual's primary address (Japan only).
"""
dob: NotRequired["Literal['']|Token.CreateParamsAccountIndividualDob"]
"""
Expand All @@ -337,7 +337,7 @@ class CreateParamsAccountIndividual(TypedDict):
"""
first_name_kana: NotRequired[str]
"""
The Kana variation of the the individual's first name (Japan only).
The Kana variation of the individual's first name (Japan only).
"""
first_name_kanji: NotRequired[str]
"""
Expand Down
6 changes: 3 additions & 3 deletions stripe/_token_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,13 @@ class CreateParamsAccountIndividual(TypedDict):
"TokenService.CreateParamsAccountIndividualAddressKana"
]
"""
The Kana variation of the the individual's primary address (Japan only).
The Kana variation of the individual's primary address (Japan only).
"""
address_kanji: NotRequired[
"TokenService.CreateParamsAccountIndividualAddressKanji"
]
"""
The Kanji variation of the the individual's primary address (Japan only).
The Kanji variation of the individual's primary address (Japan only).
"""
dob: NotRequired[
"Literal['']|TokenService.CreateParamsAccountIndividualDob"
Expand All @@ -308,7 +308,7 @@ class CreateParamsAccountIndividual(TypedDict):
"""
first_name_kana: NotRequired[str]
"""
The Kana variation of the the individual's first name (Japan only).
The Kana variation of the individual's first name (Japan only).
"""
first_name_kanji: NotRequired[str]
"""
Expand Down
Loading

0 comments on commit 0a61e78

Please sign in to comment.