Skip to content

Commit

Permalink
regen
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed Jan 8, 2024
1 parent da93e8e commit 3923f52
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/test/java/com/stripe/functional/GeneratedExamples.java
Original file line number Diff line number Diff line change
Expand Up @@ -9818,6 +9818,24 @@ public void testSubscriptionItemsUsageRecordSummariesGetServices() throws Stripe
null);
}

@Test
public void testSubscriptionItemsUsageRecordsPost() throws StripeException {
UsageRecordCreateOnSubscriptionItemParams params =
UsageRecordCreateOnSubscriptionItemParams.builder()
.setQuantity(100L)
.setTimestamp(1571252444L)
.build();

UsageRecord usageRecord = UsageRecord.createOnSubscriptionItem("si_xxxxxxxxxxxxx", params);
assertNotNull(usageRecord);
verifyRequest(
BaseAddress.API,
ApiResource.RequestMethod.POST,
"/v1/subscription_items/si_xxxxxxxxxxxxx/usage_records",
params.toMap(),
null);
}

@Test
public void testSubscriptionItemsUsageRecordsPostServices() throws StripeException {
StripeClient client = new StripeClient(networkSpy);
Expand Down

0 comments on commit 3923f52

Please sign in to comment.