Skip to content

Commit

Permalink
Update generated code for v1441
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Jan 13, 2025
1 parent 82934cf commit cdd6143
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1412
v1441
44 changes: 44 additions & 0 deletions src/test/java/com/stripe/functional/GeneratedExamples.java
Original file line number Diff line number Diff line change
Expand Up @@ -11906,6 +11906,50 @@ public void testTerminalReadersProcessPaymentIntentPostServices() throws StripeE
null);
}

@Test
public void testTerminalReadersProcessSetupIntentPost() throws StripeException {
com.stripe.model.terminal.Reader resource =
com.stripe.model.terminal.Reader.retrieve("tmr_xxxxxxxxxxxxx");

com.stripe.param.terminal.ReaderProcessSetupIntentParams params =
com.stripe.param.terminal.ReaderProcessSetupIntentParams.builder()
.setSetupIntent("seti_xxxxxxxxxxxxx")
.setAllowRedisplay(
com.stripe.param.terminal.ReaderProcessSetupIntentParams.AllowRedisplay.ALWAYS)
.build();

com.stripe.model.terminal.Reader reader = resource.processSetupIntent(params);
assertNotNull(reader);
verifyRequest(
BaseAddress.API,
ApiResource.RequestMethod.POST,
"/v1/terminal/readers/tmr_xxxxxxxxxxxxx/process_setup_intent",
params.toMap(),
null);
}

@Test
public void testTerminalReadersProcessSetupIntentPostServices() throws StripeException {
StripeClient client = new StripeClient(networkSpy);

com.stripe.param.terminal.ReaderProcessSetupIntentParams params =
com.stripe.param.terminal.ReaderProcessSetupIntentParams.builder()
.setSetupIntent("seti_xxxxxxxxxxxxx")
.setAllowRedisplay(
com.stripe.param.terminal.ReaderProcessSetupIntentParams.AllowRedisplay.ALWAYS)
.build();

com.stripe.model.terminal.Reader reader =
client.terminal().readers().processSetupIntent("tmr_xxxxxxxxxxxxx", params);
assertNotNull(reader);
verifyRequest(
BaseAddress.API,
ApiResource.RequestMethod.POST,
"/v1/terminal/readers/tmr_xxxxxxxxxxxxx/process_setup_intent",
params.toMap(),
null);
}

@Test
public void testTestHelpersCustomersFundCashBalancePost() throws StripeException {
Customer resource = Customer.retrieve("cus_123");
Expand Down

0 comments on commit cdd6143

Please sign in to comment.