diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 64010e9ed..0963e32fc 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v872 \ No newline at end of file +v878 \ No newline at end of file diff --git a/test/stripe/generated_examples_test.rb b/test/stripe/generated_examples_test.rb index ce2a68dc5..f9260fb79 100644 --- a/test/stripe/generated_examples_test.rb +++ b/test/stripe/generated_examples_test.rb @@ -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" @@ -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,