Skip to content

Commit

Permalink
Update generated code for v1232
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Aug 30, 2024
1 parent c8b6911 commit 191ceab
Show file tree
Hide file tree
Showing 279 changed files with 3,346 additions and 1,483 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1230
v1232
52 changes: 35 additions & 17 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.net.ApiMode;
import com.stripe.net.ApiRequest;
import com.stripe.net.ApiRequestParams;
import com.stripe.net.ApiResource;
Expand Down Expand Up @@ -205,7 +206,8 @@ public CapabilityCollection capabilities(Map<String, Object> params, RequestOpti
String path =
String.format("/v1/accounts/%s/capabilities", ApiResource.urlEncodeId(this.getId()));
ApiRequest request =
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
new ApiRequest(
BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options, ApiMode.V1);
return getResponseGetter().request(request, CapabilityCollection.class);
}

Expand Down Expand Up @@ -233,7 +235,8 @@ public CapabilityCollection capabilities(AccountCapabilitiesParams params, Reque
ApiResource.RequestMethod.GET,
path,
ApiRequestParams.paramsToMap(params),
options);
options,
ApiMode.V1);
return getResponseGetter().request(request, CapabilityCollection.class);
}

Expand Down Expand Up @@ -265,7 +268,8 @@ public static Account create(Map<String, Object> params, RequestOptions options)
throws StripeException {
String path = "/v1/accounts";
ApiRequest request =
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
new ApiRequest(
BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options, ApiMode.V1);
return getGlobalResponseGetter().request(request, Account.class);
}

Expand Down Expand Up @@ -303,7 +307,8 @@ public static Account create(AccountCreateParams params, RequestOptions options)
ApiResource.RequestMethod.POST,
path,
ApiRequestParams.paramsToMap(params),
options);
options,
ApiMode.V1);
return getGlobalResponseGetter().request(request, Account.class);
}

Expand Down Expand Up @@ -378,7 +383,8 @@ public Account delete(Map<String, Object> params) throws StripeException {
public Account delete(Map<String, Object> params, RequestOptions options) throws StripeException {
String path = String.format("/v1/accounts/%s", ApiResource.urlEncodeId(this.getId()));
ApiRequest request =
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.DELETE, path, params, options);
new ApiRequest(
BaseAddress.API, ApiResource.RequestMethod.DELETE, path, params, options, ApiMode.V1);
return getResponseGetter().request(request, Account.class);
}

Expand All @@ -400,7 +406,8 @@ public static AccountCollection list(Map<String, Object> params, RequestOptions
throws StripeException {
String path = "/v1/accounts";
ApiRequest request =
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
new ApiRequest(
BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options, ApiMode.V1);
return getGlobalResponseGetter().request(request, AccountCollection.class);
}

Expand Down Expand Up @@ -428,7 +435,8 @@ public static AccountCollection list(AccountListParams params, RequestOptions op
ApiResource.RequestMethod.GET,
path,
ApiRequestParams.paramsToMap(params),
options);
options,
ApiMode.V1);
return getGlobalResponseGetter().request(request, AccountCollection.class);
}

Expand Down Expand Up @@ -456,7 +464,8 @@ public PersonCollection persons(Map<String, Object> params, RequestOptions optio
throws StripeException {
String path = String.format("/v1/accounts/%s/persons", ApiResource.urlEncodeId(this.getId()));
ApiRequest request =
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
new ApiRequest(
BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options, ApiMode.V1);
return getResponseGetter().request(request, PersonCollection.class);
}

Expand All @@ -482,7 +491,8 @@ public PersonCollection persons(AccountPersonsParams params, RequestOptions opti
ApiResource.RequestMethod.GET,
path,
ApiRequestParams.paramsToMap(params),
options);
options,
ApiMode.V1);
return getResponseGetter().request(request, PersonCollection.class);
}

Expand All @@ -509,7 +519,8 @@ public Account reject(Map<String, Object> params) throws StripeException {
public Account reject(Map<String, Object> params, RequestOptions options) throws StripeException {
String path = String.format("/v1/accounts/%s/reject", ApiResource.urlEncodeId(this.getId()));
ApiRequest request =
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
new ApiRequest(
BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options, ApiMode.V1);
return getResponseGetter().request(request, Account.class);
}

Expand Down Expand Up @@ -542,7 +553,8 @@ public Account reject(AccountRejectParams params, RequestOptions options) throws
ApiResource.RequestMethod.POST,
path,
ApiRequestParams.paramsToMap(params),
options);
options,
ApiMode.V1);
return getResponseGetter().request(request, Account.class);
}

