Skip to content

Commit 783ba52

Browse files
Merge pull request #2202 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents 632a653 + 2993e8d commit 783ba52

40 files changed

Lines changed: 2956 additions & 342 deletions

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2c60f902831f969f228cecd1f52a81ca240c433c
1+
4cd98860940da75ae8dfe7384cea405859800e9c

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2229
1+
v2240

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,14 @@ public static class Components extends StripeObject {
143143
@SerializedName("balances")
144144
Balances balances;
145145

146+
/**
147+
* Configuration for the <a
148+
* href="https://stripe.com/connect/supported-embedded-components/bills/">Bills</a> embedded
149+
* component.
150+
*/
151+
@SerializedName("bills")
152+
Bills bills;
153+
146154
@SerializedName("capital_financing")
147155
CapitalFinancing capitalFinancing;
148156

@@ -429,6 +437,31 @@ public static class Features extends StripeObject {
429437
}
430438
}
431439

440+
/**
441+
* For more details about Bills, please refer to the <a href="https://docs.stripe.com/api">API
442+
* Reference.</a>
443+
*/
444+
@Getter
445+
@Setter
446+
@EqualsAndHashCode(callSuper = false)
447+
public static class Bills extends StripeObject {
448+
/** Whether the embedded component is enabled. */
449+
@SerializedName("enabled")
450+
Boolean enabled;
451+
452+
@SerializedName("features")
453+
Features features;
454+
455+
/**
456+
* For more details about Features, please refer to the <a
457+
* href="https://docs.stripe.com/api">API Reference.</a>
458+
*/
459+
@Getter
460+
@Setter
461+
@EqualsAndHashCode(callSuper = false)
462+
public static class Features extends StripeObject {}
463+
}
464+
432465
/**
433466
* For more details about CapitalFinancing, please refer to the <a
434467
* href="https://docs.stripe.com/api">API Reference.</a>

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,21 @@ public static class Payments extends StripeObject {
146146
@SerializedName("debit_negative_balances")
147147
Boolean debitNegativeBalances;
148148

149+
/** The default settlement currency for the account. */
150+
@SerializedName("default_settlement_currency")
151+
String defaultSettlementCurrency;
152+
149153
/** Settings specific to the account's payouts. */
150154
@SerializedName("payouts")
151155
Payouts payouts;
152156

