com.stripe.model.CustomerCashBalanceTransactionCollection Maven / Gradle / Ivy
// File generated from our OpenAPI spec
package com.stripe.model;
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;
import com.stripe.net.BaseAddress;
import com.stripe.net.RequestOptions;
import com.stripe.param.CustomerCashBalanceTransactionCollectionListParams;
import com.stripe.param.CustomerCashBalanceTransactionCollectionRetrieveParams;
import java.util.Map;
public class CustomerCashBalanceTransactionCollection
extends StripeCollection {
/**
* Returns a list of transactions that modified the customer’s cash balance.
*/
public CustomerCashBalanceTransactionCollection list(Map params)
throws StripeException {
return list(params, (RequestOptions) null);
}
/**
* Returns a list of transactions that modified the customer’s cash balance.
*/
public CustomerCashBalanceTransactionCollection list(
Map params, RequestOptions options) throws StripeException {
String path = this.getUrl();
ApiRequest request =
new ApiRequest(
BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options, ApiMode.V1);
return getResponseGetter().request(request, CustomerCashBalanceTransactionCollection.class);
}
/**
* Returns a list of transactions that modified the customer’s cash balance.
*/
public CustomerCashBalanceTransactionCollection list(
CustomerCashBalanceTransactionCollectionListParams params) throws StripeException {
return list(params, (RequestOptions) null);
}
/**
* Returns a list of transactions that modified the customer’s cash balance.
*/
public CustomerCashBalanceTransactionCollection list(
CustomerCashBalanceTransactionCollectionListParams params, RequestOptions options)
throws StripeException {
String path = this.getUrl();
ApiResource.checkNullTypedParams(path, params);
ApiRequest request =
new ApiRequest(
BaseAddress.API,
ApiResource.RequestMethod.GET,
path,
ApiRequestParams.paramsToMap(params),
options,
ApiMode.V1);
return getResponseGetter().request(request, CustomerCashBalanceTransactionCollection.class);
}
/**
* Retrieves a specific cash balance transaction, which updated the customer’s cash balance.
*/
public CustomerCashBalanceTransaction retrieve(String id) throws StripeException {
return retrieve(id, (Map) null, (RequestOptions) null);
}
/**
* Retrieves a specific cash balance transaction, which updated the customer’s cash balance.
*/
public CustomerCashBalanceTransaction retrieve(String id, RequestOptions options)
throws StripeException {
return retrieve(id, (Map) null, options);
}
/**
* Retrieves a specific cash balance transaction, which updated the customer’s cash balance.
*/
public CustomerCashBalanceTransaction retrieve(
String id, Map params, RequestOptions options) throws StripeException {
String path = String.format("%s/%s", this.getUrl(), ApiResource.urlEncodeId(id));
ApiRequest request =
new ApiRequest(
BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options, ApiMode.V1);
return getResponseGetter().request(request, CustomerCashBalanceTransaction.class);
}
/**
* Retrieves a specific cash balance transaction, which updated the customer’s cash balance.
*/
public CustomerCashBalanceTransaction retrieve(
String id,
CustomerCashBalanceTransactionCollectionRetrieveParams params,
RequestOptions options)
throws StripeException {
String path = String.format("%s/%s", this.getUrl(), ApiResource.urlEncodeId(id));
ApiResource.checkNullTypedParams(path, params);
ApiRequest request =
new ApiRequest(
BaseAddress.API,
ApiResource.RequestMethod.GET,
path,
ApiRequestParams.paramsToMap(params),
options,
ApiMode.V1);
return getResponseGetter().request(request, CustomerCashBalanceTransaction.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy