Skip to content

Commit 1a2a361

Browse files
Update generated code for v2230 and
1 parent 632a653 commit 1a2a361

14 files changed

Lines changed: 1229 additions & 2 deletions

CODEGEN_VERSION

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

OPENAPI_VERSION

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

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/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);

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

Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3303,6 +3303,9 @@ public static class PaymentDetails extends StripeObject {
33033303
@SerializedName("lodging_data")
33043304
List<PaymentIntent.PaymentDetails.LodgingDatum> lodgingData;
33053305

3306+
@SerializedName("money_services")
3307+
MoneyServices moneyServices;
3308+
33063309
/**
33073310
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
33083311
* rates.
@@ -4758,6 +4761,221 @@ public static class InnerTax extends StripeObject {
47584761
}
47594762
}
47604763

4764+
/**
4765+
* For more details about MoneyServices, please refer to the <a
4766+
* href="https://docs.stripe.com/api">API Reference.</a>
4767+
*/
4768+
@Getter
4769+
@Setter
4770+
@EqualsAndHashCode(callSuper = false)
4771+
public static class MoneyServices extends StripeObject {
4772+
@SerializedName("account_funding")
4773+
AccountFunding accountFunding;
4774+
4775+
/**
4776+
* The type of money services transaction.
4777+
*
4778+
* <p>Equal to {@code account_funding}.
4779+
*/
4780+
@SerializedName("transaction_type")
4781+
String transactionType;
4782+
4783+
/**
4784+
* For more details about AccountFunding, please refer to the <a
4785+
* href="https://docs.stripe.com/api">API Reference.</a>
4786+
*/
4787+
@Getter
4788+
@Setter
4789+
@EqualsAndHashCode(callSuper = false)
4790+
public static class AccountFunding extends StripeObject {
4791+
/** ID of the Account representing the beneficiary in this account funding transaction. */
4792+
@SerializedName("beneficiary_account")
4793+
String beneficiaryAccount;
4794+
4795+
@SerializedName("beneficiary_details")
4796+
BeneficiaryDetails beneficiaryDetails;
4797+
4798+
/** ID of the Account representing the sender in this account funding transaction. */
4799+
@SerializedName("sender_account")
4800+
String senderAccount;
4801+
4802+
@SerializedName("sender_details")
4803+
SenderDetails senderDetails;
4804+
4805+
/**
4806+
* For more details about BeneficiaryDetails, please refer to the <a
4807+
* href="https://docs.stripe.com/api">API Reference.</a>
4808+
*/
4809+
@Getter
4810+
@Setter
4811+
@EqualsAndHashCode(callSuper = false)
4812+
public static class BeneficiaryDetails extends StripeObject {
4813+
@SerializedName("address")
4814+
com.stripe.model.PaymentIntent.PaymentDetails.MoneyServices.AccountFunding
4815+
.BeneficiaryDetails.Address
4816+
address;
4817+
4818+
@SerializedName("date_of_birth")
4819+
DateOfBirth dateOfBirth;
4820+
4821+
/** Email address. */
4822+
@SerializedName("email")
4823+
String email;
4824+
4825+
/** Full name. */
4826+
@SerializedName("name")
4827+
String name;
4828+
4829+
/** Phone number. */
4830+
@SerializedName("phone")
4831+
String phone;
4832+
4833+
/**
4834+
* For more details about Address, please refer to the <a
4835+
* href="https://docs.stripe.com/api">API Reference.</a>
4836+
*/
4837+
@Getter
4838+
@Setter
4839+
@EqualsAndHashCode(callSuper = false)
4840+
public static class Address extends StripeObject {
4841+
/** City, district, suburb, town, or village. */
4842+
@SerializedName("city")
4843+
String city;
4844+
4845+
/**
4846+
* Two-letter country code (<a
4847+
* href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a>).
4848+
*/
4849+
@SerializedName("country")
4850+
String country;
4851+
4852+
/** Address line 1 (e.g., street, PO Box, or company name). */
4853+
@SerializedName("line1")
4854+
String line1;
4855+
4856+
/** Address line 2 (e.g., apartment, suite, unit, or building). */
4857+
@SerializedName("line2")
4858+
String line2;
4859+
4860+
/** ZIP or postal code. */
4861+
@SerializedName("postal_code")
4862+
String postalCode;
4863+
4864+
/** State, county, province, or region. */
4865+
@SerializedName("state")
4866+
String state;
4867+
}
4868+
4869+
/**
4870+
* For more details about DateOfBirth, please refer to the <a
4871+
* href="https://docs.stripe.com/api">API Reference.</a>
4872+
*/
4873+
@Getter
4874+
@Setter
4875+
@EqualsAndHashCode(callSuper = false)
4876+
public static class DateOfBirth extends StripeObject {
4877+
/** Day of birth, between 1 and 31. */
4878+
@SerializedName("day")
4879+
Long day;
4880+
4881+
/** Month of birth, between 1 and 12. */
4882+
@SerializedName("month")
4883+
Long month;
4884+
4885+
/** Four-digit year of birth. */
4886+
@SerializedName("year")
4887+
Long year;
4888+
}
4889+
}
4890+
4891+
/**
4892+
* For more details about SenderDetails, please refer to the <a
4893+
* href="https://docs.stripe.com/api">API Reference.</a>
4894+
*/
4895+
@Getter
4896+
@Setter
4897+
@EqualsAndHashCode(callSuper = false)
4898+
public static class SenderDetails extends StripeObject {
4899+
@SerializedName("address")
4900+
com.stripe.model.PaymentIntent.PaymentDetails.MoneyServices.AccountFunding.SenderDetails
4901+
.Address
4902+
address;
4903+
4904+
@SerializedName("date_of_birth")
4905+
DateOfBirth dateOfBirth;
4906+
4907+
/** Email address. */
4908+
@SerializedName("email")
4909+
String email;
4910+
4911+
/** Full name. */
4912+
@SerializedName("name")
4913+
String name;
4914+
4915+
/** Phone number. */
4916+
@SerializedName("phone")
4917+
String phone;
4918+
4919+
/**
4920+
* For more details about Address, please refer to the <a
4921+
* href="https://docs.stripe.com/api">API Reference.</a>
4922+
*/
4923+
@Getter
4924+
@Setter
4925+
@EqualsAndHashCode(callSuper = false)
4926+
public static class Address extends StripeObject {
4927+
/** City, district, suburb, town, or village. */
4928+
@SerializedName("city")
4929+
String city;
4930+
4931+
/**
4932+
* Two-letter country code (<a
4933+
* href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a>).
4934+
*/
4935+
@SerializedName("country")
4936+
String country;
4937+
4938+
/** Address line 1 (e.g., street, PO Box, or company name). */
4939+
@SerializedName("line1")
4940+
String line1;
4941+
4942+
/** Address line 2 (e.g., apartment, suite, unit, or building). */
4943+
@SerializedName("line2")
4944+
String line2;
4945+
4946+
/** ZIP or postal code. */
4947+
@SerializedName("postal_code")
4948+
String postalCode;
4949+
4950+
/** State, county, province, or region. */
4951+
@SerializedName("state")
4952+
String state;
4953+
}
4954+
4955+
/**
4956+
* For more details about DateOfBirth, please refer to the <a
4957+
* href="https://docs.stripe.com/api">API Reference.</a>
4958+
*/
4959+
@Getter
4960+
@Setter
4961+
@EqualsAndHashCode(callSuper = false)
4962+
public static class DateOfBirth extends StripeObject {
4963+
/** Day of birth, between 1 and 31. */
4964+
@SerializedName("day")
4965+
Long day;
4966+
4967+
/** Month of birth, between 1 and 12. */
4968+
@SerializedName("month")
4969+
Long month;
4970+
4971+
/** Four-digit year of birth. */
4972+
@SerializedName("year")
4973+
Long year;
4974+
}
4975+
}
4976+
}
4977+
}
4978+
47614979
/**
47624980
* For more details about Subscription, please refer to the <a
47634981
* href="https://docs.stripe.com/api">API Reference.</a>

0 commit comments

Comments
 (0)