Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed Feb 2, 2023
1 parent 5e8a36f commit 8e09143
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/test/java/com/stripe/functional/GeneratedExamples.java
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,23 @@ public void testCapabilityUpdate() throws StripeException {
params.toMap());
}

@Test
public void testSubscriptionResume() throws StripeException {
Subscription resource = Subscription.retrieve("sub_xxxxxxxxxxxxx");
SubscriptionResumeParams params =
SubscriptionResumeParams.builder()
.setProrationDate(1675400000L)
.setProrationBehavior(SubscriptionResumeParams.ProrationBehavior.ALWAYS_INVOICE)
.build();

Subscription subscription = resource.resume(params);
assertNotNull(subscription);
verifyRequest(
ApiResource.RequestMethod.POST,
"/v1/subscriptions/sub_xxxxxxxxxxxxx/resume",
params.toMap());
}

@Test
public void testAccountPersons() throws StripeException {
Account resource = Account.retrieve("acct_xxxxxxxxxxxxx");
Expand Down

0 comments on commit 8e09143

Please sign in to comment.