public ExternalAccount create(Map<String, Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException { String url = String.format("%s%s", Stripe.getApiBase(), this.getURL()); return APIResource.request( APIResource.RequestMethod.POST, url, params, ExternalAccount.class, options); }
public ExternalAccount retrieve(String id, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException { String url = String.format("%s%s/%s", Stripe.getApiBase(), this.getURL(), id); return APIResource.request( APIResource.RequestMethod.GET, url, null, ExternalAccount.class, options); }