From b60d57522b629124afc0d48f15761bef348110db Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 13 May 2026 22:49:05 +0000 Subject: [PATCH 01/13] Update generated code for v2262 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- .../com/stripe/model/issuing/Dispute.java | 56 +++++ ...mentAttemptRecordReportCanceledParams.java | 42 +++- ...ordReportPaymentAttemptCanceledParams.java | 43 +++- .../RequestedSessionUpdateParams.java | 53 ++++- ...NetworkLifecycleDisputeResponseParams.java | 206 ++++++++++++++++++ .../testhelpers/issuing/DisputeService.java | 32 +++ 8 files changed, 418 insertions(+), 18 deletions(-) create mode 100644 src/main/java/com/stripe/param/issuing/DisputeSimulateNetworkLifecycleDisputeResponseParams.java diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 259aa6aa4ab..558c0f3451d 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -6a1eb046657923602071d7707e99ce8a004a8216 \ No newline at end of file +f6277c5b9c4dae4c92fd7ed4943a368df7ac9b05 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index f47b75a3829..30d6a67bc22 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2261 \ No newline at end of file +v2262 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/issuing/Dispute.java b/src/main/java/com/stripe/model/issuing/Dispute.java index d7f8c35c01d..ff2a6494890 100644 --- a/src/main/java/com/stripe/model/issuing/Dispute.java +++ b/src/main/java/com/stripe/model/issuing/Dispute.java @@ -18,6 +18,7 @@ import com.stripe.param.issuing.DisputeCreateParams; import com.stripe.param.issuing.DisputeListParams; import com.stripe.param.issuing.DisputeRetrieveParams; +import com.stripe.param.issuing.DisputeSimulateNetworkLifecycleDisputeResponseParams; import com.stripe.param.issuing.DisputeSimulateNetworkLifecyclePreArbitrationResponseParams; import com.stripe.param.issuing.DisputeSimulateNetworkLifecyclePreArbitrationSubmissionParams; import com.stripe.param.issuing.DisputeSubmitParams; @@ -1296,6 +1297,61 @@ private TestHelpers(Dispute resource) { this.resource = resource; } + /** + * Test helper: populates {@code network_lifecycle.dispute_response} on a test-mode Visa Issuing + * Dispute using placeholder file tokens. Only supported for Visa disputes. + */ + public Dispute simulateNetworkLifecycleDisputeResponse(Map params) + throws StripeException { + return simulateNetworkLifecycleDisputeResponse(params, (RequestOptions) null); + } + + /** + * Test helper: populates {@code network_lifecycle.dispute_response} on a test-mode Visa Issuing + * Dispute using placeholder file tokens. Only supported for Visa disputes. + */ + public Dispute simulateNetworkLifecycleDisputeResponse( + Map params, RequestOptions options) throws StripeException { + String path = + String.format( + "/v1/test_helpers/issuing/disputes/%s/simulate_network_lifecycle_dispute_response", + ApiResource.urlEncodeId(this.resource.getId())); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options); + return resource.getResponseGetter().request(request, Dispute.class); + } + + /** + * Test helper: populates {@code network_lifecycle.dispute_response} on a test-mode Visa Issuing + * Dispute using placeholder file tokens. Only supported for Visa disputes. + */ + public Dispute simulateNetworkLifecycleDisputeResponse( + DisputeSimulateNetworkLifecycleDisputeResponseParams params) throws StripeException { + return simulateNetworkLifecycleDisputeResponse(params, (RequestOptions) null); + } + + /** + * Test helper: populates {@code network_lifecycle.dispute_response} on a test-mode Visa Issuing + * Dispute using placeholder file tokens. Only supported for Visa disputes. + */ + public Dispute simulateNetworkLifecycleDisputeResponse( + DisputeSimulateNetworkLifecycleDisputeResponseParams params, RequestOptions options) + throws StripeException { + String path = + String.format( + "/v1/test_helpers/issuing/disputes/%s/simulate_network_lifecycle_dispute_response", + ApiResource.urlEncodeId(this.resource.getId())); + ApiResource.checkNullTypedParams(path, params); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options); + return resource.getResponseGetter().request(request, Dispute.class); + } + /** * Test helper: populates {@code network_lifecycle.pre_arbitration_response} on a test-mode Visa * Issuing Dispute using placeholder file tokens. Only supported for Visa disputes in the diff --git a/src/main/java/com/stripe/param/PaymentAttemptRecordReportCanceledParams.java b/src/main/java/com/stripe/param/PaymentAttemptRecordReportCanceledParams.java index 4dfdf8cd7fd..fb8e65f56ce 100644 --- a/src/main/java/com/stripe/param/PaymentAttemptRecordReportCanceledParams.java +++ b/src/main/java/com/stripe/param/PaymentAttemptRecordReportCanceledParams.java @@ -40,12 +40,21 @@ public class PaymentAttemptRecordReportCanceledParams extends ApiRequestParams { @SerializedName("metadata") Object metadata; + /** Payment evaluations associated with this reported payment. */ + @SerializedName("payment_evaluations") + List paymentEvaluations; + private PaymentAttemptRecordReportCanceledParams( - Long canceledAt, List expand, Map extraParams, Object metadata) { + Long canceledAt, + List expand, + Map extraParams, + Object metadata, + List paymentEvaluations) { this.canceledAt = canceledAt; this.expand = expand; this.extraParams = extraParams; this.metadata = metadata; + this.paymentEvaluations = paymentEvaluations; } public static Builder builder() { @@ -61,10 +70,12 @@ public static class Builder { private Object metadata; + private List paymentEvaluations; + /** Finalize and obtain parameter instance from this builder. */ public PaymentAttemptRecordReportCanceledParams build() { return new PaymentAttemptRecordReportCanceledParams( - this.canceledAt, this.expand, this.extraParams, this.metadata); + this.canceledAt, this.expand, this.extraParams, this.metadata, this.paymentEvaluations); } /** When the reported payment was canceled. Measured in seconds since the Unix epoch. */ @@ -174,5 +185,32 @@ public Builder setMetadata(Map metadata) { this.metadata = metadata; return this; } + + /** + * Add an element to `paymentEvaluations` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * PaymentAttemptRecordReportCanceledParams#paymentEvaluations} for the field documentation. + */ + public Builder addPaymentEvaluation(String element) { + if (this.paymentEvaluations == null) { + this.paymentEvaluations = new ArrayList<>(); + } + this.paymentEvaluations.add(element); + return this; + } + + /** + * Add all elements to `paymentEvaluations` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. See + * {@link PaymentAttemptRecordReportCanceledParams#paymentEvaluations} for the field + * documentation. + */ + public Builder addAllPaymentEvaluation(List elements) { + if (this.paymentEvaluations == null) { + this.paymentEvaluations = new ArrayList<>(); + } + this.paymentEvaluations.addAll(elements); + return this; + } } } diff --git a/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptCanceledParams.java b/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptCanceledParams.java index 4930d6c02a3..46b1951588b 100644 --- a/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptCanceledParams.java +++ b/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptCanceledParams.java @@ -40,12 +40,21 @@ public class PaymentRecordReportPaymentAttemptCanceledParams extends ApiRequestP @SerializedName("metadata") Object metadata; + /** Payment evaluations associated with this reported payment. */ + @SerializedName("payment_evaluations") + List paymentEvaluations; + private PaymentRecordReportPaymentAttemptCanceledParams( - Long canceledAt, List expand, Map extraParams, Object metadata) { + Long canceledAt, + List expand, + Map extraParams, + Object metadata, + List paymentEvaluations) { this.canceledAt = canceledAt; this.expand = expand; this.extraParams = extraParams; this.metadata = metadata; + this.paymentEvaluations = paymentEvaluations; } public static Builder builder() { @@ -61,10 +70,12 @@ public static class Builder { private Object metadata; + private List paymentEvaluations; + /** Finalize and obtain parameter instance from this builder. */ public PaymentRecordReportPaymentAttemptCanceledParams build() { return new PaymentRecordReportPaymentAttemptCanceledParams( - this.canceledAt, this.expand, this.extraParams, this.metadata); + this.canceledAt, this.expand, this.extraParams, this.metadata, this.paymentEvaluations); } /** When the reported payment was canceled. Measured in seconds since the Unix epoch. */ @@ -176,5 +187,33 @@ public Builder setMetadata(Map metadata) { this.metadata = metadata; return this; } + + /** + * Add an element to `paymentEvaluations` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * PaymentRecordReportPaymentAttemptCanceledParams#paymentEvaluations} for the field + * documentation. + */ + public Builder addPaymentEvaluation(String element) { + if (this.paymentEvaluations == null) { + this.paymentEvaluations = new ArrayList<>(); + } + this.paymentEvaluations.add(element); + return this; + } + + /** + * Add all elements to `paymentEvaluations` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. See + * {@link PaymentRecordReportPaymentAttemptCanceledParams#paymentEvaluations} for the field + * documentation. + */ + public Builder addAllPaymentEvaluation(List elements) { + if (this.paymentEvaluations == null) { + this.paymentEvaluations = new ArrayList<>(); + } + this.paymentEvaluations.addAll(elements); + return this; + } } } diff --git a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionUpdateParams.java b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionUpdateParams.java index d3fedb32326..c7287114e56 100644 --- a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionUpdateParams.java +++ b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionUpdateParams.java @@ -14,7 +14,10 @@ @Getter @EqualsAndHashCode(callSuper = false) public class RequestedSessionUpdateParams extends ApiRequestParams { - /** The discount codes to apply to this requested session. */ + /** + * The discount codes to apply to this requested session. Pass an empty value to remove all + * applied discounts. + */ @SerializedName("discounts") Discounts discounts; @@ -113,7 +116,10 @@ public RequestedSessionUpdateParams build() { this.sharedMetadata); } - /** The discount codes to apply to this requested session. */ + /** + * The discount codes to apply to this requested session. Pass an empty value to remove all + * applied discounts. + */ public Builder setDiscounts(RequestedSessionUpdateParams.Discounts discounts) { this.discounts = discounts; return this; @@ -308,9 +314,12 @@ public Builder setSharedMetadata(Map sharedMetadata) { @Getter @EqualsAndHashCode(callSuper = false) public static class Discounts { - /** Required. Array of discount codes to apply. */ + /** + * Required. Array of discount codes to apply. Pass an empty value to remove + * all applied discounts. + */ @SerializedName("codes") - List codes; + Object codes; /** * Whether to enforce strict eligibility for discount codes. Defaults to true. When false, @@ -329,7 +338,7 @@ public static class Discounts { Map extraParams; private Discounts( - List codes, Boolean enforceStrictEligibility, Map extraParams) { + Object codes, Boolean enforceStrictEligibility, Map extraParams) { this.codes = codes; this.enforceStrictEligibility = enforceStrictEligibility; this.extraParams = extraParams; @@ -340,7 +349,7 @@ public static Builder builder() { } public static class Builder { - private List codes; + private Object codes; private Boolean enforceStrictEligibility; @@ -357,11 +366,12 @@ public RequestedSessionUpdateParams.Discounts build() { * subsequent calls adds additional elements to the original list. See {@link * RequestedSessionUpdateParams.Discounts#codes} for the field documentation. */ + @SuppressWarnings("unchecked") public Builder addCode(String element) { - if (this.codes == null) { - this.codes = new ArrayList<>(); + if (this.codes == null || this.codes instanceof EmptyParam) { + this.codes = new ArrayList(); } - this.codes.add(element); + ((List) this.codes).add(element); return this; } @@ -370,11 +380,30 @@ public Builder addCode(String element) { * and subsequent calls adds additional elements to the original list. See {@link * RequestedSessionUpdateParams.Discounts#codes} for the field documentation. */ + @SuppressWarnings("unchecked") public Builder addAllCode(List elements) { - if (this.codes == null) { - this.codes = new ArrayList<>(); + if (this.codes == null || this.codes instanceof EmptyParam) { + this.codes = new ArrayList(); } - this.codes.addAll(elements); + ((List) this.codes).addAll(elements); + return this; + } + + /** + * Required. Array of discount codes to apply. Pass an empty value to remove + * all applied discounts. + */ + public Builder setCodes(EmptyParam codes) { + this.codes = codes; + return this; + } + + /** + * Required. Array of discount codes to apply. Pass an empty value to remove + * all applied discounts. + */ + public Builder setCodes(List codes) { + this.codes = codes; return this; } diff --git a/src/main/java/com/stripe/param/issuing/DisputeSimulateNetworkLifecycleDisputeResponseParams.java b/src/main/java/com/stripe/param/issuing/DisputeSimulateNetworkLifecycleDisputeResponseParams.java new file mode 100644 index 00000000000..5d2a546aa9d --- /dev/null +++ b/src/main/java/com/stripe/param/issuing/DisputeSimulateNetworkLifecycleDisputeResponseParams.java @@ -0,0 +1,206 @@ +// File generated from our OpenAPI spec +package com.stripe.param.issuing; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import lombok.EqualsAndHashCode; +import lombok.Getter; + +@Getter +@EqualsAndHashCode(callSuper = false) +public class DisputeSimulateNetworkLifecycleDisputeResponseParams extends ApiRequestParams { + /** Specifies which fields in the response should be expanded. */ + @SerializedName("expand") + List expand; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * Required. Controls the acquiring merchant's simulated submitted evidence files + * for the dispute response stage. + */ + @SerializedName("merchant_evidence_files") + MerchantEvidenceFiles merchantEvidenceFiles; + + private DisputeSimulateNetworkLifecycleDisputeResponseParams( + List expand, + Map extraParams, + MerchantEvidenceFiles merchantEvidenceFiles) { + this.expand = expand; + this.extraParams = extraParams; + this.merchantEvidenceFiles = merchantEvidenceFiles; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private List expand; + + private Map extraParams; + + private MerchantEvidenceFiles merchantEvidenceFiles; + + /** Finalize and obtain parameter instance from this builder. */ + public DisputeSimulateNetworkLifecycleDisputeResponseParams build() { + return new DisputeSimulateNetworkLifecycleDisputeResponseParams( + this.expand, this.extraParams, this.merchantEvidenceFiles); + } + + /** + * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and + * subsequent calls adds additional elements to the original list. See {@link + * DisputeSimulateNetworkLifecycleDisputeResponseParams#expand} for the field documentation. + */ + public Builder addExpand(String element) { + if (this.expand == null) { + this.expand = new ArrayList<>(); + } + this.expand.add(element); + return this; + } + + /** + * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and + * subsequent calls adds additional elements to the original list. See {@link + * DisputeSimulateNetworkLifecycleDisputeResponseParams#expand} for the field documentation. + */ + public Builder addAllExpand(List elements) { + if (this.expand == null) { + this.expand = new ArrayList<>(); + } + this.expand.addAll(elements); + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * DisputeSimulateNetworkLifecycleDisputeResponseParams#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link DisputeSimulateNetworkLifecycleDisputeResponseParams#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Required. Controls the acquiring merchant's simulated submitted evidence + * files for the dispute response stage. + */ + public Builder setMerchantEvidenceFiles( + DisputeSimulateNetworkLifecycleDisputeResponseParams.MerchantEvidenceFiles + merchantEvidenceFiles) { + this.merchantEvidenceFiles = merchantEvidenceFiles; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class MerchantEvidenceFiles { + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * Required. How many simulated merchant evidence file tokens to attach + * (between 1 and 12). + */ + @SerializedName("number_to_generate") + Long numberToGenerate; + + private MerchantEvidenceFiles(Map extraParams, Long numberToGenerate) { + this.extraParams = extraParams; + this.numberToGenerate = numberToGenerate; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Long numberToGenerate; + + /** Finalize and obtain parameter instance from this builder. */ + public DisputeSimulateNetworkLifecycleDisputeResponseParams.MerchantEvidenceFiles build() { + return new DisputeSimulateNetworkLifecycleDisputeResponseParams.MerchantEvidenceFiles( + this.extraParams, this.numberToGenerate); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * DisputeSimulateNetworkLifecycleDisputeResponseParams.MerchantEvidenceFiles#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link + * DisputeSimulateNetworkLifecycleDisputeResponseParams.MerchantEvidenceFiles#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Required. How many simulated merchant evidence file tokens to attach + * (between 1 and 12). + */ + public Builder setNumberToGenerate(Long numberToGenerate) { + this.numberToGenerate = numberToGenerate; + return this; + } + } + } +} diff --git a/src/main/java/com/stripe/service/testhelpers/issuing/DisputeService.java b/src/main/java/com/stripe/service/testhelpers/issuing/DisputeService.java index 46dbcb6be1e..937733e8f41 100644 --- a/src/main/java/com/stripe/service/testhelpers/issuing/DisputeService.java +++ b/src/main/java/com/stripe/service/testhelpers/issuing/DisputeService.java @@ -10,6 +10,7 @@ import com.stripe.net.BaseAddress; import com.stripe.net.RequestOptions; import com.stripe.net.StripeResponseGetter; +import com.stripe.param.issuing.DisputeSimulateNetworkLifecycleDisputeResponseParams; import com.stripe.param.issuing.DisputeSimulateNetworkLifecyclePreArbitrationResponseParams; import com.stripe.param.issuing.DisputeSimulateNetworkLifecyclePreArbitrationSubmissionParams; @@ -18,6 +19,37 @@ public DisputeService(StripeResponseGetter responseGetter) { super(responseGetter); } + /** + * Test helper: populates {@code network_lifecycle.dispute_response} on a test-mode Visa Issuing + * Dispute using placeholder file tokens. Only supported for Visa disputes. + */ + public Dispute simulateNetworkLifecycleDisputeResponse( + String dispute, DisputeSimulateNetworkLifecycleDisputeResponseParams params) + throws StripeException { + return simulateNetworkLifecycleDisputeResponse(dispute, params, (RequestOptions) null); + } + /** + * Test helper: populates {@code network_lifecycle.dispute_response} on a test-mode Visa Issuing + * Dispute using placeholder file tokens. Only supported for Visa disputes. + */ + public Dispute simulateNetworkLifecycleDisputeResponse( + String dispute, + DisputeSimulateNetworkLifecycleDisputeResponseParams params, + RequestOptions options) + throws StripeException { + String path = + String.format( + "/v1/test_helpers/issuing/disputes/%s/simulate_network_lifecycle_dispute_response", + ApiResource.urlEncodeId(dispute)); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request(request, Dispute.class); + } /** * Test helper: populates {@code network_lifecycle.pre_arbitration_response} on a test-mode Visa * Issuing Dispute using placeholder file tokens. Only supported for Visa disputes in the From 29520855482607a8bc4c354b208c128c36d7d4cc Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 14 May 2026 00:19:07 +0000 Subject: [PATCH 02/13] Update generated code for v2263 and 5627059f43249637b6af1c0d3b5cbaa45b5e8b09 --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- ...aymentAttemptRecordReportFailedParams.java | 36 ++++++++++++++++ ...ecordReportPaymentAttemptFailedParams.java | 37 ++++++++++++++++ ...ymentRecordReportPaymentAttemptParams.java | 42 ++++++++++++++++++- .../PaymentRecordReportPaymentParams.java | 42 ++++++++++++++++++- 6 files changed, 157 insertions(+), 4 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 558c0f3451d..87ab5d7afe3 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -f6277c5b9c4dae4c92fd7ed4943a368df7ac9b05 \ No newline at end of file +5627059f43249637b6af1c0d3b5cbaa45b5e8b09 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 30d6a67bc22..68ea833f963 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2262 \ No newline at end of file +v2263 \ No newline at end of file diff --git a/src/main/java/com/stripe/param/PaymentAttemptRecordReportFailedParams.java b/src/main/java/com/stripe/param/PaymentAttemptRecordReportFailedParams.java index 5eb0e47d8c6..aea9e1ce1f2 100644 --- a/src/main/java/com/stripe/param/PaymentAttemptRecordReportFailedParams.java +++ b/src/main/java/com/stripe/param/PaymentAttemptRecordReportFailedParams.java @@ -47,6 +47,10 @@ public class PaymentAttemptRecordReportFailedParams extends ApiRequestParams { @SerializedName("metadata") Object metadata; + /** Payment evaluations associated with this reported payment. */ + @SerializedName("payment_evaluations") + List paymentEvaluations; + /** Processor information for this payment. */ @SerializedName("processor_details") ProcessorDetails processorDetails; @@ -57,12 +61,14 @@ private PaymentAttemptRecordReportFailedParams( Long failedAt, FailureCode failureCode, Object metadata, + List paymentEvaluations, ProcessorDetails processorDetails) { this.expand = expand; this.extraParams = extraParams; this.failedAt = failedAt; this.failureCode = failureCode; this.metadata = metadata; + this.paymentEvaluations = paymentEvaluations; this.processorDetails = processorDetails; } @@ -81,6 +87,8 @@ public static class Builder { private Object metadata; + private List paymentEvaluations; + private ProcessorDetails processorDetails; /** Finalize and obtain parameter instance from this builder. */ @@ -91,6 +99,7 @@ public PaymentAttemptRecordReportFailedParams build() { this.failedAt, this.failureCode, this.metadata, + this.paymentEvaluations, this.processorDetails); } @@ -211,6 +220,33 @@ public Builder setMetadata(Map metadata) { return this; } + /** + * Add an element to `paymentEvaluations` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * PaymentAttemptRecordReportFailedParams#paymentEvaluations} for the field documentation. + */ + public Builder addPaymentEvaluation(String element) { + if (this.paymentEvaluations == null) { + this.paymentEvaluations = new ArrayList<>(); + } + this.paymentEvaluations.add(element); + return this; + } + + /** + * Add all elements to `paymentEvaluations` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. See + * {@link PaymentAttemptRecordReportFailedParams#paymentEvaluations} for the field + * documentation. + */ + public Builder addAllPaymentEvaluation(List elements) { + if (this.paymentEvaluations == null) { + this.paymentEvaluations = new ArrayList<>(); + } + this.paymentEvaluations.addAll(elements); + return this; + } + /** Processor information for this payment. */ public Builder setProcessorDetails( PaymentAttemptRecordReportFailedParams.ProcessorDetails processorDetails) { diff --git a/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptFailedParams.java b/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptFailedParams.java index 003f4308e5a..889cdc25dde 100644 --- a/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptFailedParams.java +++ b/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptFailedParams.java @@ -47,6 +47,10 @@ public class PaymentRecordReportPaymentAttemptFailedParams extends ApiRequestPar @SerializedName("metadata") Object metadata; + /** Payment evaluations associated with this reported payment. */ + @SerializedName("payment_evaluations") + List paymentEvaluations; + /** Processor information for this payment. */ @SerializedName("processor_details") ProcessorDetails processorDetails; @@ -57,12 +61,14 @@ private PaymentRecordReportPaymentAttemptFailedParams( Long failedAt, FailureCode failureCode, Object metadata, + List paymentEvaluations, ProcessorDetails processorDetails) { this.expand = expand; this.extraParams = extraParams; this.failedAt = failedAt; this.failureCode = failureCode; this.metadata = metadata; + this.paymentEvaluations = paymentEvaluations; this.processorDetails = processorDetails; } @@ -81,6 +87,8 @@ public static class Builder { private Object metadata; + private List paymentEvaluations; + private ProcessorDetails processorDetails; /** Finalize and obtain parameter instance from this builder. */ @@ -91,6 +99,7 @@ public PaymentRecordReportPaymentAttemptFailedParams build() { this.failedAt, this.failureCode, this.metadata, + this.paymentEvaluations, this.processorDetails); } @@ -214,6 +223,34 @@ public Builder setMetadata(Map metadata) { return this; } + /** + * Add an element to `paymentEvaluations` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * PaymentRecordReportPaymentAttemptFailedParams#paymentEvaluations} for the field + * documentation. + */ + public Builder addPaymentEvaluation(String element) { + if (this.paymentEvaluations == null) { + this.paymentEvaluations = new ArrayList<>(); + } + this.paymentEvaluations.add(element); + return this; + } + + /** + * Add all elements to `paymentEvaluations` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. See + * {@link PaymentRecordReportPaymentAttemptFailedParams#paymentEvaluations} for the field + * documentation. + */ + public Builder addAllPaymentEvaluation(List elements) { + if (this.paymentEvaluations == null) { + this.paymentEvaluations = new ArrayList<>(); + } + this.paymentEvaluations.addAll(elements); + return this; + } + /** Processor information for this payment. */ public Builder setProcessorDetails( PaymentRecordReportPaymentAttemptFailedParams.ProcessorDetails processorDetails) { diff --git a/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptParams.java b/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptParams.java index 577ef85af0b..4684e841b48 100644 --- a/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptParams.java +++ b/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptParams.java @@ -306,6 +306,10 @@ public static class Failed { @SerializedName("failure_code") FailureCode failureCode; + /** Payment evaluations associated with this reported payment. */ + @SerializedName("payment_evaluations") + List paymentEvaluations; + /** Processor information for this payment. */ @SerializedName("processor_details") ProcessorDetails processorDetails; @@ -314,10 +318,12 @@ private Failed( Map extraParams, Long failedAt, FailureCode failureCode, + List paymentEvaluations, ProcessorDetails processorDetails) { this.extraParams = extraParams; this.failedAt = failedAt; this.failureCode = failureCode; + this.paymentEvaluations = paymentEvaluations; this.processorDetails = processorDetails; } @@ -332,12 +338,18 @@ public static class Builder { private FailureCode failureCode; + private List paymentEvaluations; + private ProcessorDetails processorDetails; /** Finalize and obtain parameter instance from this builder. */ public PaymentRecordReportPaymentAttemptParams.Failed build() { return new PaymentRecordReportPaymentAttemptParams.Failed( - this.extraParams, this.failedAt, this.failureCode, this.processorDetails); + this.extraParams, + this.failedAt, + this.failureCode, + this.paymentEvaluations, + this.processorDetails); } /** @@ -386,6 +398,34 @@ public Builder setFailureCode( return this; } + /** + * Add an element to `paymentEvaluations` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. See + * {@link PaymentRecordReportPaymentAttemptParams.Failed#paymentEvaluations} for the field + * documentation. + */ + public Builder addPaymentEvaluation(String element) { + if (this.paymentEvaluations == null) { + this.paymentEvaluations = new ArrayList<>(); + } + this.paymentEvaluations.add(element); + return this; + } + + /** + * Add all elements to `paymentEvaluations` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. See + * {@link PaymentRecordReportPaymentAttemptParams.Failed#paymentEvaluations} for the field + * documentation. + */ + public Builder addAllPaymentEvaluation(List elements) { + if (this.paymentEvaluations == null) { + this.paymentEvaluations = new ArrayList<>(); + } + this.paymentEvaluations.addAll(elements); + return this; + } + /** Processor information for this payment. */ public Builder setProcessorDetails( PaymentRecordReportPaymentAttemptParams.Failed.ProcessorDetails processorDetails) { diff --git a/src/main/java/com/stripe/param/PaymentRecordReportPaymentParams.java b/src/main/java/com/stripe/param/PaymentRecordReportPaymentParams.java index a6b5c02020f..659d462a483 100644 --- a/src/main/java/com/stripe/param/PaymentRecordReportPaymentParams.java +++ b/src/main/java/com/stripe/param/PaymentRecordReportPaymentParams.java @@ -581,6 +581,10 @@ public static class Failed { @SerializedName("failure_code") FailureCode failureCode; + /** Payment evaluations associated with this reported payment. */ + @SerializedName("payment_evaluations") + List paymentEvaluations; + /** Processor information for this payment. */ @SerializedName("processor_details") ProcessorDetails processorDetails; @@ -589,10 +593,12 @@ private Failed( Map extraParams, Long failedAt, FailureCode failureCode, + List paymentEvaluations, ProcessorDetails processorDetails) { this.extraParams = extraParams; this.failedAt = failedAt; this.failureCode = failureCode; + this.paymentEvaluations = paymentEvaluations; this.processorDetails = processorDetails; } @@ -607,12 +613,18 @@ public static class Builder { private FailureCode failureCode; + private List paymentEvaluations; + private ProcessorDetails processorDetails; /** Finalize and obtain parameter instance from this builder. */ public PaymentRecordReportPaymentParams.Failed build() { return new PaymentRecordReportPaymentParams.Failed( - this.extraParams, this.failedAt, this.failureCode, this.processorDetails); + this.extraParams, + this.failedAt, + this.failureCode, + this.paymentEvaluations, + this.processorDetails); } /** @@ -661,6 +673,34 @@ public Builder setFailureCode( return this; } + /** + * Add an element to `paymentEvaluations` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. See + * {@link PaymentRecordReportPaymentParams.Failed#paymentEvaluations} for the field + * documentation. + */ + public Builder addPaymentEvaluation(String element) { + if (this.paymentEvaluations == null) { + this.paymentEvaluations = new ArrayList<>(); + } + this.paymentEvaluations.add(element); + return this; + } + + /** + * Add all elements to `paymentEvaluations` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. See + * {@link PaymentRecordReportPaymentParams.Failed#paymentEvaluations} for the field + * documentation. + */ + public Builder addAllPaymentEvaluation(List elements) { + if (this.paymentEvaluations == null) { + this.paymentEvaluations = new ArrayList<>(); + } + this.paymentEvaluations.addAll(elements); + return this; + } + /** Processor information for this payment. */ public Builder setProcessorDetails( PaymentRecordReportPaymentParams.Failed.ProcessorDetails processorDetails) { From 940b7da0d1b90165c8195e83741937a28b5be8ac Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 14 May 2026 20:11:30 +0000 Subject: [PATCH 03/13] Update generated code for v2264 and 52c9e8f324c9002533d92488eb3784777c140391 --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- .../java/com/stripe/model/Subscription.java | 18 ++++++++++++++++++ .../stripe/param/SubscriptionPauseParams.java | 4 ++-- .../stripe/service/SubscriptionService.java | 16 ++++++++++++++++ 5 files changed, 38 insertions(+), 4 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 87ab5d7afe3..9510441e374 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -5627059f43249637b6af1c0d3b5cbaa45b5e8b09 \ No newline at end of file +52c9e8f324c9002533d92488eb3784777c140391 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 68ea833f963..f546d87a458 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2263 \ No newline at end of file +v2264 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Subscription.java b/src/main/java/com/stripe/model/Subscription.java index edd48179795..815d7d36a80 100644 --- a/src/main/java/com/stripe/model/Subscription.java +++ b/src/main/java/com/stripe/model/Subscription.java @@ -986,6 +986,24 @@ public Subscription migrate(SubscriptionMigrateParams params, RequestOptions opt return getResponseGetter().request(request, Subscription.class); } + /** + * Pauses a subscription by transitioning it to the paused status. A paused subscription does not + * generate invoices and will not advance to new billing periods. The subscription can be resumed + * later using the resume endpoint. Cannot pause subscriptions with attached schedules. + */ + public Subscription pause() throws StripeException { + return pause((Map) null, (RequestOptions) null); + } + + /** + * Pauses a subscription by transitioning it to the paused status. A paused subscription does not + * generate invoices and will not advance to new billing periods. The subscription can be resumed + * later using the resume endpoint. Cannot pause subscriptions with attached schedules. + */ + public Subscription pause(RequestOptions options) throws StripeException { + return pause((Map) null, options); + } + /** * Pauses a subscription by transitioning it to the paused status. A paused subscription does not * generate invoices and will not advance to new billing periods. The subscription can be resumed diff --git a/src/main/java/com/stripe/param/SubscriptionPauseParams.java b/src/main/java/com/stripe/param/SubscriptionPauseParams.java index 4bf6281cdcb..a4958371e1a 100644 --- a/src/main/java/com/stripe/param/SubscriptionPauseParams.java +++ b/src/main/java/com/stripe/param/SubscriptionPauseParams.java @@ -37,7 +37,7 @@ public class SubscriptionPauseParams extends ApiRequestParams { @SerializedName("invoicing_behavior") InvoicingBehavior invoicingBehavior; - /** Required. The type of pause to apply. */ + /** The type of pause to apply. Defaults to {@code subscription}. */ @SerializedName("type") Type type; @@ -143,7 +143,7 @@ public Builder setInvoicingBehavior( return this; } - /** Required. The type of pause to apply. */ + /** The type of pause to apply. Defaults to {@code subscription}. */ public Builder setType(SubscriptionPauseParams.Type type) { this.type = type; return this; diff --git a/src/main/java/com/stripe/service/SubscriptionService.java b/src/main/java/com/stripe/service/SubscriptionService.java index 36ea273fdb6..1b5191a5015 100644 --- a/src/main/java/com/stripe/service/SubscriptionService.java +++ b/src/main/java/com/stripe/service/SubscriptionService.java @@ -592,6 +592,22 @@ public Subscription pause(String subscription, SubscriptionPauseParams params) throws StripeException { return pause(subscription, params, (RequestOptions) null); } + /** + * Pauses a subscription by transitioning it to the paused status. A paused subscription does not + * generate invoices and will not advance to new billing periods. The subscription can be resumed + * later using the resume endpoint. Cannot pause subscriptions with attached schedules. + */ + public Subscription pause(String subscription, RequestOptions options) throws StripeException { + return pause(subscription, (SubscriptionPauseParams) null, options); + } + /** + * Pauses a subscription by transitioning it to the paused status. A paused subscription does not + * generate invoices and will not advance to new billing periods. The subscription can be resumed + * later using the resume endpoint. Cannot pause subscriptions with attached schedules. + */ + public Subscription pause(String subscription) throws StripeException { + return pause(subscription, (SubscriptionPauseParams) null, (RequestOptions) null); + } /** * Pauses a subscription by transitioning it to the paused status. A paused subscription does not * generate invoices and will not advance to new billing periods. The subscription can be resumed From e7810f20343f7b028b74d6399ba813b30d3bfd82 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 14 May 2026 21:30:45 +0000 Subject: [PATCH 04/13] Update generated code for v2265 and c1e5d6fabe06fd2f626d865acf640ebb6fd10be9 --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- .../java/com/stripe/model/Subscription.java | 54 ------------------- .../param/SubscriptionResumeParams.java | 38 ------------- 4 files changed, 2 insertions(+), 94 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 9510441e374..6177d5fbb66 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -52c9e8f324c9002533d92488eb3784777c140391 \ No newline at end of file +c1e5d6fabe06fd2f626d865acf640ebb6fd10be9 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index f546d87a458..ac6d007fa75 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2264 \ No newline at end of file +v2265 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Subscription.java b/src/main/java/com/stripe/model/Subscription.java index 815d7d36a80..ac179cc64c7 100644 --- a/src/main/java/com/stripe/model/Subscription.java +++ b/src/main/java/com/stripe/model/Subscription.java @@ -386,10 +386,6 @@ public class Subscription extends ApiResource implements HasId, MetadataStoreEqual to {@code subscription}. - */ - @SerializedName("type") - String type; - - /** Information on the {@code type=subscription} pause. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class InnerSubscription extends StripeObject { - /** - * The reason that the subscription was paused. - * - *

One of {@code pause_requested}, {@code system}, or {@code - * trial_end_without_payment_method}. - */ - @SerializedName("type") - String type; - } - } - } - /** * For more details about TransferData, please refer to the API Reference. @@ -2859,7 +2806,6 @@ public void setResponseGetter(StripeResponseGetter responseGetter) { trySetResponseGetter(prebilling, responseGetter); trySetResponseGetter(presentmentDetails, responseGetter); trySetResponseGetter(schedule, responseGetter); - trySetResponseGetter(statusDetails, responseGetter); trySetResponseGetter(testClock, responseGetter); trySetResponseGetter(transferData, responseGetter); trySetResponseGetter(trialSettings, responseGetter); diff --git a/src/main/java/com/stripe/param/SubscriptionResumeParams.java b/src/main/java/com/stripe/param/SubscriptionResumeParams.java index ab11ac58587..67738afcad4 100644 --- a/src/main/java/com/stripe/param/SubscriptionResumeParams.java +++ b/src/main/java/com/stripe/param/SubscriptionResumeParams.java @@ -34,14 +34,6 @@ public class SubscriptionResumeParams extends ApiRequestParams { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** - * Controls whether Stripe attempts payment on the resumption invoice in the resume request, and - * how payment on that invoice affects the subscription's status. The default is {@code - * resume_on_payment_attempt}. - */ - @SerializedName("payment_behavior") - PaymentBehavior paymentBehavior; - /** * Determines how to handle prorations resulting from @@ -64,13 +56,11 @@ private SubscriptionResumeParams( BillingCycleAnchor billingCycleAnchor, List expand, Map extraParams, - PaymentBehavior paymentBehavior, ProrationBehavior prorationBehavior, Long prorationDate) { this.billingCycleAnchor = billingCycleAnchor; this.expand = expand; this.extraParams = extraParams; - this.paymentBehavior = paymentBehavior; this.prorationBehavior = prorationBehavior; this.prorationDate = prorationDate; } @@ -86,8 +76,6 @@ public static class Builder { private Map extraParams; - private PaymentBehavior paymentBehavior; - private ProrationBehavior prorationBehavior; private Long prorationDate; @@ -98,7 +86,6 @@ public SubscriptionResumeParams build() { this.billingCycleAnchor, this.expand, this.extraParams, - this.paymentBehavior, this.prorationBehavior, this.prorationDate); } @@ -166,16 +153,6 @@ public Builder putAllExtraParam(Map map) { return this; } - /** - * Controls whether Stripe attempts payment on the resumption invoice in the resume request, and - * how payment on that invoice affects the subscription's status. The default is {@code - * resume_on_payment_attempt}. - */ - public Builder setPaymentBehavior(SubscriptionResumeParams.PaymentBehavior paymentBehavior) { - this.paymentBehavior = paymentBehavior; - return this; - } - /** * Determines how to handle prorations resulting from @@ -215,21 +192,6 @@ public enum BillingCycleAnchor implements ApiRequestParams.EnumParam { } } - public enum PaymentBehavior implements ApiRequestParams.EnumParam { - @SerializedName("resume_on_payment_attempt") - RESUME_ON_PAYMENT_ATTEMPT("resume_on_payment_attempt"), - - @SerializedName("resume_on_payment_success") - RESUME_ON_PAYMENT_SUCCESS("resume_on_payment_success"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - PaymentBehavior(String value) { - this.value = value; - } - } - public enum ProrationBehavior implements ApiRequestParams.EnumParam { @SerializedName("always_invoice") ALWAYS_INVOICE("always_invoice"), From 2b1346ce505228b36e56d2d9c6f3239eee7d0a21 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 15 May 2026 09:06:09 +0000 Subject: [PATCH 05/13] Update generated code for v2266 and 9f2e574a668ddffc899c07160e9b540aaebda67c --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/PaymentIntent.java | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 6177d5fbb66..929e40fa65e 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -c1e5d6fabe06fd2f626d865acf640ebb6fd10be9 \ No newline at end of file +9f2e574a668ddffc899c07160e9b540aaebda67c \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ac6d007fa75..950c53e7742 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2265 \ No newline at end of file +v2266 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java index a1dc9b73867..fed2a848a5f 100644 --- a/src/main/java/com/stripe/model/PaymentIntent.java +++ b/src/main/java/com/stripe/model/PaymentIntent.java @@ -56,6 +56,15 @@ public class PaymentIntent extends ApiResource implements HasId, MetadataStore

allowedPaymentMethodTypes; + /** * Amount intended to be collected by this PaymentIntent. A positive integer representing how much * to charge in the smallest currency From 799c3ae843b48576b3845a4aa2da724721861f34 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 15 May 2026 21:57:54 +0000 Subject: [PATCH 06/13] Update generated code for v2269 and 90b299545de05ff13048c112577bdfb3260f6c5a --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/StripeClient.java | 12 ++ .../stripe/model/EventDataClassLookup.java | 2 + .../model/PaymentLocationCapability.java | 187 ++++++++++++++++++ .../stripe/model/issuing/Authorization.java | 35 ++++ ...PaymentLocationCapabilityUpdateParams.java | 141 +++++++++++++ .../PaymentLocationCapabilityService.java | 46 +++++ .../java/com/stripe/service/V1Services.java | 4 + 9 files changed, 429 insertions(+), 2 deletions(-) create mode 100644 src/main/java/com/stripe/model/PaymentLocationCapability.java create mode 100644 src/main/java/com/stripe/param/PaymentLocationCapabilityUpdateParams.java create mode 100644 src/main/java/com/stripe/service/PaymentLocationCapabilityService.java diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 929e40fa65e..93493ef7b8c 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -9f2e574a668ddffc899c07160e9b540aaebda67c \ No newline at end of file +90b299545de05ff13048c112577bdfb3260f6c5a \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 950c53e7742..bde190aa010 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2266 \ No newline at end of file +v2269 \ No newline at end of file diff --git a/src/main/java/com/stripe/StripeClient.java b/src/main/java/com/stripe/StripeClient.java index e68e34776a9..25480263553 100644 --- a/src/main/java/com/stripe/StripeClient.java +++ b/src/main/java/com/stripe/StripeClient.java @@ -750,6 +750,18 @@ public com.stripe.service.PaymentLinkService paymentLinks() { return new com.stripe.service.PaymentLinkService(this.getResponseGetter()); } + /** + * @deprecated StripeClient.paymentLocationCapabilities() is deprecated, use + * StripeClient.v1().paymentLocationCapabilities() instead. All functionality under it has + * been copied over to StripeClient.v1().paymentLocationCapabilities(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. + */ + @Deprecated + public com.stripe.service.PaymentLocationCapabilityService paymentLocationCapabilities() { + return new com.stripe.service.PaymentLocationCapabilityService(this.getResponseGetter()); + } + /** * @deprecated StripeClient.paymentLocations() is deprecated, use * StripeClient.v1().paymentLocations() instead. All functionality under it has been copied diff --git a/src/main/java/com/stripe/model/EventDataClassLookup.java b/src/main/java/com/stripe/model/EventDataClassLookup.java index 33a084b8443..66c1b410f74 100644 --- a/src/main/java/com/stripe/model/EventDataClassLookup.java +++ b/src/main/java/com/stripe/model/EventDataClassLookup.java @@ -72,6 +72,8 @@ public final class EventDataClassLookup { com.stripe.model.PaymentIntentAmountDetailsLineItem.class); classLookup.put("payment_link", com.stripe.model.PaymentLink.class); classLookup.put("payment_location", com.stripe.model.PaymentLocation.class); + classLookup.put( + "payment_location_capability", com.stripe.model.PaymentLocationCapability.class); classLookup.put("payment_method", com.stripe.model.PaymentMethod.class); classLookup.put("payment_method_balance", com.stripe.model.PaymentMethodBalance.class); classLookup.put( diff --git a/src/main/java/com/stripe/model/PaymentLocationCapability.java b/src/main/java/com/stripe/model/PaymentLocationCapability.java new file mode 100644 index 00000000000..ce62e6e1a8b --- /dev/null +++ b/src/main/java/com/stripe/model/PaymentLocationCapability.java @@ -0,0 +1,187 @@ +// File generated from our OpenAPI spec +package com.stripe.model; + +import com.google.gson.annotations.SerializedName; +import com.stripe.exception.StripeException; +import com.stripe.net.ApiRequest; +import com.stripe.net.ApiRequestParams; +import com.stripe.net.ApiResource; +import com.stripe.net.BaseAddress; +import com.stripe.net.RequestOptions; +import com.stripe.net.StripeResponseGetter; +import com.stripe.param.PaymentLocationCapabilityUpdateParams; +import java.util.List; +import java.util.Map; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.Setter; + +/** + * A Payment Location Capability represents a capability for a Stripe account at a Payment Location. + */ +@Getter +@Setter +@EqualsAndHashCode(callSuper = false) +public class PaymentLocationCapability extends ApiResource { + /** The account for which the capability enables functionality. */ + @SerializedName("account") + String account; + + /** + * The identifier for the capability. + * + *

Equal to {@code fr_meal_vouchers_conecs_payments}. + */ + @SerializedName("capability") + String capability; + + /** The payment location for which the capability enables functionality. */ + @SerializedName("location") + String location; + + /** + * String representing the object's type. Objects of the same type share the same value. + * + *

Equal to {@code payment_location_capability}. + */ + @SerializedName("object") + String object; + + /** Whether the capability has been requested. */ + @SerializedName("requested") + Boolean requested; + + /** Time at which the capability was requested. Measured in seconds since the Unix epoch. */ + @SerializedName("requested_at") + Long requestedAt; + + @SerializedName("requirements") + Requirements requirements; + + /** + * The status of the capability. + * + *

One of {@code active}, {@code inactive}, {@code pending}, or {@code unrequested}. + */ + @SerializedName("status") + String status; + + /** + * Updates a specified Payment Location Capability. Request or remove a payment location + * capability by updating its {@code requested} parameter. + */ + public static PaymentLocationCapability update(String capability, Map params) + throws StripeException { + return update(capability, params, (RequestOptions) null); + } + + /** + * Updates a specified Payment Location Capability. Request or remove a payment location + * capability by updating its {@code requested} parameter. + */ + public static PaymentLocationCapability update( + String capability, Map params, RequestOptions options) + throws StripeException { + String path = + String.format("/v1/payment_location_capabilities/%s", ApiResource.urlEncodeId(capability)); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options); + return getGlobalResponseGetter().request(request, PaymentLocationCapability.class); + } + + /** + * Updates a specified Payment Location Capability. Request or remove a payment location + * capability by updating its {@code requested} parameter. + */ + public static PaymentLocationCapability update( + String capability, PaymentLocationCapabilityUpdateParams params) throws StripeException { + return update(capability, params, (RequestOptions) null); + } + + /** + * Updates a specified Payment Location Capability. Request or remove a payment location + * capability by updating its {@code requested} parameter. + */ + public static PaymentLocationCapability update( + String capability, PaymentLocationCapabilityUpdateParams params, RequestOptions options) + throws StripeException { + String path = + String.format("/v1/payment_location_capabilities/%s", ApiResource.urlEncodeId(capability)); + ApiResource.checkNullTypedParams(path, params); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options); + return getGlobalResponseGetter().request(request, PaymentLocationCapability.class); + } + + /** + * For more details about Requirements, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Requirements extends StripeObject { + /** Fields that need to be collected to keep the capability enabled. */ + @SerializedName("currently_due") + List currentlyDue; + + /** + * Description of why the capability is disabled. + * + *

One of {@code account.capability_required}, {@code pending.onboarding}, {@code + * pending.review}, {@code rejected.other}, {@code rejected.unsupported_business}, or {@code + * requirements.fields_needed}. + */ + @SerializedName("disabled_reason") + String disabledReason; + + /** + * Fields that are {@code currently_due} and need to be collected again because validation or + * verification failed. + */ + @SerializedName("errors") + List errors; + + /** + * For more details about Errors, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Errors extends StripeObject { + /** + * The code for the type of error. + * + *

One of {@code information_missing}, or {@code invalid_value_other}. + */ + @SerializedName("code") + String code; + + /** + * An informative message that indicates the error type and provides additional details about + * the error. + */ + @SerializedName("reason") + String reason; + + /** + * The specific user onboarding requirement field (in the requirements hash) that needs to be + * resolved. + */ + @SerializedName("requirement") + String requirement; + } + } + + @Override + public void setResponseGetter(StripeResponseGetter responseGetter) { + super.setResponseGetter(responseGetter); + trySetResponseGetter(requirements, responseGetter); + } +} diff --git a/src/main/java/com/stripe/model/issuing/Authorization.java b/src/main/java/com/stripe/model/issuing/Authorization.java index 8753ce5b5dd..d4623150749 100644 --- a/src/main/java/com/stripe/model/issuing/Authorization.java +++ b/src/main/java/com/stripe/model/issuing/Authorization.java @@ -76,6 +76,9 @@ public class Authorization extends ApiResource @SerializedName("authorization_method") String authorizationMethod; + @SerializedName("balance_response") + BalanceResponse balanceResponse; + /** List of balance transactions associated with this authorization. */ @SerializedName("balance_transactions") List balanceTransactions; @@ -642,6 +645,37 @@ public static class AmountDetails extends StripeObject { Long cashbackAmount; } + /** + * For more details about BalanceResponse, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class BalanceResponse extends StripeObject { + /** + * The cardholder account type affected by this authorization. + * + *

One of {@code checking}, {@code credit}, {@code default}, {@code other}, {@code savings}, + * or {@code universal}. + */ + @SerializedName("account_type") + String accountType; + + /** + * The remaining balance in the cardholder's account after the authorization, in the smallest + * currency unit. + */ + @SerializedName("amount") + Long amount; + + /** + * The currency of the remaining balance in the cardholder's account after the authorization. + */ + @SerializedName("currency") + String currency; + } + /** * For more details about CryptoTransaction, please refer to the API Reference. @@ -2032,6 +2066,7 @@ public Authorization reverse(AuthorizationReverseParams params, RequestOptions o public void setResponseGetter(StripeResponseGetter responseGetter) { super.setResponseGetter(responseGetter); trySetResponseGetter(amountDetails, responseGetter); + trySetResponseGetter(balanceResponse, responseGetter); trySetResponseGetter(card, responseGetter); trySetResponseGetter(cardholder, responseGetter); trySetResponseGetter(fleet, responseGetter); diff --git a/src/main/java/com/stripe/param/PaymentLocationCapabilityUpdateParams.java b/src/main/java/com/stripe/param/PaymentLocationCapabilityUpdateParams.java new file mode 100644 index 00000000000..154ad13f7fb --- /dev/null +++ b/src/main/java/com/stripe/param/PaymentLocationCapabilityUpdateParams.java @@ -0,0 +1,141 @@ +// File generated from our OpenAPI spec +package com.stripe.param; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import com.stripe.param.common.EmptyParam; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import lombok.EqualsAndHashCode; +import lombok.Getter; + +@Getter +@EqualsAndHashCode(callSuper = false) +public class PaymentLocationCapabilityUpdateParams extends ApiRequestParams { + /** Specifies which fields in the response should be expanded. */ + @SerializedName("expand") + List expand; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Required. The location for which the capability enables functionality. */ + @SerializedName("location") + Object location; + + /** + * Required. To request a new capability for the location, set this to {@code + * true}. You can remove it from the location by passing {@code false}. + */ + @SerializedName("requested") + Boolean requested; + + private PaymentLocationCapabilityUpdateParams( + List expand, Map extraParams, Object location, Boolean requested) { + this.expand = expand; + this.extraParams = extraParams; + this.location = location; + this.requested = requested; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private List expand; + + private Map extraParams; + + private Object location; + + private Boolean requested; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentLocationCapabilityUpdateParams build() { + return new PaymentLocationCapabilityUpdateParams( + this.expand, this.extraParams, this.location, this.requested); + } + + /** + * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and + * subsequent calls adds additional elements to the original list. See {@link + * PaymentLocationCapabilityUpdateParams#expand} for the field documentation. + */ + public Builder addExpand(String element) { + if (this.expand == null) { + this.expand = new ArrayList<>(); + } + this.expand.add(element); + return this; + } + + /** + * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and + * subsequent calls adds additional elements to the original list. See {@link + * PaymentLocationCapabilityUpdateParams#expand} for the field documentation. + */ + public Builder addAllExpand(List elements) { + if (this.expand == null) { + this.expand = new ArrayList<>(); + } + this.expand.addAll(elements); + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * PaymentLocationCapabilityUpdateParams#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link PaymentLocationCapabilityUpdateParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Required. The location for which the capability enables functionality. */ + public Builder setLocation(String location) { + this.location = location; + return this; + } + + /** Required. The location for which the capability enables functionality. */ + public Builder setLocation(EmptyParam location) { + this.location = location; + return this; + } + + /** + * Required. To request a new capability for the location, set this to {@code + * true}. You can remove it from the location by passing {@code false}. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } +} diff --git a/src/main/java/com/stripe/service/PaymentLocationCapabilityService.java b/src/main/java/com/stripe/service/PaymentLocationCapabilityService.java new file mode 100644 index 00000000000..82792aae54e --- /dev/null +++ b/src/main/java/com/stripe/service/PaymentLocationCapabilityService.java @@ -0,0 +1,46 @@ +// File generated from our OpenAPI spec +package com.stripe.service; + +import com.stripe.exception.StripeException; +import com.stripe.model.PaymentLocationCapability; +import com.stripe.net.ApiRequest; +import com.stripe.net.ApiRequestParams; +import com.stripe.net.ApiResource; +import com.stripe.net.ApiService; +import com.stripe.net.BaseAddress; +import com.stripe.net.RequestOptions; +import com.stripe.net.StripeResponseGetter; +import com.stripe.param.PaymentLocationCapabilityUpdateParams; + +public final class PaymentLocationCapabilityService extends ApiService { + public PaymentLocationCapabilityService(StripeResponseGetter responseGetter) { + super(responseGetter); + } + + /** + * Updates a specified Payment Location Capability. Request or remove a payment location + * capability by updating its {@code requested} parameter. + */ + public PaymentLocationCapability update( + String capability, PaymentLocationCapabilityUpdateParams params) throws StripeException { + return update(capability, params, (RequestOptions) null); + } + /** + * Updates a specified Payment Location Capability. Request or remove a payment location + * capability by updating its {@code requested} parameter. + */ + public PaymentLocationCapability update( + String capability, PaymentLocationCapabilityUpdateParams params, RequestOptions options) + throws StripeException { + String path = + String.format("/v1/payment_location_capabilities/%s", ApiResource.urlEncodeId(capability)); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request(request, PaymentLocationCapability.class); + } +} diff --git a/src/main/java/com/stripe/service/V1Services.java b/src/main/java/com/stripe/service/V1Services.java index ad9438bde9c..9585dfbf5ef 100644 --- a/src/main/java/com/stripe/service/V1Services.java +++ b/src/main/java/com/stripe/service/V1Services.java @@ -205,6 +205,10 @@ public com.stripe.service.PaymentLinkService paymentLinks() { return new com.stripe.service.PaymentLinkService(this.getResponseGetter()); } + public com.stripe.service.PaymentLocationCapabilityService paymentLocationCapabilities() { + return new com.stripe.service.PaymentLocationCapabilityService(this.getResponseGetter()); + } + public com.stripe.service.PaymentLocationService paymentLocations() { return new com.stripe.service.PaymentLocationService(this.getResponseGetter()); } From ea6977544f851fdea5e92bc06f4763d9734f56e3 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 15 May 2026 22:22:07 +0000 Subject: [PATCH 07/13] Update generated code for v2270 and add4195cf003b11b8c28d6d2a9e6c6fa5a5f3623 --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- .../java/com/stripe/model/InvoiceItem.java | 51 ------------------- 3 files changed, 2 insertions(+), 53 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 93493ef7b8c..ba13aa28ed4 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -90b299545de05ff13048c112577bdfb3260f6c5a \ No newline at end of file +add4195cf003b11b8c28d6d2a9e6c6fa5a5f3623 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index bde190aa010..5c44261c7d1 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2269 \ No newline at end of file +v2270 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/InvoiceItem.java b/src/main/java/com/stripe/model/InvoiceItem.java index d4b4323c64f..c77b5e2ec52 100644 --- a/src/main/java/com/stripe/model/InvoiceItem.java +++ b/src/main/java/com/stripe/model/InvoiceItem.java @@ -818,61 +818,10 @@ public static class RateCardRateDetails extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class ProrationDetails extends StripeObject { - @SerializedName("credited_items") - CreditedItems creditedItems; - /** Discount amounts applied when the proration was created. */ @SerializedName("discount_amounts") List discountAmounts; - /** - * For more details about CreditedItems, please refer to the API Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class CreditedItems extends StripeObject { - /** - * When {@code type} is {@code invoice_item}, the invoice item id for the debited invoice item - * corresponding to this credit proration. - */ - @SerializedName("invoice_item") - String invoiceItem; - - @SerializedName("invoice_line_items") - InvoiceLineItems invoiceLineItems; - - /** - * Whether the credit references a pending invoice item or one or more invoice line items on - * an invoice. - * - *

One of {@code invoice_item}, or {@code invoice_line_items}. - */ - @SerializedName("type") - String type; - - /** - * For more details about InvoiceLineItems, please refer to the API Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class InvoiceLineItems extends StripeObject { - /** The invoice id for the debited line item(s). */ - @SerializedName("invoice") - String invoice; - - /** - * IDs of the debited invoice line item(s) on the invoice that correspond to the credit - * proration. - */ - @SerializedName("invoice_line_items") - List invoiceLineItems; - } - } - /** * For more details about DiscountAmount, please refer to the API Reference. From dea6f3d10785d9a4df11fc2fe67d25841349d70d Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 15 May 2026 22:40:10 +0000 Subject: [PATCH 08/13] Update generated code for v2271 and 104722335bd36cf4d60f025dc4b0d7150a7c2200 --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- .../com/stripe/model/issuing/Dispute.java | 40 ++++++ .../param/issuing/DisputeCloseParams.java | 128 ++++++++++++++++++ .../testhelpers/issuing/DisputeService.java | 20 +++ 5 files changed, 190 insertions(+), 2 deletions(-) create mode 100644 src/main/java/com/stripe/param/issuing/DisputeCloseParams.java diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index ba13aa28ed4..ed64010d418 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -add4195cf003b11b8c28d6d2a9e6c6fa5a5f3623 \ No newline at end of file +104722335bd36cf4d60f025dc4b0d7150a7c2200 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 5c44261c7d1..022c6ec1d5d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2270 \ No newline at end of file +v2271 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/issuing/Dispute.java b/src/main/java/com/stripe/model/issuing/Dispute.java index ff2a6494890..aaf826e0876 100644 --- a/src/main/java/com/stripe/model/issuing/Dispute.java +++ b/src/main/java/com/stripe/model/issuing/Dispute.java @@ -15,6 +15,7 @@ import com.stripe.net.BaseAddress; import com.stripe.net.RequestOptions; import com.stripe.net.StripeResponseGetter; +import com.stripe.param.issuing.DisputeCloseParams; import com.stripe.param.issuing.DisputeCreateParams; import com.stripe.param.issuing.DisputeListParams; import com.stripe.param.issuing.DisputeRetrieveParams; @@ -1297,6 +1298,45 @@ private TestHelpers(Dispute resource) { this.resource = resource; } + /** Test helper: closes a test-mode Issuing dispute as won or lost. */ + public Dispute close(Map params) throws StripeException { + return close(params, (RequestOptions) null); + } + + /** Test helper: closes a test-mode Issuing dispute as won or lost. */ + public Dispute close(Map params, RequestOptions options) + throws StripeException { + String path = + String.format( + "/v1/test_helpers/issuing/disputes/%s/close", + ApiResource.urlEncodeId(this.resource.getId())); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options); + return resource.getResponseGetter().request(request, Dispute.class); + } + + /** Test helper: closes a test-mode Issuing dispute as won or lost. */ + public Dispute close(DisputeCloseParams params) throws StripeException { + return close(params, (RequestOptions) null); + } + + /** Test helper: closes a test-mode Issuing dispute as won or lost. */ + public Dispute close(DisputeCloseParams params, RequestOptions options) throws StripeException { + String path = + String.format( + "/v1/test_helpers/issuing/disputes/%s/close", + ApiResource.urlEncodeId(this.resource.getId())); + ApiResource.checkNullTypedParams(path, params); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options); + return resource.getResponseGetter().request(request, Dispute.class); + } + /** * Test helper: populates {@code network_lifecycle.dispute_response} on a test-mode Visa Issuing * Dispute using placeholder file tokens. Only supported for Visa disputes. diff --git a/src/main/java/com/stripe/param/issuing/DisputeCloseParams.java b/src/main/java/com/stripe/param/issuing/DisputeCloseParams.java new file mode 100644 index 00000000000..92607600021 --- /dev/null +++ b/src/main/java/com/stripe/param/issuing/DisputeCloseParams.java @@ -0,0 +1,128 @@ +// File generated from our OpenAPI spec +package com.stripe.param.issuing; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import lombok.EqualsAndHashCode; +import lombok.Getter; + +@Getter +@EqualsAndHashCode(callSuper = false) +public class DisputeCloseParams extends ApiRequestParams { + /** Specifies which fields in the response should be expanded. */ + @SerializedName("expand") + List expand; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Required. Whether to close the dispute as {@code won} or {@code lost}. */ + @SerializedName("status") + Status status; + + private DisputeCloseParams(List expand, Map extraParams, Status status) { + this.expand = expand; + this.extraParams = extraParams; + this.status = status; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private List expand; + + private Map extraParams; + + private Status status; + + /** Finalize and obtain parameter instance from this builder. */ + public DisputeCloseParams build() { + return new DisputeCloseParams(this.expand, this.extraParams, this.status); + } + + /** + * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and + * subsequent calls adds additional elements to the original list. See {@link + * DisputeCloseParams#expand} for the field documentation. + */ + public Builder addExpand(String element) { + if (this.expand == null) { + this.expand = new ArrayList<>(); + } + this.expand.add(element); + return this; + } + + /** + * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and + * subsequent calls adds additional elements to the original list. See {@link + * DisputeCloseParams#expand} for the field documentation. + */ + public Builder addAllExpand(List elements) { + if (this.expand == null) { + this.expand = new ArrayList<>(); + } + this.expand.addAll(elements); + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * DisputeCloseParams#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link DisputeCloseParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Required. Whether to close the dispute as {@code won} or {@code lost}. */ + public Builder setStatus(DisputeCloseParams.Status status) { + this.status = status; + return this; + } + } + + public enum Status implements ApiRequestParams.EnumParam { + @SerializedName("lost") + LOST("lost"), + + @SerializedName("won") + WON("won"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Status(String value) { + this.value = value; + } + } +} diff --git a/src/main/java/com/stripe/service/testhelpers/issuing/DisputeService.java b/src/main/java/com/stripe/service/testhelpers/issuing/DisputeService.java index 937733e8f41..318d4a0d5b6 100644 --- a/src/main/java/com/stripe/service/testhelpers/issuing/DisputeService.java +++ b/src/main/java/com/stripe/service/testhelpers/issuing/DisputeService.java @@ -10,6 +10,7 @@ import com.stripe.net.BaseAddress; import com.stripe.net.RequestOptions; import com.stripe.net.StripeResponseGetter; +import com.stripe.param.issuing.DisputeCloseParams; import com.stripe.param.issuing.DisputeSimulateNetworkLifecycleDisputeResponseParams; import com.stripe.param.issuing.DisputeSimulateNetworkLifecyclePreArbitrationResponseParams; import com.stripe.param.issuing.DisputeSimulateNetworkLifecyclePreArbitrationSubmissionParams; @@ -19,6 +20,25 @@ public DisputeService(StripeResponseGetter responseGetter) { super(responseGetter); } + /** Test helper: closes a test-mode Issuing dispute as won or lost. */ + public Dispute close(String dispute, DisputeCloseParams params) throws StripeException { + return close(dispute, params, (RequestOptions) null); + } + /** Test helper: closes a test-mode Issuing dispute as won or lost. */ + public Dispute close(String dispute, DisputeCloseParams params, RequestOptions options) + throws StripeException { + String path = + String.format( + "/v1/test_helpers/issuing/disputes/%s/close", ApiResource.urlEncodeId(dispute)); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request(request, Dispute.class); + } /** * Test helper: populates {@code network_lifecycle.dispute_response} on a test-mode Visa Issuing * Dispute using placeholder file tokens. Only supported for Visa disputes. From 4b381496831f78b67a9d5b05957d74771384e79b Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 18 May 2026 18:07:50 +0000 Subject: [PATCH 09/13] Update generated code for v2272 and 465cff036983d479dec172c65db53845e8261b31 --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- .../model/PaymentLocationCapability.java | 113 ++++++++++++++--- .../PaymentLocationCapabilityCollection.java | 5 + .../PaymentLocationCapabilityListParams.java | 114 +++++++++++++++++ ...ymentLocationCapabilityRetrieveParams.java | 120 ++++++++++++++++++ .../PaymentLocationCapabilityService.java | 43 +++++++ 7 files changed, 382 insertions(+), 17 deletions(-) create mode 100644 src/main/java/com/stripe/model/PaymentLocationCapabilityCollection.java create mode 100644 src/main/java/com/stripe/param/PaymentLocationCapabilityListParams.java create mode 100644 src/main/java/com/stripe/param/PaymentLocationCapabilityRetrieveParams.java diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index ed64010d418..b38e2cac845 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -104722335bd36cf4d60f025dc4b0d7150a7c2200 \ No newline at end of file +465cff036983d479dec172c65db53845e8261b31 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 022c6ec1d5d..bab4154ccdb 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2271 \ No newline at end of file +v2272 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/PaymentLocationCapability.java b/src/main/java/com/stripe/model/PaymentLocationCapability.java index ce62e6e1a8b..34b2d7b2dc0 100644 --- a/src/main/java/com/stripe/model/PaymentLocationCapability.java +++ b/src/main/java/com/stripe/model/PaymentLocationCapability.java @@ -9,6 +9,8 @@ import com.stripe.net.BaseAddress; import com.stripe.net.RequestOptions; import com.stripe.net.StripeResponseGetter; +import com.stripe.param.PaymentLocationCapabilityListParams; +import com.stripe.param.PaymentLocationCapabilityRetrieveParams; import com.stripe.param.PaymentLocationCapabilityUpdateParams; import java.util.List; import java.util.Map; @@ -35,6 +37,13 @@ public class PaymentLocationCapability extends ApiResource { @SerializedName("capability") String capability; + /** + * If the object exists in live mode, the value is {@code true}. If the object exists in test + * mode, the value is {@code false}. + */ + @SerializedName("livemode") + Boolean livemode; + /** The payment location for which the capability enables functionality. */ @SerializedName("location") String location; @@ -66,47 +75,121 @@ public class PaymentLocationCapability extends ApiResource { @SerializedName("status") String status; + /** Returns a list of {@code PaymentLocationCapability} objects associated with the location. */ + public static PaymentLocationCapabilityCollection list(Map params) + throws StripeException { + return list(params, (RequestOptions) null); + } + + /** Returns a list of {@code PaymentLocationCapability} objects associated with the location. */ + public static PaymentLocationCapabilityCollection list( + Map params, RequestOptions options) throws StripeException { + String path = "/v1/payment_location_capabilities"; + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options); + return getGlobalResponseGetter().request(request, PaymentLocationCapabilityCollection.class); + } + + /** Returns a list of {@code PaymentLocationCapability} objects associated with the location. */ + public static PaymentLocationCapabilityCollection list(PaymentLocationCapabilityListParams params) + throws StripeException { + return list(params, (RequestOptions) null); + } + + /** Returns a list of {@code PaymentLocationCapability} objects associated with the location. */ + public static PaymentLocationCapabilityCollection list( + PaymentLocationCapabilityListParams params, RequestOptions options) throws StripeException { + String path = "/v1/payment_location_capabilities"; + ApiResource.checkNullTypedParams(path, params); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + path, + ApiRequestParams.paramsToMap(params), + options); + return getGlobalResponseGetter().request(request, PaymentLocationCapabilityCollection.class); + } + + /** Retrieves information about the specified Payment Location Capability. */ + public static PaymentLocationCapability retrieve(String capability) throws StripeException { + return retrieve(capability, (Map) null, (RequestOptions) null); + } + + /** Retrieves information about the specified Payment Location Capability. */ + public static PaymentLocationCapability retrieve(String capability, RequestOptions options) + throws StripeException { + return retrieve(capability, (Map) null, options); + } + + /** Retrieves information about the specified Payment Location Capability. */ + public static PaymentLocationCapability retrieve( + String capability, Map params, RequestOptions options) + throws StripeException { + String path = + String.format("/v1/payment_location_capabilities/%s", ApiResource.urlEncodeId(capability)); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options); + return getGlobalResponseGetter().request(request, PaymentLocationCapability.class); + } + + /** Retrieves information about the specified Payment Location Capability. */ + public static PaymentLocationCapability retrieve( + String capability, PaymentLocationCapabilityRetrieveParams params, RequestOptions options) + throws StripeException { + String path = + String.format("/v1/payment_location_capabilities/%s", ApiResource.urlEncodeId(capability)); + ApiResource.checkNullTypedParams(path, params); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + path, + ApiRequestParams.paramsToMap(params), + options); + return getGlobalResponseGetter().request(request, PaymentLocationCapability.class); + } + /** * Updates a specified Payment Location Capability. Request or remove a payment location * capability by updating its {@code requested} parameter. */ - public static PaymentLocationCapability update(String capability, Map params) - throws StripeException { - return update(capability, params, (RequestOptions) null); + public PaymentLocationCapability update(Map params) throws StripeException { + return update(params, (RequestOptions) null); } /** * Updates a specified Payment Location Capability. Request or remove a payment location * capability by updating its {@code requested} parameter. */ - public static PaymentLocationCapability update( - String capability, Map params, RequestOptions options) + public PaymentLocationCapability update(Map params, RequestOptions options) throws StripeException { String path = - String.format("/v1/payment_location_capabilities/%s", ApiResource.urlEncodeId(capability)); + String.format( + "/v1/payment_location_capabilities/%s", ApiResource.urlEncodeId(this.getCapability())); ApiRequest request = new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options); - return getGlobalResponseGetter().request(request, PaymentLocationCapability.class); + return getResponseGetter().request(request, PaymentLocationCapability.class); } /** * Updates a specified Payment Location Capability. Request or remove a payment location * capability by updating its {@code requested} parameter. */ - public static PaymentLocationCapability update( - String capability, PaymentLocationCapabilityUpdateParams params) throws StripeException { - return update(capability, params, (RequestOptions) null); + public PaymentLocationCapability update(PaymentLocationCapabilityUpdateParams params) + throws StripeException { + return update(params, (RequestOptions) null); } /** * Updates a specified Payment Location Capability. Request or remove a payment location * capability by updating its {@code requested} parameter. */ - public static PaymentLocationCapability update( - String capability, PaymentLocationCapabilityUpdateParams params, RequestOptions options) - throws StripeException { + public PaymentLocationCapability update( + PaymentLocationCapabilityUpdateParams params, RequestOptions options) throws StripeException { String path = - String.format("/v1/payment_location_capabilities/%s", ApiResource.urlEncodeId(capability)); + String.format( + "/v1/payment_location_capabilities/%s", ApiResource.urlEncodeId(this.getCapability())); ApiResource.checkNullTypedParams(path, params); ApiRequest request = new ApiRequest( @@ -115,7 +198,7 @@ public static PaymentLocationCapability update( path, ApiRequestParams.paramsToMap(params), options); - return getGlobalResponseGetter().request(request, PaymentLocationCapability.class); + return getResponseGetter().request(request, PaymentLocationCapability.class); } /** diff --git a/src/main/java/com/stripe/model/PaymentLocationCapabilityCollection.java b/src/main/java/com/stripe/model/PaymentLocationCapabilityCollection.java new file mode 100644 index 00000000000..d087c0887d6 --- /dev/null +++ b/src/main/java/com/stripe/model/PaymentLocationCapabilityCollection.java @@ -0,0 +1,5 @@ +// File generated from our OpenAPI spec +package com.stripe.model; + +public class PaymentLocationCapabilityCollection + extends StripeCollection {} diff --git a/src/main/java/com/stripe/param/PaymentLocationCapabilityListParams.java b/src/main/java/com/stripe/param/PaymentLocationCapabilityListParams.java new file mode 100644 index 00000000000..0928ba0505c --- /dev/null +++ b/src/main/java/com/stripe/param/PaymentLocationCapabilityListParams.java @@ -0,0 +1,114 @@ +// File generated from our OpenAPI spec +package com.stripe.param; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import lombok.EqualsAndHashCode; +import lombok.Getter; + +@Getter +@EqualsAndHashCode(callSuper = false) +public class PaymentLocationCapabilityListParams extends ApiRequestParams { + /** Specifies which fields in the response should be expanded. */ + @SerializedName("expand") + List expand; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Required. The location for which the capabilities enable functionality. */ + @SerializedName("location") + String location; + + private PaymentLocationCapabilityListParams( + List expand, Map extraParams, String location) { + this.expand = expand; + this.extraParams = extraParams; + this.location = location; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private List expand; + + private Map extraParams; + + private String location; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentLocationCapabilityListParams build() { + return new PaymentLocationCapabilityListParams(this.expand, this.extraParams, this.location); + } + + /** + * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and + * subsequent calls adds additional elements to the original list. See {@link + * PaymentLocationCapabilityListParams#expand} for the field documentation. + */ + public Builder addExpand(String element) { + if (this.expand == null) { + this.expand = new ArrayList<>(); + } + this.expand.add(element); + return this; + } + + /** + * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and + * subsequent calls adds additional elements to the original list. See {@link + * PaymentLocationCapabilityListParams#expand} for the field documentation. + */ + public Builder addAllExpand(List elements) { + if (this.expand == null) { + this.expand = new ArrayList<>(); + } + this.expand.addAll(elements); + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * PaymentLocationCapabilityListParams#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link PaymentLocationCapabilityListParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Required. The location for which the capabilities enable functionality. */ + public Builder setLocation(String location) { + this.location = location; + return this; + } + } +} diff --git a/src/main/java/com/stripe/param/PaymentLocationCapabilityRetrieveParams.java b/src/main/java/com/stripe/param/PaymentLocationCapabilityRetrieveParams.java new file mode 100644 index 00000000000..bf24731a0aa --- /dev/null +++ b/src/main/java/com/stripe/param/PaymentLocationCapabilityRetrieveParams.java @@ -0,0 +1,120 @@ +// File generated from our OpenAPI spec +package com.stripe.param; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import lombok.EqualsAndHashCode; +import lombok.Getter; + +@Getter +@EqualsAndHashCode(callSuper = false) +public class PaymentLocationCapabilityRetrieveParams extends ApiRequestParams { + /** Specifies which fields in the response should be expanded. */ + @SerializedName("expand") + List expand; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * Required. The payment location for which the capability enables functionality. + */ + @SerializedName("location") + String location; + + private PaymentLocationCapabilityRetrieveParams( + List expand, Map extraParams, String location) { + this.expand = expand; + this.extraParams = extraParams; + this.location = location; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private List expand; + + private Map extraParams; + + private String location; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentLocationCapabilityRetrieveParams build() { + return new PaymentLocationCapabilityRetrieveParams( + this.expand, this.extraParams, this.location); + } + + /** + * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and + * subsequent calls adds additional elements to the original list. See {@link + * PaymentLocationCapabilityRetrieveParams#expand} for the field documentation. + */ + public Builder addExpand(String element) { + if (this.expand == null) { + this.expand = new ArrayList<>(); + } + this.expand.add(element); + return this; + } + + /** + * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and + * subsequent calls adds additional elements to the original list. See {@link + * PaymentLocationCapabilityRetrieveParams#expand} for the field documentation. + */ + public Builder addAllExpand(List elements) { + if (this.expand == null) { + this.expand = new ArrayList<>(); + } + this.expand.addAll(elements); + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * PaymentLocationCapabilityRetrieveParams#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link PaymentLocationCapabilityRetrieveParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Required. The payment location for which the capability enables + * functionality. + */ + public Builder setLocation(String location) { + this.location = location; + return this; + } + } +} diff --git a/src/main/java/com/stripe/service/PaymentLocationCapabilityService.java b/src/main/java/com/stripe/service/PaymentLocationCapabilityService.java index 82792aae54e..26e8b03c4be 100644 --- a/src/main/java/com/stripe/service/PaymentLocationCapabilityService.java +++ b/src/main/java/com/stripe/service/PaymentLocationCapabilityService.java @@ -1,8 +1,10 @@ // File generated from our OpenAPI spec package com.stripe.service; +import com.google.gson.reflect.TypeToken; import com.stripe.exception.StripeException; import com.stripe.model.PaymentLocationCapability; +import com.stripe.model.StripeCollection; import com.stripe.net.ApiRequest; import com.stripe.net.ApiRequestParams; import com.stripe.net.ApiResource; @@ -10,6 +12,8 @@ import com.stripe.net.BaseAddress; import com.stripe.net.RequestOptions; import com.stripe.net.StripeResponseGetter; +import com.stripe.param.PaymentLocationCapabilityListParams; +import com.stripe.param.PaymentLocationCapabilityRetrieveParams; import com.stripe.param.PaymentLocationCapabilityUpdateParams; public final class PaymentLocationCapabilityService extends ApiService { @@ -17,6 +21,45 @@ public PaymentLocationCapabilityService(StripeResponseGetter responseGetter) { super(responseGetter); } + /** Returns a list of {@code PaymentLocationCapability} objects associated with the location. */ + public StripeCollection list( + PaymentLocationCapabilityListParams params) throws StripeException { + return list(params, (RequestOptions) null); + } + /** Returns a list of {@code PaymentLocationCapability} objects associated with the location. */ + public StripeCollection list( + PaymentLocationCapabilityListParams params, RequestOptions options) throws StripeException { + String path = "/v1/payment_location_capabilities"; + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request( + request, new TypeToken>() {}.getType()); + } + /** Retrieves information about the specified Payment Location Capability. */ + public PaymentLocationCapability retrieve( + String capability, PaymentLocationCapabilityRetrieveParams params) throws StripeException { + return retrieve(capability, params, (RequestOptions) null); + } + /** Retrieves information about the specified Payment Location Capability. */ + public PaymentLocationCapability retrieve( + String capability, PaymentLocationCapabilityRetrieveParams params, RequestOptions options) + throws StripeException { + String path = + String.format("/v1/payment_location_capabilities/%s", ApiResource.urlEncodeId(capability)); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request(request, PaymentLocationCapability.class); + } /** * Updates a specified Payment Location Capability. Request or remove a payment location * capability by updating its {@code requested} parameter. From cb92452c803734b7b326ec0d161ec0391439351b Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 18 May 2026 19:14:41 +0000 Subject: [PATCH 10/13] Update generated code for v2273 and 4df06b72321f83e0f11b36fc554eeb3aa2327bd6 --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- .../param/PaymentIntentConfirmParams.java | 33 +++++++++++++++++-- .../param/PaymentIntentCreateParams.java | 33 +++++++++++++++++-- .../param/PaymentIntentUpdateParams.java | 33 +++++++++++++++++-- .../param/SetupIntentConfirmParams.java | 33 +++++++++++++++++-- .../stripe/param/SetupIntentCreateParams.java | 33 +++++++++++++++++-- .../stripe/param/SetupIntentUpdateParams.java | 33 +++++++++++++++++-- 8 files changed, 188 insertions(+), 14 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index b38e2cac845..5af2fffe704 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -465cff036983d479dec172c65db53845e8261b31 \ No newline at end of file +4df06b72321f83e0f11b36fc554eeb3aa2327bd6 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index bab4154ccdb..775d1bdf610 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2272 \ No newline at end of file +v2273 \ No newline at end of file diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java index 3a847c39bb9..3202269c950 100644 --- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java @@ -3789,6 +3789,10 @@ public Builder setFrMealVoucher(EmptyParam frMealVoucher) { @Getter @EqualsAndHashCode(callSuper = false) public static class FrMealVoucher { + /** Whether to enable meal voucher benefit for this payment. */ + @SerializedName("enabled") + Enabled enabled; + /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -3803,7 +3807,8 @@ public static class FrMealVoucher { @SerializedName("siret") String siret; - private FrMealVoucher(Map extraParams, String siret) { + private FrMealVoucher(Enabled enabled, Map extraParams, String siret) { + this.enabled = enabled; this.extraParams = extraParams; this.siret = siret; } @@ -3813,6 +3818,8 @@ public static Builder builder() { } public static class Builder { + private Enabled enabled; + private Map extraParams; private String siret; @@ -3820,7 +3827,14 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public PaymentIntentConfirmParams.PaymentDetails.Benefit.FrMealVoucher build() { return new PaymentIntentConfirmParams.PaymentDetails.Benefit.FrMealVoucher( - this.extraParams, this.siret); + this.enabled, this.extraParams, this.siret); + } + + /** Whether to enable meal voucher benefit for this payment. */ + public Builder setEnabled( + PaymentIntentConfirmParams.PaymentDetails.Benefit.FrMealVoucher.Enabled enabled) { + this.enabled = enabled; + return this; } /** @@ -3859,6 +3873,21 @@ public Builder setSiret(String siret) { return this; } } + + public enum Enabled implements ApiRequestParams.EnumParam { + @SerializedName("if_payment_method_is_eligible") + IF_PAYMENT_METHOD_IS_ELIGIBLE("if_payment_method_is_eligible"), + + @SerializedName("never") + NEVER("never"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Enabled(String value) { + this.value = value; + } + } } } diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java index c2bc4a555c8..166f4e139c4 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java @@ -4310,6 +4310,10 @@ public Builder setFrMealVoucher(EmptyParam frMealVoucher) { @Getter @EqualsAndHashCode(callSuper = false) public static class FrMealVoucher { + /** Whether to enable meal voucher benefit for this payment. */ + @SerializedName("enabled") + Enabled enabled; + /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -4324,7 +4328,8 @@ public static class FrMealVoucher { @SerializedName("siret") String siret; - private FrMealVoucher(Map extraParams, String siret) { + private FrMealVoucher(Enabled enabled, Map extraParams, String siret) { + this.enabled = enabled; this.extraParams = extraParams; this.siret = siret; } @@ -4334,6 +4339,8 @@ public static Builder builder() { } public static class Builder { + private Enabled enabled; + private Map extraParams; private String siret; @@ -4341,7 +4348,14 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public PaymentIntentCreateParams.PaymentDetails.Benefit.FrMealVoucher build() { return new PaymentIntentCreateParams.PaymentDetails.Benefit.FrMealVoucher( - this.extraParams, this.siret); + this.enabled, this.extraParams, this.siret); + } + + /** Whether to enable meal voucher benefit for this payment. */ + public Builder setEnabled( + PaymentIntentCreateParams.PaymentDetails.Benefit.FrMealVoucher.Enabled enabled) { + this.enabled = enabled; + return this; } /** @@ -4380,6 +4394,21 @@ public Builder setSiret(String siret) { return this; } } + + public enum Enabled implements ApiRequestParams.EnumParam { + @SerializedName("if_payment_method_is_eligible") + IF_PAYMENT_METHOD_IS_ELIGIBLE("if_payment_method_is_eligible"), + + @SerializedName("never") + NEVER("never"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Enabled(String value) { + this.value = value; + } + } } } diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index 7b90ce87109..93d48ffa6ca 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -4041,6 +4041,10 @@ public Builder setFrMealVoucher(EmptyParam frMealVoucher) { @Getter @EqualsAndHashCode(callSuper = false) public static class FrMealVoucher { + /** Whether to enable meal voucher benefit for this payment. */ + @SerializedName("enabled") + Enabled enabled; + /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -4055,7 +4059,8 @@ public static class FrMealVoucher { @SerializedName("siret") Object siret; - private FrMealVoucher(Map extraParams, Object siret) { + private FrMealVoucher(Enabled enabled, Map extraParams, Object siret) { + this.enabled = enabled; this.extraParams = extraParams; this.siret = siret; } @@ -4065,6 +4070,8 @@ public static Builder builder() { } public static class Builder { + private Enabled enabled; + private Map extraParams; private Object siret; @@ -4072,7 +4079,14 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public PaymentIntentUpdateParams.PaymentDetails.Benefit.FrMealVoucher build() { return new PaymentIntentUpdateParams.PaymentDetails.Benefit.FrMealVoucher( - this.extraParams, this.siret); + this.enabled, this.extraParams, this.siret); + } + + /** Whether to enable meal voucher benefit for this payment. */ + public Builder setEnabled( + PaymentIntentUpdateParams.PaymentDetails.Benefit.FrMealVoucher.Enabled enabled) { + this.enabled = enabled; + return this; } /** @@ -4117,6 +4131,21 @@ public Builder setSiret(EmptyParam siret) { return this; } } + + public enum Enabled implements ApiRequestParams.EnumParam { + @SerializedName("if_payment_method_is_eligible") + IF_PAYMENT_METHOD_IS_ELIGIBLE("if_payment_method_is_eligible"), + + @SerializedName("never") + NEVER("never"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Enabled(String value) { + this.value = value; + } + } } } diff --git a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java index d6313bf0442..769f7214744 100644 --- a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java @@ -13092,6 +13092,10 @@ public Builder setFrMealVoucher(EmptyParam frMealVoucher) { @Getter @EqualsAndHashCode(callSuper = false) public static class FrMealVoucher { + /** Whether to enable meal voucher benefit for this setup intent. */ + @SerializedName("enabled") + Enabled enabled; + /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -13106,7 +13110,8 @@ public static class FrMealVoucher { @SerializedName("siret") String siret; - private FrMealVoucher(Map extraParams, String siret) { + private FrMealVoucher(Enabled enabled, Map extraParams, String siret) { + this.enabled = enabled; this.extraParams = extraParams; this.siret = siret; } @@ -13116,6 +13121,8 @@ public static Builder builder() { } public static class Builder { + private Enabled enabled; + private Map extraParams; private String siret; @@ -13123,7 +13130,14 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public SetupIntentConfirmParams.SetupDetails.Benefit.FrMealVoucher build() { return new SetupIntentConfirmParams.SetupDetails.Benefit.FrMealVoucher( - this.extraParams, this.siret); + this.enabled, this.extraParams, this.siret); + } + + /** Whether to enable meal voucher benefit for this setup intent. */ + public Builder setEnabled( + SetupIntentConfirmParams.SetupDetails.Benefit.FrMealVoucher.Enabled enabled) { + this.enabled = enabled; + return this; } /** @@ -13162,6 +13176,21 @@ public Builder setSiret(String siret) { return this; } } + + public enum Enabled implements ApiRequestParams.EnumParam { + @SerializedName("if_payment_method_is_eligible") + IF_PAYMENT_METHOD_IS_ELIGIBLE("if_payment_method_is_eligible"), + + @SerializedName("never") + NEVER("never"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Enabled(String value) { + this.value = value; + } + } } } } diff --git a/src/main/java/com/stripe/param/SetupIntentCreateParams.java b/src/main/java/com/stripe/param/SetupIntentCreateParams.java index 285327c5c12..5cdc40ffc18 100644 --- a/src/main/java/com/stripe/param/SetupIntentCreateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentCreateParams.java @@ -13622,6 +13622,10 @@ public Builder setFrMealVoucher(EmptyParam frMealVoucher) { @Getter @EqualsAndHashCode(callSuper = false) public static class FrMealVoucher { + /** Whether to enable meal voucher benefit for this setup intent. */ + @SerializedName("enabled") + Enabled enabled; + /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -13636,7 +13640,8 @@ public static class FrMealVoucher { @SerializedName("siret") String siret; - private FrMealVoucher(Map extraParams, String siret) { + private FrMealVoucher(Enabled enabled, Map extraParams, String siret) { + this.enabled = enabled; this.extraParams = extraParams; this.siret = siret; } @@ -13646,6 +13651,8 @@ public static Builder builder() { } public static class Builder { + private Enabled enabled; + private Map extraParams; private String siret; @@ -13653,7 +13660,14 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public SetupIntentCreateParams.SetupDetails.Benefit.FrMealVoucher build() { return new SetupIntentCreateParams.SetupDetails.Benefit.FrMealVoucher( - this.extraParams, this.siret); + this.enabled, this.extraParams, this.siret); + } + + /** Whether to enable meal voucher benefit for this setup intent. */ + public Builder setEnabled( + SetupIntentCreateParams.SetupDetails.Benefit.FrMealVoucher.Enabled enabled) { + this.enabled = enabled; + return this; } /** @@ -13690,6 +13704,21 @@ public Builder setSiret(String siret) { return this; } } + + public enum Enabled implements ApiRequestParams.EnumParam { + @SerializedName("if_payment_method_is_eligible") + IF_PAYMENT_METHOD_IS_ELIGIBLE("if_payment_method_is_eligible"), + + @SerializedName("never") + NEVER("never"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Enabled(String value) { + this.value = value; + } + } } } } diff --git a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java index b58c0b80802..aa7dd60393c 100644 --- a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java @@ -13408,6 +13408,10 @@ public Builder setFrMealVoucher(EmptyParam frMealVoucher) { @Getter @EqualsAndHashCode(callSuper = false) public static class FrMealVoucher { + /** Whether to enable meal voucher benefit for this setup intent. */ + @SerializedName("enabled") + Enabled enabled; + /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -13422,7 +13426,8 @@ public static class FrMealVoucher { @SerializedName("siret") Object siret; - private FrMealVoucher(Map extraParams, Object siret) { + private FrMealVoucher(Enabled enabled, Map extraParams, Object siret) { + this.enabled = enabled; this.extraParams = extraParams; this.siret = siret; } @@ -13432,6 +13437,8 @@ public static Builder builder() { } public static class Builder { + private Enabled enabled; + private Map extraParams; private Object siret; @@ -13439,7 +13446,14 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public SetupIntentUpdateParams.SetupDetails.Benefit.FrMealVoucher build() { return new SetupIntentUpdateParams.SetupDetails.Benefit.FrMealVoucher( - this.extraParams, this.siret); + this.enabled, this.extraParams, this.siret); + } + + /** Whether to enable meal voucher benefit for this setup intent. */ + public Builder setEnabled( + SetupIntentUpdateParams.SetupDetails.Benefit.FrMealVoucher.Enabled enabled) { + this.enabled = enabled; + return this; } /** @@ -13482,6 +13496,21 @@ public Builder setSiret(EmptyParam siret) { return this; } } + + public enum Enabled implements ApiRequestParams.EnumParam { + @SerializedName("if_payment_method_is_eligible") + IF_PAYMENT_METHOD_IS_ELIGIBLE("if_payment_method_is_eligible"), + + @SerializedName("never") + NEVER("never"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Enabled(String value) { + this.value = value; + } + } } } } From 58804655f6f555ff1df687699c43ca74516c39c2 Mon Sep 17 00:00:00 2001 From: David Brownman Date: Tue, 19 May 2026 17:49:19 -0700 Subject: [PATCH 11/13] Add better example for accessing non-documented properties in a list response (#2218) --- README.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4eb6070520d..ef27526b42d 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,7 @@ If you are not using Gradle or Maven, you will need to manually install the foll - We recommend using the same version of Gson if possible to guarantee compatibility, but you should be able to use any stable version of Gson that is 2.10.1 or newer To use these JARs: + 1. Download the JARs from the links provided above 2. Add the JARs to your project's classpath @@ -241,6 +242,32 @@ String secondaryValue = .getAsString(); ``` +> [!NOTE] +> `.getRawJsonObject()` is only available on the top-level object returned by an API call. For most requests (like `.retrieve()` or `.create()`) you'll get the object itself. But for `.list()` calls, the top level object is a `List`, so you can only access the raw json of an individual object by going through the list itself. +> +> ```java +> var cards = stripeClient +> .v1() +> .issuing() +> .cards() +> .list(params); +> +> // doesn't work: +> cards +> .getData() +> .get(0) +> .getRawJsonObject(); // null +> +> // instead, go through the list: +> cards +> .getRawJsonObject() +> .getAsJsonArray("data") +> .get(0) +> .getAsJsonObject() +> .getAsJsonPrimitive("undocumented-val") +> .getAsString(); // "some-val" +> ``` + ### Writing a plugin If you're writing a plugin that uses the library, we'd appreciate it if you @@ -269,7 +296,7 @@ Stripe.enableTelemetry = false; Stripe has features in the [public preview phase](https://docs.stripe.com/release-phases) that can be accessed via versions of this package that have the `-beta.X` suffix like `25.2.0-beta.2`. We would love for you to try these as we incrementally release new features and improve them based on your feedback. - To install, pick the latest version with the `beta` suffix by reviewing the [releases page](https://github.com/stripe/stripe-java/releases/) and then use it [installation steps above](#installation). +To install, pick the latest version with the `beta` suffix by reviewing the [releases page](https://github.com/stripe/stripe-java/releases/) and then use it [installation steps above](#installation). > **Note** > There can be breaking changes between two versions of the public preview SDKs without a bump in the major version. Therefore we recommend pinning the package version to a specific version. This way you can install the same version each time without breaking changes unless you are intentionally looking for the latest public preview SDK. @@ -279,6 +306,7 @@ Some preview features require a name and version to be set in the `Stripe-Versio ```java Stripe.addBetaVersion("feature_beta", "v3"); ``` + ### Private Preview SDKs Stripe has features in the [private preview phase](https://docs.stripe.com/release-phases) that can be accessed via versions of this package that have the `-alpha.X` suffix like `25.2.0-alpha.2`. These are invite-only features. Once invited, you can install the private preview SDKs by following the same instructions as for the [public preview SDKs](https://github.com/stripe/stripe-java?tab=readme-ov-file#public-preview-sdks) above and replacing the term `beta` with `alpha`. From d1a92fbcd4540b0f575c5acc90473de860c90dc4 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 May 2026 18:04:03 +0000 Subject: [PATCH 12/13] Update generated code for v2273 and 2e266cdaf4a7328b80cf9bc2448dfca91811415c --- CODEGEN_VERSION | 2 +- .../java/com/stripe/model/PaymentLocationCapability.java | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 6cd09c6a081..d86387251c6 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -0102be2b08962b7c75658c72ec6a58a9c8abb992 \ No newline at end of file +2e266cdaf4a7328b80cf9bc2448dfca91811415c \ No newline at end of file diff --git a/src/main/java/com/stripe/model/PaymentLocationCapability.java b/src/main/java/com/stripe/model/PaymentLocationCapability.java index 34b2d7b2dc0..24200e8cbd3 100644 --- a/src/main/java/com/stripe/model/PaymentLocationCapability.java +++ b/src/main/java/com/stripe/model/PaymentLocationCapability.java @@ -24,7 +24,7 @@ @Getter @Setter @EqualsAndHashCode(callSuper = false) -public class PaymentLocationCapability extends ApiResource { +public class PaymentLocationCapability extends ApiResource implements HasId { /** The account for which the capability enables functionality. */ @SerializedName("account") String account; @@ -201,6 +201,11 @@ public PaymentLocationCapability update( return getResponseGetter().request(request, PaymentLocationCapability.class); } + @Override + public String getId() { + return this.capability; + } + /** * For more details about Requirements, please refer to the API Reference. From 5757e73812470a769659f9ec77cd558a63cdaea3 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 May 2026 20:50:48 +0000 Subject: [PATCH 13/13] Update generated code for v2274 and 2e266cdaf4a7328b80cf9bc2448dfca91811415c --- OPENAPI_VERSION | 2 +- .../java/com/stripe/model/PaymentIntent.java | 125 ++++++++++++++++++ 2 files changed, 126 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 775d1bdf610..6993dd02ff3 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2273 \ No newline at end of file +v2274 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java index fed2a848a5f..1d22a884332 100644 --- a/src/main/java/com/stripe/model/PaymentIntent.java +++ b/src/main/java/com/stripe/model/PaymentIntent.java @@ -48,6 +48,9 @@ @Setter @EqualsAndHashCode(callSuper = false) public class PaymentIntent extends ApiResource implements HasId, MetadataStore { + @SerializedName("advanced_feature_details") + AdvancedFeatureDetails advancedFeatureDetails; + /** Details about the agent that initiated the creation of this PaymentIntent. */ @SerializedName("agent_details") AgentDetails agentDetails; @@ -1847,6 +1850,127 @@ public PaymentIntent verifyMicrodeposits( return getResponseGetter().request(request, PaymentIntent.class); } + /** + * For more details about AdvancedFeatureDetails, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class AdvancedFeatureDetails extends StripeObject { + /** Timestamp at which the authorization will expire if not captured. */ + @SerializedName("capture_before") + Long captureBefore; + + @SerializedName("decremental_authorization") + DecrementalAuthorization decrementalAuthorization; + + @SerializedName("incremental_authorization") + IncrementalAuthorization incrementalAuthorization; + + @SerializedName("multicapture") + Multicapture multicapture; + + @SerializedName("overcapture") + Overcapture overcapture; + + @SerializedName("reauthorization") + Reauthorization reauthorization; + + /** Timestamp at which the reauthorization window closes. */ + @SerializedName("reauthorize_before") + Long reauthorizeBefore; + + /** + * For more details about DecrementalAuthorization, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class DecrementalAuthorization extends StripeObject { + /** + * Indicates whether the feature is supported. + * + *

One of {@code available}, or {@code unavailable}. + */ + @SerializedName("status") + String status; + } + + /** + * For more details about IncrementalAuthorization, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class IncrementalAuthorization extends StripeObject { + /** + * Indicates whether the feature is supported. + * + *

One of {@code available}, or {@code unavailable}. + */ + @SerializedName("status") + String status; + } + + /** + * For more details about Multicapture, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Multicapture extends StripeObject { + /** + * Indicates whether the feature is supported. + * + *

One of {@code available}, or {@code unavailable}. + */ + @SerializedName("status") + String status; + } + + /** + * For more details about Overcapture, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Overcapture extends StripeObject { + /** The maximum amount that can be captured. */ + @SerializedName("maximum_amount_capturable") + Long maximumAmountCapturable; + + /** + * Indicates whether overcapture is supported. + * + *

One of {@code available}, or {@code unavailable}. + */ + @SerializedName("status") + String status; + } + + /** + * For more details about Reauthorization, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Reauthorization extends StripeObject { + /** + * Indicates whether the feature is supported. + * + *

One of {@code available}, or {@code unavailable}. + */ + @SerializedName("status") + String status; + } + } + /** * For more details about AgentDetails, please refer to the API Reference. @@ -8530,6 +8654,7 @@ public PaymentIntent simulateCryptoDeposit( @Override public void setResponseGetter(StripeResponseGetter responseGetter) { super.setResponseGetter(responseGetter); + trySetResponseGetter(advancedFeatureDetails, responseGetter); trySetResponseGetter(agentDetails, responseGetter); trySetResponseGetter(allocatedFunds, responseGetter); trySetResponseGetter(amountDetails, responseGetter);