Skip to content

Commit 0f9813d

Browse files
Update generated code for v2138 and
1 parent c875b1e commit 0f9813d

33 files changed

+2038
-26
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6bb77d9eff2b7823591e32903b9e33b0ffe58c36
1+
871b39e6175f9f90f8b11ecf1b61a91eb727dfb7

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2134
1+
v2138

src/main/java/com/stripe/StripeClient.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,17 @@ public com.stripe.service.ReportingService reporting() {
804804
return new com.stripe.service.ReportingService(this.getResponseGetter());
805805
}
806806

807+
/**
808+
* @deprecated StripeClient.reserve() is deprecated, use StripeClient.v1().reserve() instead. All
809+
* functionality under it has been copied over to StripeClient.v1().reserve(). See <a
810+
* href="https://github.com/stripe/stripe-java/wiki/v1-namespace-in-StripeClient">migration
811+
* guide</a> for more on this and tips on migrating to the new v1 namespace.
812+
*/
813+
@Deprecated
814+
public com.stripe.service.ReserveService reserve() {
815+
return new com.stripe.service.ReserveService(this.getResponseGetter());
816+
}
817+
807818
/**
808819
* @deprecated StripeClient.reviews() is deprecated, use StripeClient.v1().reviews() instead. All
809820
* functionality under it has been copied over to StripeClient.v1().reviews(). See <a

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,6 +1430,12 @@ public static class AcssDebit extends StripeObject {
14301430
@SerializedName("bank_name")
14311431
String bankName;
14321432

1433+
/**
1434+
* Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
1435+
*/
1436+
@SerializedName("expected_debit_date")
1437+
String expectedDebitDate;
1438+
14331439
/**
14341440
* Uniquely identifies this particular bank account. You can use this attribute to check
14351441
* whether two bank accounts are the same.
@@ -1653,6 +1659,12 @@ public static class AuBecsDebit extends StripeObject {
16531659
@SerializedName("bsb_number")
16541660
String bsbNumber;
16551661

1662+
/**
1663+
* Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
1664+
*/
1665+
@SerializedName("expected_debit_date")
1666+
String expectedDebitDate;
1667+
16561668
/**
16571669
* Uniquely identifies this particular bank account. You can use this attribute to check
16581670
* whether two bank accounts are the same.
@@ -1677,6 +1689,12 @@ public static class AuBecsDebit extends StripeObject {
16771689
@Setter
16781690
@EqualsAndHashCode(callSuper = false)
16791691
public static class BacsDebit extends StripeObject {
1692+
/**
1693+
* Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
1694+
*/
1695+
@SerializedName("expected_debit_date")
1696+
String expectedDebitDate;
1697+
16801698
/**
16811699
* Uniquely identifies this particular bank account. You can use this attribute to check
16821700
* whether two bank accounts are the same.
@@ -3522,6 +3540,12 @@ public static class NzBankAccount extends StripeObject {
35223540
@SerializedName("branch_code")
35233541
String branchCode;
35243542

3543+
/**
3544+
* Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
3545+
*/
3546+
@SerializedName("expected_debit_date")
3547+
String expectedDebitDate;
3548+
35253549
/** Last four digits of the bank account number. */
35263550
@SerializedName("last4")
35273551
String last4;
@@ -3972,6 +3996,12 @@ public static class SepaDebit extends StripeObject {
39723996
@SerializedName("country")
39733997
String country;
39743998

3999+
/**
4000+
* Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
4001+
*/
4002+
@SerializedName("expected_debit_date")
4003+
String expectedDebitDate;
4004+
39754005
/**
39764006
* Uniquely identifies this particular bank account. You can use this attribute to check
39774007
* whether two bank accounts are the same.
@@ -4194,6 +4224,12 @@ public static class UsBankAccount extends StripeObject {
41944224
@SerializedName("bank_name")
41954225
String bankName;
41964226

4227+
/**
4228+
* Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
4229+
*/
4230+
@SerializedName("expected_debit_date")
4231+
String expectedDebitDate;
4232+
41974233
/**
41984234
* Uniquely identifies this particular bank account. You can use this attribute to check
41994235
* whether two bank accounts are the same.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ public final class EventDataClassLookup {
212212
classLookup.put("reporting.report_run", com.stripe.model.reporting.ReportRun.class);
213213
classLookup.put("reporting.report_type", com.stripe.model.reporting.ReportType.class);
214214

215+
classLookup.put("reserve.hold", com.stripe.model.reserve.Hold.class);
216+
classLookup.put("reserve.plan", com.stripe.model.reserve.Plan.class);
217+
classLookup.put("reserve.release", com.stripe.model.reserve.Release.class);
218+
215219
classLookup.put("scheduled_query_run", com.stripe.model.sigma.ScheduledQueryRun.class);
216220

217221
classLookup.put("tax.association", com.stripe.model.tax.Association.class);

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

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,11 +625,31 @@ public static class Pricing extends StripeObject {
625625
public static class PriceDetails extends StripeObject {
626626
/** The ID of the price this item is associated with. */
627627
@SerializedName("price")
628-
String price;
628+
@Getter(lombok.AccessLevel.NONE)
629+
@Setter(lombok.AccessLevel.NONE)
630+
ExpandableField<Price> price;
629631

630632
/** The ID of the product this item is associated with. */
631633
@SerializedName("product")
632634
String product;
635+
636+
/** Get ID of expandable {@code price} object. */
637+
public String getPrice() {
638+
return (this.price != null) ? this.price.getId() : null;
639+
}
640+
641+
public void setPrice(String id) {
642+
this.price = ApiResource.setExpandableFieldId(id, this.price);
643+
}
644+
645+
/** Get expanded {@code price}. */
646+
public Price getPriceObject() {
647+
return (this.price != null) ? this.price.getExpanded() : null;
648+
}
649+
650+
public void setPriceObject(Price expandableObject) {
651+
this.price = new ExpandableField<Price>(expandableObject.getId(), expandableObject);
652+
}
633653
}
634654
}
635655

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

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,11 +681,31 @@ public static class Pricing extends StripeObject {
681681
public static class PriceDetails extends StripeObject {
682682
/** The ID of the price this item is associated with. */
683683
@SerializedName("price")
684-
String price;
684+
@Getter(lombok.AccessLevel.NONE)
685+
@Setter(lombok.AccessLevel.NONE)
686+
ExpandableField<Price> price;
685687

686688
/** The ID of the product this item is associated with. */
687689
@SerializedName("product")
688690
String product;
691+
692+
/** Get ID of expandable {@code price} object. */
693+
public String getPrice() {
694+
return (this.price != null) ? this.price.getId() : null;
695+
}
696+
697+
public void setPrice(String id) {
698+
this.price = ApiResource.setExpandableFieldId(id, this.price);
699+
}
700+
701+
/** Get expanded {@code price}. */
702+
public Price getPriceObject() {
703+
return (this.price != null) ? this.price.getExpanded() : null;
704+
}
705+
706+
public void setPriceObject(Price expandableObject) {
707+
this.price = new ExpandableField<Price>(expandableObject.getId(), expandableObject);
708+
}
689709
}
690710
}
691711

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,12 @@ public static class AcssDebit extends StripeObject {
681681
@SerializedName("bank_name")
682682
String bankName;
683683

684+
/**
685+
* Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
686+
*/
687+
@SerializedName("expected_debit_date")
688+
String expectedDebitDate;
689+
684690
/**
685691
* Uniquely identifies this particular bank account. You can use this attribute to check
686692
* whether two bank accounts are the same.
@@ -904,6 +910,12 @@ public static class AuBecsDebit extends StripeObject {
904910
@SerializedName("bsb_number")
905911
String bsbNumber;
906912

913+
/**
914+
* Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
915+
*/
916+
@SerializedName("expected_debit_date")
917+
String expectedDebitDate;
918+
907919
/**
908920
* Uniquely identifies this particular bank account. You can use this attribute to check
909921
* whether two bank accounts are the same.
@@ -928,6 +940,12 @@ public static class AuBecsDebit extends StripeObject {
928940
@Setter
929941
@EqualsAndHashCode(callSuper = false)
930942
public static class BacsDebit extends StripeObject {
943+
/**
944+
* Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
945+
*/
946+
@SerializedName("expected_debit_date")
947+
String expectedDebitDate;
948+
931949
/**
932950
* Uniquely identifies this particular bank account. You can use this attribute to check
933951
* whether two bank accounts are the same.
@@ -2520,6 +2538,12 @@ public static class NzBankAccount extends StripeObject {
25202538
@SerializedName("branch_code")
25212539
String branchCode;
25222540

2541+
/**
2542+
* Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
2543+
*/
2544+
@SerializedName("expected_debit_date")
2545+
String expectedDebitDate;
2546+
25232547
/** Last four digits of the bank account number. */
25242548
@SerializedName("last4")
25252549
String last4;
@@ -2970,6 +2994,12 @@ public static class SepaDebit extends StripeObject {
29702994
@SerializedName("country")
29712995
String country;
29722996

2997+
/**
2998+
* Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
2999+
*/
3000+
@SerializedName("expected_debit_date")
3001+
String expectedDebitDate;
3002+
29733003
/**
29743004
* Uniquely identifies this particular bank account. You can use this attribute to check
29753005
* whether two bank accounts are the same.
@@ -3192,6 +3222,12 @@ public static class UsBankAccount extends StripeObject {
31923222
@SerializedName("bank_name")
31933223
String bankName;
31943224

3225+
/**
3226+
* Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
3227+
*/
3228+
@SerializedName("expected_debit_date")
3229+
String expectedDebitDate;
3230+
31953231
/**
31963232
* Uniquely identifies this particular bank account. You can use this attribute to check
31973233
* whether two bank accounts are the same.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
* particular session.
3636
*
3737
* <p>A PaymentIntent transitions through <a
38-
* href="https://docs.stripe.com/payments/intents#intent-statuses">multiple statuses</a> throughout
39-
* its lifetime as it interfaces with Stripe.js to perform authentication flows and ultimately
40-
* creates at most one successful charge.
38+
* href="https://stripe.com/payments/paymentintents/lifecycle">multiple statuses</a> throughout its
39+
* lifetime as it interfaces with Stripe.js to perform authentication flows and ultimately creates
40+
* at most one successful charge.
4141
*
4242
* <p>Related guide: <a href="https://docs.stripe.com/payments/payment-intents">Payment Intents
4343
* API</a>
@@ -1726,7 +1726,7 @@ public static class AmountDetails extends StripeObject {
17261726

17271727
/**
17281728
* A list of line items, each containing information about a product in the PaymentIntent. There
1729-
* is a maximum of 100 line items.
1729+
* is a maximum of 200 line items.
17301730
*/
17311731
@SerializedName("line_items")
17321732
PaymentIntentAmountDetailsLineItemCollection lineItems;

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,12 @@ public static class AcssDebit extends StripeObject {
983983
@SerializedName("bank_name")
984984
String bankName;
985985

986+
/**
987+
* Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
988+
*/
989+
@SerializedName("expected_debit_date")
990+
String expectedDebitDate;
991+
986992
/**
987993
* Uniquely identifies this particular bank account. You can use this attribute to check
988994
* whether two bank accounts are the same.
@@ -1206,6 +1212,12 @@ public static class AuBecsDebit extends StripeObject {
12061212
@SerializedName("bsb_number")
12071213
String bsbNumber;
12081214

1215+
/**
1216+
* Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
1217+
*/
1218+
@SerializedName("expected_debit_date")
1219+
String expectedDebitDate;
1220+
12091221
/**
12101222
* Uniquely identifies this particular bank account. You can use this attribute to check
12111223
* whether two bank accounts are the same.
@@ -1230,6 +1242,12 @@ public static class AuBecsDebit extends StripeObject {
12301242
@Setter
12311243
@EqualsAndHashCode(callSuper = false)
12321244
public static class BacsDebit extends StripeObject {
1245+
/**
1246+
* Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
1247+
*/
1248+
@SerializedName("expected_debit_date")
1249+
String expectedDebitDate;
1250+
12331251
/**
12341252
* Uniquely identifies this particular bank account. You can use this attribute to check
12351253
* whether two bank accounts are the same.
@@ -2821,6 +2839,12 @@ public static class NzBankAccount extends StripeObject {
28212839
@SerializedName("branch_code")
28222840
String branchCode;
28232841

2842+
/**
2843+
* Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
2844+
*/
2845+
@SerializedName("expected_debit_date")
2846+
String expectedDebitDate;
2847+
28242848
/** Last four digits of the bank account number. */
28252849
@SerializedName("last4")
28262850
String last4;
@@ -3271,6 +3295,12 @@ public static class SepaDebit extends StripeObject {
32713295
@SerializedName("country")
32723296
String country;
32733297

3298+
/**
3299+
* Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
3300+
*/
3301+
@SerializedName("expected_debit_date")
3302+
String expectedDebitDate;
3303+
32743304
/**
32753305
* Uniquely identifies this particular bank account. You can use this attribute to check
32763306
* whether two bank accounts are the same.
@@ -3493,6 +3523,12 @@ public static class UsBankAccount extends StripeObject {
34933523
@SerializedName("bank_name")
34943524
String bankName;
34953525

3526+
/**
3527+
* Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
3528+
*/
3529+
@SerializedName("expected_debit_date")
3530+
String expectedDebitDate;
3531+
34963532
/**
34973533
* Uniquely identifies this particular bank account. You can use this attribute to check
34983534
* whether two bank accounts are the same.

0 commit comments

Comments
 (0)