Skip to content
Merged
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 API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-09-30.preview
0de52cdca31a7c51c6d11187fc88ab23ea3a1c5b
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2028
v2031
24 changes: 12 additions & 12 deletions src/main/java/com/stripe/model/Payout.java
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,8 @@ public static Payout retrieve(String payout, PayoutRetrieveParams params, Reques

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

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

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

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

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

/**
* Reverses a payout by debiting the destination bank account. At this time, you can only reverse
* payouts for connected accounts to US bank accounts. If the payout is manual and in the {@code
* pending} status, use {@code /v1/payouts/:id/cancel} instead.
* payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in
* the {@code pending} status, use {@code /v1/payouts/:id/cancel} instead.
*
* <p>By requesting a reversal through {@code /v1/payouts/:id/reverse}, you confirm that the
* authorized signatory of the selected bank account authorizes the debit on the bank account and
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/stripe/model/terminal/Reader.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ public class Reader extends ApiResource implements HasId, MetadataStore<Reader>
@SerializedName("label")
String label;

/** The last time this reader reported to Stripe backend. */
@SerializedName("last_seen_at")
Long lastSeenAt;

/**
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
* object exists in test mode.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,10 @@ public enum ApiVersion implements ApiRequestParams.EnumParam {
VERSION_2025_08_27_BASIL("2025-08-27.basil"),

@SerializedName("2025-09-30.clover")
VERSION_2025_09_30_CLOVER("2025-09-30.clover");
VERSION_2025_09_30_CLOVER("2025-09-30.clover"),

@SerializedName("2025-10-29.clover")
VERSION_2025_10_29_CLOVER("2025-10-29.clover");

@Getter(onMethod_ = {@Override})
private final String value;
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/com/stripe/service/PayoutService.java
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ public Payout cancel(String payout, PayoutCancelParams params, RequestOptions op
}
/**
* Reverses a payout by debiting the destination bank account. At this time, you can only reverse
* payouts for connected accounts to US bank accounts. If the payout is manual and in the {@code
* pending} status, use {@code /v1/payouts/:id/cancel} instead.
* payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in
* the {@code pending} status, use {@code /v1/payouts/:id/cancel} instead.
*
* <p>By requesting a reversal through {@code /v1/payouts/:id/reverse}, you confirm that the
* authorized signatory of the selected bank account authorizes the debit on the bank account and
Expand All @@ -230,8 +230,8 @@ public Payout reverse(String payout, PayoutReverseParams params) throws StripeEx
}
/**
* Reverses a payout by debiting the destination bank account. At this time, you can only reverse
* payouts for connected accounts to US bank accounts. If the payout is manual and in the {@code
* pending} status, use {@code /v1/payouts/:id/cancel} instead.
* payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in
* the {@code pending} status, use {@code /v1/payouts/:id/cancel} instead.
*
* <p>By requesting a reversal through {@code /v1/payouts/:id/reverse}, you confirm that the
* authorized signatory of the selected bank account authorizes the debit on the bank account and
Expand All @@ -242,8 +242,8 @@ public Payout reverse(String payout, RequestOptions options) throws StripeExcept
}
/**
* Reverses a payout by debiting the destination bank account. At this time, you can only reverse
* payouts for connected accounts to US bank accounts. If the payout is manual and in the {@code
* pending} status, use {@code /v1/payouts/:id/cancel} instead.
* payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in
* the {@code pending} status, use {@code /v1/payouts/:id/cancel} instead.
*
* <p>By requesting a reversal through {@code /v1/payouts/:id/reverse}, you confirm that the
* authorized signatory of the selected bank account authorizes the debit on the bank account and
Expand All @@ -254,8 +254,8 @@ public Payout reverse(String payout) throws StripeException {
}
/**
* Reverses a payout by debiting the destination bank account. At this time, you can only reverse
* payouts for connected accounts to US bank accounts. If the payout is manual and in the {@code
* pending} status, use {@code /v1/payouts/:id/cancel} instead.
* payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in
* the {@code pending} status, use {@code /v1/payouts/:id/cancel} instead.
*
* <p>By requesting a reversal through {@code /v1/payouts/:id/reverse}, you confirm that the
* authorized signatory of the selected bank account authorizes the debit on the bank account and
Expand Down
71 changes: 69 additions & 2 deletions src/test/java/com/stripe/functional/GeneratedExamples.java
Original file line number Diff line number Diff line change
Expand Up @@ -12807,6 +12807,73 @@ public void testPromotionCodesGet2ServicesNonNamespaced() throws StripeException

@Test
public void testPromotionCodesPost() throws StripeException {
PromotionCodeCreateParams params =
PromotionCodeCreateParams.builder()
.setPromotion(
PromotionCodeCreateParams.Promotion.builder()
.setType(PromotionCodeCreateParams.Promotion.Type.COUPON)
.setCoupon("Z4OV52SU")
.build())
.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()
.setPromotion(
com.stripe.param.PromotionCodeCreateParams.Promotion.builder()
.setType(com.stripe.param.PromotionCodeCreateParams.Promotion.Type.COUPON)
.setCoupon("Z4OV52SU")
.build())
.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()
.setPromotion(
com.stripe.param.PromotionCodeCreateParams.Promotion.builder()
.setType(com.stripe.param.PromotionCodeCreateParams.Promotion.Type.COUPON)
.setCoupon("Z4OV52SU")
.build())
.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 @@ -12823,7 +12890,7 @@ public void testPromotionCodesPost() throws StripeException {
}

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

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

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

com.stripe.param.PromotionCodeUpdateParams params =
Expand Down
72 changes: 0 additions & 72 deletions src/test/java/com/stripe/functional/PromotionCodeTest.java

This file was deleted.

Loading