Expand All @@ -561,7 +573,8 @@ public static Account retrieve(String account, Map<String, Object> params, Reque
throws StripeException {
String path = String.format("/v1/accounts/%s", ApiResource.urlEncodeId(account));
ApiRequest request =
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
new ApiRequest(
BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options, ApiMode.V1);
return getGlobalResponseGetter().request(request, Account.class);
}

Expand All @@ -576,7 +589,8 @@ public static Account retrieve(
ApiResource.RequestMethod.GET,
path,
ApiRequestParams.paramsToMap(params),
options);
options,
ApiMode.V1);
return getGlobalResponseGetter().request(request, Account.class);
}

Expand All @@ -595,7 +609,8 @@ public static Account retrieve(Map<String, Object> params, RequestOptions option
throws StripeException {
String path = "/v1/account";
ApiRequest request =
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
new ApiRequest(
BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options, ApiMode.V1);
return getGlobalResponseGetter().request(request, Account.class);
}

Expand All @@ -610,7 +625,8 @@ public static Account retrieve(AccountRetrieveParams params, RequestOptions opti
ApiResource.RequestMethod.GET,
path,
ApiRequestParams.paramsToMap(params),
options);
options,
ApiMode.V1);
return getGlobalResponseGetter().request(request, Account.class);
}

Expand Down Expand Up @@ -665,7 +681,8 @@ public Account update(Map<String, Object> params) throws StripeException {
public Account update(Map<String, Object> params, RequestOptions options) throws StripeException {
String path = String.format("/v1/accounts/%s", ApiResource.urlEncodeId(this.getId()));
ApiRequest request =
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
new ApiRequest(
BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options, ApiMode.V1);
return getResponseGetter().request(request, Account.class);
}

Expand Down Expand Up @@ -724,7 +741,8 @@ public Account update(AccountUpdateParams params, RequestOptions options) throws
ApiResource.RequestMethod.POST,
path,
ApiRequestParams.paramsToMap(params),
options);
options,
ApiMode.V1);
return getResponseGetter().request(request, Account.class);
}

Expand Down
7 changes: 5 additions & 2 deletions src/main/java/com/stripe/model/AccountLink.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.net.ApiMode;
import com.stripe.net.ApiRequest;
import com.stripe.net.ApiRequestParams;
import com.stripe.net.ApiResource;
Expand Down Expand Up @@ -61,7 +62,8 @@ public static AccountLink create(Map<String, Object> params, RequestOptions opti
throws StripeException {
String path = "/v1/account_links";
ApiRequest request =
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
new ApiRequest(
BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options, ApiMode.V1);
return getGlobalResponseGetter().request(request, AccountLink.class);
}

Expand All @@ -87,7 +89,8 @@ public static AccountLink create(AccountLinkCreateParams params, RequestOptions
ApiResource.RequestMethod.POST,
path,
ApiRequestParams.paramsToMap(params),
options);
options,
ApiMode.V1);
return getGlobalResponseGetter().request(request, AccountLink.class);
}
}
7 changes: 5 additions & 2 deletions src/main/java/com/stripe/model/AccountSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.net.ApiMode;
import com.stripe.net.ApiRequest;
import com.stripe.net.ApiRequestParams;
import com.stripe.net.ApiResource;
Expand Down Expand Up @@ -88,7 +89,8 @@ public static AccountSession create(Map<String, Object> params, RequestOptions o
throws StripeException {
String path = "/v1/account_sessions";
ApiRequest request =
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
new ApiRequest(
BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options, ApiMode.V1);
return getGlobalResponseGetter().request(request, AccountSession.class);
}

Expand All @@ -114,7 +116,8 @@ public static AccountSession create(AccountSessionCreateParams params, RequestOp
ApiResource.RequestMethod.POST,
path,
ApiRequestParams.paramsToMap(params),
options);
options,
ApiMode.V1);
return getGlobalResponseGetter().request(request, AccountSession.class);
}

Expand Down
22 changes: 15 additions & 7 deletions src/main/java/com/stripe/model/ApplePayDomain.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.net.ApiMode;
import com.stripe.net.ApiRequest;
import com.stripe.net.ApiRequestParams;
import com.stripe.net.ApiResource;
Expand Down Expand Up @@ -61,7 +62,8 @@ public static ApplePayDomain create(Map<String, Object> params, RequestOptions o
throws StripeException {
String path = "/v1/apple_pay/domains";
ApiRequest request =
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
new ApiRequest(
BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options, ApiMode.V1);
return getGlobalResponseGetter().request(request, ApplePayDomain.class);
}

Expand All @@ -81,7 +83,8 @@ public static ApplePayDomain create(ApplePayDomainCreateParams params, RequestOp
ApiResource.RequestMethod.POST,
path,
ApiRequestParams.paramsToMap(params),
options);
options,
ApiMode.V1);
return getGlobalResponseGetter().request(request, ApplePayDomain.class);
}

