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

Merged
merged 13 commits into from
Jan 12, 2024
Prev Previous commit
Next Next commit
Update generated code for v755
  • Loading branch information
stripe-openapi[bot] committed Jan 12, 2024
commit 55d9e725981b6af144a5a6d732ab1b6ac28f177f
14 changes: 14 additions & 0 deletions tests/test_generated_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,20 @@ def test_credit_notes_void_post(
query_string="",
)

def test_customer_sessions_post(
self, http_client_mock: HTTPClientMock
) -> None:
stripe.CustomerSession.create(
customer="cus_123",
components={"buy_button": {"enabled": True}},
)
http_client_mock.assert_requested(
"post",
path="/v1/customer_sessions",
query_string="",
post_data="customer=cus_123&components[buy_button][enabled]=True",
)

def test_customers_balance_transactions_get(
self, http_client_mock: HTTPClientMock
) -> None:
Expand Down