Skip to content

Commit

Permalink
Merge pull request #1331 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
Update generated code for beta
  • Loading branch information
stripe-openapi[bot] authored May 23, 2024
2 parents 7655026 + 320bb94 commit de5b7af
Show file tree
Hide file tree
Showing 34 changed files with 201 additions and 150 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@

* [#1330](https://github.com/stripe/stripe-python/pull/1330) (beta) swap from `black` to `ruff` for formatting

## 9.7.0 - 2024-05-16
* [#1328](https://github.com/stripe/stripe-python/pull/1328) Update generated code
* Add support for `fee_source` on resource `stripe.ApplicationFee`
* Add support for `net_available` on resource class `stripe.Balance.InstantAvailable`
* Add support for `preferred_locales` on resource classes `stripe.Charge.PaymentMethodDetails.CardPresent`, `stripe.ConfirmationToken.PaymentMethodPreview.CardPresent`, and `stripe.PaymentMethod.CardPresent`
* Add support for `klarna` on resource class `stripe.Dispute.PaymentMethodDetails`
* Add support for `routing` on parameter classes `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsCardPresent`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsCardPresent`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsCardPresent` and resource class `stripe.PaymentIntent.PaymentMethodOptions.CardPresent`
* Add support for `application_fee` on resource `stripe.Payout`
* Add support for `archived` on parameter class `stripe.entitlements.Feature.ListParams`
* Add support for `lookup_key` on parameter class `stripe.entitlements.Feature.ListParams`
* Add support for `no_valid_authorization` on parameter classes `stripe.issuing.Dispute.CreateParamsEvidence` and `stripe.issuing.Dispute.ModifyParamsEvidence` and resource class `stripe.issuing.Dispute.Evidence`
* Add support for `loss_reason` on resource `stripe.issuing.Dispute`
* Add support for `stripe_s700` on parameter classes `stripe.terminal.Configuration.CreateParams` and `stripe.terminal.Configuration.ModifyParams` and resource `stripe.terminal.Configuration`
* Add support for `klarna` on enum `stripe.Dispute.PaymentMethodDetails.type`
* Add support for `no_valid_authorization` on enums `stripe.issuing.Dispute.Evidence.reason`, `stripe.issuing.Dispute.CreateParamsEvidence.reason`, and `stripe.issuing.Dispute.ModifyParamsEvidence.reason`
* Change type of `countries` on `stripe.financial_connections.Session.CreateParamsFilters` from `List[str]` to `NotRequired[List[str]]`
* [#1329](https://github.com/stripe/stripe-python/pull/1329) Switch from `black` to `ruff` for formatting

## 9.7.0b1 - 2024-05-09
* [#1321](https://github.com/stripe/stripe-python/pull/1321) Update generated code for beta
* No new beta features. Merging changes from the main branch.
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1039
v1048
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 @@ -165,6 +169,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 @@ -383,6 +391,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 @@ -620,6 +632,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 @@ -182,6 +182,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 @@ -419,6 +423,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
2 changes: 1 addition & 1 deletion stripe/_confirmation_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -1512,7 +1512,7 @@ class CreateParamsPaymentMethodData(TypedDict):
"ConfirmationToken.CreateParamsPaymentMethodDataTwint"
]
"""
If this is a Twint PaymentMethod, this hash contains details about the Twint payment method.
If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
"""
type: Literal[
"acss_debit",
Expand Down
6 changes: 3 additions & 3 deletions stripe/_credit_note.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class CreateParamsRefund(TypedDict):
"""
Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
"""
refund: str
refund: NotRequired[str]
"""
ID of an existing refund to link this credit note to.
"""
Expand Down Expand Up @@ -515,7 +515,7 @@ class PreviewLinesParamsRefund(TypedDict):
"""
Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
"""
refund: str
refund: NotRequired[str]
"""
ID of an existing refund to link this credit note to.
"""
Expand Down Expand Up @@ -650,7 +650,7 @@ class PreviewParamsRefund(TypedDict):
"""
Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
"""
refund: str
refund: NotRequired[str]
"""
ID of an existing refund to link this credit note to.
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/_credit_note_preview_lines_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class ListParamsRefund(TypedDict):
"""
Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
"""
refund: str
refund: NotRequired[str]
"""
ID of an existing refund to link this credit note to.
"""
Expand Down
4 changes: 2 additions & 2 deletions stripe/_credit_note_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class CreateParamsRefund(TypedDict):
"""
Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
"""
refund: str
refund: NotRequired[str]
"""
ID of an existing refund to link this credit note to.
"""
Expand Down Expand Up @@ -330,7 +330,7 @@ class PreviewParamsRefund(TypedDict):
"""
Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
"""
refund: str
refund: NotRequired[str]
"""
ID of an existing refund to link this credit note to.
"""
Expand Down
Loading

0 comments on commit de5b7af

Please sign in to comment.