Skip to content

Commit 63f72a9

Browse files
Merge pull request #2092 from stripe/latest-codegen-beta
Update generated code for beta
2 parents f65e5e7 + 4f6c783 commit 63f72a9

14 files changed

+1338
-216
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
577fcb57736b925392ea563c0284df9002c75ac9
1+
5a9ac40aabbc00a67ae2a186633fc8dd64b25c56

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2099
1+
v2103

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ tasks.withType(JavaCompile) {
2929
}
3030

3131
options.fork = true
32-
options.forkOptions.jvmArgs += ['-Xms512M', '-Xmx1g']
32+
options.forkOptions.jvmArgs += ['-Xms512M', '-Xmx4g']
3333

3434
options.release = project.targetCompatibility.majorVersion as Integer
3535

src/main/java/com/stripe/ApiVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
package com.stripe;
33

44
final class ApiVersion {
5-
public static final String CURRENT = "2025-09-30.preview";
5+
public static final String CURRENT = "2025-10-29.preview";
66
}

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

Lines changed: 45 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1709,7 +1709,14 @@ public PaymentIntent verifyMicrodeposits(
17091709
@Setter
17101710
@EqualsAndHashCode(callSuper = false)
17111711
public static class AmountDetails extends StripeObject {
1712-
/** The total discount applied on the transaction. */
1712+
/**
1713+
* The total discount applied on the transaction represented in the <a
1714+
* href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. An integer
1715+
* greater than 0.
1716+
*
1717+
* <p>This field is mutually exclusive with the {@code
1718+
* amount_details[line_items][#][discount_amount]} field.
1719+
*/
17131720
@SerializedName("discount_amount")
17141721
Long discountAmount;
17151722

@@ -1737,15 +1744,25 @@ public static class AmountDetails extends StripeObject {
17371744
@Setter
17381745
@EqualsAndHashCode(callSuper = false)
17391746
public static class Shipping extends StripeObject {
1740-
/** Portion of the amount that is for shipping. */
1747+
/**
1748+
* If a physical good is being shipped, the cost of shipping represented in the <a
1749+
* href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. An
1750+
* integer greater than or equal to 0.
1751+
*/
17411752
@SerializedName("amount")
17421753
Long amount;
17431754

1744-
/** The postal code that represents the shipping source. */
1755+
/**
1756+
* If a physical good is being shipped, the postal code of where it is being shipped from. At
1757+
* most 10 alphanumeric characters long, hyphens are allowed.
1758+
*/
17451759
@SerializedName("from_postal_code")
17461760
String fromPostalCode;
17471761

1748-
/** The postal code that represents the shipping destination. */
1762+
/**
1763+
* If a physical good is being shipped, the postal code of where it is being shipped to. At
1764+
* most 10 alphanumeric characters long, hyphens are allowed.
1765+
*/
17491766
@SerializedName("to_postal_code")
17501767
String toPostalCode;
17511768
}
@@ -1758,7 +1775,14 @@ public static class Shipping extends StripeObject {
17581775
@Setter
17591776
@EqualsAndHashCode(callSuper = false)
17601777
public static class Tax extends StripeObject {
1761-
/** Total portion of the amount that is for tax. */
1778+
/**
1779+
* The total amount of tax on the transaction represented in the <a
1780+
* href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. Required
1781+
* for L2 rates. An integer greater than or equal to 0.
1782+
*
1783+
* <p>This field is mutually exclusive with the {@code
1784+
* amount_details[line_items][#][tax][total_tax_amount]} field.
1785+
*/
17621786
@SerializedName("total_tax_amount")
17631787
Long totalTaxAmount;
17641788
}
@@ -2790,16 +2814,29 @@ public static class PaymentDetails extends StripeObject {
27902814
CarRental carRental;
27912815

27922816
/**
2793-
* Some customers might be required by their company or organization to provide this
2794-
* information. If so, provide this value. Otherwise you can ignore this field.
2817+
* A unique value to identify the customer. This field is available only for card payments.
2818+
*
2819+
* <p>This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent
2820+
* to card networks.
27952821
*/
27962822
@SerializedName("customer_reference")
27972823
String customerReference;
27982824

27992825
@SerializedName("event_details")
28002826
EventDetails eventDetails;
28012827

2802-
/** A unique value assigned by the business to identify the transaction. */
2828+
/**
2829+
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
2830+
* rates.
2831+
*
2832+
* <p>Required when the Payment Method Types array contains {@code card}, including when <a
2833+
* href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
2834+
* is set to {@code true}.
2835+
*
2836+
* <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before
2837+
* being sent to card networks. For Klarna, this field is truncated to 255 characters and is
2838+
* visible to customers when they view the order in the Klarna app.
2839+
*/
28032840
@SerializedName("order_reference")
28042841
String orderReference;
28052842

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

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@
1919
@Setter
2020
@EqualsAndHashCode(callSuper = false)
2121
public class PaymentIntentAmountDetailsLineItem extends ApiResource implements HasId {
22-
/** The amount an item was discounted for. Positive integer. */
22+
/**
23+
* The discount applied on this line item represented in the <a
24+
* href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. An integer
25+
* greater than 0.
26+
*
27+
* <p>This field is mutually exclusive with the {@code amount_details[discount_amount]} field.
28+
*/
2329
@SerializedName("discount_amount")
2430
Long discountAmount;
2531

@@ -40,27 +46,42 @@ public class PaymentIntentAmountDetailsLineItem extends ApiResource implements H
4046
@SerializedName("payment_method_options")
4147
PaymentMethodOptions paymentMethodOptions;
4248

43-
/** Unique identifier of the product. At most 12 characters long. */
49+
/**
50+
* The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters
51+
* long.
52+
*/
4453
@SerializedName("product_code")
4554
String productCode;
4655

47-
/** Name of the product. At most 100 characters long. */
56+
/**
57+
* The product name of the line item. Required for L3 rates. At most 1024 characters long.
58+
*
59+
* <p>For Cards, this field is truncated to 26 alphanumeric characters before being sent to the
60+
* card networks. For Paypal, this field is truncated to 127 characters.
61+
*/
4862
@SerializedName("product_name")
4963
String productName;
5064

51-
/** Number of items of the product. Positive integer. */
65+
/** The quantity of items. Required for L3 rates. An integer greater than 0. */
5266
@SerializedName("quantity")
5367
Long quantity;
5468

5569
/** Contains information about the tax on the item. */
5670
@SerializedName("tax")
5771
Tax tax;
5872

59-
/** Cost of the product. Non-negative integer. */
73+
/**
74+
* The unit cost of the line item represented in the <a
75+
* href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. Required for
76+
* L3 rates. An integer greater than or equal to 0.
77+
*/
6078
@SerializedName("unit_cost")
6179
Long unitCost;
6280

63-
/** A unit of measure for the line item, such as gallons, feet, meters, etc. */
81+
/**
82+
* A unit of measure for the line item, such as gallons, feet, meters, etc. Required for L3 rates.
83+
* At most 12 alphanumeric characters long.
84+
*/
6485
@SerializedName("unit_of_measure")
6586
String unitOfMeasure;
6687

@@ -211,7 +232,14 @@ public static class Paypal extends StripeObject {
211232
@Setter
212233
@EqualsAndHashCode(callSuper = false)
213234
public static class Tax extends StripeObject {
214-
/** Total portion of the amount that is for tax. */
235+
/**
236+
* The total amount of tax on the transaction represented in the <a
237+
* href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. Required
238+
* for L2 rates. An integer greater than or equal to 0.
239+
*
240+
* <p>This field is mutually exclusive with the {@code
241+
* amount_details[line_items][#][tax][total_tax_amount]} field.
242+
*/
215243
@SerializedName("total_tax_amount")
216244
Long totalTaxAmount;
217245
}

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

Lines changed: 48 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,10 @@ public static class PaymentDetails {
307307
CarRental carRental;
308308

309309
/**
310-
* Some customers might be required by their company or organization to provide this
311-
* information. If so, provide this value. Otherwise you can ignore this field.
310+
* A unique value to identify the customer. This field is available only for card payments.
311+
*
312+
* <p>This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent
313+
* to card networks.
312314
*/
313315
@SerializedName("customer_reference")
314316
Object customerReference;
@@ -334,7 +336,18 @@ public static class PaymentDetails {
334336
@SerializedName("lodging")
335337
Lodging lodging;
336338

337-
/** A unique value assigned by the business to identify the transaction. */
339+
/**
340+
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
341+
* rates.
342+
*
343+
* <p>Required when the Payment Method Types array contains {@code card}, including when <a
344+
* href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
345+
* is set to {@code true}.
346+
*
347+
* <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before
348+
* being sent to card networks. For Klarna, this field is truncated to 255 characters and is
349+
* visible to customers when they view the order in the Klarna app.
350+
*/
338351
@SerializedName("order_reference")
339352
Object orderReference;
340353

@@ -402,17 +415,21 @@ public Builder setCarRental(ChargeCaptureParams.PaymentDetails.CarRental carRent
402415
}
403416

404417
/**
405-
* Some customers might be required by their company or organization to provide this
406-
* information. If so, provide this value. Otherwise you can ignore this field.
418+
* A unique value to identify the customer. This field is available only for card payments.
419+
*
420+
* <p>This field is truncated to 25 alphanumeric characters, excluding spaces, before being
421+
* sent to card networks.
407422
*/
408423
public Builder setCustomerReference(String customerReference) {
409424
this.customerReference = customerReference;
410425
return this;
411426
}
412427

413428
/**
414-
* Some customers might be required by their company or organization to provide this
415-
* information. If so, provide this value. Otherwise you can ignore this field.
429+
* A unique value to identify the customer. This field is available only for card payments.
430+
*
431+
* <p>This field is truncated to 25 alphanumeric characters, excluding spaces, before being
432+
* sent to card networks.
416433
*/
417434
public Builder setCustomerReference(EmptyParam customerReference) {
418435
this.customerReference = customerReference;
@@ -463,13 +480,35 @@ public Builder setLodging(ChargeCaptureParams.PaymentDetails.Lodging lodging) {
463480
return this;
464481
}
465482

466-
/** A unique value assigned by the business to identify the transaction. */
483+
/**
484+
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
485+
* rates.
486+
*
487+
* <p>Required when the Payment Method Types array contains {@code card}, including when <a
488+
* href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
489+
* is set to {@code true}.
490+
*
491+
* <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces,
492+
* before being sent to card networks. For Klarna, this field is truncated to 255 characters
493+
* and is visible to customers when they view the order in the Klarna app.
494+
*/
467495
public Builder setOrderReference(String orderReference) {
468496
this.orderReference = orderReference;
469497
return this;
470498
}
471499

472-
/** A unique value assigned by the business to identify the transaction. */
500+
/**
501+
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
502+
* rates.
503+
*
504+
* <p>Required when the Payment Method Types array contains {@code card}, including when <a
505+
* href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
506+
* is set to {@code true}.
507+
*
508+
* <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces,
509+
* before being sent to card networks. For Klarna, this field is truncated to 255 characters
510+
* and is visible to customers when they view the order in the Klarna app.
511+
*/
473512
public Builder setOrderReference(EmptyParam orderReference) {
474513
this.orderReference = orderReference;
475514
return this;

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

Lines changed: 48 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,10 @@ public static class PaymentDetails {
454454
CarRental carRental;
455455

456456
/**
457-
* Some customers might be required by their company or organization to provide this
458-
* information. If so, provide this value. Otherwise you can ignore this field.
457+
* A unique value to identify the customer. This field is available only for card payments.
458+
*
459+
* <p>This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent
460+
* to card networks.
459461
*/
460462
@SerializedName("customer_reference")
461463
Object customerReference;
@@ -481,7 +483,18 @@ public static class PaymentDetails {
481483
@SerializedName("lodging")
482484
Lodging lodging;
483485

484-
/** A unique value assigned by the business to identify the transaction. */
486+
/**
487+
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
488+
* rates.
489+
*
490+
* <p>Required when the Payment Method Types array contains {@code card}, including when <a
491+
* href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
492+
* is set to {@code true}.
493+
*
494+
* <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before
495+
* being sent to card networks. For Klarna, this field is truncated to 255 characters and is
496+
* visible to customers when they view the order in the Klarna app.
497+
*/
485498
@SerializedName("order_reference")
486499
Object orderReference;
487500

@@ -549,17 +562,21 @@ public Builder setCarRental(ChargeUpdateParams.PaymentDetails.CarRental carRenta
549562
}
550563

551564
/**
552-
* Some customers might be required by their company or organization to provide this
553-
* information. If so, provide this value. Otherwise you can ignore this field.
565+
* A unique value to identify the customer. This field is available only for card payments.
566+
*
567+
* <p>This field is truncated to 25 alphanumeric characters, excluding spaces, before being
568+
* sent to card networks.
554569
*/
555570
public Builder setCustomerReference(String customerReference) {
556571
this.customerReference = customerReference;
557572
return this;
558573
}
559574

560575
/**
561-
* Some customers might be required by their company or organization to provide this
562-
* information. If so, provide this value. Otherwise you can ignore this field.
576+
* A unique value to identify the customer. This field is available only for card payments.
577+
*
578+
* <p>This field is truncated to 25 alphanumeric characters, excluding spaces, before being
579+
* sent to card networks.
563580
*/
564581
public Builder setCustomerReference(EmptyParam customerReference) {
565582
this.customerReference = customerReference;
@@ -610,13 +627,35 @@ public Builder setLodging(ChargeUpdateParams.PaymentDetails.Lodging lodging) {
610627
return this;
611628
}
612629

613-
/** A unique value assigned by the business to identify the transaction. */
630+
/**
631+
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
632+
* rates.
633+
*
634+
* <p>Required when the Payment Method Types array contains {@code card}, including when <a
635+
* href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
636+
* is set to {@code true}.
637+
*
638+
* <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces,
639+
* before being sent to card networks. For Klarna, this field is truncated to 255 characters
640+
* and is visible to customers when they view the order in the Klarna app.
641+
*/
614642
public Builder setOrderReference(String orderReference) {
615643
this.orderReference = orderReference;
616644
return this;
617645
}
618646

619-
/** A unique value assigned by the business to identify the transaction. */
647+
/**
648+
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
649+
* rates.
650+
*
651+
* <p>Required when the Payment Method Types array contains {@code card}, including when <a
652+
* href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
653+
* is set to {@code true}.
654+
*
655+
* <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces,
656+
* before being sent to card networks. For Klarna, this field is truncated to 255 characters
657+
* and is visible to customers when they view the order in the Klarna app.
658+
*/
620659
public Builder setOrderReference(EmptyParam orderReference) {
621660
this.orderReference = orderReference;
622661
return this;

0 commit comments

Comments
 (0)