Skip to content

Commit

Permalink
Update generated code for v353 (#1223)
Browse files Browse the repository at this point in the history
Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: pakrym-stripe <99349468+pakrym-stripe@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] and pakrym-stripe authored May 25, 2023
1 parent 5ad5458 commit 6d95d56
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v344
v353
24 changes: 24 additions & 0 deletions test/stripe/generated_examples_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2067,6 +2067,30 @@ class CodegennedExampleTest < Test::Unit::TestCase
assert_requested :post, "#{Stripe.api_base}/v1/subscription_schedules/sub_sched_xxxxxxxxxxxxx"
end
end
context "Tax.Calculation.create" do
should "support requests with args: currency, line_items, customer_details" do
Stripe::Tax::Calculation.create({
currency: "usd",
line_items: [
{
amount: 1000,
reference: "L1",
},
],
customer_details: {
address: {
line1: "354 Oyster Point Blvd",
city: "South San Francisco",
state: "CA",
postal_code: "94080",
country: "US",
},
address_source: "shipping",
},
})
assert_requested :post, "#{Stripe.api_base}/v1/tax/calculations"
end
end
context "Tax.Calculation.list_line_items" do
should "support requests with args: calculation" do
Stripe::Tax::Calculation.list_line_items("xxx")
Expand Down

0 comments on commit 6d95d56

Please sign in to comment.