Skip to content

Commit

Permalink
Update generated code for v878
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Mar 14, 2024
1 parent 7aacd35 commit 96da0f7
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v872
v878
39 changes: 39 additions & 0 deletions test/stripe/generated_examples_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,30 @@ class CodegennedExampleTest < Test::Unit::TestCase
Stripe::Issuing::Dispute.submit("idp_xxxxxxxxxxxxx")
assert_requested :post, "#{Stripe.api_base}/v1/issuing/disputes/idp_xxxxxxxxxxxxx/submit?"
end
should "Test issuing personalization designs get" do
Stripe::Issuing::PersonalizationDesign.list
assert_requested :get, "#{Stripe.api_base}/v1/issuing/personalization_designs?"
end
should "Test issuing personalization designs get 2" do
Stripe::Issuing::PersonalizationDesign.retrieve("pd_xyz")
assert_requested :get, "#{Stripe.api_base}/v1/issuing/personalization_designs/pd_xyz?"
end
should "Test issuing personalization designs post" do
Stripe::Issuing::PersonalizationDesign.create({ physical_bundle: "pb_xyz" })
assert_requested :post, "#{Stripe.api_base}/v1/issuing/personalization_designs"
end
should "Test issuing personalization designs post 2" do
Stripe::Issuing::PersonalizationDesign.update("pd_xyz")
assert_requested :post, "#{Stripe.api_base}/v1/issuing/personalization_designs/pd_xyz?"
end
should "Test issuing physical bundles get" do
Stripe::Issuing::PhysicalBundle.list
assert_requested :get, "#{Stripe.api_base}/v1/issuing/physical_bundles?"
end
should "Test issuing physical bundles get 2" do
Stripe::Issuing::PhysicalBundle.retrieve("pb_xyz")
assert_requested :get, "#{Stripe.api_base}/v1/issuing/physical_bundles/pb_xyz?"
end
should "Test issuing transactions get" do
Stripe::Issuing::Transaction.list({ limit: 3 })
assert_requested :get, "#{Stripe.api_base}/v1/issuing/transactions?limit=3"
Expand Down Expand Up @@ -1925,6 +1949,21 @@ class CodegennedExampleTest < Test::Unit::TestCase
Stripe::Issuing::Card::TestHelpers.ship_card("card_123")
assert_requested :post, "#{Stripe.api_base}/v1/test_helpers/issuing/cards/card_123/shipping/ship?"
end
should "Test test helpers issuing personalization designs activate post" do
Stripe::Issuing::PersonalizationDesign::TestHelpers.activate("pd_xyz")
assert_requested :post, "#{Stripe.api_base}/v1/test_helpers/issuing/personalization_designs/pd_xyz/activate?"
end
should "Test test helpers issuing personalization designs deactivate post" do
Stripe::Issuing::PersonalizationDesign::TestHelpers.deactivate("pd_xyz")
assert_requested :post, "#{Stripe.api_base}/v1/test_helpers/issuing/personalization_designs/pd_xyz/deactivate?"
end
should "Test test helpers issuing personalization designs reject post" do
Stripe::Issuing::PersonalizationDesign::TestHelpers.reject(
"pd_xyz",
{ rejection_reasons: { card_logo: ["geographic_location"] } }
)
assert_requested :post, "#{Stripe.api_base}/v1/test_helpers/issuing/personalization_designs/pd_xyz/reject"
end
should "Test test helpers issuing transactions create force capture post" do
Stripe::Issuing::Transaction::TestHelpers.create_force_capture({
amount: 100,
Expand Down

0 comments on commit 96da0f7

Please sign in to comment.