com.stripe.net
Class APIResource
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.APIResource
- Direct Known Subclasses:
- Account, ApplicationFee, Balance, BalanceTransaction, Card, Charge, Coupon, Customer, Event, Fee, Invoice, InvoiceItem, Plan, Recipient, StripeColllectionAPIResource, Subscription, Token, Transfer
public abstract class APIResource
- extends StripeObject
Method Summary |
protected static
|
_request(APIResource.RequestMethod method,
String url,
Map<String,Object> params,
Class<T> clazz,
String apiKey)
|
protected static String |
classURL(Class<?> clazz)
|
protected static String |
instanceURL(Class<?> clazz,
String id)
|
protected static
|
request(APIResource.RequestMethod method,
String url,
Map<String,Object> params,
Class<T> clazz,
String apiKey)
|
protected static String |
singleClassURL(Class<?> clazz)
|
GSON
public static final com.google.gson.Gson GSON
CHARSET
public static final String CHARSET
- See Also:
- Constant Field Values
APIResource
public APIResource()
singleClassURL
protected static String singleClassURL(Class<?> clazz)
classURL
protected static String classURL(Class<?> clazz)
instanceURL
protected static String instanceURL(Class<?> clazz,
String id)
throws InvalidRequestException
- Throws:
InvalidRequestException
request
protected static <T> T request(APIResource.RequestMethod method,
String url,
Map<String,Object> params,
Class<T> clazz,
String apiKey)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
_request
protected static <T> T _request(APIResource.RequestMethod method,
String url,
Map<String,Object> params,
Class<T> clazz,
String apiKey)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
Copyright © 2014 Stripe. All rights reserved.