Expand All @@ -105,7 +108,8 @@ public ApplePayDomain delete(Map<String, Object> params, RequestOptions options)
throws StripeException {
String path = String.format("/v1/apple_pay/domains/%s", ApiResource.urlEncodeId(this.getId()));
ApiRequest request =
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.DELETE, path, params, options);
new ApiRequest(
BaseAddress.API, ApiResource.RequestMethod.DELETE, path, params, options, ApiMode.V1);
return getResponseGetter().request(request, ApplePayDomain.class);
}

Expand All @@ -119,7 +123,8 @@ public static ApplePayDomainCollection list(Map<String, Object> params, RequestO
throws StripeException {
String path = "/v1/apple_pay/domains";
ApiRequest request =
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
new ApiRequest(
BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options, ApiMode.V1);
return getGlobalResponseGetter().request(request, ApplePayDomainCollection.class);
}

Expand All @@ -140,7 +145,8 @@ public static ApplePayDomainCollection list(
ApiResource.RequestMethod.GET,
path,
ApiRequestParams.paramsToMap(params),
options);
options,
ApiMode.V1);
return getGlobalResponseGetter().request(request, ApplePayDomainCollection.class);
}

Expand All @@ -160,7 +166,8 @@ public static ApplePayDomain retrieve(
String domain, Map<String, Object> params, RequestOptions options) throws StripeException {
String path = String.format("/v1/apple_pay/domains/%s", ApiResource.urlEncodeId(domain));
ApiRequest request =
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
new ApiRequest(
BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options, ApiMode.V1);
return getGlobalResponseGetter().request(request, ApplePayDomain.class);
}

Expand All @@ -176,7 +183,8 @@ public static ApplePayDomain retrieve(
ApiResource.RequestMethod.GET,
path,
ApiRequestParams.paramsToMap(params),
options);
options,
ApiMode.V1);
return getGlobalResponseGetter().request(request, ApplePayDomain.class);
}
}
13 changes: 9 additions & 4 deletions src/main/java/com/stripe/model/ApplicationFee.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.net.ApiMode;
import com.stripe.net.ApiRequest;
import com.stripe.net.ApiRequestParams;
import com.stripe.net.ApiResource;
Expand Down Expand Up @@ -224,7 +225,8 @@ public static ApplicationFeeCollection list(Map<String, Object> params, RequestO
throws StripeException {
String path = "/v1/application_fees";
ApiRequest request =
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
new ApiRequest(
BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options, ApiMode.V1);
return getGlobalResponseGetter().request(request, ApplicationFeeCollection.class);
}

Expand All @@ -251,7 +253,8 @@ public static ApplicationFeeCollection list(
ApiResource.RequestMethod.GET,
path,
ApiRequestParams.paramsToMap(params),
options);
options,
ApiMode.V1);
return getGlobalResponseGetter().request(request, ApplicationFeeCollection.class);
}

Expand Down Expand Up @@ -279,7 +282,8 @@ public static ApplicationFee retrieve(
String id, Map<String, Object> params, RequestOptions options) throws StripeException {
String path = String.format("/v1/application_fees/%s", ApiResource.urlEncodeId(id));
ApiRequest request =
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
new ApiRequest(
BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options, ApiMode.V1);
return getGlobalResponseGetter().request(request, ApplicationFee.class);
}

Expand All @@ -298,7 +302,8 @@ public static ApplicationFee retrieve(
ApiResource.RequestMethod.GET,
path,
ApiRequestParams.paramsToMap(params),
options);
options,
ApiMode.V1);
return getGlobalResponseGetter().request(request, ApplicationFee.class);
}

Expand Down
7 changes: 5 additions & 2 deletions src/main/java/com/stripe/model/Balance.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.net.ApiMode;
import com.stripe.net.ApiRequest;
import com.stripe.net.ApiRequestParams;
import com.stripe.net.ApiResource;
Expand Down Expand Up @@ -111,7 +112,8 @@ public static Balance retrieve(Map<String, Object> params, RequestOptions option
throws StripeException {
String path = "/v1/balance";
ApiRequest request =
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
new ApiRequest(
BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options, ApiMode.V1);
return getGlobalResponseGetter().request(request, Balance.class);
}

Expand All @@ -131,7 +133,8 @@ public static Balance retrieve(BalanceRetrieveParams params, RequestOptions opti
ApiResource.RequestMethod.GET,
path,
ApiRequestParams.paramsToMap(params),
options);
options,
ApiMode.V1);
return getGlobalResponseGetter().request(request, Balance.class);
}

Expand Down
Loading

0 comments on commit 191ceab

Please sign in to comment.