Skip to content

Commit

Permalink
Update generated code for v277
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Mar 23, 2023
1 parent 0b99abe commit 7b2eb11
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v276
v277
16 changes: 16 additions & 0 deletions tests/test_generated_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -2521,3 +2521,19 @@ def test_webhookendpoint_update(self, request_mock):
"post",
"/v1/webhook_endpoints/we_xxxxxxxxxxxxx",
)

def test_tax_transaction_create_from_calculation(self, request_mock):
stripe.tax.Transaction.create_from_calculation(
calculation="xxx",
reference="yyy",
)
request_mock.assert_requested(
"post",
"/v1/tax/transactions/create_from_calculation",
)

def test_tax_calculation_list_line_items(self, request_mock):
stripe.tax.Calculation.list_line_items("xxx")
request_mock.assert_requested(
"get", "/v1/tax/calculations/xxx/line_items"
)

0 comments on commit 7b2eb11

Please sign in to comment.