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 (new) #938

Merged
merged 1 commit into from
Mar 15, 2023
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
2 changes: 0 additions & 2 deletions stripe/api_resources/capital/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

# flake8: noqa

from stripe.api_resources.capital.financing_offer import FinancingOffer
from stripe.api_resources.capital.financing_summary import FinancingSummary
from stripe.api_resources.capital.financing_transaction import (
FinancingTransaction,
)
46 changes: 0 additions & 46 deletions stripe/api_resources/capital/financing_offer.py

This file was deleted.

18 changes: 0 additions & 18 deletions stripe/api_resources/capital/financing_summary.py

This file was deleted.

2 changes: 1 addition & 1 deletion stripe/api_resources/payment_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class PaymentLink(

When a customer opens a payment link it will open a new [checkout session](https://stripe.com/docs/api/checkout/sessions) to render the payment page. You can use [checkout session events](https://stripe.com/docs/api/events/types#event_types-checkout.session.completed) to track payments through payment links.

Related guide: [Payment Links API](https://stripe.com/docs/payments/payment-links/api)
Related guide: [Payment Links API](https://stripe.com/docs/payment-links)
"""

OBJECT_NAME = "payment_link"
Expand Down
2 changes: 1 addition & 1 deletion stripe/api_resources/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Product(
They can be used in conjunction with [Prices](https://stripe.com/docs/api#prices) to configure pricing in Payment Links, Checkout, and Subscriptions.

Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription),
[share a Payment Link](https://stripe.com/docs/payments/payment-links/overview),
[share a Payment Link](https://stripe.com/docs/payment-links),
[accept payments with Checkout](https://stripe.com/docs/payments/accept-a-payment#create-product-prices-upfront),
and more about [Products and Prices](https://stripe.com/docs/products-prices/overview)
"""
Expand Down
15 changes: 10 additions & 5 deletions stripe/api_resources/quote.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,15 +265,17 @@ def mark_stale_quote(self, idempotency_key=None, **params):
def _cls_preview_invoice_lines(
cls,
quote,
preview_invoice,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"get",
"/v1/quotes/{quote}/preview_invoice_lines".format(
quote=util.sanitize_id(quote)
"/v1/quotes/{quote}/preview_invoices/{preview_invoice}/lines".format(
quote=util.sanitize_id(quote),
preview_invoice=util.sanitize_id(preview_invoice),
),
api_key=api_key,
stripe_version=stripe_version,
Expand All @@ -282,11 +284,14 @@ def _cls_preview_invoice_lines(
)

@util.class_method_variant("_cls_preview_invoice_lines")
def preview_invoice_lines(self, idempotency_key=None, **params):
def preview_invoice_lines(
self, preview_invoice, idempotency_key=None, **params
):
return self._request(
"get",
"/v1/quotes/{quote}/preview_invoice_lines".format(
quote=util.sanitize_id(self.get("id"))
"/v1/quotes/{quote}/preview_invoices/{preview_invoice}/lines".format(
quote=util.sanitize_id(self.get("id")),
preview_invoice=util.sanitize_id(preview_invoice),
),
idempotency_key=idempotency_key,
params=params,
Expand Down
2 changes: 0 additions & 2 deletions stripe/object_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
api_resources.billing_portal.Configuration.OBJECT_NAME: api_resources.billing_portal.Configuration,
api_resources.billing_portal.Session.OBJECT_NAME: api_resources.billing_portal.Session,
api_resources.Capability.OBJECT_NAME: api_resources.Capability,
api_resources.capital.FinancingOffer.OBJECT_NAME: api_resources.capital.FinancingOffer,
api_resources.capital.FinancingSummary.OBJECT_NAME: api_resources.capital.FinancingSummary,
api_resources.capital.FinancingTransaction.OBJECT_NAME: api_resources.capital.FinancingTransaction,
api_resources.Card.OBJECT_NAME: api_resources.Card,
api_resources.CashBalance.OBJECT_NAME: api_resources.CashBalance,
Expand Down