Skip to content

Commit 5f08bbf

Browse files
Merge pull request #2122 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents 281a199 + 208cef8 commit 5f08bbf

22 files changed

+742
-103
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
368be7755d15d02a1038325c7d159703b01662b0
1+
1307ab81356642fb1bf890524815d5cb6997a34d

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2129
1+
v2132

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ jar {
9999
"Implementation-Version": VERSION_NAME,
100100
"Implementation-Vendor": VENDOR_NAME,
101101
"Bundle-SymbolicName": POM_ARTIFACT_ID,
102-
"Export-Package": "com.stripe.*")
102+
"Export-Package": "com.stripe.*",
103+
"Automatic-Module-Name": "stripe.java")
103104

104105
archiveVersion = VERSION_NAME
105106
}

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,14 @@ public static class Components extends StripeObject {
144144
@SerializedName("capital_financing_promotion")
145145
CapitalFinancingPromotion capitalFinancingPromotion;
146146

147+
/**
148+
* Configuration for the <a
149+
* href="https://stripe.com/connect/supported-embedded-components/check-scanning/">check
150+
* scanning</a> embedded component.
151+
*/
152+
@SerializedName("check_scanning")
153+
CheckScanning checkScanning;
154+
147155
@SerializedName("disputes_list")
148156
DisputesList disputesList;
149157

@@ -423,6 +431,31 @@ public static class CapitalFinancingPromotion extends StripeObject {
423431
public static class Features extends StripeObject {}
424432
}
425433

434+
/**
435+
* For more details about CheckScanning, please refer to the <a
436+
* href="https://docs.stripe.com/api">API Reference.</a>
437+
*/
438+
@Getter
439+
@Setter
440+
@EqualsAndHashCode(callSuper = false)
441+
public static class CheckScanning extends StripeObject {
442+
/** Whether the embedded component is enabled. */
443+
@SerializedName("enabled")
444+
Boolean enabled;
445+
446+
@SerializedName("features")
447+
Features features;
448+
449+
/**
450+
* For more details about Features, please refer to the <a
451+
* href="https://docs.stripe.com/api">API Reference.</a>
452+
*/
453+
@Getter
454+
@Setter
455+
@EqualsAndHashCode(callSuper = false)
456+
public static class Features extends StripeObject {}
457+
}
458+
426459
/**
427460
* For more details about DisputesList, please refer to the <a
428461
* href="https://docs.stripe.com/api">API Reference.</a>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ public static class Errors extends StripeObject {
850850
@Setter
851851
@EqualsAndHashCode(callSuper = false)
852852
public static class SelfReportedIncome extends StripeObject {
853-
/** Amount in the minor currency unit (e.g., cents for USD). */
853+
/** The amount in the minor currency unit (for example, cents for USD). */
854854
@SerializedName("amount")
855855
Long amount;
856856

@@ -871,7 +871,7 @@ public static class SelfReportedIncome extends StripeObject {
871871
@Setter
872872
@EqualsAndHashCode(callSuper = false)
873873
public static class SelfReportedMonthlyHousingPayment extends StripeObject {
874-
/** Amount in the minor currency unit (e.g., cents for USD). */
874+
/** The amount in the minor currency unit (for example, cents for USD). */
875875
@SerializedName("amount")
876876
Long amount;
877877

src/main/java/com/stripe/model/delegatedcheckout/RequestedSession.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,10 @@ public static class Address extends StripeObject {
420420
@SerializedName("postal_code")
421421
String postalCode;
422422

423-
/** State, county, province, or region. */
423+
/**
424+
* State, county, province, or region (<a href="https://en.wikipedia.org/wiki/ISO_3166-2">ISO
425+
* 3166-2</a>).
426+
*/
424427
@SerializedName("state")
425428
String state;
426429
}
@@ -657,7 +660,10 @@ public static class Address extends StripeObject {
657660
@SerializedName("postal_code")
658661
String postalCode;
659662

660-
/** State, county, province, or region. */
663+
/**
664+
* State, county, province, or region (<a
665+
* href="https://en.wikipedia.org/wiki/ISO_3166-2">ISO 3166-2</a>).
666+
*/
661667
@SerializedName("state")
662668
String state;
663669
}

src/main/java/com/stripe/model/v2/core/Event.java

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ public static class Reason extends StripeObject {
161161
@Setter
162162
@EqualsAndHashCode(callSuper = false)
163163
public static class Request extends StripeObject implements HasId {
164+
/** The client details that made the request. */
165+
@SerializedName("client")
166+
Client client;
167+
164168
/** ID of the API request that caused the event. */
165169
@Getter(onMethod_ = {@Override})
166170
@SerializedName("id")
@@ -169,6 +173,61 @@ public static class Request extends StripeObject implements HasId {
169173
/** The idempotency key transmitted during the request. */
170174
@SerializedName("idempotency_key")
171175
String idempotencyKey;
176+
177+
/** The client details that made the request. */
178+
@Getter
179+
@Setter
180+
@EqualsAndHashCode(callSuper = false)
181+
public static class Client extends StripeObject {
182+
/** API key that triggered the event. */
183+
@SerializedName("api_key")
184+
ApiKey apiKey;
185+
186+
/** Dashboard user that triggered the event. */
187+
@SerializedName("dashboard_user")
188+
DashboardUser dashboardUser;
189+
190+
/** Stripe action that triggered the event. */
191+
@SerializedName("stripe_action")
192+
Map<String, Object> stripeAction;
193+
194+
/**
195+
* The type of the client.
196+
*
197+
* <p>One of {@code api_key}, {@code dashboard_user}, or {@code stripe_action}.
198+
*/
199+
@SerializedName("type")
200+
String type;
201+
202+
/** API key that triggered the event. */
203+
@Getter
204+
@Setter
205+
@EqualsAndHashCode(callSuper = false)
206+
public static class ApiKey extends StripeObject implements HasId {
207+
/** The ID of the API key. */
208+
@Getter(onMethod_ = {@Override})
209+
@SerializedName("id")
210+
String id;
211+
}
212+
213+
/** Dashboard user that triggered the event. */
214+
@Getter
215+
@Setter
216+
@EqualsAndHashCode(callSuper = false)
217+
public static class DashboardUser extends StripeObject {
218+
/** The email of the dashboard user. */
219+
@SerializedName("email")
220+
String email;
221+
222+
/** The IP address of the user. */
223+
@SerializedName("ip_address")
224+
String ipAddress;
225+
226+
/** The machine identifier of the user. */
227+
@SerializedName("machine_identifier")
228+
String machineIdentifier;
229+
}
230+
}
172231
}
173232
}
174233
}

src/main/java/com/stripe/model/v2/moneymanagement/ReceivedCredit.java

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,18 @@ public class ReceivedCredit extends StripeObject implements HasId {
101101
@SerializedName("status_transitions")
102102
StatusTransitions statusTransitions;
103103

104+
/**
105+
* This object stores details about the stripe balance pay refund that resulted in the
106+
* ReceivedCredit. Present if {@code type} field value is {@code stripe_balance_payment}.
107+
*/
108+
@SerializedName("stripe_balance_payment")
109+
StripeBalancePayment stripeBalancePayment;
110+
104111
/**
105112
* Open Enum. The type of flow that caused the ReceivedCredit.
106113
*
107-
* <p>One of {@code balance_transfer}, {@code bank_transfer}, or {@code external_credit}.
114+
* <p>One of {@code balance_transfer}, {@code bank_transfer}, {@code external_credit}, or {@code
115+
* stripe_balance_payment}.
108116
*/
109117
@SerializedName("type")
110118
String type;
@@ -416,4 +424,17 @@ public static class StatusTransitions extends StripeObject {
416424
@SerializedName("succeeded_at")
417425
Instant succeededAt;
418426
}
427+
428+
/**
429+
* This object stores details about the stripe balance pay refund that resulted in the
430+
* ReceivedCredit. Present if {@code type} field value is {@code stripe_balance_payment}.
431+
*/
432+
@Getter
433+
@Setter
434+
@EqualsAndHashCode(callSuper = false)
435+
public static class StripeBalancePayment extends StripeObject {
436+
/** Statement descriptor for the Stripe Balance Payment. */
437+
@SerializedName("statement_descriptor")
438+
String statementDescriptor;
439+
}
419440
}

src/main/java/com/stripe/model/v2/moneymanagement/ReceivedDebit.java

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ public class ReceivedDebit extends StripeObject implements HasId {
1818
@SerializedName("amount")
1919
Amount amount;
2020

21+
/**
22+
* This object stores details about the balance transfer object that resulted in the
23+
* ReceivedDebit.
24+
*/
25+
@SerializedName("balance_transfer")
26+
BalanceTransfer balanceTransfer;
27+
2128
/**
2229
* This object stores details about the originating banking transaction that resulted in the
2330
* ReceivedDebit. Present if {@code type} field value is {@code bank_transfer}.
@@ -87,9 +94,16 @@ public class ReceivedDebit extends StripeObject implements HasId {
8794
StatusTransitions statusTransitions;
8895

8996
/**
90-
* Open Enum. The type of the ReceivedDebit.
97+
* This object stores details about the Stripe Balance Payment that resulted in the ReceivedDebit.
98+
*/
99+
@SerializedName("stripe_balance_payment")
100+
StripeBalancePayment stripeBalancePayment;
101+
102+
/**
103+
* Open enum, the type of the received debit.
91104
*
92-
* <p>One of {@code bank_transfer}, or {@code external_debit}.
105+
* <p>One of {@code balance_transfer}, {@code bank_transfer}, {@code external_debit}, or {@code
106+
* stripe_balance_payment}.
93107
*/
94108
@SerializedName("type")
95109
String type;
@@ -115,6 +129,27 @@ public static class Amount extends StripeObject {
115129
Long value;
116130
}
117131

132+
/**
133+
* This object stores details about the balance transfer object that resulted in the
134+
* ReceivedDebit.
135+
*/
136+
@Getter
137+
@Setter
138+
@EqualsAndHashCode(callSuper = false)
139+
public static class BalanceTransfer extends StripeObject {
140+
/** The ID of the topup object that originated the ReceivedDebit. */
141+
@SerializedName("topup")
142+
String topup;
143+
144+
/**
145+
* Open Enum. The type of balance transfer that originated the ReceivedDebit.
146+
*
147+
* <p>Equal to {@code topup}.
148+
*/
149+
@SerializedName("type")
150+
String type;
151+
}
152+
118153
/**
119154
* This object stores details about the originating banking transaction that resulted in the
120155
* ReceivedDebit. Present if {@code type} field value is {@code bank_transfer}.
@@ -254,4 +289,20 @@ public static class StatusTransitions extends StripeObject {
254289
@SerializedName("succeeded_at")
255290
Instant succeededAt;
256291
}
292+
293+
/**
294+
* This object stores details about the Stripe Balance Payment that resulted in the ReceivedDebit.
295+
*/
296+
@Getter
297+
@Setter
298+
@EqualsAndHashCode(callSuper = false)
299+
public static class StripeBalancePayment extends StripeObject {
300+
/** ID of the debit agreement associated with this payment. */
301+
@SerializedName("debit_agreement")
302+
String debitAgreement;
303+
304+
/** Statement descriptor for the Stripe Balance Payment. */
305+
@SerializedName("statement_descriptor")
306+
String statementDescriptor;
307+
}
257308
}

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

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13521,11 +13521,18 @@ public Builder setTitle(String title) {
1352113521
@Getter
1352213522
@EqualsAndHashCode(callSuper = false)
1352313523
public static class SelfReportedIncome {
13524-
/** <strong>Required.</strong> */
13524+
/**
13525+
* <strong>Required.</strong> The amount in the minor currency unit (for example, cents for
13526+
* USD).
13527+
*/
1352513528
@SerializedName("amount")
1352613529
Long amount;
1352713530

13528-
/** <strong>Required.</strong> */
13531+
/**
13532+
* <strong>Required.</strong> Three-letter <a
13533+
* href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in
13534+
* lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
13535+
*/
1352913536
@SerializedName("currency")
1353013537
String currency;
1353113538

@@ -13561,13 +13568,20 @@ public AccountCreateParams.Individual.SelfReportedIncome build() {
1356113568
this.amount, this.currency, this.extraParams);
1356213569
}
1356313570

13564-
/** <strong>Required.</strong> */
13571+
/**
13572+
* <strong>Required.</strong> The amount in the minor currency unit (for example, cents for
13573+
* USD).
13574+
*/
1356513575
public Builder setAmount(Long amount) {
1356613576
this.amount = amount;
1356713577
return this;
1356813578
}
1356913579

13570-
/** <strong>Required.</strong> */
13580+
/**
13581+
* <strong>Required.</strong> Three-letter <a
13582+
* href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in
13583+
* lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
13584+
*/
1357113585
public Builder setCurrency(String currency) {
1357213586
this.currency = currency;
1357313587
return this;
@@ -13606,11 +13620,18 @@ public Builder putAllExtraParam(Map<String, Object> map) {
1360613620
@Getter
1360713621
@EqualsAndHashCode(callSuper = false)
1360813622
public static class SelfReportedMonthlyHousingPayment {
13609-
/** <strong>Required.</strong> */
13623+
/**
13624+
* <strong>Required.</strong> The amount in the minor currency unit (for example, cents for
13625+
* USD).
13626+
*/
1361013627
@SerializedName("amount")
1361113628
Long amount;
1361213629

13613-
/** <strong>Required.</strong> */
13630+
/**
13631+
* <strong>Required.</strong> Three-letter <a
13632+
* href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in
13633+
* lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
13634+
*/
1361413635
@SerializedName("currency")
1361513636
String currency;
1361613637

@@ -13647,13 +13668,20 @@ public AccountCreateParams.Individual.SelfReportedMonthlyHousingPayment build()
1364713668
this.amount, this.currency, this.extraParams);
1364813669
}
1364913670

13650-
/** <strong>Required.</strong> */
13671+
/**
13672+
* <strong>Required.</strong> The amount in the minor currency unit (for example, cents for
13673+
* USD).
13674+
*/
1365113675
public Builder setAmount(Long amount) {
1365213676
this.amount = amount;
1365313677
return this;
1365413678
}
1365513679

13656-
/** <strong>Required.</strong> */
13680+
/**
13681+
* <strong>Required.</strong> Three-letter <a
13682+
* href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in
13683+
* lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
13684+
*/
1365713685
public Builder setCurrency(String currency) {
1365813686
this.currency = currency;
1365913687
return this;

0 commit comments

Comments
 (0)