All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.stripe.service.treasury.FinancialAccountFeaturesService Maven / Gradle / Ivy
// File generated from our OpenAPI spec
package com.stripe.service.treasury;
import com.stripe.exception.StripeException;
import com.stripe.model.treasury.FinancialAccountFeatures;
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.treasury.FinancialAccountFeaturesRetrieveParams;
import com.stripe.param.treasury.FinancialAccountFeaturesUpdateParams;
public final class FinancialAccountFeaturesService extends ApiService {
public FinancialAccountFeaturesService(StripeResponseGetter responseGetter) {
super(responseGetter);
}
/** Updates the Features associated with a FinancialAccount. */
public FinancialAccountFeatures update(
String financialAccount, FinancialAccountFeaturesUpdateParams params) throws StripeException {
return update(financialAccount, params, (RequestOptions) null);
}
/** Updates the Features associated with a FinancialAccount. */
public FinancialAccountFeatures update(String financialAccount, RequestOptions options)
throws StripeException {
return update(financialAccount, (FinancialAccountFeaturesUpdateParams) null, options);
}
/** Updates the Features associated with a FinancialAccount. */
public FinancialAccountFeatures update(String financialAccount) throws StripeException {
return update(
financialAccount, (FinancialAccountFeaturesUpdateParams) null, (RequestOptions) null);
}
/** Updates the Features associated with a FinancialAccount. */
public FinancialAccountFeatures update(
String financialAccount, FinancialAccountFeaturesUpdateParams params, RequestOptions options)
throws StripeException {
String path =
String.format(
"/v1/treasury/financial_accounts/%s/features",
ApiResource.urlEncodeId(financialAccount));
ApiRequest request =
new ApiRequest(
BaseAddress.API,
ApiResource.RequestMethod.POST,
path,
ApiRequestParams.paramsToMap(params),
options);
return this.request(request, FinancialAccountFeatures.class);
}
/** Retrieves Features information associated with the FinancialAccount. */
public FinancialAccountFeatures retrieve(
String financialAccount, FinancialAccountFeaturesRetrieveParams params)
throws StripeException {
return retrieve(financialAccount, params, (RequestOptions) null);
}
/** Retrieves Features information associated with the FinancialAccount. */
public FinancialAccountFeatures retrieve(String financialAccount, RequestOptions options)
throws StripeException {
return retrieve(financialAccount, (FinancialAccountFeaturesRetrieveParams) null, options);
}
/** Retrieves Features information associated with the FinancialAccount. */
public FinancialAccountFeatures retrieve(String financialAccount) throws StripeException {
return retrieve(
financialAccount, (FinancialAccountFeaturesRetrieveParams) null, (RequestOptions) null);
}
/** Retrieves Features information associated with the FinancialAccount. */
public FinancialAccountFeatures retrieve(
String financialAccount,
FinancialAccountFeaturesRetrieveParams params,
RequestOptions options)
throws StripeException {
String path =
String.format(
"/v1/treasury/financial_accounts/%s/features",
ApiResource.urlEncodeId(financialAccount));
ApiRequest request =
new ApiRequest(
BaseAddress.API,
ApiResource.RequestMethod.GET,
path,
ApiRequestParams.paramsToMap(params),
options);
return this.request(request, FinancialAccountFeatures.class);
}
}