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 for beta #1334

Merged
merged 16 commits into from
May 30, 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
8 changes: 4 additions & 4 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"recommendations": [
"ms-python.python",
"EditorConfig.editorconfig",
"ms-python.flake8",
"charliermarsh.ruff"
"EditorConfig.editorconfig", // default
"ms-python.python", // intellisense
"ms-python.flake8", // linting
"charliermarsh.ruff" // formatting
]
}
17 changes: 14 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,30 @@

"editor.renderWhitespace": "all",
"files.exclude": {
"**/*.pyc": { "when": "$(basename).py" },
"**/__pycache__": true
"**/*.pyc": true,
"**/__pycache__": true,
".pytest_cache": true,
".mypy_cache": true,
".ruff_cache": true,
".tox": true,
"*.egg-info": true,
"venv": true
},
// uses default venv name from Makefile
"python.defaultInterpreterPath": "./venv/bin/python",

// Formatting
"editor.formatOnSave": true,
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
},

// Tests
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,

"python.terminal.activateEnvironment": true,
"python.defaultInterpreterPath": "~/venv/bin/python3",
"python.analysis.diagnosticMode": "workspace",
"python.analysis.typeCheckingMode": "basic",
"ruff.lint.enable": false // in favor of flake8
}
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
* Change type of `refund` on `stripe.CreditNote.CreateParamsRefund`, `stripe.CreditNote.PreviewParamsRefund`, and `stripe.CreditNote.PreviewLinesParamsRefund` from `str` to `NotRequired[str]`
* Add support for `terminal_reader_invalid_location_for_payment` on enum `stripe.QuotePreviewInvoice.LastFinalizationError.code`

## 9.8.0 - 2024-05-23
* [#1332](https://github.com/stripe/stripe-python/pull/1332) Update generated code
* Add support for `external_account_collection` on resource classes `stripe.AccountSession.Components.Balances.Features` and `stripe.AccountSession.Components.Payouts.Features` and parameter classes `stripe.AccountSession.CreateParamsComponentsBalancesFeatures` and `stripe.AccountSession.CreateParamsComponentsPayoutsFeatures`
* Add support for `payment_method_remove` on resource class `stripe.checkout.Session.SavedPaymentMethodOptions`
* Add support for `terminal_reader_invalid_location_for_payment` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code`

## 9.8.0b1 - 2024-05-16
* [#1327](https://github.com/stripe/stripe-python/pull/1327) Update generated code for beta

Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1048
v1058
4 changes: 3 additions & 1 deletion stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,7 @@ class Error(StripeObject):
"verification_missing_executives",
"verification_missing_owners",
"verification_requires_additional_memorandum_of_associations",
"verification_requires_additional_proof_of_registration",
]
"""
The code for the type of error.
Expand Down Expand Up @@ -896,6 +897,7 @@ class Error(StripeObject):
"verification_missing_executives",
"verification_missing_owners",
"verification_requires_additional_memorandum_of_associations",
"verification_requires_additional_proof_of_registration",
]
"""
The code for the type of error.
Expand Down Expand Up @@ -1334,7 +1336,7 @@ class CreateParams(RequestOptions):
"""
tos_acceptance: NotRequired["Account.CreateParamsTosAcceptance"]
"""
Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
"""
type: NotRequired[Literal["custom", "express", "standard"]]
"""
Expand Down
4 changes: 2 additions & 2 deletions stripe/_account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class CreateParams(TypedDict):
"""
tos_acceptance: NotRequired["AccountService.CreateParamsTosAcceptance"]
"""
Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
"""
type: NotRequired[Literal["custom", "express", "standard"]]
"""
Expand Down Expand Up @@ -1829,7 +1829,7 @@ class UpdateParams(TypedDict):
"""
tos_acceptance: NotRequired["AccountService.UpdateParamsTosAcceptance"]
"""
Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
"""

class UpdateParamsBankAccount(TypedDict):
Expand Down
2 changes: 2 additions & 0 deletions stripe/_bank_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ class Error(StripeObject):
"verification_missing_executives",
"verification_missing_owners",
"verification_requires_additional_memorandum_of_associations",
"verification_requires_additional_proof_of_registration",
]
"""
The code for the type of error.
Expand Down Expand Up @@ -248,6 +249,7 @@ class Error(StripeObject):
"verification_missing_executives",
"verification_missing_owners",
"verification_requires_additional_memorandum_of_associations",
"verification_requires_additional_proof_of_registration",
]
"""
The code for the type of error.
Expand Down
2 changes: 2 additions & 0 deletions stripe/_capability.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ class Error(StripeObject):
"verification_missing_executives",
"verification_missing_owners",
"verification_requires_additional_memorandum_of_associations",
"verification_requires_additional_proof_of_registration",
]
"""
The code for the type of error.
Expand Down Expand Up @@ -267,6 +268,7 @@ class Error(StripeObject):
"verification_missing_executives",
"verification_missing_owners",
"verification_requires_additional_memorandum_of_associations",
"verification_requires_additional_proof_of_registration",
]
"""
The code for the type of error.
Expand Down
2 changes: 1 addition & 1 deletion stripe/_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1263,7 +1263,7 @@ class Klarna(StripeObject):
preferred_locale: Optional[str]
"""
Preferred language of the Klarna authorization page that the customer is redirected to.
Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH`
Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH`
"""

class Konbini(StripeObject):
Expand Down
Loading
Loading