Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
768c16b55352ce5cc78d27c0bbd7448263942018
8eab35b451a493795de63fac83b782e03b797203
53 changes: 2 additions & 51 deletions src/test/java/com/stripe/functional/GeneratedExamples.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand All @@ -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 =
Expand All @@ -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 =
Expand Down