Skip to content

Commit c81732b

Browse files
Merge pull request #2080 from stripe/latest-codegen-beta
Update generated code for beta
2 parents d9c44aa + 3ca57e0 commit c81732b

File tree

8 files changed

+99
-97
lines changed

8 files changed

+99
-97
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-09-30.preview
1+
0de52cdca31a7c51c6d11187fc88ab23ea3a1c5b

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2028
1+
v2031

src/main/java/com/stripe/model/Payout.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,8 @@ public static Payout retrieve(String payout, PayoutRetrieveParams params, Reques
573573

574574
/**
575575
* Reverses a payout by debiting the destination bank account. At this time, you can only reverse
576-
* payouts for connected accounts to US bank accounts. If the payout is manual and in the {@code
577-
* pending} status, use {@code /v1/payouts/:id/cancel} instead.
576+
* payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in
577+
* the {@code pending} status, use {@code /v1/payouts/:id/cancel} instead.
578578
*
579579
* <p>By requesting a reversal through {@code /v1/payouts/:id/reverse}, you confirm that the
580580
* authorized signatory of the selected bank account authorizes the debit on the bank account and
@@ -586,8 +586,8 @@ public Payout reverse() throws StripeException {
586586

587587
/**
588588
* Reverses a payout by debiting the destination bank account. At this time, you can only reverse
589-
* payouts for connected accounts to US bank accounts. If the payout is manual and in the {@code
590-
* pending} status, use {@code /v1/payouts/:id/cancel} instead.
589+
* payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in
590+
* the {@code pending} status, use {@code /v1/payouts/:id/cancel} instead.
591591
*
592592
* <p>By requesting a reversal through {@code /v1/payouts/:id/reverse}, you confirm that the
593593
* authorized signatory of the selected bank account authorizes the debit on the bank account and
@@ -599,8 +599,8 @@ public Payout reverse(RequestOptions options) throws StripeException {
599599

600600
/**
601601
* Reverses a payout by debiting the destination bank account. At this time, you can only reverse
602-
* payouts for connected accounts to US bank accounts. If the payout is manual and in the {@code
603-
* pending} status, use {@code /v1/payouts/:id/cancel} instead.
602+
* payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in
603+
* the {@code pending} status, use {@code /v1/payouts/:id/cancel} instead.
604604
*
605605
* <p>By requesting a reversal through {@code /v1/payouts/:id/reverse}, you confirm that the
606606
* authorized signatory of the selected bank account authorizes the debit on the bank account and
@@ -612,8 +612,8 @@ public Payout reverse(Map<String, Object> params) throws StripeException {
612612

613613
/**
614614
* Reverses a payout by debiting the destination bank account. At this time, you can only reverse
615-
* payouts for connected accounts to US bank accounts. If the payout is manual and in the {@code
616-
* pending} status, use {@code /v1/payouts/:id/cancel} instead.
615+
* payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in
616+
* the {@code pending} status, use {@code /v1/payouts/:id/cancel} instead.
617617
*
618618
* <p>By requesting a reversal through {@code /v1/payouts/:id/reverse}, you confirm that the
619619
* authorized signatory of the selected bank account authorizes the debit on the bank account and
@@ -628,8 +628,8 @@ public Payout reverse(Map<String, Object> params, RequestOptions options) throws
628628

629629
/**
630630
* Reverses a payout by debiting the destination bank account. At this time, you can only reverse
631-
* payouts for connected accounts to US bank accounts. If the payout is manual and in the {@code
632-
* pending} status, use {@code /v1/payouts/:id/cancel} instead.
631+
* payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in
632+
* the {@code pending} status, use {@code /v1/payouts/:id/cancel} instead.
633633
*
634634
* <p>By requesting a reversal through {@code /v1/payouts/:id/reverse}, you confirm that the
635635
* authorized signatory of the selected bank account authorizes the debit on the bank account and
@@ -641,8 +641,8 @@ public Payout reverse(PayoutReverseParams params) throws StripeException {
641641

642642
/**
643643
* Reverses a payout by debiting the destination bank account. At this time, you can only reverse
644-
* payouts for connected accounts to US bank accounts. If the payout is manual and in the {@code
645-
* pending} status, use {@code /v1/payouts/:id/cancel} instead.
644+
* payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in
645+
* the {@code pending} status, use {@code /v1/payouts/:id/cancel} instead.
646646
*
647647
* <p>By requesting a reversal through {@code /v1/payouts/:id/reverse}, you confirm that the
648648
* authorized signatory of the selected bank account authorizes the debit on the bank account and

src/main/java/com/stripe/model/terminal/Reader.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ public class Reader extends ApiResource implements HasId, MetadataStore<Reader>
8484
@SerializedName("label")
8585
String label;
8686

87+
/** The last time this reader reported to Stripe backend. */
88+
@SerializedName("last_seen_at")
89+
Long lastSeenAt;
90+
8791
/**
8892
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
8993
* object exists in test mode.

src/main/java/com/stripe/param/WebhookEndpointCreateParams.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,10 @@ public enum ApiVersion implements ApiRequestParams.EnumParam {
630630
VERSION_2025_08_27_BASIL("2025-08-27.basil"),
631631

632632
@SerializedName("2025-09-30.clover")
633-
VERSION_2025_09_30_CLOVER("2025-09-30.clover");
633+
VERSION_2025_09_30_CLOVER("2025-09-30.clover"),
634+
635+
@SerializedName("2025-10-29.clover")
636+
VERSION_2025_10_29_CLOVER("2025-10-29.clover");
634637

635638
@Getter(onMethod_ = {@Override})
636639
private final String value;

src/main/java/com/stripe/service/PayoutService.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ public Payout cancel(String payout, PayoutCancelParams params, RequestOptions op
218218
}
219219
/**
220220
* Reverses a payout by debiting the destination bank account. At this time, you can only reverse
221-
* payouts for connected accounts to US bank accounts. If the payout is manual and in the {@code
222-
* pending} status, use {@code /v1/payouts/:id/cancel} instead.
221+
* payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in
222+
* the {@code pending} status, use {@code /v1/payouts/:id/cancel} instead.
223223
*
224224
* <p>By requesting a reversal through {@code /v1/payouts/:id/reverse}, you confirm that the
225225
* authorized signatory of the selected bank account authorizes the debit on the bank account and
@@ -230,8 +230,8 @@ public Payout reverse(String payout, PayoutReverseParams params) throws StripeEx
230230
}
231231
/**
232232
* Reverses a payout by debiting the destination bank account. At this time, you can only reverse
233-
* payouts for connected accounts to US bank accounts. If the payout is manual and in the {@code
234-
* pending} status, use {@code /v1/payouts/:id/cancel} instead.
233+
* payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in
234+
* the {@code pending} status, use {@code /v1/payouts/:id/cancel} instead.
235235
*
236236
* <p>By requesting a reversal through {@code /v1/payouts/:id/reverse}, you confirm that the
237237
* authorized signatory of the selected bank account authorizes the debit on the bank account and
@@ -242,8 +242,8 @@ public Payout reverse(String payout, RequestOptions options) throws StripeExcept
242242
}
243243
/**
244244
* Reverses a payout by debiting the destination bank account. At this time, you can only reverse
245-
* payouts for connected accounts to US bank accounts. If the payout is manual and in the {@code
246-
* pending} status, use {@code /v1/payouts/:id/cancel} instead.
245+
* payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in
246+
* the {@code pending} status, use {@code /v1/payouts/:id/cancel} instead.
247247
*
248248
* <p>By requesting a reversal through {@code /v1/payouts/:id/reverse}, you confirm that the
249249
* authorized signatory of the selected bank account authorizes the debit on the bank account and
@@ -254,8 +254,8 @@ public Payout reverse(String payout) throws StripeException {
254254
}
255255
/**
256256
* Reverses a payout by debiting the destination bank account. At this time, you can only reverse
257-
* payouts for connected accounts to US bank accounts. If the payout is manual and in the {@code
258-
* pending} status, use {@code /v1/payouts/:id/cancel} instead.
257+
* payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in
258+
* the {@code pending} status, use {@code /v1/payouts/:id/cancel} instead.
259259
*
260260
* <p>By requesting a reversal through {@code /v1/payouts/:id/reverse}, you confirm that the
261261
* authorized signatory of the selected bank account authorizes the debit on the bank account and

src/test/java/com/stripe/functional/GeneratedExamples.java

Lines changed: 69 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12807,6 +12807,73 @@ public void testPromotionCodesGet2ServicesNonNamespaced() throws StripeException
1280712807

1280812808
@Test
1280912809
public void testPromotionCodesPost() throws StripeException {
12810+
PromotionCodeCreateParams params =
12811+
PromotionCodeCreateParams.builder()
12812+
.setPromotion(
12813+
PromotionCodeCreateParams.Promotion.builder()
12814+
.setType(PromotionCodeCreateParams.Promotion.Type.COUPON)
12815+
.setCoupon("Z4OV52SU")
12816+
.build())
12817+
.build();
12818+
12819+
PromotionCode promotionCode = PromotionCode.create(params);
12820+
assertNotNull(promotionCode);
12821+
verifyRequest(
12822+
BaseAddress.API,
12823+
ApiResource.RequestMethod.POST,
12824+
"/v1/promotion_codes",
12825+
params.toMap(),
12826+
null);
12827+
}
12828+
12829+
@Test
12830+
public void testPromotionCodesPostServices() throws StripeException {
12831+
StripeClient client = new StripeClient(networkSpy);
12832+
12833+
com.stripe.param.PromotionCodeCreateParams params =
12834+
com.stripe.param.PromotionCodeCreateParams.builder()
12835+
.setPromotion(
12836+
com.stripe.param.PromotionCodeCreateParams.Promotion.builder()
12837+
.setType(com.stripe.param.PromotionCodeCreateParams.Promotion.Type.COUPON)
12838+
.setCoupon("Z4OV52SU")
12839+
.build())
12840+
.build();
12841+
12842+
com.stripe.model.PromotionCode promotionCode = client.v1().promotionCodes().create(params);
12843+
assertNotNull(promotionCode);
12844+
verifyRequest(
12845+
BaseAddress.API,
12846+
ApiResource.RequestMethod.POST,
12847+
"/v1/promotion_codes",
12848+
params.toMap(),
12849+
null);
12850+
}
12851+
12852+
@Test
12853+
public void testPromotionCodesPostServicesNonNamespaced() throws StripeException {
12854+
StripeClient client = new StripeClient(networkSpy);
12855+
12856+
com.stripe.param.PromotionCodeCreateParams params =
12857+
com.stripe.param.PromotionCodeCreateParams.builder()
12858+
.setPromotion(
12859+
com.stripe.param.PromotionCodeCreateParams.Promotion.builder()
12860+
.setType(com.stripe.param.PromotionCodeCreateParams.Promotion.Type.COUPON)
12861+
.setCoupon("Z4OV52SU")
12862+
.build())
12863+
.build();
12864+
12865+
com.stripe.model.PromotionCode promotionCode = client.promotionCodes().create(params);
12866+
assertNotNull(promotionCode);
12867+
verifyRequest(
12868+
BaseAddress.API,
12869+
ApiResource.RequestMethod.POST,
12870+
"/v1/promotion_codes",
12871+
params.toMap(),
12872+
null);
12873+
}
12874+
12875+
@Test
12876+
public void testPromotionCodesPost2() throws StripeException {
1281012877
PromotionCode resource = PromotionCode.retrieve("promo_xxxxxxxxxxxxx");
1281112878

1281212879
PromotionCodeUpdateParams params =
@@ -12823,7 +12890,7 @@ public void testPromotionCodesPost() throws StripeException {
1282312890
}
1282412891

1282512892
@Test
12826-
public void testPromotionCodesPostServices() throws StripeException {
12893+
public void testPromotionCodesPost2Services() throws StripeException {
1282712894
StripeClient client = new StripeClient(networkSpy);
1282812895

1282912896
com.stripe.param.PromotionCodeUpdateParams params =
@@ -12843,7 +12910,7 @@ public void testPromotionCodesPostServices() throws StripeException {
1284312910
}
1284412911

1284512912
@Test
12846-
public void testPromotionCodesPostServicesNonNamespaced() throws StripeException {
12913+
public void testPromotionCodesPost2ServicesNonNamespaced() throws StripeException {
1284712914
StripeClient client = new StripeClient(networkSpy);
1284812915

1284912916
com.stripe.param.PromotionCodeUpdateParams params =

src/test/java/com/stripe/functional/PromotionCodeTest.java

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)