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 #1302

Merged
merged 25 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4eb6dc6
Update generated code for v952
stripe-openapi[bot] Apr 12, 2024
1b803f4
Update generated code for v953
stripe-openapi[bot] Apr 12, 2024
32450cc
Update generated code for v955
stripe-openapi[bot] Apr 13, 2024
97ccaf7
Update generated code for v956
stripe-openapi[bot] Apr 15, 2024
b9b18e2
Update generated code for v957
stripe-openapi[bot] Apr 15, 2024
0d5ba3d
Update generated code for v958
stripe-openapi[bot] Apr 15, 2024
cca642d
Update generated code for v959
stripe-openapi[bot] Apr 15, 2024
9adf571
Update generated code for v960
stripe-openapi[bot] Apr 15, 2024
ecc2fb1
Update generated code for v961
stripe-openapi[bot] Apr 15, 2024
8b6538b
Update generated code for v961
stripe-openapi[bot] Apr 15, 2024
188abb2
Update generated code (#1301)
stripe-openapi[bot] Apr 16, 2024
f098363
Bump version to 9.2.0
ramya-stripe Apr 16, 2024
618a59e
Merge upstream and update generated code for v962
stripe-openapi[bot] Apr 16, 2024
48fbc6f
Stripe deprecate param util for adding a decoractor (#1304)
prathmesh-stripe Apr 17, 2024
936827a
Merge upstream and update generated code for v963
stripe-openapi[bot] Apr 17, 2024
706d948
Update generated code for v964
stripe-openapi[bot] Apr 17, 2024
a1b83ac
Update generated code for v965
stripe-openapi[bot] Apr 17, 2024
6210674
Update generated code for v966
stripe-openapi[bot] Apr 17, 2024
8d8fd7c
Update generated code for v967
stripe-openapi[bot] Apr 17, 2024
d15cd3b
Update generated code for v967
stripe-openapi[bot] Apr 17, 2024
2a87fb4
Fix: Quote PDF retrieve base_address set to files (#1306)
prathmesh-stripe Apr 17, 2024
8a55be8
Merge upstream and update generated code for v968
stripe-openapi[bot] Apr 18, 2024
b8c0a0a
Update generated code for v969
stripe-openapi[bot] Apr 18, 2024
940eb52
Update generated code for v971
stripe-openapi[bot] Apr 18, 2024
3fc4388
Update generated code for v972
stripe-openapi[bot] Apr 18, 2024
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
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## 9.2.0 - 2024-04-16
* [#1301](https://github.com/stripe/stripe-python/pull/1301) Update generated code
* Add support for `balances` on resource class `stripe.AccountSession.Components` and parameter class `stripe.AccountSession.CreateParamsComponents`
* Add support for `payouts_list` on resource class `stripe.AccountSession.Components` and parameter class `stripe.AccountSession.CreateParamsComponents`
* Add support for `capture_method` on parameter classes `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsRevolutPay`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsRevolutPay`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsRevolutPay` and resource class `stripe.PaymentIntent.PaymentMethodOptions.RevolutPay`
* Add support for `swish` on parameter classes `stripe.PaymentMethodConfiguration.CreateParams` and `stripe.PaymentMethodConfiguration.ModifyParams` and resource `stripe.PaymentMethodConfiguration`
* Add support for resource `stripe.entitlements.ActiveEntitlementSummary`
* Remove support for `config` on parameter class `stripe.forwarding.Request.CreateParams` and resource `stripe.forwarding.Request`. This field is no longer used by the Forwarding Request API.
* Change type of fields `stripe.AccountSession.Components.PaymentDetails.Features` and `stripe.AccountSession.Components.Payments.Features` from `Optional[bool]` to `bool` of `destination_on_behalf_of_charge_management`
* Change type of field `stripe.billing.MeterEvent.CreateParams` from `int` to `NotRequired[int]` of `timestamp`
* Add support for `entitlements.active_entitlement_summary.updated` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events`

## 9.2.0b1 - 2024-04-11
* [#1296](https://github.com/stripe/stripe-python/pull/1296) Update generated code for beta
* Add support for `external_account_collection` on resource class `stripe.AccountSession.Components.AccountOnboarding.Features` and parameter class `stripe.AccountSession.CreateParamsComponentsAccountOnboardingFeatures`
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v951
v972
159 changes: 157 additions & 2 deletions stripe/_account_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,28 @@ class Features(StripeObject):
features: Features
_inner_class_types = {"features": Features}

class Balances(StripeObject):
class Features(StripeObject):
edit_payout_schedule: bool
"""
Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
"""
instant_payouts: bool
"""
Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
"""
standard_payouts: bool
"""
Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
"""

enabled: bool
"""
Whether the embedded component is enabled.
"""
features: Features
_inner_class_types = {"features": Features}

class CapitalFinancingPromotion(StripeObject):
class Features(StripeObject):
pass
Expand Down Expand Up @@ -91,7 +113,7 @@ class Features(StripeObject):
"""
Whether to allow capturing and cancelling payment intents. This is `true` by default.
"""
destination_on_behalf_of_charge_management: Optional[bool]
destination_on_behalf_of_charge_management: bool
"""
Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
"""
Expand All @@ -117,7 +139,7 @@ class Features(StripeObject):
"""
Whether to allow capturing and cancelling payment intents. This is `true` by default.
"""
destination_on_behalf_of_charge_management: Optional[bool]
destination_on_behalf_of_charge_management: bool
"""
Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
"""
Expand Down Expand Up @@ -159,23 +181,38 @@ class Features(StripeObject):
features: Features
_inner_class_types = {"features": Features}

class PayoutsList(StripeObject):
class Features(StripeObject):
pass

enabled: bool
"""
Whether the embedded component is enabled.
"""
features: Features
_inner_class_types = {"features": Features}

account_management: AccountManagement
account_onboarding: AccountOnboarding
balances: Balances
capital_financing_promotion: Optional[CapitalFinancingPromotion]
documents: Documents
notification_banner: NotificationBanner
payment_details: PaymentDetails
payments: Payments
payouts: Payouts
payouts_list: PayoutsList
_inner_class_types = {
"account_management": AccountManagement,
"account_onboarding": AccountOnboarding,
"balances": Balances,
"capital_financing_promotion": CapitalFinancingPromotion,
"documents": Documents,
"notification_banner": NotificationBanner,
"payment_details": PaymentDetails,
"payments": Payments,
"payouts": Payouts,
"payouts_list": PayoutsList,
}

class CreateParams(RequestOptions):
Expand Down Expand Up @@ -205,9 +242,19 @@ class CreateParamsComponents(TypedDict):
"""
Configuration for the account onboarding embedded component.
"""
balances: NotRequired["AccountSession.CreateParamsComponentsBalances"]
"""
Configuration for the balances embedded component.
"""
capital_financing_promotion: NotRequired[
"AccountSession.CreateParamsComponentsCapitalFinancingPromotion"
]
capital_overview: NotRequired[
"AccountSession.CreateParamsComponentsCapitalOverview"
]
"""
Configuration for the capital overview embedded component.
"""
documents: NotRequired[
"AccountSession.CreateParamsComponentsDocuments"
]
Expand Down Expand Up @@ -258,6 +305,24 @@ class CreateParamsComponents(TypedDict):
"""
Configuration for the payouts embedded component.
"""
payouts_list: NotRequired[
"AccountSession.CreateParamsComponentsPayoutsList"
]
"""
Configuration for the payouts list embedded component.
"""
tax_registrations: NotRequired[
"AccountSession.CreateParamsComponentsTaxRegistrations"
]
"""
Configuration for the tax registrations embedded component.
"""
tax_settings: NotRequired[
"AccountSession.CreateParamsComponentsTaxSettings"
]
"""
Configuration for the tax settings embedded component.
"""

class CreateParamsComponentsAccountManagement(TypedDict):
enabled: bool
Expand Down Expand Up @@ -295,6 +360,32 @@ class CreateParamsComponentsAccountOnboardingFeatures(TypedDict):
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.
"""

class CreateParamsComponentsBalances(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSession.CreateParamsComponentsBalancesFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsBalancesFeatures(TypedDict):
edit_payout_schedule: NotRequired[bool]
"""
Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
"""
instant_payouts: NotRequired[bool]
"""
Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
"""
standard_payouts: NotRequired[bool]
"""
Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
"""

class CreateParamsComponentsCapitalFinancingPromotion(TypedDict):
enabled: bool
"""
Expand All @@ -310,6 +401,21 @@ class CreateParamsComponentsCapitalFinancingPromotion(TypedDict):
class CreateParamsComponentsCapitalFinancingPromotionFeatures(TypedDict):
pass

class CreateParamsComponentsCapitalOverview(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSession.CreateParamsComponentsCapitalOverviewFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsCapitalOverviewFeatures(TypedDict):
pass

class CreateParamsComponentsDocuments(TypedDict):
enabled: bool
"""
Expand All @@ -335,6 +441,10 @@ class CreateParamsComponentsFinancialAccount(TypedDict):
]

class CreateParamsComponentsFinancialAccountFeatures(TypedDict):
external_account_collection: NotRequired[bool]
"""
Whether to allow external accounts to be linked for money transfer.
"""
money_movement: NotRequired[bool]
"""
Whether to allow money movement features.
Expand Down Expand Up @@ -498,6 +608,51 @@ class CreateParamsComponentsPayoutsFeatures(TypedDict):
Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
"""

class CreateParamsComponentsPayoutsList(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSession.CreateParamsComponentsPayoutsListFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsPayoutsListFeatures(TypedDict):
pass

class CreateParamsComponentsTaxRegistrations(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSession.CreateParamsComponentsTaxRegistrationsFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsTaxRegistrationsFeatures(TypedDict):
pass

class CreateParamsComponentsTaxSettings(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSession.CreateParamsComponentsTaxSettingsFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsTaxSettingsFeatures(TypedDict):
pass

account: str
"""
The ID of the account the AccountSession was created for
Expand Down
Loading
Loading