Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2c60f902831f969f228cecd1f52a81ca240c433c
4cd98860940da75ae8dfe7384cea405859800e9c
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2229
v2240
33 changes: 33 additions & 0 deletions src/main/java/com/stripe/model/AccountSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,14 @@ public static class Components extends StripeObject {
@SerializedName("balances")
Balances balances;

/**
* Configuration for the <a
* href="https://stripe.com/connect/supported-embedded-components/bills/">Bills</a> embedded
* component.
*/
@SerializedName("bills")
Bills bills;

@SerializedName("capital_financing")
CapitalFinancing capitalFinancing;

Expand Down Expand Up @@ -429,6 +437,31 @@ public static class Features extends StripeObject {
}
}

/**
* For more details about Bills, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Bills extends StripeObject {
/** Whether the embedded component is enabled. */
@SerializedName("enabled")
Boolean enabled;

@SerializedName("features")
Features features;

/**
* For more details about Features, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {}
}

/**
* For more details about CapitalFinancing, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
11 changes: 11 additions & 0 deletions src/main/java/com/stripe/model/BalanceSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,21 @@ public static class Payments extends StripeObject {
@SerializedName("debit_negative_balances")
Boolean debitNegativeBalances;

/** The default settlement currency for the account. */
@SerializedName("default_settlement_currency")
String defaultSettlementCurrency;

/** Settings specific to the account's payouts. */
@SerializedName("payouts")
Payouts payouts;

/**
* A hash of settlement currencies and their states. Each key is an ISO 4217 currency code, and
* the value is one of {@code enabled}, {@code disabled}, or {@code restricted_by_application}.
*/
@SerializedName("settlement_currencies")
Map<String, String> settlementCurrencies;

@SerializedName("settlement_timing")
SettlementTiming settlementTiming;

Expand Down
19 changes: 19 additions & 0 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -1866,6 +1866,9 @@ public static class Boleto extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Card extends StripeObject {
@SerializedName("account_funding")
AccountFunding accountFunding;

/** The authorized amount. */
@SerializedName("amount_authorized")
Long amountAuthorized;
Expand Down Expand Up @@ -2046,6 +2049,22 @@ public static class Card extends StripeObject {
@SerializedName("wallet")
Wallet wallet;

/**
* For more details about AccountFunding, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AccountFunding extends StripeObject {
/**
* The transaction type of the card transaction. One of {@code account_funding} or {@code
* purchase}.
*/
@SerializedName("processed_transaction_type")
String processedTransactionType;
}

/**
* For more details about Benefits, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/stripe/model/InvoiceItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,10 @@ public static class ScheduleDetails extends StripeObject {
/** The subscription schedule that generated this invoice item. */
@SerializedName("schedule")
String schedule;

/** The subscription associated with this schedule. */
@SerializedName("subscription")
String subscription;
}

/**
Expand Down
53 changes: 53 additions & 0 deletions src/main/java/com/stripe/model/PaymentAttemptRecord.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import com.stripe.net.StripeResponseGetter;
import com.stripe.param.PaymentAttemptRecordListParams;
import com.stripe.param.PaymentAttemptRecordReportAuthenticatedParams;
import com.stripe.param.PaymentAttemptRecordReportAuthorizedParams;
import com.stripe.param.PaymentAttemptRecordReportCanceledParams;
import com.stripe.param.PaymentAttemptRecordReportFailedParams;
import com.stripe.param.PaymentAttemptRecordReportGuaranteedParams;
Expand Down Expand Up @@ -226,6 +227,58 @@ public PaymentAttemptRecord reportAuthenticated(
return getResponseGetter().request(request, PaymentAttemptRecord.class);
}

/** Report that the specified Payment Attempt Record was authorized. */
public PaymentAttemptRecord reportAuthorized() throws StripeException {
return reportAuthorized((Map<String, Object>) null, (RequestOptions) null);
}

/** Report that the specified Payment Attempt Record was authorized. */
public PaymentAttemptRecord reportAuthorized(RequestOptions options) throws StripeException {
return reportAuthorized((Map<String, Object>) null, options);
}

/** Report that the specified Payment Attempt Record was authorized. */
public PaymentAttemptRecord reportAuthorized(Map<String, Object> params) throws StripeException {
return reportAuthorized(params, (RequestOptions) null);
}

/** Report that the specified Payment Attempt Record was authorized. */
public PaymentAttemptRecord reportAuthorized(Map<String, Object> params, RequestOptions options)
throws StripeException {
String path =
String.format(
"/v1/payment_attempt_records/%s/report_authorized",
ApiResource.urlEncodeId(this.getId()));
ApiRequest request =
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
return getResponseGetter().request(request, PaymentAttemptRecord.class);
}

/** Report that the specified Payment Attempt Record was authorized. */
public PaymentAttemptRecord reportAuthorized(PaymentAttemptRecordReportAuthorizedParams params)
throws StripeException {
return reportAuthorized(params, (RequestOptions) null);
}

/** Report that the specified Payment Attempt Record was authorized. */
public PaymentAttemptRecord reportAuthorized(
PaymentAttemptRecordReportAuthorizedParams params, RequestOptions options)
throws StripeException {
String path =
String.format(
"/v1/payment_attempt_records/%s/report_authorized",
ApiResource.urlEncodeId(this.getId()));
ApiResource.checkNullTypedParams(path, params);
ApiRequest request =
new ApiRequest(
BaseAddress.API,
ApiResource.RequestMethod.POST,
path,
ApiRequestParams.paramsToMap(params),
options);
return getResponseGetter().request(request, PaymentAttemptRecord.class);
}

/** Report that the specified Payment Attempt Record was canceled. */
public PaymentAttemptRecord reportCanceled() throws StripeException {
return reportCanceled((Map<String, Object>) null, (RequestOptions) null);
Expand Down
Loading
Loading