diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION
index 5c168e856a4..b35f6559d94 100644
--- a/CODEGEN_VERSION
+++ b/CODEGEN_VERSION
@@ -1 +1 @@
-68065dff88008f079e79eb1ef0add5e261b416e1
\ No newline at end of file
+9d9eb64ed1c8a7adcdcc153fc393b864deedc180
\ No newline at end of file
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 70faab1cf1f..863b4f4b4b0 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2176
\ No newline at end of file
+v2182
\ No newline at end of file
diff --git a/src/main/java/com/stripe/model/AccountSignals.java b/src/main/java/com/stripe/model/AccountSignals.java
new file mode 100644
index 00000000000..5043af5a3f3
--- /dev/null
+++ b/src/main/java/com/stripe/model/AccountSignals.java
@@ -0,0 +1,161 @@
+// 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.AccountSignalsRetrieveParams;
+import java.math.BigDecimal;
+import java.util.List;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * The Account Signals API provides risk related signals that can be used to better manage risks.
+ */
+@Getter
+@Setter
+@EqualsAndHashCode(callSuper = false)
+public class AccountSignals extends ApiResource {
+ /** The account for which the signals belong to. */
+ @SerializedName("account")
+ String account;
+
+ /** The delinquency signal of the account. */
+ @SerializedName("delinquency")
+ Delinquency delinquency;
+
+ /**
+ * Has the value {@code true} if the object exists in live mode or the value {@code false} if the
+ * object exists in test mode.
+ */
+ @SerializedName("livemode")
+ Boolean livemode;
+
+ /**
+ * String representing the object's type. Objects of the same type share the same value.
+ *
+ *
Equal to {@code account_signals}.
+ */
+ @SerializedName("object")
+ String object;
+
+ /** Retrieves the account’s Signal objects. */
+ public static AccountSignals retrieve(String accountId) throws StripeException {
+ return retrieve(accountId, (Map) null, (RequestOptions) null);
+ }
+
+ /** Retrieves the account’s Signal objects. */
+ public static AccountSignals retrieve(String accountId, RequestOptions options)
+ throws StripeException {
+ return retrieve(accountId, (Map) null, options);
+ }
+
+ /** Retrieves the account’s Signal objects. */
+ public static AccountSignals retrieve(
+ String accountId, Map params, RequestOptions options) throws StripeException {
+ String path = String.format("/v1/accounts/%s/signals", ApiResource.urlEncodeId(accountId));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
+ return getGlobalResponseGetter().request(request, AccountSignals.class);
+ }
+
+ /** Retrieves the account’s Signal objects. */
+ public static AccountSignals retrieve(
+ String accountId, AccountSignalsRetrieveParams params, RequestOptions options)
+ throws StripeException {
+ String path = String.format("/v1/accounts/%s/signals", ApiResource.urlEncodeId(accountId));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, AccountSignals.class);
+ }
+
+ /**
+ * For more details about Delinquency, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Delinquency extends StripeObject {
+ /** Time at which the signal was evaluated, measured in seconds since the Unix epoch. */
+ @SerializedName("evaluated_at")
+ Long evaluatedAt;
+
+ /**
+ * Array of objects representing individual factors that contributed to the calculated
+ * probability of delinquency.
+ */
+ @SerializedName("indicators")
+ List indicators;
+
+ /** The probability of delinquency. Can be between 0.00 and 100.00 */
+ @SerializedName("probability")
+ BigDecimal probability;
+
+ /**
+ * Categorical assessment of the delinquency risk based on probability.
+ *
+ * One of {@code elevated}, {@code highest}, {@code low}, {@code normal}, {@code
+ * not_assessed}, or {@code unknown}.
+ */
+ @SerializedName("risk_level")
+ String riskLevel;
+
+ /** Unique identifier for the delinquency signal. */
+ @SerializedName("signal_id")
+ String signalId;
+
+ /**
+ * For more details about Indicator, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Indicator extends StripeObject {
+ /** A brief explanation of how this indicator contributed to the delinquency probability. */
+ @SerializedName("description")
+ String description;
+
+ /**
+ * The effect this indicator had on the overall risk level.
+ *
+ *
One of {@code decrease}, {@code neutral}, {@code slight_increase}, or {@code
+ * strong_increase}.
+ */
+ @SerializedName("impact")
+ String impact;
+
+ /**
+ * The name of the specific indicator used in the risk assessment.
+ *
+ *
One of {@code account_balance}, {@code aov}, {@code charge_concentration}, {@code
+ * dispute_window}, {@code disputes}, {@code duplicates}, {@code exposure}, {@code
+ * firmographic}, {@code lifetime_metrics}, {@code payment_processing}, {@code
+ * payment_volume}, {@code payouts}, {@code refunds}, {@code tenure}, or {@code transfers}.
+ */
+ @SerializedName("indicator")
+ String indicator;
+ }
+ }
+
+ @Override
+ public void setResponseGetter(StripeResponseGetter responseGetter) {
+ super.setResponseGetter(responseGetter);
+ trySetResponseGetter(delinquency, responseGetter);
+ }
+}
diff --git a/src/main/java/com/stripe/model/ApplicationFee.java b/src/main/java/com/stripe/model/ApplicationFee.java
index 880cd0e9af2..0c99ab4544c 100644
--- a/src/main/java/com/stripe/model/ApplicationFee.java
+++ b/src/main/java/com/stripe/model/ApplicationFee.java
@@ -76,6 +76,13 @@ public class ApplicationFee extends ApiResource implements BalanceTransactionSou
@SerializedName("fee_source")
FeeSource feeSource;
+ /**
+ * Polymorphic funding source of the application fee. Includes the type and details of the funding
+ * source.
+ */
+ @SerializedName("funding_source")
+ FundingSource fundingSource;
+
/** Unique identifier for the object. */
@Getter(onMethod_ = {@Override})
@SerializedName("id")
@@ -338,6 +345,23 @@ public static class FeeSource extends StripeObject {
String type;
}
+ /**
+ * For more details about FundingSource, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class FundingSource extends StripeObject {
+ /** The invoice ID associated with this funding source, if applicable. */
+ @SerializedName("invoice")
+ String invoice;
+
+ /** The type of funding source. */
+ @SerializedName("type")
+ String type;
+ }
+
@Override
public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
@@ -346,6 +370,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(balanceTransaction, responseGetter);
trySetResponseGetter(charge, responseGetter);
trySetResponseGetter(feeSource, responseGetter);
+ trySetResponseGetter(fundingSource, responseGetter);
trySetResponseGetter(originatingTransaction, responseGetter);
trySetResponseGetter(refunds, responseGetter);
}
diff --git a/src/main/java/com/stripe/model/EventDataClassLookup.java b/src/main/java/com/stripe/model/EventDataClassLookup.java
index 9a603ae7b19..fc639c6f06d 100644
--- a/src/main/java/com/stripe/model/EventDataClassLookup.java
+++ b/src/main/java/com/stripe/model/EventDataClassLookup.java
@@ -18,6 +18,7 @@ public final class EventDataClassLookup {
classLookup.put("account_link", com.stripe.model.AccountLink.class);
classLookup.put("account_notice", com.stripe.model.AccountNotice.class);
classLookup.put("account_session", com.stripe.model.AccountSession.class);
+ classLookup.put("account_signals", com.stripe.model.AccountSignals.class);
classLookup.put("apple_pay_domain", com.stripe.model.ApplePayDomain.class);
classLookup.put("application", com.stripe.model.Application.class);
classLookup.put("application_fee", com.stripe.model.ApplicationFee.class);
diff --git a/src/main/java/com/stripe/model/billing/AlertTriggered.java b/src/main/java/com/stripe/model/billing/AlertTriggered.java
index f3a1391fc69..bcc759eda6b 100644
--- a/src/main/java/com/stripe/model/billing/AlertTriggered.java
+++ b/src/main/java/com/stripe/model/billing/AlertTriggered.java
@@ -12,6 +12,10 @@
@Setter
@EqualsAndHashCode(callSuper = false)
public class AlertTriggered extends StripeObject {
+ /** The aggregation period for which this alert triggered. */
+ @SerializedName("aggregation_period")
+ AggregationPeriod aggregationPeriod;
+
/**
* A billing alert is a resource that notifies you when a certain usage threshold on a meter is
* crossed. For example, you might create a billing alert to notify you when a certain user made
@@ -40,6 +44,13 @@ public class AlertTriggered extends StripeObject {
@SerializedName("external_customer_id")
String externalCustomerId;
+ /**
+ * Populated specifically for spend alerts to notify merchants which group_by entity has the
+ * exceeded spend.
+ */
+ @SerializedName("group_by")
+ GroupBy groupBy;
+
/**
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
* object exists in test mode.
@@ -55,7 +66,55 @@ public class AlertTriggered extends StripeObject {
@SerializedName("object")
String object;
+ /** Timestamp at which the threshold was crossed. */
+ @SerializedName("triggered_at")
+ Long triggeredAt;
+
/** The value triggering the alert. */
@SerializedName("value")
BigDecimal value;
+
+ /**
+ * For more details about AggregationPeriod, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AggregationPeriod extends StripeObject {
+ /** End time of the aggregation period. */
+ @SerializedName("ends_at")
+ Long endsAt;
+
+ /** Start time of the aggregation period. */
+ @SerializedName("starts_at")
+ Long startsAt;
+ }
+
+ /**
+ * For more details about GroupBy, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class GroupBy extends StripeObject {
+ /** The billing cadence ID, populated when type is {@code billing_cadence}. */
+ @SerializedName("billing_cadence")
+ String billingCadence;
+
+ /**
+ * The pricing plan subscription ID, populated when type is {@code pricing_plan_subscription}.
+ */
+ @SerializedName("pricing_plan_subscription")
+ String pricingPlanSubscription;
+
+ /**
+ * The type of grouping used for this alert notification
+ *
+ *
One of {@code billing_cadence}, or {@code pricing_plan_subscription}.
+ */
+ @SerializedName("type")
+ String type;
+ }
}
diff --git a/src/main/java/com/stripe/model/tax/CalculationLineItem.java b/src/main/java/com/stripe/model/tax/CalculationLineItem.java
index e61fee72e71..ad26c510a9f 100644
--- a/src/main/java/com/stripe/model/tax/CalculationLineItem.java
+++ b/src/main/java/com/stripe/model/tax/CalculationLineItem.java
@@ -58,12 +58,10 @@ public class CalculationLineItem extends StripeObject implements HasId {
String object;
/**
- * A tax location for a line item that acts as a performance location. This indicates that the
- * line item might be taxed at the place where it is being performed at. This is helpful for
- * events or other services being performed at non-customer addresses like venues or offices. This
- * can be left empty for tax codes that do not require a tax location. For tax codes where the
- * location requirement is "optional", this would override the customer address in most
- * use cases.
+ * Indicates the line item represents a performance where the venue location might determine the
+ * tax, not the customer address. Leave empty if the tax code doesn't require a tax location. If
+ * you provide this value for tax codes with an {@code optional} location requirement, it
+ * overrides the customer address.
*/
@SerializedName("performance_location")
String performanceLocation;
diff --git a/src/main/java/com/stripe/param/AccountLinkCreateParams.java b/src/main/java/com/stripe/param/AccountLinkCreateParams.java
index 87b53d6591c..27df2e8b18f 100644
--- a/src/main/java/com/stripe/param/AccountLinkCreateParams.java
+++ b/src/main/java/com/stripe/param/AccountLinkCreateParams.java
@@ -236,6 +236,14 @@ public Builder setType(AccountLinkCreateParams.Type type) {
@Getter
@EqualsAndHashCode(callSuper = false)
public static class CollectionOptions {
+ /**
+ * Specifies whether the platform collects external account information from connected accounts
+ * during Connect Onboarding. When set to {@code false}, external account collection is skipped.
+ * Defaults to {@code true}.
+ */
+ @SerializedName("external_account_collection")
+ Boolean externalAccountCollection;
+
/**
* 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
@@ -262,7 +270,11 @@ public static class CollectionOptions {
FutureRequirements futureRequirements;
private CollectionOptions(
- Map extraParams, Fields fields, FutureRequirements futureRequirements) {
+ Boolean externalAccountCollection,
+ Map extraParams,
+ Fields fields,
+ FutureRequirements futureRequirements) {
+ this.externalAccountCollection = externalAccountCollection;
this.extraParams = extraParams;
this.fields = fields;
this.futureRequirements = futureRequirements;
@@ -273,6 +285,8 @@ public static Builder builder() {
}
public static class Builder {
+ private Boolean externalAccountCollection;
+
private Map extraParams;
private Fields fields;
@@ -282,7 +296,17 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public AccountLinkCreateParams.CollectionOptions build() {
return new AccountLinkCreateParams.CollectionOptions(
- this.extraParams, this.fields, this.futureRequirements);
+ this.externalAccountCollection, this.extraParams, this.fields, this.futureRequirements);
+ }
+
+ /**
+ * Specifies whether the platform collects external account information from connected
+ * accounts during Connect Onboarding. When set to {@code false}, external account collection
+ * is skipped. Defaults to {@code true}.
+ */
+ public Builder setExternalAccountCollection(Boolean externalAccountCollection) {
+ this.externalAccountCollection = externalAccountCollection;
+ return this;
}
/**
diff --git a/src/main/java/com/stripe/param/AccountSignalsRetrieveParams.java b/src/main/java/com/stripe/param/AccountSignalsRetrieveParams.java
new file mode 100644
index 00000000000..1ac7469c3f4
--- /dev/null
+++ b/src/main/java/com/stripe/param/AccountSignalsRetrieveParams.java
@@ -0,0 +1,100 @@
+// 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 AccountSignalsRetrieveParams 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;
+
+ private AccountSignalsRetrieveParams(List expand, Map extraParams) {
+ this.expand = expand;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private List expand;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountSignalsRetrieveParams build() {
+ return new AccountSignalsRetrieveParams(this.expand, this.extraParams);
+ }
+
+ /**
+ * 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
+ * AccountSignalsRetrieveParams#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
+ * AccountSignalsRetrieveParams#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
+ * AccountSignalsRetrieveParams#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 AccountSignalsRetrieveParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionConfirmParams.java b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionConfirmParams.java
index 0cfeb1fc7aa..36f9e1600cd 100644
--- a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionConfirmParams.java
+++ b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionConfirmParams.java
@@ -388,9 +388,7 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /**
- * Required. Address line 1, such as the street, PO Box, or company name.
- */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
@@ -502,9 +500,7 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /**
- * Required. Address line 1, such as the street, PO Box, or company name.
- */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
diff --git a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionCreateParams.java b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionCreateParams.java
index 25457706eac..5f78641f808 100644
--- a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionCreateParams.java
+++ b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionCreateParams.java
@@ -449,7 +449,7 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Required. Address line 1, such as the street, PO Box, or company name. */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
@@ -559,9 +559,7 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /**
- * Required. Address line 1, such as the street, PO Box, or company name.
- */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
@@ -915,9 +913,7 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /**
- * Required. Address line 1, such as the street, PO Box, or company name.
- */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
@@ -1029,9 +1025,7 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /**
- * Required. Address line 1, such as the street, PO Box, or company name.
- */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
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 1ae29befb2e..114f9bc5dfa 100644
--- a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionUpdateParams.java
+++ b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionUpdateParams.java
@@ -472,7 +472,7 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Required. Address line 1, such as the street, PO Box, or company name. */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
Object line1;
@@ -597,17 +597,13 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /**
- * Required. Address line 1, such as the street, PO Box, or company name.
- */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /**
- * Required. Address line 1, such as the street, PO Box, or company name.
- */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(EmptyParam line1) {
this.line1 = line1;
return this;
@@ -1184,9 +1180,7 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /**
- * Required. Address line 1, such as the street, PO Box, or company name.
- */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
Object line1;
@@ -1313,17 +1307,13 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /**
- * Required. Address line 1, such as the street, PO Box, or company name.
- */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /**
- * Required. Address line 1, such as the street, PO Box, or company name.
- */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(EmptyParam line1) {
this.line1 = line1;
return this;
diff --git a/src/main/java/com/stripe/service/AccountService.java b/src/main/java/com/stripe/service/AccountService.java
index fb2843acbde..8594e2b8469 100644
--- a/src/main/java/com/stripe/service/AccountService.java
+++ b/src/main/java/com/stripe/service/AccountService.java
@@ -364,4 +364,8 @@ public com.stripe.service.AccountLoginLinkService loginLinks() {
public com.stripe.service.AccountPersonService persons() {
return new com.stripe.service.AccountPersonService(this.getResponseGetter());
}
+
+ public com.stripe.service.AccountSignalsService signals() {
+ return new com.stripe.service.AccountSignalsService(this.getResponseGetter());
+ }
}
diff --git a/src/main/java/com/stripe/service/AccountSignalsService.java b/src/main/java/com/stripe/service/AccountSignalsService.java
new file mode 100644
index 00000000000..c02d4f0e403
--- /dev/null
+++ b/src/main/java/com/stripe/service/AccountSignalsService.java
@@ -0,0 +1,47 @@
+// File generated from our OpenAPI spec
+package com.stripe.service;
+
+import com.stripe.exception.StripeException;
+import com.stripe.model.AccountSignals;
+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.AccountSignalsRetrieveParams;
+
+public final class AccountSignalsService extends ApiService {
+ public AccountSignalsService(StripeResponseGetter responseGetter) {
+ super(responseGetter);
+ }
+
+ /** Retrieves the account’s Signal objects. */
+ public AccountSignals retrieve(String accountId, AccountSignalsRetrieveParams params)
+ throws StripeException {
+ return retrieve(accountId, params, (RequestOptions) null);
+ }
+ /** Retrieves the account’s Signal objects. */
+ public AccountSignals retrieve(String accountId, RequestOptions options) throws StripeException {
+ return retrieve(accountId, (AccountSignalsRetrieveParams) null, options);
+ }
+ /** Retrieves the account’s Signal objects. */
+ public AccountSignals retrieve(String accountId) throws StripeException {
+ return retrieve(accountId, (AccountSignalsRetrieveParams) null, (RequestOptions) null);
+ }
+ /** Retrieves the account’s Signal objects. */
+ public AccountSignals retrieve(
+ String accountId, AccountSignalsRetrieveParams params, RequestOptions options)
+ throws StripeException {
+ String path = String.format("/v1/accounts/%s/signals", ApiResource.urlEncodeId(accountId));
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return this.request(request, AccountSignals.class);
+ }
+}