157+
/**
158+
* A hash of settlement currencies and their states. Each key is an ISO 4217 currency code, and
159+
* the value is one of {@code enabled}, {@code disabled}, or {@code restricted_by_application}.
160+
*/
161+
@SerializedName("settlement_currencies")
162+
Map<String, String> settlementCurrencies;
163+
153164
@SerializedName("settlement_timing")
154165
SettlementTiming settlementTiming;
155166

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,6 +1866,9 @@ public static class Boleto extends StripeObject {
18661866
@Setter
18671867
@EqualsAndHashCode(callSuper = false)
18681868
public static class Card extends StripeObject {
1869+
@SerializedName("account_funding")
1870+
AccountFunding accountFunding;
1871+
18691872
/** The authorized amount. */
18701873
@SerializedName("amount_authorized")
18711874
Long amountAuthorized;
@@ -2046,6 +2049,22 @@ public static class Card extends StripeObject {
20462049
@SerializedName("wallet")
20472050
Wallet wallet;
20482051

2052+
/**
2053+
* For more details about AccountFunding, please refer to the <a
2054+
* href="https://docs.stripe.com/api">API Reference.</a>
2055+
*/
2056+
@Getter
2057+
@Setter
2058+
@EqualsAndHashCode(callSuper = false)
2059+
public static class AccountFunding extends StripeObject {
2060+
/**
2061+
* The transaction type of the card transaction. One of {@code account_funding} or {@code
2062+
* purchase}.
2063+
*/
2064+
@SerializedName("processed_transaction_type")
2065+
String processedTransactionType;
2066+
}
2067+
20492068
/**
20502069
* For more details about Benefits, please refer to the <a
20512070
* href="https://docs.stripe.com/api">API Reference.</a>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,10 @@ public static class ScheduleDetails extends StripeObject {
625625
/** The subscription schedule that generated this invoice item. */
626626
@SerializedName("schedule")
627627
String schedule;
628+
629+
/** The subscription associated with this schedule. */
630+
@SerializedName("subscription")
631+
String subscription;
628632
}
629633

630634
/**

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

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import com.stripe.net.StripeResponseGetter;
1212
import com.stripe.param.PaymentAttemptRecordListParams;
1313
import com.stripe.param.PaymentAttemptRecordReportAuthenticatedParams;
14+
import com.stripe.param.PaymentAttemptRecordReportAuthorizedParams;
1415
import com.stripe.param.PaymentAttemptRecordReportCanceledParams;
1516
import com.stripe.param.PaymentAttemptRecordReportFailedParams;
1617
import com.stripe.param.PaymentAttemptRecordReportGuaranteedParams;
@@ -226,6 +227,58 @@ public PaymentAttemptRecord reportAuthenticated(
226227
return getResponseGetter().request(request, PaymentAttemptRecord.class);
227228
}
228229

230+
/** Report that the specified Payment Attempt Record was authorized. */
231+
public PaymentAttemptRecord reportAuthorized() throws StripeException {
232+
return reportAuthorized((Map<String, Object>) null, (RequestOptions) null);
233+
}
234+
235+
/** Report that the specified Payment Attempt Record was authorized. */
236+
public PaymentAttemptRecord reportAuthorized(RequestOptions options) throws StripeException {
237+
return reportAuthorized((Map<String, Object>) null, options);
238+
}
239+
240+
/** Report that the specified Payment Attempt Record was authorized. */
241+
public PaymentAttemptRecord reportAuthorized(Map<String, Object> params) throws StripeException {
242+
return reportAuthorized(params, (RequestOptions) null);
243+
}
244+
245+
/** Report that the specified Payment Attempt Record was authorized. */
246+
public PaymentAttemptRecord reportAuthorized(Map<String, Object> params, RequestOptions options)
247+
throws StripeException {
248+
String path =
249+
String.format(
250+
"/v1/payment_attempt_records/%s/report_authorized",
251+
ApiResource.urlEncodeId(this.getId()));
252+
ApiRequest request =
253+
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
254+
return getResponseGetter().request(request, PaymentAttemptRecord.class);
255+
}
256+
257+
/** Report that the specified Payment Attempt Record was authorized. */
258+
public PaymentAttemptRecord reportAuthorized(PaymentAttemptRecordReportAuthorizedParams params)
259+
throws StripeException {
260+
return reportAuthorized(params, (RequestOptions) null);
261+
}
262+
263+
/** Report that the specified Payment Attempt Record was authorized. */
264+
public PaymentAttemptRecord reportAuthorized(
265+
PaymentAttemptRecordReportAuthorizedParams params, RequestOptions options)
266+
throws StripeException {
267+
String path =
268+
String.format(
269+
"/v1/payment_attempt_records/%s/report_authorized",
270+
ApiResource.urlEncodeId(this.getId()));
271+
ApiResource.checkNullTypedParams(path, params);
272+
ApiRequest request =
273+
new ApiRequest(
274+
BaseAddress.API,
275+
ApiResource.RequestMethod.POST,
276+
path,
277+
ApiRequestParams.paramsToMap(params),
278+
options);
279+
return getResponseGetter().request(request, PaymentAttemptRecord.class);
280+
}
281+
229282
/** Report that the specified Payment Attempt Record was canceled. */
230283
public PaymentAttemptRecord reportCanceled() throws StripeException {
231284
return reportCanceled((Map<String, Object>) null, (RequestOptions) null);

0 commit comments

Comments
 (0)