diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index f295f551191..e201e26827a 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -768c16b55352ce5cc78d27c0bbd7448263942018 \ No newline at end of file +8eab35b451a493795de63fac83b782e03b797203 \ No newline at end of file diff --git a/src/test/java/com/stripe/functional/GeneratedExamples.java b/src/test/java/com/stripe/functional/GeneratedExamples.java index 62b6faee174..7c97fc6730d 100644 --- a/src/test/java/com/stripe/functional/GeneratedExamples.java +++ b/src/test/java/com/stripe/functional/GeneratedExamples.java @@ -12811,55 +12811,6 @@ public void testPromotionCodesGet2ServicesNonNamespaced() throws StripeException @Test public void testPromotionCodesPost() throws StripeException { - PromotionCodeCreateParams params = - PromotionCodeCreateParams.builder().setCoupon("Z4OV52SU").build(); - - PromotionCode promotionCode = PromotionCode.create(params); - assertNotNull(promotionCode); - verifyRequest( - BaseAddress.API, - ApiResource.RequestMethod.POST, - "/v1/promotion_codes", - params.toMap(), - null); - } - - @Test - public void testPromotionCodesPostServices() throws StripeException { - StripeClient client = new StripeClient(networkSpy); - - com.stripe.param.PromotionCodeCreateParams params = - com.stripe.param.PromotionCodeCreateParams.builder().setCoupon("Z4OV52SU").build(); - - com.stripe.model.PromotionCode promotionCode = client.v1().promotionCodes().create(params); - assertNotNull(promotionCode); - verifyRequest( - BaseAddress.API, - ApiResource.RequestMethod.POST, - "/v1/promotion_codes", - params.toMap(), - null); - } - - @Test - public void testPromotionCodesPostServicesNonNamespaced() throws StripeException { - StripeClient client = new StripeClient(networkSpy); - - com.stripe.param.PromotionCodeCreateParams params = - com.stripe.param.PromotionCodeCreateParams.builder().setCoupon("Z4OV52SU").build(); - - com.stripe.model.PromotionCode promotionCode = client.promotionCodes().create(params); - assertNotNull(promotionCode); - verifyRequest( - BaseAddress.API, - ApiResource.RequestMethod.POST, - "/v1/promotion_codes", - params.toMap(), - null); - } - - @Test - public void testPromotionCodesPost2() throws StripeException { PromotionCode resource = PromotionCode.retrieve("promo_xxxxxxxxxxxxx"); PromotionCodeUpdateParams params = @@ -12876,7 +12827,7 @@ public void testPromotionCodesPost2() throws StripeException { } @Test - public void testPromotionCodesPost2Services() throws StripeException { + public void testPromotionCodesPostServices() throws StripeException { StripeClient client = new StripeClient(networkSpy); com.stripe.param.PromotionCodeUpdateParams params = @@ -12896,7 +12847,7 @@ public void testPromotionCodesPost2Services() throws StripeException { } @Test - public void testPromotionCodesPost2ServicesNonNamespaced() throws StripeException { + public void testPromotionCodesPostServicesNonNamespaced() throws StripeException { StripeClient client = new StripeClient(networkSpy); com.stripe.param.PromotionCodeUpdateParams params =