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

Merged
merged 17 commits into from
Mar 14, 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
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
# Changelog

## 8.7.0 - 2024-03-14
* [#1269](https://github.com/stripe/stripe-python/pull/1269) Update generated code
* Add support for `personalization_design` on parameter classes `CardService.CreateParams`, `CardService.ListParams`, `CardService.UpdateParams`, `stripe.issuing.Card.CreateParams`, `stripe.issuing.Card.ListParams`, and `stripe.issuing.Card.ModifyParams` and resource `stripe.issuing.Card`
* Add support for `sepa_debit` on parameter classes `SubscriptionService.CreateParamsPaymentSettingsPaymentMethodOptions`, `SubscriptionService.UpdateParamsPaymentSettingsPaymentMethodOptions`, `stripe.Subscription.CreateParamsPaymentSettingsPaymentMethodOptions`, and `stripe.Subscription.ModifyParamsPaymentSettingsPaymentMethodOptions` and resource class `stripe.Subscription.PaymentSettings.PaymentMethodOptions`
* Add support for resource `stripe.issuing.PersonalizationDesign`
* Add support for resource `stripe.issuing.PhysicalBundle`
* Change type from `float` to `Literal['']|float` of `application_fee_percent` on fields `stripe.Subscription.CreateParams`, `stripe.Subscription.ModifyParams`, `SubscriptionService.UpdateParams`, and `SubscriptionService.CreateParams`

## 8.7.0b1 - 2024-03-07
* [#1265](https://github.com/stripe/stripe-python/pull/1265) Update generated code for beta
* Add support for new value `billing_period_end` on enums `Quote.CreateParamsLineEndsAt.type`, `QuoteLine.EndsAt.type`, and `Quote.ModifyParamsLineEndsAt.type`

## 8.6.0 - 2024-03-07
* [#1267](https://github.com/stripe/stripe-python/pull/1267) Update generated code
* Add support for `documents` on `AccountSession.Components`
* Add support for `request_three_d_secure` on `Checkout.Session.PaymentMethodOptionsCard` and `Checkout.Session.CreateParams.PaymentMethodOptionsCard`
* Add support for `created` on `CreditNote.ListParams`
* Add support for `sepa_debit` on `Invoice.PaymentSettings.PaymentMethodOptions`, `InvoiceCreateParams.PaymentSettings.PaymentMethodOptions`, and `InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions`
* [#1268](https://github.com/stripe/stripe-python/pull/1268) Update README.md

## 8.6.0b1 - 2024-02-29
* [#1251](https://github.com/stripe/stripe-python/pull/1251) Update generated code for beta
* Remove support for resource `Entitlements.Event`
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v869
v879
2 changes: 2 additions & 0 deletions stripe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ def __getattr__(name):
# The beginning of the section generated from our OpenAPI spec
from stripe import (
apps as apps,
billing as billing,
billing_portal as billing_portal,
capital as capital,
checkout as checkout,
Expand Down Expand Up @@ -302,6 +303,7 @@ def __getattr__(name):
from stripe._billing_portal_service import (
BillingPortalService as BillingPortalService,
)
from stripe._billing_service import BillingService as BillingService
from stripe._capability import Capability as Capability
from stripe._capital_service import CapitalService as CapitalService
from stripe._card import Card as Card
Expand Down
2 changes: 1 addition & 1 deletion stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -2131,7 +2131,7 @@ class CreateParamsControllerApplication(TypedDict):
class CreateParamsControllerDashboard(TypedDict):
type: NotRequired["Literal['express', 'full', 'none']"]
"""
Whether this account should have access to the full Stripe dashboard (`full`) or no dashboard (`none`).
Whether this account should have access to the full Stripe Dashboard (`full`), to the Express Dashboard (`express`), or to no dashboard (`none`). Defaults to `full`.
"""

class CreateParamsDocuments(TypedDict):
Expand Down
2 changes: 1 addition & 1 deletion stripe/_account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ class CreateParamsControllerApplication(TypedDict):
class CreateParamsControllerDashboard(TypedDict):
type: NotRequired["Literal['express', 'full', 'none']"]
"""
Whether this account should have access to the full Stripe dashboard (`full`) or no dashboard (`none`).
Whether this account should have access to the full Stripe Dashboard (`full`), to the Express Dashboard (`express`), or to no dashboard (`none`). Defaults to `full`.
"""

class CreateParamsDocuments(TypedDict):
Expand Down
3 changes: 3 additions & 0 deletions stripe/_account_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ class CreateParamsComponents(TypedDict):
documents: NotRequired[
"AccountSession.CreateParamsComponentsDocuments"
]
"""
Configuration for the documents embedded component.
"""
payment_details: NotRequired[
"AccountSession.CreateParamsComponentsPaymentDetails"
]
Expand Down
3 changes: 3 additions & 0 deletions stripe/_account_session_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ class CreateParamsComponents(TypedDict):
documents: NotRequired[
"AccountSessionService.CreateParamsComponentsDocuments"
]
"""
Configuration for the documents embedded component.
"""
payment_details: NotRequired[
"AccountSessionService.CreateParamsComponentsPaymentDetails"
]
Expand Down
18 changes: 18 additions & 0 deletions stripe/_billing_service.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._stripe_service import StripeService
from stripe.billing._meter_event_adjustment_service import (
MeterEventAdjustmentService,
)
from stripe.billing._meter_event_service import MeterEventService
from stripe.billing._meter_service import MeterService


class BillingService(StripeService):
def __init__(self, requestor):
super().__init__(requestor)
self.meters = MeterService(self._requestor)
self.meter_events = MeterEventService(self._requestor)
self.meter_event_adjustments = MeterEventAdjustmentService(
self._requestor,
)
Loading
Loading